/* =========================
   RESET & GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: white;
    overflow-x: hidden;
    background: radial-gradient(ellipse at bottom, #0d1b2a 0%, #000000 100%);
}
h1, h2, h3, .logo {
    font-family: 'Sora', sans-serif;
    letter-spacing: 1px;
}
h2 {
    letter-spacing: 2px;
    text-transform: uppercase;
}

p {
    line-height: 1.7;
    letter-spacing: 0.4px;
}

.nav-links a {
    font-weight: 500;
    letter-spacing: 1.5px;
}
/* =========================
   MOUSE GLOW EFFECT
========================= */

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;

    width: 300px;
    height: 300px;

    pointer-events: none;
    z-index: 0;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(68, 202, 243, 0.411),
        rgba(241, 69, 146, 0.425),
        transparent 90%
    );

    filter: blur(80px);

    transform: translate(-50%, -50%);
    transition: transform 0.08s linear;
}  

/* make sure content stays above */
body > *:not(.cursor-glow):not(.scroll-progress):not(.premium-nav) {
    position: relative;
    z-index: 1;
}


/* =========================
   NAVBAR (DESKTOP)
========================= */
.premium-nav {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    
    z-index: 9999;

    width: 90%;
    max-width: 1100px;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;

    padding: 18px 30px;

    border-radius: 50px;

    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.08),
        rgba(76,201,240,0.15),
        rgba(247,37,133,0.12)
    );

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    border: 1px solid rgba(255,255,255,0.15);

    box-shadow: 
        0 8px 30px rgba(0,0,0,0.4),
        0 0 25px rgba(76,201,240,0.15),
        inset 0 0 15px rgba(255,255,255,0.05);
}

/* LOGO */
.logo {
    font-size: 20px;
    font-weight: 600;
    flex: 1;

    background: linear-gradient(90deg, #ffffff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* LINKS (DESKTOP) */
.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover {
    color: white;
    text-shadow: 
        0 0 8px #4cc9f0,
        0 0 15px #f72585;
}

/* =========================
   HAMBURGER (HIDDEN DESKTOP)
========================= */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: linear-gradient(90deg, #4cc9f0, #f72585);
    border-radius: 10px;
    transition: all 0.35s ease;
}

/* =========================
   MOBILE NAV (FIXED CLEAN)
========================= */
@media (max-width: 768px) {

    .premium-nav {
        top: 5px;
        width: 95%;
    }

    .nav-container {
        flex-direction: row;   /* ✅ FIXED */
        padding: 15px 20px;
    }

    /* SHOW HAMBURGER */
    .hamburger {
        display: flex;
    }

    /* HIDE LINKS INITIALLY */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;

        padding: 25px 0;

        background: rgba(10, 15, 25, 0.95);
        backdrop-filter: blur(20px);

        border: 1px solid rgba(76,201,240,0.2);
        box-shadow: 
            0 10px 40px rgba(0,0,0,0.8),
            0 0 20px rgba(76,201,240,0.15);

        border-radius: 15px;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);

        transition: 0.3s ease;
    }

    /* SHOW MENU */
    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    /* MOBILE TEXT */
    .nav-links a {
        font-size: 13px;
    }
}

/* =========================
   HAMBURGER ANIMATION
========================= */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}


/* =========================
   HERO SECTION
========================= */
.hero {
    display: flex;
    justify-content: center;   /* changed from space-between */
    align-items: center;
    height: 100vh;
    padding: 0 80px;
    gap: 150px;   /* 🔥 controls spacing between text & cube */
}

/* LEFT */
.hero-left {
    max-width: 50%;
}

.hero-left h2 {
    font-size: 50px;
}

.hero-left span {
    color: #4cc9f0;
}

.hero-left button {
    margin-top: 20px;
    padding: 10px 20px;

    background: #4cc9f0;
    border: none;
    border-radius: 12px;

    cursor: pointer;
    transition: 0.3s;
}

/* HOVER COLOR */
.hero-left button:hover {
    background: #f72585;
    color: white;
}

.hero-left h2 span {
    background: linear-gradient(90deg, #4cc9f0, #f72585, #4cc9f0);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineText 6s linear infinite;
}

/* RIGHT (CUBE) */
.hero-right {
    width: 300px;
    height: 300px;
    perspective: 1000px;
}

/* CUBE (UNCHANGED) */
.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 10s linear infinite;
}

/* FACES */
.face {
    position: absolute;
    width: 300px;
    height: 300px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(255,255,255,0.05);
    border: 1px solid #4cc9f0;

    font-size: 30px;
}

/* FACE POSITIONS */
.front  { transform: rotateY(0deg) translateZ(150px); }
.back   { transform: rotateY(180deg) translateZ(150px); }
.left   { transform: rotateY(-90deg) translateZ(150px); }
.right  { transform: rotateY(90deg) translateZ(150px); }
.top    { transform: rotateX(90deg) translateZ(150px); }
.bottom { transform: rotateX(-90deg) translateZ(150px); }
/* 🔥 ADD THIS (IMPORTANT) */
@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}


/* =============
   ABOUT PREMIUM 
============ */

.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BACKGROUND GLOW */
.about-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background: radial-gradient(circle, rgba(76,201,240,0.15), transparent 70%);
    filter: blur(120px);
    z-index: -1;
}

/* MAIN LAYOUT */
.about-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: 1.3fr 0.4fr 1fr;

    align-items: center;
    gap: 25px;
}

/* ================= LEFT BOX ================= */

.about-left {
    padding: 40px;
    border-radius: 25px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(76,201,240,0.3);

    box-shadow: 0 0 40px rgba(76,201,240,0.15);
}

.about-left h2 {
    font-size: 45px;
    margin-bottom: 20px;

    background: linear-gradient(90deg, #4cc9f0, #f72585, #4cc9f0);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineText 6s linear infinite;
}

.about-left p {
    color: #ccc;
    line-height: 1.7;
}

/* BUTTON */
.hire-btn {
    margin-top: 25px;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    color: white;
    cursor: pointer;

    box-shadow: 0 0 20px rgba(76,201,240,0.5);
}

/* ================= CONNECTING LINES ================= */

.about-lines {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    height:230px;
}

/* LINE */
.about-lines span {
    display: block;
    height: 2px;
    width: 100%;

    background: linear-gradient(90deg, #4cc9f0, transparent);

    position: relative;
}

/* DOT */
.about-lines span::after {
    content: "";
    position: absolute;
    right: 0;
    top: -4px;

    width: 10px;
    height: 10px;
    border-radius: 50%;

    background: #4cc9f0;
    box-shadow: 0 0 10px #4cc9f0;
}

/* ================= RIGHT CARDS ================= */

.about-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* CARD */
.about-card {
    width: 100%;
    position: relative;
    padding: 20px;
    border-radius: 15px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.1);

    transition: all 0.4s ease;
    overflow: hidden;
}

/* HOVER */
.about-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        0 0 25px rgba(76,201,240,0.3);
}

/* SHINE */
.about-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );

    transform: skewX(-20deg);
}

.about-card:hover::before {
    left: 120%;
    transition: 0.8s;
}

/* GLOW BORDER */
.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;

    border: 1px solid transparent;
    background: linear-gradient(90deg, #4cc9f0, #f72585) border-box;

    -webkit-mask:
        linear-gradient(#000 0 0) padding-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    opacity: 0;
    transition: 0.4s;
}

.about-card:hover::after {
    opacity: 1;
}

.about-card h3 {
    margin-bottom: 5px;
    color: #4cc9f0;
}

.about-card p {
    font-size: 14px;
    color: #ccc;
}

/* ================= ANIMATIONS ================= */

@keyframes shineText {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}


/* =========================
   SKILLS SECTION
========================= */

.skills-section {
    padding: 100px 20px;
}

.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;

    max-width: 1100px;
    margin: auto;
}

/* LEFT SIDE */
.skills-left-1 {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/* IMAGE */
.skill-img {
    width: 100%;
    max-width: 550px;

    transform: translateX(60px);

    background: transparent;
    display: block;

    filter: 
        drop-shadow(0 0 10px rgba(76,201,240,0.4))
        drop-shadow(0 0 40px rgba(247,37,133,0.2));
}

/* RIGHT SIDE */
.skills-right h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.skills-right h2 span {
    color: #4cc9f0;
}

.skills-right p {
    color: #ccc;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* OUTER FRAME */
.skills-frame {
    padding: 30px;

    border-radius: 25px;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(20px);

    border: 1px solid rgba(255,255,255,0.1);

    box-shadow: 
        0 0 30px rgba(76,201,240,0.15),
        0 0 60px rgba(247,37,133,0.08),
        inset 0 0 20px rgba(255,255,255,0.05);

    transition: 0.4s;
}

.skills-frame:hover {
    box-shadow: 
        0 0 40px rgba(76,201,240,0.25),
        0 0 80px rgba(247,37,133,0.15);
}

/* SKILL ITEM */
.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ccc;
    font-size: 14px;
}

/* ICON + TEXT */
.skill-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ICON STYLE */
.skill-left img {
    width: 36px;
    height: 36px;

    padding: 6px;
    border-radius: 50%;

    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.12);

    box-shadow: 
        0 0 12px rgba(76,201,240,0.25),
        0 0 20px rgba(76,201,240,0.1);

    transition: 0.3s;
}

/* BAR */
.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-top: 8px;
    overflow: hidden;
}

.skill-bar span {
    display: block;
    height: 100%;
    border-radius: 10px;

    background: linear-gradient(90deg, #4cc9f0, #f72585);

    box-shadow: 
        0 0 10px #4cc9f0,
        0 0 20px #f72585;

    animation: loadBar 2s ease forwards;
}

@keyframes loadBar {
    from { width: 0; }
}


/* =========================
   PREMIUM PROJECT SECTION
========================= */

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 50px;

    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}


/* =========================
   PROJECT WRAPPER (IMPORTANT)
========================= */
.project-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* 🔥 keeps equal spacing */
}


/* ================= CARD ================= */

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    min-height: 180px; /* 🔥 SAME HEIGHT FIX */

    padding: 25px;
    border-radius: 20px;

    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(255,255,255,0.08);

    position: relative;
    overflow: hidden;

    transition: all 0.5s ease;
}


/* GLOW BORDER */
.project-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;

    border: 1px solid transparent;
    background: linear-gradient(120deg, #4cc9f0, #f72585, #4cc9f0) border-box;

    -webkit-mask:
        linear-gradient(#000 0 0) padding-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    opacity: 0;
    transition: 0.5s;
}


/* LIGHT SWEEP */
.project-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );

    transform: skewX(-20deg);
}


/* HOVER EFFECT */
.project-card:hover {
    transform: translateY(-12px) scale(1.03);

    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        0 0 30px rgba(76,201,240,0.25);
}

.project-card:hover::before {
    left: 120%;
    transition: 0.9s;
}

.project-card:hover::after {
    opacity: 1;
}


/* ================= TEXT ================= */

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}


/* =========================
   BUTTON BELOW CARD
========================= */

.project-btn {
    margin-top: 18px;

    padding: 11px 24px;

    border-radius: 12px;
    border: 1px solid rgba(76,201,240,0.25);
    text-decoration: none;

    font-size: 13px;
    letter-spacing: 1px;

    color: #e6f1ff;
    cursor: pointer;

    background: rgba(15, 20, 35, 0.9);

    box-shadow: 
        0 6px 18px rgba(0,0,0,0.6);

    transition: 0.3s ease;
}


/* HOVER */
.project-btn:hover {
    background: rgba(20, 35, 60, 1);

    border-color: #4cc9f0;

    box-shadow: 
        0 8px 22px rgba(76,201,240,0.25);

    transform: translateY(-2px);
}
/* =========================
   IMAGE INSIDE CARD
========================= */

.project-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;

    border-radius: 12px;
    margin-bottom: 15px;

    transition: 0.4s ease;
}

/* HOVER ZOOM */
.project-card:hover img {
    transform: scale(1.05);
}


/* =========================
   CONTENT BELOW IMAGE
========================= */

.project-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* =========================
   PROJECT HEADING (LIKE ABOUT)
========================= */
#projects h2 {
    font-size: 40px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(90deg, #4cc9f0, #f72585, #4cc9f0);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineText 6s linear infinite;
}

/* =========================
   INTERACTIVE SHOWCASE
========================= */

.showcase-section {
    padding: 100px 20px;
}

/* HEADING */
.showcase-heading {
    text-align: center;
    font-size: 42px;
    margin-bottom: 60px;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CONTAINER */

.showcase-container {
    display: flex;
    gap: 25px;
    height: 300px;

    max-width: 1100px;
    margin: auto;
}

/* CARD */
.showcase-card {
    flex: 1;
    padding: 20px;
    border-radius: 15px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.1);

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    transition: all 0.4s ease;
}

/* 🔥 SAME HOVER LIKE YOUR PROJECT CARDS */
.showcase-card:hover {
    transform: translateY(-10px) scale(1.05);

    box-shadow: 
        0 20px 40px rgba(0,0,0,0.6),
        0 0 30px rgba(76,201,240,0.4);
}

/* GLASS SHINE (same as your cards) */
.showcase-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );

    transform: skewX(-20deg);
}

.showcase-card:hover::before {
    left: 120%;
    transition: 0.8s;
}

/* GLOW BORDER */
.showcase-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;

    border: 1px solid transparent;
    background: linear-gradient(90deg, #4cc9f0, #f72585) border-box;

    -webkit-mask:
        linear-gradient(#000 0 0) padding-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    opacity: 0;
    transition: 0.4s;
}

.showcase-card:hover::after {
    opacity: 1;
}

/* TEXT */
.showcase-card h3 {
    color: #4cc9f0;
    margin-bottom: 5px;
}

.showcase-card p {
    font-size: 14px;
    color: #ccc;
}

/* ================= EXPAND EFFECT ================= */

.showcase-container:hover .showcase-card {
    flex: 0.8;
}

.showcase-card:hover {
    flex: 2.5;
}

/* TEXT */
.showcase-card h3 {
    color: #4cc9f0;
    margin-bottom: 5px;
}

.showcase-card p {
    font-size: 14px;
    color: #ccc;
}


/* =========================
   GALLERY SECTION
========================= */

.gallery-section {
    min-height: 100vh;
    padding: 80px 60px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* HEADING (MATCH THEME) */
.gallery-heading {
    font-size: 40px;
    margin-bottom: 50px;

    background: linear-gradient(90deg, #4cc9f0, #f72585, #4cc9f0);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineText 6s linear infinite;
}

/* GRID */
.gallery-container {
    width: 100%;
    max-width: 1100px;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* CARD */
.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.1);

    transition: all 0.4s ease;
}

/* IMAGE */
.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: 0.5s;
}

/* HOVER EFFECT */
.gallery-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* GLOW BORDER */
.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;

    border: 1px solid transparent;
    background: linear-gradient(90deg, #4cc9f0, #f72585) border-box;

    -webkit-mask:
        linear-gradient(#000 0 0) padding-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    opacity: 0;
    transition: 0.4s;
}

.gallery-card:hover::after {
    opacity: 1;
}

/* GLASS SHINE EFFECT */
.gallery-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );

    transform: skewX(-20deg);
}

.gallery-card:hover::before {
    left: 120%;
    transition: 0.8s;
}

/* FLOAT ANIMATION */
.gallery-card {
    animation: floatGallery 5s ease-in-out infinite;
}

.gallery-card:nth-child(2) { animation-delay: 0.5s; }
.gallery-card:nth-child(3) { animation-delay: 1s; }
.gallery-card:nth-child(4) { animation-delay: 1.5s; }

@keyframes floatGallery {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* =========================
   CONTROL PANEL
========================= */

.control-section {
    padding: 100px 20px;
    text-align: center;
}

/* HEADING */
.control-heading {
    font-size: 40px;
    margin-bottom: 60px;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* GRID */
.control-container {
    max-width: 800px;
    margin: auto;

    display: grid;
    gap: 25px;
}

/* CARD */
.control-card {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 20px 25px;
    border-radius: 15px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.1);

    position: relative;
}

/* TEXT */
.control-card span {
    font-size: 16px;
}

/* TOGGLE BUTTON */
.toggle {

    padding: 12px 26px;

    /* 🔥 NEW SHAPE */
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.1);

    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;

    color: #e6f1ff;
    cursor: pointer;

    /* 🔥 DARK GLASS STYLE */
    background: rgba(15, 20, 35, 0.8);

    backdrop-filter: blur(12px);

    /* 🔥 DEPTH */
    box-shadow: 
        0 4px 15px rgba(0,0,0,0.5);

    transition: all 0.3s ease;
}


/* HOVER */
.toggle:hover {
    background: rgba(20, 30, 50, 0.9);

    border: 1px solid rgba(76,201,240,0.4);

    box-shadow: 
        0 6px 20px rgba(76,201,240,0.2);

    transform: translateY(-2px);
}

/* GLOW LINE EFFECT */
.control-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;

    background: linear-gradient(#4cc9f0, #f72585);
    opacity: 0.7;
}

/* =========================
   CONTACT SECTION
========================= */

.contact-section {
    min-height: 100vh;

    display: flex;
    flex-direction: column; 
    align-items: center;

    padding: 60px 20px;
}

.contact-container {
    width: 100%;
    max-width: 1000px;
    margin-top: 20px;

    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* =========================
   CONTACT HEADING
========================= */
.contact-heading {
    text-align: center;
    font-size: 40px;
    margin-bottom: 40px;

    background: linear-gradient(90deg, #4cc9f0, #f72585, #4cc9f0);
    background-size: 200% auto;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    animation: shineText 6s linear infinite;
}


/* LEFT SIDE */
.contact-left {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    display: flex;
    gap: 20px;
    align-items: center;

    padding: 20px;
    border-radius: 15px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(12px);

    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

/* =========================
   PREMIUM GLASS HOVER
========================= */
.contact-card {
    position: relative;
    overflow: hidden;

    transition: all 0.4s ease;
}

/* subtle lift */
.contact-card:hover {
    transform: translateY(-8px) scale(1.01);
}

/* 🔥 sliding glass shine */
.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.15),
        transparent
    );

    transform: skewX(-20deg);
}

/* animate slide */
.contact-card:hover::before {
    left: 120%;
    transition: 0.8s;
}

/* 💎 soft glowing border */
.contact-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 15px;

    border: 1px solid transparent;
    background: linear-gradient(90deg, #4cc9f0, #f72585) border-box;

    -webkit-mask:
        linear-gradient(#000 0 0) padding-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    opacity: 0;
    transition: 0.4s;
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card .icon {
    font-size: 28px;
}

/* PROFILE */
.profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.profile-card h2 {
    color: #4cc9f0;
}

.role {
    font-size: 14px;
    opacity: 0.7;
}

.desc {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 5px;
}


/* RIGHT SIDE FORM */
.contact-right {
    padding: 30px;
    border-radius: 20px;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(76,201,240,0.4);
}

/* FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.row {
    display: flex;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.input-group label {
    margin-bottom: 6px;
    font-size: 14px;
}

.input-group input,
.input-group textarea {
    padding: 12px;
    border-radius: 8px;

    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: white;

    outline: none;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #4cc9f0;
    box-shadow: 0 0 10px rgba(76,201,240,0.4);
}

textarea {
    height: 120px;
    resize: none;
}


/* BUTTON */
.submit-btn {
    margin-top: 10px;
    padding: 15px;

    border-radius: 30px;
    border: none;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    color: white;

    font-size: 16px;
    cursor: pointer;

    transition: 0.3s;
}

.submit-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 0 25px rgb(10, 121, 143);
}

/* NOTE */
.note {
    font-size: 12px;
    opacity: 0.6;
    margin-top: 10px;
}

/* =========================
   SPOTLIGHT SECTION
========================= */

.spotlight-section {
    min-height: 100vh;
    padding: 100px 20px;
    text-align: center;
    position: relative;
}

/* HEADING */
.spotlight-heading {
    font-size: 40px;
    margin-bottom: 60px;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CONTAINER */
.spotlight-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: auto;
}

/* MAIN CARD */
.spotlight-main {
    position: relative;
    border-radius: 20px;
    overflow: hidden;

    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(15px);

    border: 1px solid rgba(255,255,255,0.1);

    box-shadow: 0 0 60px rgba(76, 201, 240, 0.2);

    transition: 0.5s;
}

/* IMAGE */
.spotlight-main img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* TEXT */
.spotlight-content {
    padding: 20px;
}

.spotlight-content h3 {
    font-size: 24px;
}

.spotlight-content p {
    opacity: 0.8;
    font-size: 14px;
}

/* FLOATING CARDS */
.floating-card {
    position: absolute;
    width: 120px;
    height: 160px;
    border-radius: 15px;
    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);

    animation: float 6s ease-in-out infinite;
}

.floating-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* POSITIONS */
.card1 {
    top: -40px;
    left: -60px;
}

.card2 {
    bottom: -40px;
    right: -60px;
    animation-delay: 1s;
}

.card3 {
    top: 50%;
    right: -80px;
    transform: translateY(-50%);
    animation-delay: 2s;
}

/* FLOAT ANIMATION */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* HOVER GLOW */

.spotlight-main {
    position: relative;
    overflow: hidden;
}

/* SHINE LAYER */
.spotlight-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );

    transform: skewX(-20deg);
    transition: 0.8s;
}

/* HOVER TRIGGER */
.spotlight-main:hover::before {
    left: 120%;
}

/* OPTIONAL SOFT GLOW (SUBTLE) */
.spotlight-main:hover {
    box-shadow: 0 0 40px rgba(76, 201, 240, 0.25);
}

/* =========================
   PREMIUM FOOTER 
========================= */
.footer {
    padding: 70px 50px;
    position: relative;

    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.3),
        rgba(10, 20, 40, 0.9)
    );

    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

/* 🔥 soft glow */
.footer-glow {
    position: absolute;
    top: -150px;
    left: -150px;

    width: 500px;
    height: 500px;

    background: radial-gradient(circle, rgba(76,201,240,0.2), transparent 70%);
    opacity: 0.3;
    filter: blur(120px);
    z-index: 0;
}

/* CONTAINER */
.footer-container {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 50px;
}

/* BRAND */
.footer-brand h2 {
    font-size: 28px;

    background: linear-gradient(90deg, #4cc9f0, #f61f80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    margin-top: 10px;
    opacity: 0.7;
}

/* SOCIAL ICONS */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.footer-socials a {
    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;


    border-radius: 50%;
    font-size: 18px;
    color: white;

    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);

    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 0 0 15px rgba(76,201,240,0.5);
}

/* LINKS */
.footer-links h3,
.footer-contact h3,
.footer-newsletter h3 {
    margin-bottom: 10px;
}

.footer-links a {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #4cc9f0;
    text-shadow: 0 0 8px #4cc9f0;
}

/* CONTACT */
.footer-contact p {
    margin-top: 8px;
    opacity: 0.7;
}

/* NEWSLETTER */
.footer-newsletter .newsletter-box {
    display: flex;
    margin-top: 15px;
}

.newsletter-box input {
    padding: 10px;
    border-radius: 8px 0 0 8px;
    border: none;
    outline: none;
    width: 100%;
}

.newsletter-box button {
    padding: 10px 15px;
    border: none;
    border-radius: 0 8px 8px 0;

    background: linear-gradient(90deg, #4cc9f0, #f72585);
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-box button:hover {
    box-shadow: 0 0 15px rgba(76,201,240,0.5);
}

/* BOTTOM */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;

    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* Reduce vertical gap between all sections */
section {
    padding: 80px 60px;
}

/* Reduce full screen height effect */
.hero,
.about-section,
.contact-section,
.gallery-section,
.skills-section {
    min-height: auto;   
}

/* Optional: control spacing between sections */
section {
    margin-bottom: 40px;
}

body::-webkit-scrollbar {
    width: 0;
}

/* PROGRESS BAR */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    width: 0%;

    z-index: 99999; /* 🔥 increase */

    pointer-events: none; /* 🔥 prevents interaction issues */

    background: linear-gradient(90deg, #4cc9f0, #f72585);

    box-shadow: 
        0 0 10px #4cc9f0,
        0 0 20px #f72585;

    transition: width 0.1s linear;
}


/*CANVAS*/
#space-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 0;
    pointer-events: none;

    background: radial-gradient(circle at center, #020617, #000000);
}


/* =========================
   🔥 MOBILE RESPONSIVE FINAL
========================= */

@media (max-width: 768px) {

    /* GLOBAL FIX */
    body {
        overflow-x: hidden;
    }

    section {
        padding: 60px 20px !important;
        margin-bottom: 30px;
    }

    h2 {
        font-size: 26px !important;
        text-align: center;
    }


    /* ================= HERO ================= */
    .hero {
        flex-direction: column;
        height: auto;
        padding: 120px 20px 60px;
        gap: 40px;
        text-align: center;
    }

    .hero-left {
        max-width: 100%;
    }

    .hero-left h2 {
        font-size: 30px;
    }

    .hero-right {
        transform: scale(0.75);
    }

@media (max-width: 768px) {

    body {
        padding-top: 80px;
    }

    .hero {
        padding-top: 60px !important;
    }

}
    /* ================= ABOUT ================= */
    .about-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-lines {
        display: none;
    }

    .about-left {
        padding: 25px;
        text-align: center;
    }

    .about-left h2 {
        font-size: 30px;
    }

    .about-right {
        gap: 20px;
    }


    /* ================= SKILLS ================= */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-left-1 {
        justify-content: center;
    }

    .skill-img {
        max-width: 280px;
        transform: none;
    }

    .skills-right {
        text-align: center;
    }

    .skills-right h2 {
        font-size: 28px;
    }


    /* ================= PROJECT ================= */
    .projects-container {
        grid-template-columns: 1fr;
    }


    /* ================= SHOWCASE ================= */
    .showcase-container {
        flex-direction: column;
        height: auto;
    }

    .showcase-card {
        height: 180px;
    }

    .showcase-container:hover .showcase-card {
        flex: unset;
    }

    .showcase-card:hover {
        flex: unset;
    }


    /* ================= GALLERY ================= */
    .gallery-section {
        padding: 60px 20px;
    }

    .gallery-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }


    /* ================= CONTROL ================= */
    .control-container {
        grid-template-columns: 1fr;
    }

    .control-card {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }


    /* ================= CONTACT ================= */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-right {
        padding: 20px;
    }

    .row {
        flex-direction: column;
        gap: 10px;
    }


    /* ================= SPOTLIGHT ================= */
    .spotlight-main img {
        height: 250px;
    }

    .floating-card {
        display: none;
    }


    /* ================= FOOTER ================= */
@media (max-width: 768px) {

    .footer {
        padding: 50px 20px;
    }

    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 35px;
        text-align: center;
    }

    /* BRAND */
    .footer-brand h2 {
        font-size: 24px;
    }

    .footer-brand p {
        font-size: 14px;
        line-height: 1.6;
    }

    /* SOCIAL ICONS */
    .footer-socials {
        justify-content: center;
        gap: 12px;
        margin-top: 15px;
    }

    .footer-socials a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* LINKS */
    .footer-links a {
        margin-top: 6px;
        font-size: 14px;
    }

    /* CONTACT */
    .footer-contact p {
        font-size: 14px;
    }

    /* NEWSLETTER */
    .newsletter-box {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-box input {
        width: 100%;
        border-radius: 8px;
    }

    .newsletter-box button {
        width: 100%;
        border-radius: 8px;
    }

    /* BOTTOM TEXT */
    .footer-bottom {
        font-size: 12px;
        margin-top: 30px;
    }

}


    /* ================= EFFECT OPTIMIZATION ================= */

    /* Reduce heavy blur for performance */
    .cursor-glow {
        width: 180px;
        height: 180px;
        filter: blur(50px);
    }

    /* Disable heavy hover animations on mobile */
    .project-card:hover,
    .about-card:hover,
    .showcase-card:hover,
    .contact-card:hover {
        transform: none;
        box-shadow: none;
    }

}
