:root {
    /* Color System: Dark Mode / Apple Aesthetic */
    --bg-color: #000000;
    --surface-color: rgba(20, 20, 22, 0.7);
    --surface-border: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1a6;
    
    --accent-blue: #0A84FF;
    --accent-blue-glow: rgba(10, 132, 255, 0.5);
    
    --accent-green: #30D158;
    --accent-green-glow: rgba(48, 209, 88, 0.5);
    
    /* Typography */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
    /* Easing - Apple-like springs and snappiness */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    
    /* Layout */
    --nav-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Splash Screen Intro */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s var(--ease-out);
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

#splash-canvas {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

/* Animated Scroll Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2; /* Behind everything including ambient glows */
    pointer-events: none;
    opacity: 0.3; /* Darkens the video against the black body background */
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    animation: drift 20s infinite alternate var(--ease-in-out);
}

.ambient-glow.bg-blue {
    background-color: var(--accent-blue);
    top: -100px;
    left: -100px;
}

.ambient-glow.bg-green {
    background-color: var(--accent-green);
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Typography Base */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    height: var(--nav-height);
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--surface-border);
    border-radius: 100px;
    z-index: 100;
    transition: top 300ms var(--ease-out), background 300ms var(--ease-out);
}

.nav-container {
    width: 100%;
    height: 100%;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.03em;
    transition: transform 160ms var(--ease-out), opacity 160ms var(--ease-out);
}

.logo-img {
    height: 48px;
    width: auto;
}

.logo:active {
    transform: scale(0.95);
    opacity: 0.7;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 200ms var(--ease-out), filter 200ms var(--ease-out);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--text-primary);
    transition: width 300ms var(--ease-out);
    border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link.transitioning {
    filter: blur(1px);
    opacity: 0.7;
}

/* Mobile Menu Button - Innovative Glass Circle */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    cursor: pointer;
    width: 48px;
    height: 48px;
    position: relative;
    z-index: 102;
    transition: transform 300ms var(--ease-out), background 300ms ease;
    outline: none;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    position: absolute;
    left: 12px;
    transition: transform 400ms cubic-bezier(0.175, 0.885, 0.32, 1.275), top 400ms ease, width 400ms ease;
}

.mobile-menu-btn span:nth-child(1) { top: 18px; }
.mobile-menu-btn span:nth-child(2) { top: 26px; width: 14px; left: 20px; } /* Asymmetrical modern lines */

.mobile-menu-btn.open span:nth-child(1) {
    top: 22px;
    width: 22px;
    left: 12px;
    transform: rotate(135deg);
}
.mobile-menu-btn.open span:nth-child(2) {
    top: 22px;
    width: 22px;
    left: 12px;
    transform: rotate(-135deg);
}

/* Mobile Menu Overlay - Circular Reveal */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 12, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    opacity: 1; /* Always 1, handled by clip-path */
    pointer-events: none;
    /* Circular clip path starts at top right corner */
    clip-path: circle(0px at calc(100% - 40px) 40px);
    transition: clip-path 800ms cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.2) 0%, transparent 60%);
    border-radius: 50%;
    z-index: -1;
}

.mobile-menu-overlay.active {
    pointer-events: all;
    clip-path: circle(250% at calc(100% - 40px) 40px);
}

.mobile-menu-header {
    width: 100%;
    padding: 24px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.mobile-menu-overlay.active .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 300ms;
}

.mobile-menu-logo {
    height: 40px;
    width: auto;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: transform 300ms ease, background 300ms ease;
    outline: none;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-close:active {
    transform: scale(0.9);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: left;
    perspective: 1000px;
    padding: 40px 32px;
    flex: 1;
    justify-content: center;
}

.mobile-nav-link {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -1px;
    opacity: 0;
    display: flex;
    align-items: baseline;
    gap: 16px;
    /* 3D Fold Animation */
    transform-origin: left bottom;
    transform: translateY(30px) rotateX(-60deg);
    transition: opacity 500ms cubic-bezier(0.4, 0, 0.2, 1), transform 500ms cubic-bezier(0.4, 0, 0.2, 1), color 300ms ease;
}

.mobile-nav-link::before {
    content: "0" var(--i);
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--accent-color);
    opacity: 0.7;
    font-family: monospace;
    letter-spacing: 1px;
}

.mobile-nav-link:hover, .mobile-nav-link:active {
    color: var(--text-primary);
    transform: translateX(10px) translateY(0) rotateX(0);
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    transition-delay: calc(var(--i) * 100ms + 200ms);
}

.mobile-menu-footer {
    padding: 40px 32px;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms ease, transform 500ms ease;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 600ms;
}

.mobile-menu-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.mobile-menu-footer a {
    color: var(--accent-blue);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
}

/* Content Wrapper for Scale effect when menu opens */
.content-wrapper {
    transition: transform 500ms var(--ease-drawer), filter 500ms var(--ease-drawer), opacity 500ms var(--ease-drawer);
    transform-origin: center top;
    min-height: 100vh;
    position: relative;
}

.content-wrapper.menu-open {
    transform: scale(0.95) translateY(20px);
    filter: blur(10px);
    opacity: 0.5;
    pointer-events: none;
}


/* Page Sections */
.page-section {
    width: 100%;
    padding: 64px 0;
}

.content-wrapper > .page-section:first-child {
    padding-top: 160px;
}


/* Common UI Elements */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: transform 160ms var(--ease-out), background-color 300ms var(--ease-out), filter 200ms var(--ease-out);
}

.btn:active {
    transform: scale(0.96);
}

.btn.transitioning {
    filter: blur(2px);
}

.btn-primary {
    background-color: var(--text-primary);
    color: #000;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 500ms var(--ease-out);
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.btn-secondary {
    background-color: rgba(255,255,255,0.1);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.15);
}

.blur-box {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}

.blur-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Typography styles */
.section-title {
    font-size: 3rem;
    margin-bottom: 48px;
    letter-spacing: -0.04em;
}


/* HERO SECTION */
.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(80vh - var(--nav-height));
}

.hero-title {
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* ABOUT SECTION */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-text p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* REFERENCES & SERVICES SECTION */
.references-grid, .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ref-box {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-out);
    cursor: pointer;
}

.ref-box.large {
    grid-column: span 2;
}

.ref-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.ref-box:active {
    transform: scale(0.97);
}

.ref-content {
    position: relative;
    z-index: 2;
}

.ref-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.ref-box h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.ref-box p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.ref-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 132, 255, 0.2), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    opacity: 0;
    transition: opacity 300ms var(--ease-out);
}

.ref-box:hover .ref-hover-overlay {
    opacity: 1;
}

/* CONTACT SECTION */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.contact-email {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4px;
    transition: border-color 200ms ease;
}

.contact-email:hover {
    border-color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 300ms var(--ease-out), background 300ms var(--ease-out);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.input-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    pointer-events: none;
    transition: transform 300ms var(--ease-out), font-size 300ms var(--ease-out), color 300ms var(--ease-out);
    transform-origin: left top;
}

/* Floating Label Logic */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    transform: translateY(-26px) scale(0.85);
    color: var(--accent-blue);
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .ref-box.large {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        gap: 24px !important;
    }
    
    .hero-stats > div {
        flex: 1;
        min-width: 40%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mobile-nav-link {
        font-size: 2rem;
    }
    
    .bento-box {
        padding: 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
}

/* Blog Specific Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 300ms var(--ease-out), border-color 300ms var(--ease-out);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-card:active {
    transform: scale(0.97);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

    .blog-excerpt {
        color: var(--text-secondary);
        font-size: 1rem;
        line-height: 1.6;
    }

/* Logo Marquee */
.logo-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 40px 0;
    margin: 32px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.logo-marquee-content:hover {
    animation-play-state: paused;
}

.logo-marquee-content img {
    height: 48px;
    margin: 0 40px;
    opacity: 0.6;
    filter: grayscale(100%) brightness(200%);
    transition: opacity 300ms, filter 300ms;
    vertical-align: middle;
}

.logo-marquee-content img:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer Styles */
.site-footer {
    padding-bottom: 32px;
    margin-top: 80px;
}

.footer-container {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 48px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-left .logo {
    display: block;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 200ms var(--ease-out);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        padding: 32px 24px;
    }
}

/* Page Header / Mini-Hero */
.page-header {
    text-align: center;
    padding: 140px 0 48px;
}

.page-header .section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 16px;
    line-height: 1.1;
    font-weight: 500;
}

.page-header-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Scroll Reveal Animations */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    will-change: opacity, transform;
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
    will-change: opacity, transform;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Image Integration Styles */
.bento-image-wrapper {
    width: calc(100% + 64px); /* Negate padding (32px * 2) */
    margin: -32px -32px 24px -32px;
    height: 200px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    border-bottom: 1px solid var(--surface-border);
}

.bento-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-out);
}

.bento-box:hover .bento-image-wrapper img,
.blog-card:hover .bento-image-wrapper img {
    transform: scale(1.05);
}

/* Specific adjustment for ref-box images */
.ref-box .bento-image-wrapper {
    height: 300px;
}

.ref-box.large .bento-image-wrapper {
    height: 320px;
}

/* Project Detail Styles */
.project-hero {
    position: relative;
    width: 100%;
    min-height: 70vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 64px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}
.project-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}
.project-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}
.project-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.project-meta-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255,255,255,0.05);
}
.project-detail-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}
.project-detail-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.project-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}
.project-stat-box {
    text-align: center;
    padding: 32px 16px;
}
.project-stat-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1;
}
.project-stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.project-content-section {
    margin-bottom: 80px;
}
.project-content-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}
.project-content-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}
.project-image {
    width: 100%;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.1);
    margin: 40px 0;
}

/* Blog Post Specific Styles */
.blog-post-hero {
    position: relative;
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 140px 0 64px;
    background-size: cover;
    background-position: center;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    margin-bottom: 64px;
}
.blog-post-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 100%);
    z-index: 1;
}
.blog-post-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}
.blog-post-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.blog-post-meta .badge {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 50px;
    color: var(--text-primary);
}
.blog-post-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.blog-article-content {
    max-width: 760px;
    margin: 0 auto 80px;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e0e0e0;
}
.blog-article-content h2 {
    font-size: 2rem;
    margin: 48px 0 24px;
    color: var(--text-primary);
}
.blog-article-content p {
    margin-bottom: 24px;
}
.blog-article-content ul, .blog-article-content ol {
    margin-bottom: 24px;
    padding-left: 24px;
}
.blog-article-content li {
    margin-bottom: 12px;
}
.blog-article-content img {
    width: 100%;
    border-radius: 16px;
    margin: 32px 0;
}
.blog-article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 24px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.25rem;
}
.code-snippet {
    background: #0d0d0d;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.95rem;
    color: #a5b4fc;
    margin: 32px 0;
}

.author-box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 80px;
}
.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}
.author-info h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.author-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Services Page Enhancements */
.service-features {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    list-style: none;
    padding-left: 0;
}
.service-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Process Grid */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    margin-top: 64px;
}
.process-step {
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    backdrop-filter: blur(20px);
}
.process-number {
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    position: absolute;
    top: -10px;
    right: 20px;
    line-height: 1;
}
.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    position: relative;
    z-index: 2;
}
.process-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Tech Stack Grid */
.tech-stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 48px;
}
.tech-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.tech-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Zigzag Service Layout */
.service-zigzag {
    display: flex;
    flex-direction: column;
    gap: 80px;
}
.service-row {
    display: flex;
    align-items: center;
    gap: 48px;
    background: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    padding: 48px;
    backdrop-filter: blur(20px);
}
.service-row:nth-child(even) {
    flex-direction: row-reverse;
}
.service-content {
    flex: 1;
}
.service-visual {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.service-visual img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.service-row:hover .service-visual img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .service-row, .service-row:nth-child(even) {
        flex-direction: column-reverse; /* Usually we want image on top on mobile, but keeping it text first might be okay, actually let's use flex-direction: column-reverse to have image on top if we put image first in HTML? No, we rely on nth-child. Let's explicitly order them */
    }
    .service-row {
        flex-direction: column !important;
        padding: 24px;
    }
    .service-visual {
        width: 100%;
        order: -1; /* Image always on top on mobile */
    }
    .service-visual img {
        min-height: 250px;
    }
}

/* Service Detail Pages Enhancements */
.benefit-box {
    padding: 40px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.benefit-box:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    font-size: 28px;
    margin-bottom: 24px;
}
.benefit-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.benefit-box p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.tech-tag {
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    cursor: default;
}
.tech-tag:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

/* Custom Details Button */
.btn-details {
    margin-top: 32px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-details span {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-details:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn-details:hover span {
    transform: translateX(4px);
}

/* Interactive Hero Styles */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-interactive-visual {
        display: none !important; /* Hide on mobile to keep it simple, or scale it down */
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-actions {
        justify-content: center;
    }
}

.hero-interactive-visual {
    position: relative;
    width: 100%;
    height: 600px;
    perspective: 1000px; /* 3D Space */
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-scene {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Smooth transition for mousemove */
}

/* Glass Panels */
.glass-panel {
    position: absolute;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    overflow: hidden;
}

/* Main Dashboard Panel */
.panel-main {
    width: 380px;
    height: 420px;
    top: 50%;
    left: 50%;
    margin-top: -210px;
    margin-left: -190px;
    z-index: 2;
    transform: translateZ(40px);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

/* Smaller Floating Cards */
.panel-top-right {
    width: 200px;
    height: 120px;
    top: 15%;
    right: 5%;
    z-index: 3;
    transform: translateZ(80px);
    padding: 16px;
    animation: float 6s ease-in-out infinite;
}

.panel-bottom-left {
    width: 240px;
    height: 160px;
    bottom: 10%;
    left: 0;
    z-index: 1;
    transform: translateZ(20px);
    padding: 20px;
    animation: float 8s ease-in-out infinite reverse;
}

.panel-bottom-right {
    width: 180px;
    height: 180px;
    bottom: 25%;
    right: 0;
    z-index: 3;
    transform: translateZ(60px);
    padding: 20px;
    animation: float 7s ease-in-out infinite 1s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Panel Contents */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.panel-dots {
    display: flex;
    gap: 6px;
}
.panel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
}
.panel-dot:nth-child(1) { background: #ff5f56; }
.panel-dot:nth-child(2) { background: #ffbd2e; }
.panel-dot:nth-child(3) { background: #27c93f; }

.panel-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-top: 20px;
    height: 100px;
}
.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-color), transparent);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.skeleton-line {
    height: 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    margin-bottom: 12px;
}

.glow-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-color), #4ade80, var(--accent-color));
    animation: spin 4s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}
.glow-circle-inner {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

@keyframes float {
    0% { transform: translateY(0px) translateZ(80px); }
    50% { transform: translateY(-15px) translateZ(80px); }
    100% { transform: translateY(0px) translateZ(80px); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 3D Geometric Abstract Composition */
.geo-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(100px);
    z-index: 5;
    animation: float-slow 8s ease-in-out infinite;
}

.geo-cube {
    width: 140px;
    height: 140px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-30deg) rotateY(45deg);
    animation: cube-spin 20s linear infinite;
}

.face {
    position: absolute;
    width: 140px;
    height: 140px;
    background: rgba(40, 200, 100, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 0 40px rgba(0, 255, 120, 0.2);
}

.front  { transform: translateZ(70px); }
.back   { transform: rotateY(180deg) translateZ(70px); }
.right  { transform: rotateY(90deg) translateZ(70px); }
.left   { transform: rotateY(-90deg) translateZ(70px); }
.top    { transform: rotateX(90deg) translateZ(70px); background: rgba(40, 200, 100, 0.2); }
.bottom { transform: rotateX(-90deg) translateZ(70px); }

@keyframes cube-spin {
    0%   { transform: rotateX(-30deg) rotateY(0deg); }
    100% { transform: rotateX(-30deg) rotateY(360deg); }
}

/* Orbital Rings */
.geo-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
    transform-style: preserve-3d;
}

.ring-1 {
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    transform: rotateX(60deg) translateZ(-50px);
    animation: orbit-spin 15s linear infinite;
    border-color: rgba(var(--accent-color-rgb), 0.3);
}

.ring-2 {
    width: 450px;
    height: 450px;
    margin: -225px 0 0 -225px;
    transform: rotateX(75deg) rotateY(20deg) translateZ(-100px);
    animation: orbit-spin 25s linear infinite reverse;
}

@keyframes orbit-spin {
    100% { transform: rotateX(60deg) rotateZ(360deg) translateZ(-50px); }
}
.ring-2 {
    animation: orbit-spin-2 25s linear infinite reverse;
}
@keyframes orbit-spin-2 {
    100% { transform: rotateX(75deg) rotateY(20deg) rotateZ(360deg) translateZ(-100px); }
}

/* Floating Particles */
.geo-particle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    transform-style: preserve-3d;
}

.p-1 {
    top: 20%;
    left: 20%;
    transform: rotate(45deg) translateZ(120px);
    animation: float 5s ease-in-out infinite;
}
.p-2 {
    bottom: 25%;
    right: 15%;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.2) 0%, transparent 70%);
    border: 1px solid rgba(var(--accent-color-rgb), 0.4);
    transform: translateZ(50px);
    animation: float 7s ease-in-out infinite reverse;
}
.p-3 {
    top: 15%;
    right: 30%;
    width: 30px;
    height: 30px;
    transform: rotateX(45deg) rotateY(45deg) translateZ(150px);
    animation: cube-spin 10s linear infinite;
}

@keyframes float-slow {
    0%   { transform: translate(-50%, -50%) translateZ(100px) translateY(0); }
    50%  { transform: translate(-50%, -50%) translateZ(100px) translateY(-20px); }
    100% { transform: translate(-50%, -50%) translateZ(100px) translateY(0); }
}

/* 3D Extruded Logo Design */
.hero-extruded-container {
    position: relative;
    width: 500px;
    height: 500px;
    perspective: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-3d-brand {
    position: relative;
    width: 380px;
    height: 380px;
    transform-style: preserve-3d;
    animation: floating-logo 4s ease-in-out infinite;
    /* initial rotation */
    transform: rotateX(15deg) rotateY(-20deg);
}

.extruded-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Layering for 3D depth (Increased Thickness) */
.layer-1 { transform: translateZ(-30px); filter: brightness(0.2) drop-shadow(0 0 20px rgba(var(--accent-color-rgb), 0.5)); }
.layer-2 { transform: translateZ(-28px); filter: brightness(0.25); }
.layer-3 { transform: translateZ(-26px); filter: brightness(0.3); }
.layer-4 { transform: translateZ(-24px); filter: brightness(0.35); }
.layer-5 { transform: translateZ(-22px); filter: brightness(0.4); }
.layer-6 { transform: translateZ(-20px); filter: brightness(0.45); }
.layer-7 { transform: translateZ(-18px); filter: brightness(0.5); }
.layer-8 { transform: translateZ(-16px); filter: brightness(0.55); }
.layer-9 { transform: translateZ(-14px); filter: brightness(0.6); }
.layer-10 { transform: translateZ(-12px); filter: brightness(0.65); }
.layer-11 { transform: translateZ(-10px); filter: brightness(0.7); }
.layer-12 { transform: translateZ(-8px); filter: brightness(0.75); }
.layer-13 { transform: translateZ(-6px); filter: brightness(0.8); }
.layer-14 { transform: translateZ(-4px); filter: brightness(0.85); }
.layer-15 { transform: translateZ(-2px); filter: brightness(1) drop-shadow(0 0 10px rgba(255,255,255,0.2)); } /* Top layer */

@keyframes floating-logo {
    0%   { transform: translateY(0px) rotateX(15deg) rotateY(-20deg); }
    50%  { transform: translateY(-20px) rotateX(5deg) rotateY(-10deg); }
    100% { transform: translateY(0px) rotateX(15deg) rotateY(-20deg); }
}

/* Subtle glow behind the logo */
.hero-3d-glow {
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.3) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(-50px);
}
/* FOOTER SITEMAP STYLES */
.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 60px;
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    width: 100%;
}

.sitemap-col h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.sitemap-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.sitemap-col a:hover {
    color: var(--accent-color);
    transform: translateX(4px);
}

.footer-brand .logo-img {
    height: 45px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 300px;
}

/* Mobile Menu Header & Footer Additions */
.mobile-menu-overlay {
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 32px 24px;
    box-sizing: border-box;
}

.mobile-menu-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
    transition-delay: 100ms;
}

.mobile-menu-overlay.active .mobile-menu-header {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-logo {
    height: 56px;
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: background 300ms ease, transform 300ms ease;
}

.mobile-menu-close:active {
    transform: scale(0.9);
}

.mobile-nav-links {
    flex: 1;
    justify-content: center;
    margin: 40px 0;
}

.mobile-menu-footer {
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out);
    transition-delay: 300ms;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.mobile-menu-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 300ms ease;
}

.mobile-menu-footer a:active {
    color: var(--accent-color);
}
