:root {
    /* Colors - Dark Theme with Indigo Accent */
    --bg-color: #121212;
    --bg-secondary: #1c1c1c;
    --text-main: #ffffff;
    --text-muted: #a1a1aa;
    --accent-primary: #4338CA;
    --accent-primary-hover: #4F46E5;
    --accent-light: #C7D2FE;
    --accent-glow: rgba(67, 56, 202, 0.25);
    --border-color: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-main: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --nav-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}

.logo-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons - Primary */
.btn-primary {
    background: var(--accent-primary);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: var(--accent-primary-hover);
    border-color: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* Buttons - Secondary */
.btn-secondary {
    background: #F8FAFC;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #E0E7FF;
    border-color: var(--accent-primary-hover);
}

/* Text Links */
a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent-light);
    text-underline-offset: 3px;
}

.btn-primary.large,
.btn-secondary.large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Hero Section - Scroll Animation */
.hero-section {
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121212;
    /* Fallback background */
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 1;
    /* Visible by default for safety */
    will-change: transform, opacity;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(to bottom, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-gradient {
    color: inherit;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

/* Hero Visuals - Canvas */
.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-overlay {
    display: none;
}

/* Services */
.services-section {
    padding: 100px 0;
    background: linear-gradient(to bottom,
            #121212 0%,
            #1c1c1c 10%,
            #2d3748 25%,
            #4a5568 40%,
            #718096 55%,
            #a0aec0 70%,
            #cbd5e0 85%,
            #F8FAFC 100%);
    border-top: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.services-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #FFFFFF;
    background: linear-gradient(to bottom, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-section .section-header p {
    color: #a1a1aa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 32px;
    border-radius: var(--radius-md);
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    background: #FFFFFF;
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.card-icon-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.card-icon-svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--accent-primary);
    filter: drop-shadow(0 4px 6px rgba(79, 70, 229, 0.2));
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #111827;
}

.service-card p {
    color: #4B5563;
    font-size: 0.95rem;
}

/* Profile Section - Split Layout */
.profile-section {
    padding: 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: stretch;
    min-height: 600px;
    overflow: hidden;
}

.profile-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.profile-content-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 80px 60px 80px 24px;
    background: var(--bg-color);
}

.profile-content {
    max-width: 500px;
    width: 100%;
}

.profile-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #a1a1aa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.profile-role {
    font-size: 1.1rem;
    color: var(--text-main);
    font-weight: 600;
    margin-top: 24px;
    /* Added top margin since it's now below bio */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-bio {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
    /* Removed bottom margin */
}

.profile-image-wrapper {
    width: 35%;
    flex: none;
    position: relative;
    height: auto;
}

.profile-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: none;
    display: block;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: #F1F5F9;
    border-top: 1px solid #E2E8F0;
}

.process-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #020617;
}

.process-section .section-header p {
    color: #4B5563;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.process-step {
    position: relative;
    padding: 32px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(79, 70, 229, 0.1);
    border-color: var(--accent-primary);
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 16px;
    line-height: 1;
    opacity: 0.3;
}

.process-step h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #111827;
}

.process-step p {
    color: #4B5563;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 120px 0;
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    text-align: center;
}

.contact-container {
    max-width: 800px;
}

.contact-content h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: #020617;
}

.contact-content p {
    font-size: 1.25rem;
    color: #4B5563;
    margin-bottom: 48px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.contact-method {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    min-width: 200px;
    transition: all 0.3s;
}

.contact-method:hover {
    background: #E0E7FF;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    text-decoration: none;
}

.method-label {
    font-size: 0.9rem;
    color: #6B7280;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-value {
    font-size: 1.1rem;
    color: var(--accent-primary);
    font-weight: 600;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid #E2E8F0;
    margin-top: auto;
    background: #F1F5F9;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand span {
    font-weight: 700;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 8px;
    color: #111827;
}

.footer-brand p {
    color: #6B7280;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.footer-links a:hover {
    text-decoration: underline;
    text-decoration-color: var(--accent-light);
    text-underline-offset: 3px;
}

/* Mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
}

@media (max-width: 900px) {
    .profile-section {
        min-height: auto;
        overflow: visible;
    }

    .profile-container {
        flex-direction: column;
    }

    .profile-content-wrapper {
        justify-content: center;
        padding: 60px 24px 40px 24px;
        order: 2;
    }

    .profile-content h2 {
        font-size: 2rem;
    }

    .profile-image-wrapper {
        width: 100%;
        height: auto;
        max-height: 350px;
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: hidden;
    }

    .profile-image {
        max-height: 350px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-actions .btn-primary {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-section {
        padding-top: 0;
        /* Adjusted for pinned */
    }

    .footer-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
    }

    /* Contact Mobile */
    .contact-content h2 {
        font-size: 2rem;
    }

    .contact-methods {
        flex-direction: column;
        gap: 16px;
    }

    .contact-method {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-header h2,
    .profile-content h2,
    .contact-content h2 {
        font-size: 2rem;
    }

    .services-section,
    .process-section,
    .contact-section {
        padding: 60px 0;
    }

    .profile-content-wrapper {
        padding: 40px 20px;
    }

    .profile-image-wrapper {
        height: 300px;
    }

    .btn-primary.large,
    .btn-secondary.large {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
}