:root {
    --bg-color: #050505;
    /* Deep black/blue */
    --text-color: #ffffff;
    --accent-color: #6366f1;
    /* Electric Indigo */
    --accent-glow: #818cf8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-code: 'Courier New', monospace;
    --transition-speed: 0.4s;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3 {
    color: #fff;
    font-weight: 600;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-speed) ease;
}

/* Header */
.main-header {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 100;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    color: #fff;
}

.nav-container {
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    position: relative;
    z-index: 1;
}

.nav-link {
    position: relative;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.6rem 1.2rem;
    display: block;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
}

/* Sliding Pill */
.nav-pill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(99, 102, 241, 0.2);
    /* Purple tint */
    border-radius: 30px;
    z-index: 0;
    transition: all 0.4s var(--ease-out);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(129, 140, 248, 0.3);
    /* Lighter purple border */
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    /* Purple glow */
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) forwards 0.2s;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) forwards 0.4s;
    font-weight: 300;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeUp 1s var(--ease-out) forwards 0.6s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Fluid Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
    /* Made transparent to show CSS orbs */
    overflow: hidden;
}

#hero-canvas-container {
    width: 100%;
    height: 100%;
}

/* CSS Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -2;
    opacity: 0.6;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(5, 5, 5, 0) 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.3) 0%, rgba(5, 5, 5, 0) 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

/* Services Section - Bento Grid */
.services-section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 1.5rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card:hover {
    transform: scale(1.02);
    border-color: var(--glass-highlight);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Bento Spans */
.card-large {
    grid-column: span 2;
}

.service-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.05);
    transition: all 0.4s var(--ease-out);
}

.service-card:hover .service-icon {
    color: rgba(99, 102, 241, 0.2);
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    z-index: 1;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    z-index: 1;
    max-width: 90%;
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    text-align: center;
}

.email-link {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(90deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.3s;
}

.email-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .email-link {
        font-size: 1.3rem;
        /* Reduced from 3rem */
        word-wrap: break-word;
        overflow-wrap: break-word;
        display: block;
        max-width: 100%;
        padding: 0 1rem;
    }
}

/* Footer */
.main-footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    text-align: center;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -30px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .card-large,
    .card-tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .main-header {
        width: 90%;
        justify-content: space-between;
        padding: 1rem;
    }

    .nav-list {
        display: none;
        /* Mobile menu would go here */
    }

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

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





/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered Animation for Links */
.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-link:hover {
    color: #fff;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: none;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    gap: 4px;
    transition: all 0.3s ease;
    width: 100%;
    height: 100%;
}

.mobile-nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5px;
    transition: all 0.3s ease;
}

.mobile-nav-item.active {
    color: #fff;
}

.mobile-nav-item.active svg {
    stroke: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Adjust main content to not be hidden behind nav */
    body {
        padding-bottom: 80px;
    }
}

/* Top Navigation Icons */
.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link svg {
    width: 20px;
    height: 20px;
    display: none;
    /* Hidden by default on desktop */
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        align-items: center;
        flex-direction: row;
    }

    .nav-list {
        display: flex;
        /* Show nav list on mobile */
        gap: 1.5rem;
    }

    /* Hide Home, Services, About on mobile, keep Contact */
    .nav-item:nth-child(-n+3) {
        display: none;
    }

    .nav-link span {
        display: none;
        /* Hide text on mobile */
    }

    .nav-link svg {
        display: block;
        /* Show icon on mobile */
        width: 24px;
        height: 24px;
    }

    .nav-link {
        padding: 0.5rem;
        color: rgba(255, 255, 255, 0.7);
    }

    .nav-link.active {
        color: #fff;
    }

    .nav-link.active svg {
        stroke: var(--accent-color);
        filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.5));
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 101;
        padding: 0;
        margin-left: 1rem;
    }

    .mobile-menu-btn span {
        width: 100%;
        height: 2px;
        background-color: #fff;
        border-radius: 2px;
        transition: all 0.3s var(--ease-out);
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:first-child {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:last-child {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hamburger Animation */
.mobile-menu-btn.active span:first-child {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:last-child {
    transform: translateY(-8px) rotate(-45deg);
}
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-size: 2rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-menu.active .mobile-link {
    transform: translateY(0);
    opacity: 1;
}

/* Staggered Animation for Links */
.mobile-menu.active .mobile-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu.active .mobile-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu.active .mobile-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu.active .mobile-link:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-link:hover {
    color: #fff;
    transform: scale(1.1);
}