:root {
    /* Sophisticated Modern Dark Plum / Violet Palette */
    --bg-dark: #120e18;
    /* Incredibly deep plum/black */
    --glass-bg: rgba(38, 28, 51, 0.4);
    --glass-border: rgba(208, 183, 243, 0.12);
    /* Soft lilac border */
    --glass-glow: rgba(208, 183, 243, 0.15);

    --brand-lilac: #D0B7F3;
    --brand-plum: #9F79CA;

    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.65);

    --font-heading: 'Cormorant Garamond', serif;
    --font-modern: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-modern);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* Ambient Fluid Backgrounds */
.ambient-fluid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: #120e18;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: floating 25s infinite alternate ease-in-out;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    background: #2a1645;
    top: -20vh;
    left: -10vw;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    background: #3c245c;
    bottom: -10vh;
    right: -5vw;
    animation-delay: -5s;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    background: #1f1430;
    top: 40vh;
    left: 40vw;
    animation-delay: -10s;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(7vw, 7vh) scale(1.15);
    }
}

/* Sparkling Stars */
.sparkle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #FFF;
    border-radius: 50%;
    opacity: 0;
    box-shadow: 0 0 5px var(--brand-lilac), 0 0 8px rgba(255, 255, 255, 0.3);
}

.s-1 { top: 12%; left: 15%; animation: twinkleStar 6s infinite ease-in-out 0s; width: 2.5px; height: 2.5px; }
.s-2 { top: 25%; left: 80%; animation: twinkleStar 8s infinite ease-in-out 2s; width: 1.5px; height: 1.5px; }
.s-3 { top: 45%; left: 10%; animation: twinkleStar 5s infinite ease-in-out 1.5s; width: 3px; height: 3px; }
.s-4 { top: 75%; left: 85%; animation: twinkleStar 7s infinite ease-in-out 0.5s; width: 2px; height: 2px; }
.s-5 { top: 35%; left: 45%; animation: twinkleStar 9s infinite ease-in-out 3s; width: 2.5px; height: 2.5px; }
.s-6 { top: 60%; left: 35%; animation: twinkleStar 6.5s infinite ease-in-out 4.5s; width: 1px; height: 1px; }
.s-7 { top: 15%; left: 60%; animation: twinkleStar 7.5s infinite ease-in-out 1s; width: 2px; height: 2px; }
.s-8 { top: 85%; left: 25%; animation: twinkleStar 5.5s infinite ease-in-out 2.5s; width: 2.5px; height: 2.5px; }
.s-9 { top: 5%; left: 40%; animation: twinkleStar 8.5s infinite ease-in-out 3.5s; width: 1.5px; height: 1.5px; }
.s-10 { top: 55%; left: 70%; animation: twinkleStar 6.5s infinite ease-in-out 0.8s; width: 2px; height: 2px; }
.s-11 { top: 92%; left: 55%; animation: twinkleStar 7s infinite ease-in-out 4s; width: 2.5px; height: 2.5px; }
.s-12 { top: 20%; left: 95%; animation: twinkleStar 9s infinite ease-in-out 5.5s; width: 3px; height: 3px; }
.s-13 { top: 40%; left: 20%; animation: twinkleStar 6s infinite ease-in-out 2.2s; width: 1.5px; height: 1.5px; }
.s-14 { top: 70%; left: 5%; animation: twinkleStar 8s infinite ease-in-out 6s; width: 2px; height: 2px; }
.s-15 { top: 88%; left: 90%; animation: twinkleStar 7s infinite ease-in-out 1.8s; width: 2.5px; height: 2.5px; }
.s-16 { top: 8%; left: 85%; animation: twinkleStar 6.5s infinite ease-in-out 3.2s; width: 1.5px; height: 1.5px; }

@keyframes twinkleStar {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Glass Panels (The Bento Box Feel) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Typography Elements */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
}

em {
    font-style: italic;
    color: var(--brand-lilac);
}

.pill-tag {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    color: var(--brand-lilac);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    background: rgba(208, 183, 243, 0.05);
}

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

/* Layout Globals */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5vw;
}

.section {
    padding: 120px 0;
}

.border-top {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Header Floating Overlay */
.header-floating {
    position: fixed;
    top: 1.5rem;
    left: 0;
    width: 100%;
    z-index: 100;
}

.header-glass {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.8rem 1.5rem;
    max-width: 1280px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #FFF;
}

.logo img {
    height: 35px;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1;
}

.logo-text span {
    font-family: var(--font-modern);
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 400;
    color: var(--brand-lilac);
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--brand-lilac);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

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

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

.nav-btn {
    background: var(--brand-lilac);
    color: var(--bg-dark);
    padding: 0.6rem 1.6rem;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--glass-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    height: 18px;
    width: 25px;
    flex-direction: column;
    justify-content: space-between;
}

.nav-toggle .bar {
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active .bar:first-child {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active .bar:last-child {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-mobile {
    position: absolute;
    top: 110%;
    right: 5vw;
    width: 250px;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    padding: 2rem;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-mobile.active {
    opacity: 1;
    visibility: visible;
}

.nav-mobile ul {
    list-style: none;
}

.nav-mobile li {
    margin-bottom: 1.5rem;
}

.nav-mobile li:last-child {
    margin-bottom: 0;
}

.nav-link-mobile {
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

/* Hero Modern Center */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10vh;
}

.hero-title {
    font-size: clamp(4rem, 9vw, 8rem);
    line-height: 0.95;
    margin: 2rem 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.btn-glow {
    display: inline-block;
    padding: 1.2rem 3rem;
    border-radius: 40px;
    background: linear-gradient(135deg, var(--brand-plum) 0%, #684a8c 100%);
    color: #FFF;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(159, 121, 202, 0.3);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: skewX(-25deg);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-glow:hover {
    box-shadow: 0 15px 40px rgba(159, 121, 202, 0.5);
    transform: translateY(-3px);
}

.btn-glow:hover::after {
    left: 150%;
}

/* Bento Grids */
.bento-grid-about {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2rem;
}

.flex-center-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
}

.bento-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.bento-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.bento-sign {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--brand-lilac);
    font-style: italic;
}

.image-card {
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 500px;
    border: 1px solid var(--glass-border);
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Bento Services */
.section-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 4rem;
}

.bento-grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    padding: 3.5rem 3rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-lilac);
    background: rgba(54, 40, 72, 0.6);
}

.svc-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.svc-index {
    font-size: 1.2rem;
    color: var(--brand-lilac);
    font-family: var(--font-heading);
    font-style: italic;
}

.svc-arrow {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .svc-arrow {
    color: var(--brand-lilac);
    transform: translateX(10px) scale(1.15);
}

.svc-title {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.svc-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.port-card {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4/5;
    position: relative;
    border: 1px solid var(--glass-border);
}

.port-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: grayscale(100%) contrast(1.1);
}

.port-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1);
}

.port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 14, 24, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    pointer-events: none;
}

.port-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 0;
    font-style: italic;
}

/* Timeline / Journey */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
}

.timeline-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--glass-border);
    z-index: 1;
}

.timeline-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-step {
    text-align: center;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--brand-lilac);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--brand-lilac);
    box-shadow: 0 4px 20px rgba(208, 183, 243, 0.1);
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Enhanced Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    background: rgba(18, 14, 24, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-links {
    min-width: 150px;
}

.footer-heading {
    font-size: 1.1rem;
    font-family: var(--font-modern);
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links nav a:hover {
    color: var(--brand-lilac);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.footer-bottom p {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--brand-lilac);
    text-decoration: none;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
    background: var(--brand-lilac);
    color: var(--bg-dark);
    transform: translateY(-4px) rotate(8deg);
}

/* Animation Utils */
.transform-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Media Queries */
@media(max-width: 1024px) {
    .nav-desktop {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .bento-grid-about {
        grid-template-columns: 1fr;
    }

    .flex-center-card {
        padding: 2.5rem;
    }

    .image-card {
        min-height: 400px;
    }

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

    .section {
        padding: 80px 0;
    }
}

@media(max-width: 768px) {

    /* Layout */
    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 6vw;
    }

    /* Typography */
    .hero-title {
        font-size: clamp(3rem, 12vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .bento-title {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .btn-glow {
        padding: 0.9rem 1.8rem;
        font-size: 0.8rem;
    }

    /* Bento Elements */
    .flex-center-card {
        padding: 2.2rem 1.5rem;
    }

    .image-card {
        min-height: 300px;
    }

    /* Services */
    .bento-grid-services {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .svc-title {
        font-size: 1.8rem;
    }

    .svc-desc {
        font-size: 0.9rem;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .port-card {
        aspect-ratio: 4/5;
    }

    /* Timeline */
    .timeline-container {
        margin-top: 3rem;
    }

    .timeline-line {
        top: 0;
        bottom: 0;
        left: 30px;
        right: auto;
        width: 1px;
        height: 100%;
        transform: translateX(-50%);
    }

    .timeline-steps {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .timeline-step {
        display: flex;
        text-align: left;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .step-number {
        margin: 0;
        flex-shrink: 0;
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
        z-index: 2;
    }

    .step-content {
        padding-top: 5px;
    }

    .step-title {
        margin-bottom: 0.4rem;
        font-size: 1.3rem;
    }

    .step-desc {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding-top: 3rem;
    }

    .footer-content {
        gap: 2rem;
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .footer-brand {
        margin-bottom: 1rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}