/* Reset and Base — GrowthLoop-style: neutral palette, minimal gradients, borders not shadows */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --white: #ffffff;
    --ink: #0f172a;
    --ink-muted: #475569;
    --ink-light: #64748b;
    --border: #e2e8f0;
    --border-focus: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --primary: #0f172a;
    --primary-hover: #1e293b;
    --transition: 0.2s ease;
    --wrapper-max: 1100px;
    --wrapper-padding: 1.25rem;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background-color: var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 1rem;
}

/* Wrapper: constrains content to --wrapper-max on all sections */
.container {
    width: 100%;
    max-width: var(--wrapper-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--wrapper-padding);
    padding-right: var(--wrapper-padding);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 1001;
    padding: 0.6rem 1rem;
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
}

.navbar.scrolled {
    padding: 0.75rem 0;
}

.nav-container {
    width: 100%;
    max-width: var(--wrapper-max);
    margin: 0 auto;
    padding: 0 var(--wrapper-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo-wrapper { display: flex; flex-direction: column; gap: 0.1rem; }

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    line-height: 1.2;
}

.nav-logo-subtitle {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--ink-muted);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.nav-link:hover {
    color: var(--ink);
}

.nav-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-cta {
    margin-left: 0.5rem;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 600;
}

.nav-cta:hover {
    background: var(--primary-hover);
    color: var(--white) !important;
}

.nav-indicator {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--ink);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--bg-alt);
    padding: 6rem 1.25rem 4rem;
    position: relative;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
}

.arch-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--ink) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink) 1px, transparent 1px);
    background-size: 48px 48px;
}

.arch-lines,
.arch-shapes { position: absolute; inset: 0; }

.arch-line {
    position: absolute;
    background: var(--border);
}

.arch-line.line-1 {
    width: 1px;
    height: 100%;
    left: 20%;
    animation: lineMove1 15s ease-in-out infinite;
}

.arch-line.line-2 {
    width: 1px;
    height: 100%;
    right: 25%;
    animation: lineMove2 18s ease-in-out infinite;
}

.arch-line.line-3 {
    width: 100%;
    height: 1px;
    top: 40%;
    animation: lineMove3 12s ease-in-out infinite;
}

.arch-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.arch-shape {
    position: absolute;
    border: 1px solid var(--border);
}

.arch-shape.shape-1 {
    width: 180px;
    height: 250px;
    top: 8%;
    right: 8%;
    border-style: dashed;
    animation: shapeRotate1 25s linear infinite;
}

.arch-shape.shape-2 {
    width: 150px;
    height: 150px;
    bottom: 15%;
    left: 8%;
    transform: rotate(45deg);
    animation: shapeRotate2 20s linear infinite reverse;
}

.arch-shape.shape-3 {
    width: 100px;
    height: 200px;
    top: 50%;
    left: 5%;
    border-style: dotted;
    animation: shapeMove 15s ease-in-out infinite;
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--wrapper-max);
    margin: 0 auto;
    padding: 0 var(--wrapper-padding);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content {
    max-width: 100%;
    text-align: left;
    animation: fadeInUp 1s ease-out;
}

.hero-right-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 1.2s forwards;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
    border-radius: 6px;
}

.hero-badge .material-icons {
    font-size: 1.125rem;
    color: var(--primary);
}

.hero-title {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    color: var(--ink);
}

.hero-title .line-1,
.hero-title .line-2 {
    display: block;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    position: relative;
}

.hero-title .line-1 {
    margin-bottom: 0.5rem;
}

.hero-title .line-1::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    animation: underlineExpand 1s ease-out 0.8s forwards;
}

.hero-title .line-2 {
    animation-delay: 0.3s;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--ink-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    line-height: 1.7;
    max-width: 90%;
}

.hero-subtitle strong {
    color: var(--ink);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.9s forwards;
    margin-top: 1rem;
}

/* Minimal Stats */
.hero-stats-minimal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    width: 100%;
}

.stat-minimal {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    width: 100%;
}

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.stat-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.stat-divider {
    display: none;
}

/* Hero Certifications */
.hero-certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
}

.certifications-label {
    display: none;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    width: auto;
}

.certification-item {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 100%;
    height: 100%;
}

.certification-item:hover {
    opacity: 0.8;
}

.certification-item img {
    width: auto;
    height: auto;
    max-height: 180px;
    max-width: 100%;
    display: block;
    object-fit: contain;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border-color: var(--border);
}

.btn-secondary:hover {
    border-color: var(--ink-muted);
    color: var(--ink);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator {
    width: 2px;
    height: 28px;
    background: var(--ink-muted);
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 4rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--ink);
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--primary);
    margin: 1rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--ink-muted);
    font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
    max-width: 36rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.section-subtitle strong {
    color: var(--ink);
}

/* Introduction Section */
.intro-section {
    background: var(--white);
    padding: 4rem 0;
}

.intro-wrapper {
    width: 100%;
    max-width: var(--wrapper-max);
    margin: 0 auto;
}

.intro-header {
    text-align: center;
    margin-bottom: 3rem;
}

.intro-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.intro-title::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--primary);
    margin: 0.75rem auto 0;
}

.intro-tagline {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--ink-muted);
    font-style: italic;
    margin-top: 1rem;
    line-height: 1.6;
    max-width: 42ch;
    margin-left: auto;
    margin-right: auto;
}

.intro-seo {
    font-size: 0.9375rem;
    color: var(--ink-muted);
    line-height: 1.7;
    max-width: 44rem;
    margin: 1.25rem auto 0;
}

.intro-seo strong {
    color: var(--ink);
    font-weight: 600;
}

.intro-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
    align-items: start;
}

.intro-text-block {
    padding-top: 1rem;
}

.intro-text {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--ink-muted);
    margin-bottom: 1.25rem;
}

.intro-text:last-child {
    margin-bottom: 0;
}

.intro-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--transition);
}

.highlight-item:hover {
    border-color: var(--border-focus);
}

.highlight-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--primary);
    flex-shrink: 0;
}

.highlight-icon .material-icons {
    font-size: 1.25rem;
}

.highlight-content { flex: 1; }

.highlight-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.highlight-text {
    font-size: 0.8125rem;
    color: var(--ink-muted);
    line-height: 1.5;
}

.highlight-license {
    color: var(--primary);
    font-weight: 600;
}

.intro-credential {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.credential-badge {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
    max-width: 32rem;
    width: 100%;
}

.credential-badge .material-icons {
    font-size: 48px;
    color: var(--white);
    opacity: 0.95;
}

.credential-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.credential-label {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--white);
}

.credential-detail {
    font-size: 0.95rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
}

/* Services Section */
.services-section {
    background: var(--bg-alt);
    padding: 4rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.service-card {
    padding: 2rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition);
}

.service-card:hover {
    border-color: var(--border-focus);
}

.service-card::before { display: none; }

.service-icon-wrapper {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--primary);
}

.service-icon-wrapper .material-icons {
    font-size: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    color: var(--ink);
    line-height: 1.25;
}

.service-description {
    color: var(--ink-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
    flex-grow: 1;
}

.service-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.service-tags li {
    padding: 0.35rem 0.75rem;
    background: var(--bg-alt);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-muted);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Why Section */
.why-section {
    background: var(--white);
    padding: 4rem 0;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
    width: 100%;
}

@media (min-width: 900px) and (max-width: 1199px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* Ensure desktop/tablet timeline styles are preserved */
@media (min-width: 769px) {
    .timeline::before {
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 2px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 0 !important;
        margin-bottom: 4rem;
        align-items: center !important;
    }

    .timeline-item:nth-child(even) {
        flex-direction: row-reverse !important;
    }

    .timeline-year {
        flex: 0 0 200px !important;
        text-align: center !important;
        padding: 0.5rem !important;
        position: relative !important;
        width: auto !important;
        font-size: 1.1rem !important;
        order: 0 !important;
        line-height: 1.5 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .timeline-item:nth-child(odd) .timeline-year {
        text-align: right !important;
        padding-right: 2rem !important;
        padding-left: 0.5rem !important;
        justify-content: flex-end !important;
    }

    .timeline-item:nth-child(even) .timeline-year {
        text-align: left !important;
        padding-left: 2rem !important;
        padding-right: 0.5rem !important;
        justify-content: flex-start !important;
    }

    .timeline-year::after {
        left: auto !important;
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 15px !important;
        height: 15px !important;
        position: absolute !important;
        margin-top: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-year::after {
        right: -7px !important;
        left: auto !important;
    }

    .timeline-item:nth-child(even) .timeline-year::after {
        left: -7px !important;
        right: auto !important;
    }

    .timeline-content {
        flex: 1 !important;
        padding: 1.5rem 2rem !important;
        margin-left: 0 !important;
        width: auto !important;
        order: 0 !important;
    }

    .timeline-content:hover {
        transform: translateX(6px) !important;
        border-color: var(--border-focus) !important;
    }

    .timeline-item:nth-child(even) .timeline-content:hover {
        transform: translateX(-10px) !important;
    }
}

@media (min-width: 768px) and (max-width: 899px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.why-card {
    padding: 1.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition);
}

.why-card:hover {
    border-color: var(--border-focus);
}

.why-card::after { display: none; }

.why-icon-wrapper {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--primary);
}

.why-icon-wrapper .material-icons {
    font-size: 1.375rem;
}

.why-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--ink);
    line-height: 1.3;
}

.why-text {
    color: var(--ink-muted);
    line-height: 1.6;
    font-size: 0.9375rem;
    flex-grow: 1;
}

/* Timeline Section */
.timeline-section {
    background: var(--bg-alt);
    padding: 4rem 0;
}

.timeline {
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
    padding: 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    flex: 0 0 200px;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--ink-muted);
    text-align: center;
    padding: 0.5rem;
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-year {
    text-align: right;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
    padding-left: 2rem;
}

.timeline-year::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    background: var(--primary);
    border: 2px solid var(--white);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-year::after {
    right: -7px;
}

.timeline-item:nth-child(even) .timeline-year::after {
    left: -7px;
}

.timeline-content {
    flex: 1;
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-focus);
}

.timeline-item:nth-child(even) .timeline-content:hover {
    transform: translateX(-10px);
}

.timeline-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.timeline-description {
    color: var(--ink-muted);
    line-height: 1.6;
    font-size: 0.9375rem;
}

/* Portfolio Section */
.portfolio-section {
    background: var(--white);
    padding: 4rem 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--ink-muted);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.filter-btn:hover {
    border-color: var(--border-focus);
    color: var(--ink);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.filter-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.portfolio-item {
    cursor: pointer;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
    position: relative;
    aspect-ratio: 4/3;
}

.portfolio-item:hover {
    border-color: var(--border-focus);
}

.portfolio-item:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: flex-end;
}

.portfolio-image-wrapper img,
.portfolio-image-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    display: block;
}

.portfolio-thumbnail {
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.portfolio-thumbnail[loading="lazy"] {
    opacity: 1;
}

.modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    background: var(--bg-alt);
    color: var(--ink-muted);
    font-size: 0.9rem;
}

.gallery-placeholder {
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    font-size: 0.7rem;
}

.portfolio-item:hover .portfolio-image-wrapper img,
.portfolio-item:hover .portfolio-image-wrapper video {
    transform: scale(1.08);
}

.portfolio-overlay-dark {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.4));
    pointer-events: none;
    z-index: 1;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98), rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.5));
    height: 70%;
}

.portfolio-ongoing-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.4rem 0.8rem;
    background-color: rgba(255, 193, 7, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

.portfolio-item:hover .portfolio-ongoing-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.portfolio-completed-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.4rem 0.8rem;
    background-color: rgba(76, 175, 80, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-completed-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.portfolio-design-completed-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.4rem 0.8rem;
    background-color: rgba(33, 150, 243, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-design-completed-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.portfolio-concept-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    padding: 0.4rem 0.8rem;
    background-color: rgba(156, 39, 176, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-concept-badge {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(156, 39, 176, 0.4);
}

.portfolio-info {
    position: relative;
    z-index: 2;
    padding: 2rem 1.75rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.portfolio-category-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    width: fit-content;
}

.portfolio-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1.2;
    margin: 0;
    transition: var(--transition);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
}

.portfolio-item:hover .portfolio-name {
    color: var(--white);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7), 0 1px 6px rgba(0, 0, 0, 0.5);
}

.portfolio-unit {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 0.25rem;
    letter-spacing: -0.01em;
    transition: var(--transition);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.portfolio-item:hover .portfolio-unit {
    color: rgba(255, 255, 255, 1);
}

.portfolio-item.hidden {
    display: none;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 46, 0.92);
    overflow: auto;
    animation: fadeIn 0.3s ease-out;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    animation: scaleIn 0.2s ease-out;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ink);
    cursor: pointer;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--white);
    transition: background var(--transition), border-color var(--transition);
}

.modal-close:hover {
    background: var(--bg-alt);
    border-color: var(--border-focus);
}

.modal-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.modal-header {
    margin-bottom: 2rem;
    text-align: center;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--ink);
}

.modal-subtitle {
    color: var(--ink-muted);
    font-size: 0.9375rem;
}

.modal-body {
    position: relative;
}

.modal-media {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.modal-media img,
.modal-media video {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.modal-media video {
    width: 100%;
    height: auto;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.modal-nav-btn {
    pointer-events: all;
    background: var(--white);
    border: 1px solid var(--border);
    color: var(--ink);
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
}

.modal-nav-btn:hover {
    background: var(--bg-alt);
    border-color: var(--border-focus);
}

.modal-nav-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.modal-gallery-item {
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    overflow: hidden;
    aspect-ratio: 1;
}

.modal-gallery-item:hover {
    border-color: var(--border-focus);
}

.modal-gallery-item img,
.modal-gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-gallery-item.active {
    border-color: var(--primary);
    border-width: 2px;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    padding: 2.5rem;
    background-color: var(--bg-alt);
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-size: 4rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--ink-muted);
    line-height: 1;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: var(--ink-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.testimonial-author {
    margin-top: 1.5rem;
}

.testimonial-author strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: var(--ink-muted);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: var(--ink);
    color: var(--white);
    text-align: center;
    padding: 4rem 1.25rem;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--white);
    line-height: 1.2;
}

.cta-text {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--ink);
    border-color: var(--white);
}

.cta-section .btn-primary:hover {
    background: var(--bg-alt);
    color: var(--ink);
    border-color: var(--white);
}

/* Footer */
.footer {
    background: var(--ink);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-text {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--white);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--white);
}

.social-link:hover::after {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes lineMove1 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(20px);
    }
}

@keyframes lineMove2 {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-15px);
    }
}

@keyframes lineMove3 {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes shapeRotate1 {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes shapeRotate2 {
    0% {
        transform: rotate(45deg);
    }
    100% {
        transform: rotate(405deg);
    }
}

@keyframes shapeMove {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

@keyframes underlineExpand {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}


/* Responsive Design */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: left;
        transition: var(--transition);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem 2rem;
        display: block;
        width: 100%;
        border-radius: 0;
    }

    .nav-link::before {
        border-radius: 0;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: 0.5rem;
    }

    .nav-logo-subtitle {
        font-size: 0.65rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 0 1.25rem;
    }

    .hero-content {
        text-align: center;
    }

    .hero-right-section {
        align-items: center;
        text-align: center;
    }

    .hero-subtitle {
        max-width: 100%;
        margin-bottom: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-stats-minimal {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        padding-top: 2rem;
    }

    .stat-minimal {
        align-items: center;
        text-align: center;
    }

    .stat-num {
        font-size: 1.8rem;
    }

    .stat-text {
        font-size: 0.7rem;
    }

    .stat-divider {
        height: 40px;
    }

    .hero-certifications {
        width: 100%;
    }

    .certifications-grid {
        gap: 0.8rem;
    }

    .certification-item img {
        max-height: 130px;
    }

    section {
        padding: 60px 0;
    }

    .intro-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .intro-highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .credential-badge {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-card {
        padding: 2.5rem 2rem;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-card {
        text-align: left;
    }

    .timeline::before {
        left: 15px;
        width: 2px;
    }

    .timeline-item {
        flex-direction: column !important;
        padding-left: 50px;
        margin-bottom: 2.5rem;
    }

    .timeline-year {
        flex: none;
        text-align: left !important;
        padding: 0 0 0.75rem 0 !important;
        position: relative;
        width: 100%;
        font-size: 1rem;
        order: 1;
        padding-left: 0;
        line-height: 1.5;
        display: block;
    }

    .timeline-year::after {
        left: -38px !important;
        right: auto !important;
        top: 50%;
        margin-top: -6px;
        width: 12px;
        height: 12px;
        position: absolute;
    }

    .timeline-content {
        padding: 1.5rem;
        margin-left: 0;
        width: 100%;
        order: 2;
    }

    .timeline-content:hover {
        transform: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .portfolio-info {
        padding: 1.5rem 1.25rem 1.5rem;
    }

    .portfolio-name {
        font-size: 1.2rem;
    }

    .portfolio-overlay-dark {
        height: 65%;
    }

    .portfolio-item:hover .portfolio-overlay-dark {
        height: 75%;
    }

    .modal-content {
        max-width: 95vw;
        padding: 1rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        margin: 0 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .intro-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-item {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-badge {
        padding: 0.6rem 1.2rem;
        font-size: 0.7rem;
        margin-bottom: 2rem;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-tagline {
        font-size: 1rem;
    }

    .credential-badge {
        padding: 1.5rem;
    }

    .credential-badge .material-icons {
        font-size: 36px;
    }

    .credential-label {
        font-size: 1.1rem;
    }

    .credential-detail {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-minimal {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-num { font-size: 1.35rem; }
    .stat-text { font-size: 0.6rem; }

    .hero-certifications { width: 100%; }
    .certifications-grid { gap: 0.6rem; }
    .certification-item img { max-height: 100px; }

    .arch-shape.shape-1,
    .arch-shape.shape-2,
    .arch-shape.shape-3 { display: none; }

    .section-title { font-size: 1.5rem; }
    .service-card,
    .why-card { padding: 1.25rem; }
    .service-icon-wrapper,
    .why-icon-wrapper {
        width: 2.5rem;
        height: 2.5rem;
    }
    .service-icon-wrapper .material-icons,
    .why-icon-wrapper .material-icons { font-size: 1.25rem; }
    .service-title { font-size: 1.125rem; }
    .why-title { font-size: 1rem; }
}

/* Smooth scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

