/* ===================================================
   Alok Chandra Dey Portfolio - Style Engine
   Theme: Cinetica Studio Inspired Floating Glass Design
   Author: Alok Chandra Dey (alokdey.xyz)
=================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #030712;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===================================================
   Dynamic Ambient Gradient Background
=================================================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    background: 
        radial-gradient(circle at 15% 15%, rgba(0, 119, 255, 0.25), transparent 45%),
        radial-gradient(circle at 85% 25%, rgba(139, 92, 255, 0.25), transparent 45%),
        radial-gradient(circle at 50% 85%, rgba(0, 255, 213, 0.2), transparent 45%),
        #030712;
    animation: backgroundPulse 14s infinite alternate ease-in-out;
}

@keyframes backgroundPulse {
    0% {
        filter: hue-rotate(0deg);
        transform: scale(1);
    }
    100% {
        filter: hue-rotate(30deg);
        transform: scale(1.12);
    }
}

/* ===================================================
   CINETICA STYLE FLOATING GLASS NAVBAR
=================================================== */
.floating-header {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    pointer-events: none; /* Allows click through surrounding whitespace */
}

.nav-island {
    pointer-events: auto; /* Re-enables pointer events for navigation bar */
    width: min(92%, 920px);
    height: 64px;
    padding: 0 24px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px; /* Pill / Capsule Shape */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-island:hover {
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(56, 189, 248, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-decoration: none;
}

.logo span {
    color: #38bdf8;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-docs-link {
    color: #38bdf8;
}

.nav-docs-link:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

#langBtn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

#langBtn:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #38bdf8;
    transform: translateY(-1px);
}

/* ===================================================
   Hero Section (Adjusted for Floating Navbar Offset)
=================================================== */
.hero {
    min-height: 90vh;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 60px;
    padding: 130px 0 60px 0; /* Top padding accommodates floating island */
}

.tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #38bdf8;
}

h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

h2#typing {
    font-size: 32px;
    font-weight: 700;
    margin: 18px 0;
    height: 40px;
    background: linear-gradient(90deg, #38bdf8, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro {
    font-size: 17px;
    max-width: 600px;
    color: #cbd5e1;
    line-height: 1.6;
}

.buttons {
    margin-top: 35px;
    display: flex;
    gap: 15px;
}

.buttons a {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-primary {
    color: #ffffff;
    background: #2563eb;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.55);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

/* ===================================================
   Profile Card
=================================================== */
.profile-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: 32px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    animation: floatAnimation 4s infinite alternate ease-in-out;
}

.profile-card img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    display: block;
    object-fit: cover;
}

@keyframes floatAnimation {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-16px);
    }
}

.badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.badge.one {
    top: 30px;
    left: -25px;
}

.badge.two {
    right: -20px;
    top: 45%;
}

.badge.three {
    bottom: 40px;
    left: -20px;
}

/* ===================================================
   Stats Section
=================================================== */
.stats {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 60px 0;
}

.stats div {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.stats h3 {
    font-size: 42px;
    font-weight: 800;
    color: #38bdf8;
    margin-bottom: 6px;
}

.stats p {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 500;
}

/* ===================================================
   Glass Section & What I Do
=================================================== */
section {
    padding: 80px 5%;
    max-width: 1200px;
    margin: auto;
}

.glass {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    margin-bottom: 40px;
}

.glass h2, #journey h2 {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cards div {
    padding: 28px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.cards div:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.09);
    border-color: #38bdf8;
}

.cards h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}

.cards p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* ===================================================
   FEATURED PRODUCT SHOWCASE: AZAI PLATFORM
=================================================== */
.product-showcase {
    position: relative;
    padding: 20px 0 80px 0;
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(37, 99, 235, 0.2) 50%, transparent 70%);
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
}

.product-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 32px;
    padding: 50px 40px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    text-align: center;
    max-width: 1000px;
    margin: auto;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
    border-color: rgba(56, 189, 248, 0.7);
    transform: translateY(-4px);
}

.product-badge {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(37, 99, 235, 0.3));
    border: 1px solid rgba(167, 139, 250, 0.5);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #a78bfa;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.product-title span {
    font-size: 18px;
    background: #38bdf8;
    color: #020617;
    padding: 2px 10px;
    border-radius: 12px;
    vertical-align: middle;
    margin-left: 8px;
}

.product-subtitle {
    font-size: 20px;
    font-weight: 600;
    color: #38bdf8;
    margin-bottom: 20px;
}

.product-description {
    font-size: 16px;
    color: #cbd5e1;
    max-width: 800px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
}

.feature-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
}

.feature-pills span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

.btn-accent {
    display: inline-block;
    text-decoration: none;
    padding: 16px 36px;
    background: linear-gradient(90deg, #2563eb, #8b5cf6);
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    transition: all 0.3s ease;
}

.btn-accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
}

/* ===================================================
   Timeline / Journey Section
=================================================== */
.timeline {
    max-width: 700px;
    margin: auto;
}

.timeline p {
    padding: 18px 24px;
    border-left: 4px solid #38bdf8;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0 14px 14px 0;
    font-size: 16px;
    font-weight: 600;
    color: #f1f5f9;
}

/* ===================================================
   Footer
=================================================== */
footer {
    padding: 70px 5% 40px 5%;
    text-align: center;
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-contact {
    margin: 8px 0;
    font-size: 16px;
}

.footer-contact a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: #38bdf8;
}

.social-links {
    margin: 30px 0;
}

.social-links a {
    color: #38bdf8;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.copyright {
    font-size: 13px;
    color: #64748b;
    margin-top: 30px;
}

/* ===================================================
   Responsive Mobile Layout
=================================================== */
@media (max-width: 850px) {
    .floating-header {
        top: 12px;
    }

    .nav-island {
        padding: 0 16px;
        height: 56px;
    }

    .nav-menu {
        display: none; /* Hide middle menu links on mobile screen to keep island compact */
    }

    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        min-height: auto;
        padding-top: 110px;
    }

    h1 {
        font-size: 38px;
    }

    h2#typing {
        font-size: 22px;
    }

    .intro {
        margin: auto;
    }

    .buttons {
        justify-content: center;
    }

    .profile-card {
        max-width: 360px;
        margin: auto;
    }

    .badge {
        display: none;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 30px 20px;
    }

    .product-title {
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons a {
        width: 100%;
        text-align: center;
    }
}