    /* Custom styles beyond Tailwind */

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

    ::selection {
        background: rgba(20, 184, 166, 0.3);
        color: #f1f5f9;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        background-color: #060d1a;
        color: #e2e8f0;
    }

    /* Navbar scroll state */
    #navbar {
        background: transparent;
        transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
    }

    #navbar.scrolled {
        background: rgba(6, 13, 26, 0.85);
        backdrop-filter: blur(20px);
        box-shadow: 0 1px 0 rgba(45, 212, 191, 0.1);
    }

    /* Menu tabs */
    .menu-tab {
        background: transparent;
        color: #64748b;
        border: 1px solid transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .menu-tab:hover {
        color: #2dd4bf;
        border-color: rgba(45, 212, 191, 0.3);
    }

    .menu-tab.active {
        background: rgba(45, 212, 191, 0.15);
        color: #2dd4bf;
        border-color: rgba(45, 212, 191, 0.4);
    }

    /* Mobile menu animations */
    #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
    }

    #mobile-menu.closed {
        opacity: 0;
        pointer-events: none;
    }

    .menu-line {
        transition: all 0.3s ease;
    }

    #menu-toggle.active .menu-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    #menu-toggle.active .menu-line:nth-child(2) {
        opacity: 0;
    }

    #menu-toggle.active .menu-line:nth-child(3) {
        width: 1.5rem;
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Scroll reveal animations */
    .reveal {
        opacity: 0;
        transform: translateY(40px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }

    /* Image hover glow */
    .group:hover img {
        filter: brightness(1.05);
    }

    /* Custom scrollbar */
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: #0b1120;
    }

    ::-webkit-scrollbar-thumb {
        background: #1e293b;
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #0d9488;
    }

    /* Mobile responsive */
    @media (max-width: 768px) {
        .font-serif {
            font-size: clamp(2rem, 8vw, 3rem);
        }

        #hero h1 {
            font-size: clamp(2.5rem, 10vw, 4rem);
        }
    }

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

    body > nav,
    body > section:first-of-type {
        animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
    }
