/* =========================
   GOOGLE FONT
========================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


/* =========================
   GLOBAL CSS
========================= */


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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-color: #08090a;
    --text-color: #f5f5f5;
    --secondary-color: #b5b5b5;
    --green: #22c55e;
    --green-dark: #15803d;
    --border-color: #353535;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    height: 65px;
    position:sticky;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent;
}

.nav-container {
    max-width: 1180px;
    height: 100%;
    margin: auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Logo */

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -1px;
}


/* Navigation Links */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    position: relative;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}


/* Green Underline */

.nav-link::after {
    content: "";
    width: 0;
    height: 2px;
    position: absolute;
    bottom: 2px;
    left: 0;
    background: var(--green);
    transition: width 0.3s ease;
}

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


/* Mobile Menu Button */

.menu-toggle {
    display: none;
    border: none;
    background: transparent;
    color: white;
    font-size: 23px;
    cursor: pointer;
}


/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-toggle {
    display: none;

    border: none;
    outline: none;

    background: transparent;

    color: white;

    font-size: 23px;

    cursor: pointer;
}


/* =========================
   PORTFOLIO SECTION
========================= */

.portfolio {
    min-height: 100vh;

    padding: 130px 20px 80px;

    background:
        radial-gradient(
            circle at 20% 20%,
            rgba(34, 197, 94, 0.08),
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 80%,
            rgba(34, 197, 94, 0.06),
            transparent 30%
        );
}


.portfolio-container {
    max-width: 1150px;

    margin: auto;
}


/* =========================
   HEADING
========================= */

.heading {
    text-align: center;

    margin-bottom: 50px;
}


.small-title {
    color: var(--green);

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 12px;
}


.heading h1 {
    font-size: 42px;

    font-weight: 700;

    color: white;
}


.heading h1 span {
    color: var(--green);
}


/* =========================
   CARDS CONTAINER
========================= */

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* =========================
   PROJECT CARD
========================= */

.project-card {
    width: 100%;

    height: 210px;

    background: #101212;

    border: 1px solid #252925;

    border-radius: 10px;

    overflow: hidden;

    position: relative;

    cursor: pointer;

    opacity: 0;

    transform:
        translateY(70px)
        scale(0.95);

    animation: waveCard 0.8s ease forwards;

    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}


/* =========================
   CARD ONE BY ONE ANIMATION
========================= */

.project-card:nth-child(1) {
    animation-delay: 0.2s;
}


.project-card:nth-child(2) {
    animation-delay: 0.4s;
}


.project-card:nth-child(3) {
    animation-delay: 0.6s;
}


.project-card:nth-child(4) {
    animation-delay: 0.8s;
}


.project-card:nth-child(5) {
    animation-delay: 1s;
}


.project-card:nth-child(6) {
    animation-delay: 1.2s;
}


/* =========================
   WAVE ANIMATION
========================= */

@keyframes waveCard {

    0% {
        opacity: 0;

        transform:
            translateY(70px)
            rotateX(15deg)
            scale(0.95);
    }


    60% {
        opacity: 1;

        transform:
            translateY(-12px)
            rotateX(0deg)
            scale(1.02);
    }


    100% {
        opacity: 1;

        transform:
            translateY(0)
            rotateX(0deg)
            scale(1);
    }

}


/* =========================
   CARD IMAGE
========================= */

.project-card img {
    width: 100%;
    height: 100%;

    display: block;

    /*
       Image card ko completely fill karegi
    */

    object-fit: cover;

    cursor: pointer;

    transition:
        transform 0.5s ease;
}


/* =========================
   CARD HOVER
========================= */

.project-card:hover {
    transform: translateY(-8px);

    border-color: var(--green);

    box-shadow:
        0 15px 40px rgba(34, 197, 94, 0.15);
}


.project-card:hover img {
    transform: scale(1.06);
}


/* =========================
   FULL IMAGE MODAL
========================= */

.image-modal {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    z-index: 9999;
}


/* JS SE SHOW HOGA */

.image-modal.show {
    display: flex;
}


/* =========================
   FULL IMAGE
========================= */

.image-modal img {
    max-width: 95%;

    max-height: 90vh;

    width: auto;

    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.6);
}


/* =========================
   CLOSE BUTTON
========================= */

.close-image {
    position: absolute;

    top: 20px;
    right: 30px;

    color: white;

    font-size: 45px;

    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition: 0.3s;
}


.close-image:hover {
    color: var(--green);
}


/* =========================
   TABLET
========================= */

@media (max-width: 950px) {

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

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    /* MOBILE MENU BUTTON */

    .menu-toggle {
        display: block;

        border: none;
        outline: none;

        background: transparent;

        color: white;

        font-size: 26px;

        cursor: pointer;

        padding: 8px;

        z-index: 9999;
    }


    /* MOBILE NAV */

    .nav-menu {
        position: absolute;

        top: 65px;
        right: 20px;

        width: 220px;

        padding: 20px;

        background: #0b0d0c;

        border: 1px solid rgba(34, 197, 94, 0.4);

        border-radius: 10px;

        display: none;

        flex-direction: column;

        align-items: flex-start;

        gap: 5px;

        z-index: 9998;
    }


    /* JS CLASS */

    .nav-menu.show {
        display: flex;
    }


    .nav-link {
        width: 100%;

        padding: 10px 0;
    }


    .nav-link.active::after {
        bottom: 2px;
    }


    /* =========================
       MOBILE CARDS
    ========================= */

    .cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .project-card {
        width: 100%;

        height: 190px;
    }


    /* =========================
       MOBILE HEADING
    ========================= */

    .heading h1 {
        font-size: 34px;
    }


    .heading {
        margin-bottom: 40px;
    }


    /* =========================
       MODAL IMAGE
    ========================= */

    .image-modal {
        padding: 15px;
    }


    .image-modal img {
        max-width: 95%;

        max-height: 80vh;
    }


    .close-image {
        top: 15px;

        right: 20px;

        font-size: 40px;
    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 450px) {

    .portfolio {
        padding: 120px 15px 60px;
    }


    .heading h1 {
        font-size: 30px;
    }


    .small-title {
        font-size: 12px;
    }


    .project-card {
        height: 170px;
    }


    .close-image {
        top: 10px;

        right: 15px;

        font-size: 36px;
    }

}
/* =========================
   VIDEO SECTION
========================= */

.video-section {

    width: 100%;

    padding: 40px 20px 100px;

    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(34, 197, 94, 0.06),
            transparent 40%
        );
}


/* =========================
   VIDEO CONTAINER
========================= */

.video-container {

    max-width: 1150px;

    margin: auto;

}


/* =========================
   VIDEO HEADING
========================= */

.video-heading {

    text-align: center;

    margin-bottom: 45px;

}


.video-heading p {

    color: #22c55e;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;

    margin-bottom: 12px;

}


.video-heading h2 {

    color: white;

    font-size: 38px;

    font-weight: 700;

}


.video-heading h2 span {

    color: #22c55e;

}


/* =========================
   VIDEO GRID
========================= */

.video-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 30px;

}


/* =========================
   VIDEO CARD
========================= */

.video-card {

    position: relative;

    opacity: 0;

    transform:
        translateY(70px)
        scale(0.94);

    animation: videoWave 1s ease forwards;

}


/* =========================
   ONE BY ONE ANIMATION
========================= */

.video-card:nth-child(1) {

    animation-delay: 1.4s;

}


.video-card:nth-child(2) {

    animation-delay: 1.7s;

}


/* =========================
   VIDEO BOX
========================= */

.video-box {

    position: relative;

    width: 100%;

    height: 300px;

    overflow: hidden;

    border-radius: 18px;

    background: #101212;

    border: 1px solid rgba(34, 197, 94, 0.25);

    cursor: pointer;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.35);

    transition:
        transform 0.5s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;

}


/* =========================
   ANIMATED GREEN BORDER
========================= */

.video-box::before {

    content: "";

    position: absolute;

    inset: -2px;

    border-radius: 20px;

    background:
        linear-gradient(
            120deg,
            transparent,
            #22c55e,
            transparent,
            #15803d,
            transparent
        );

    background-size: 300% 300%;

    animation: borderMove 5s linear infinite;

    z-index: 0;

    opacity: 0;

    transition: opacity 0.4s ease;

}


.video-box:hover::before {

    opacity: 1;

}


/* =========================
   VIDEO
========================= */

.video-box video {

    position: relative;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    z-index: 1;

    transition:
        transform 0.7s ease;

}


/* =========================
   HOVER EFFECT
========================= */

.video-box:hover {

    transform: translateY(-10px);

    border-color: #22c55e;

    box-shadow:
        0 25px 60px rgba(34, 197, 94, 0.14);

}


.video-box:hover video {

    transform: scale(1.08);

}


/* =========================
   WAVE ANIMATION
========================= */

@keyframes videoWave {

    0% {

        opacity: 0;

        transform:
            translateY(70px)
            rotateX(12deg)
            scale(0.94);

    }


    60% {

        opacity: 1;

        transform:
            translateY(-12px)
            rotateX(0)
            scale(1.02);

    }


    100% {

        opacity: 1;

        transform:
            translateY(0)
            rotateX(0)
            scale(1);

    }

}


/* =========================
   BORDER ANIMATION
========================= */

@keyframes borderMove {

    0% {

        background-position: 0% 50%;

    }

    50% {

        background-position: 100% 50%;

    }

    100% {

        background-position: 0% 50%;

    }

}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .video-grid {

        grid-template-columns: 1fr;

        max-width: 700px;

        margin: auto;

    }


    .video-box {

        height: 330px;

    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .video-section {

        padding:
            20px
            15px
            70px;

    }


    .video-heading h2 {

        font-size: 32px;

    }


    .video-grid {

        gap: 25px;

    }


    .video-box {

        height: 250px;

        border-radius: 14px;

    }

}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 450px) {

    .video-heading h2 {

        font-size: 28px;

    }


    .video-heading p {

        font-size: 11px;

        letter-spacing: 2px;

    }


    .video-box {

        height: 210px;

    }

}

/* ==============================
   FLOATING WHATSAPP BUTTON
============================== */

.whatsapp-float {
    position: fixed;
    right: 25px;
    bottom: 25px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #ffffff;

    font-size: 32px;
    text-decoration: none;

    border-radius: 50%;
    z-index: 99999;

    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.35);

    animation: whatsappWave 2s ease-in-out infinite;

    transition: background 0.3s ease,
                box-shadow 0.3s ease;
}

/* Hover effect */
.whatsapp-float:hover {
    background: #1ebe5d;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}

/* Upar-niche wave animation */
@keyframes whatsappWave {
    0%, 100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-8px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-5px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;

        right: 16px;
        bottom: 18px;

        font-size: 29px;
    }
}
/* ==============================
   PORTFOLIO THEMES
============================== */

:root,
body[data-theme="neon"] {
    --bg-color: #08090a;
    --card-color: #101312;
    --surface-color: #151a17;
    --text-color: #f5f5f5;
    --secondary-color: #b5b5b5;
    --green: #22c55e;
    --green-dark: #15803d;
    --border-color: #353535;
    --glow: rgba(34, 197, 94, 0.18);
}

body[data-theme="purple"] {
    --bg-color: #10091b;
    --card-color: #1a1028;
    --surface-color: #241536;
    --text-color: #faf5ff;
    --secondary-color: #c4b5d5;
    --green: #c084fc;
    --green-dark: #9333ea;
    --border-color: #49315e;
    --glow: rgba(192, 132, 252, 0.22);
}

body[data-theme="ocean"] {
    --bg-color: #06131d;
    --card-color: #0c202c;
    --surface-color: #102c3a;
    --text-color: #f0f9ff;
    --secondary-color: #a8c5d5;
    --green: #38bdf8;
    --green-dark: #0284c7;
    --border-color: #254657;
    --glow: rgba(56, 189, 248, 0.2);
}

/* Main background and text */

body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: background 0.35s ease, color 0.35s ease;
}

.navbar {
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.logo,
.heading h1,
.video-heading h2 {
    color: var(--text-color);
}

.nav-link {
    color: var(--secondary-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--green);
}

.nav-link::after {
    background: var(--green);
}

/* Portfolio background */

.portfolio {
    background:
        radial-gradient(circle at 20% 20%, var(--glow), transparent 35%),
        radial-gradient(circle at 80% 80%, var(--glow), transparent 35%),
        var(--bg-color);
}

.video-section {
    background:
        radial-gradient(circle at 50% 50%, var(--glow), transparent 45%),
        var(--bg-color);
}

/* Project cards */

.project-card {
    background: var(--card-color);
    border-color: var(--border-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    border-color: var(--green);
    box-shadow: 0 15px 40px var(--glow);
}

/* Headings and theme-colored text */

.small-title,
.heading h1 span,
.video-heading p,
.video-heading h2 span {
    color: var(--green);
}

.close-image:hover {
    color: var(--green);
}

/* Video cards */

.video-box {
    background: var(--card-color);
    border-color: var(--border-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.video-box::before {
    background: linear-gradient(
        120deg,
        transparent,
        var(--green),
        transparent,
        var(--green-dark),
        transparent
    );
}

.video-box:hover {
    border-color: var(--green);
    box-shadow: 0 25px 60px var(--glow);
}

/* Full image popup */

.image-modal {
    background: rgba(0, 0, 0, 0.92);
}

/* Theme button */

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    margin-left: 18px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-color);
    color: var(--text-color);
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: 0.3s ease;
}

.theme-toggle:hover {
    color: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 15px var(--glow);
}

/* Mobile navbar */

@media (max-width: 768px) {
    .theme-toggle {
        margin-left: auto;
        margin-right: 12px;
        padding: 8px 10px;
    }

    .nav-menu {
        background: var(--card-color);
        border-color: var(--border-color);
    }

    .menu-toggle {
        color: var(--text-color);
    }
}

@media (max-width: 450px) {
    .theme-toggle span {
        display: none;
    }

    .theme-toggle {
        padding: 9px;
    }
}
/* WhatsApp Button Theme Colors */

.whatsapp-float {
    background: var(--green);
    color: var(--bg-color);
    box-shadow: 0 5px 20px var(--glow);
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: var(--green-dark);
    color: var(--text-color);
    box-shadow: 0 8px 28px var(--glow);
}

/* =========================
   PROFESSIONAL PROJECT CARDS
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.project-card {
    height: auto;
    min-width: 0;
    overflow: hidden;
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    opacity: 1;
    transform: none;
    animation: none;
    transition: border-color 0.35s ease,
                box-shadow 0.35s ease,
                transform 0.35s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--green);
    box-shadow: 0 18px 45px var(--glow);
}

.project-image {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: var(--surface-color);
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.06);
}

.project-number {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--bg-color);
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.project-info {
    padding: 22px;
}

.project-type {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.project-info h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 19px;
    line-height: 1.4;
}

.project-info p {
    min-height: 48px;
    margin-bottom: 22px;
    color: var(--secondary-color);
    font-size: 13px;
    line-height: 1.8;
}

.project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.project-btn {
    display: inline-flex;
    flex: 1 1 120px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                transform 0.3s ease;
}

.live-btn {
    background: var(--green);
    color: var(--bg-color);
    border-color: var(--green);
}

.live-btn:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
    color: var(--text-color);
    transform: translateY(-2px);
}

.github-btn {
    background: transparent;
    color: var(--text-color);
}

.github-btn:hover {
    color: var(--green);
    border-color: var(--green);
    transform: translateY(-2px);
}

/* TABLET */

@media (max-width: 950px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .project-image {
        height: 220px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info p {
        min-height: auto;
    }
}

/* Respect reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .project-image img,
    .project-btn {
        animation: none;
        transition: none;
    }
}
/* =========================
   PROFESSIONAL VIDEO CARDS
========================= */

.video-section {
    width: 100%;
    padding: 40px 20px 100px;

    background:
        radial-gradient(
            circle at 50% 50%,
            var(--glow),
            transparent 45%
        ),
        var(--bg-color);
}

.video-container {
    max-width: 1150px;
    margin: auto;
}

/* HEADING */

.video-heading {
    text-align: center;
    margin-bottom: 50px;
}

.video-heading > p:first-child {
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.video-heading h2 {
    color: var(--text-color);
    font-size: 42px;
    font-weight: 800;
}

.video-heading h2 span {
    color: var(--green);
}

.video-heading .video-description {
    margin-top: 14px;
    color: var(--secondary-color);
    font-size: 14px;
    letter-spacing: 0;
    line-height: 1.8;
}

/* VIDEO GRID */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

/* VIDEO CARD */

.video-card {
    min-width: 0;
    overflow: hidden;

    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;

    animation: videoCardReveal 0.8s ease both;
}

.video-card:nth-child(2) {
    animation-delay: 0.15s;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--green);
    box-shadow: 0 18px 45px var(--glow);
}

/* VIDEO IMAGE AREA */

.video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;

    overflow: hidden;
    background: var(--surface-color);
    border: none;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
}

.video-box video {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.video-card:hover .video-box video {
    transform: scale(1.04);
}

/* NUMBER BADGE */

.video-number {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;

    padding: 7px 11px;
    border: 1px solid var(--border-color);
    border-radius: 7px;

    background: var(--bg-color);
    color: var(--green);

    font-size: 12px;
    font-weight: 800;

    pointer-events: none;
}

/* CATEGORY BADGE */

.video-tag {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;

    padding: 7px 10px;
    border-radius: 7px;

    background: var(--green);
    color: var(--bg-color);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;

    pointer-events: none;
}

/* CARD INFORMATION */

.video-info {
    padding: 22px;
}

.video-category {
    display: inline-block;
    margin-bottom: 10px;

    color: var(--green);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.7px;
}

.video-info h3 {
    margin-bottom: 10px;

    color: var(--text-color);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.video-info p {
    color: var(--secondary-color);
    font-size: 13px;
    line-height: 1.8;
}

/* ENTRANCE ANIMATION */

@keyframes videoCardReveal {
    from {
        opacity: 0;
        transform: translateY(35px) scale(0.97);
    }

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

/* TABLET */

@media (max-width: 950px) {
    .video-grid {
        gap: 22px;
    }

    .video-info {
        padding: 18px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .video-section {
        padding: 30px 15px 70px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .video-heading h2 {
        font-size: 32px;
    }

    .video-info h3 {
        font-size: 19px;
    }

    .video-box {
        aspect-ratio: 16 / 10;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .video-card {
        animation: none;
        transition: none;
    }

    .video-card:hover {
        transform: none;
    }

    .video-box video {
        transition: none;
    }
}

/* VIDEO PROJECT CARDS */

.video-card {
    min-width: 0;
    overflow: hidden;
    height: auto;

    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;

    opacity: 1;
    transform: none;

    animation: none;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.video-card:hover {
    transform: translateY(-8px);
    border-color: var(--green);
    box-shadow: 0 18px 45px var(--glow);
}

/* VIDEO */

.video-box {
    position: relative;
    width: 100%;
    height: 220px;

    overflow: hidden;
    background: var(--surface-color);
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.video-box video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.video-card:hover .video-box video {
    transform: scale(1.04);
}

/* VIDEO NUMBER */

.video-number {
    position: absolute;
    top: 12px;
    left: 12px;

    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 7px;

    background: var(--bg-color);
    color: var(--green);

    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
}

/* CARD DETAILS */

.video-info {
    padding: 22px;
}

.video-info h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 19px;
    line-height: 1.4;
}

.video-info p {
    min-height: 48px;
    margin-bottom: 22px;

    color: var(--secondary-color);
    font-size: 13px;
    line-height: 1.8;
}

/* REUSE EXISTING PROJECT BUTTONS */

.video-info .project-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.video-info .project-btn {
    flex: 1 1 120px;
    min-height: 42px;
}

/* MOBILE */

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .video-box {
        height: 220px;
    }

    .video-info {
        padding: 20px;
    }

    .video-info p {
        min-height: auto;
    }
}

/* ==============================
   SCROLL REVEAL - ALL PROJECT CARDS
============================== */

.project-card,
.video-card {
    opacity: 0 !important;
    transform: translateY(55px) scale(0.96) !important;
    animation: none !important;

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease !important;

    will-change: opacity, transform;
}

/* Jab card scroll hokar screen par aaye */

.project-card.is-visible,
.video-card.is-visible {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Hover animation */

.project-card.is-visible:hover,
.video-card.is-visible:hover {
    transform: translateY(-7px) scale(1) !important;
    border-color: var(--green);
    box-shadow: 0 18px 45px var(--glow);
}

/* Project cards ki proper alignment */

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px;
}

.project-card,
.video-card {
    min-width: 0;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: var(--card-color);
    border: 1px solid var(--border-color);
}

/* Image size */

.project-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

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

/* Video cards ki alignment */

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 26px;
}

.video-box {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.video-box video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tablet */

@media (max-width: 950px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

/* Mobile */

@media (max-width: 600px) {
    .cards,
    .video-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }

    .project-image {
        height: 220px;
    }

    .video-box {
        aspect-ratio: 16 / 10;
    }

    .project-info,
    .video-info {
        padding: 20px;
    }

    .project-info p,
    .video-info p {
        min-height: auto;
    }
}

/* Motion kam rakhne ki accessibility setting */

@media (prefers-reduced-motion: reduce) {
    .project-card,
    .video-card {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ==============================
   FIX PROJECT CARD SIZES
============================== */

.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.project-card {
    width: 100%;
    height: auto;
    min-height: 0;
    border-radius: 12px;
}

.project-image {
    width: 100%;
    height: 165px;
    overflow: hidden;
}

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

.project-info {
    padding: 16px;
}

.project-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 12px;
    line-height: 1.6;
    min-height: 0;
    margin-bottom: 16px;
}

.project-btn {
    min-height: 38px;
    padding: 9px 10px;
    font-size: 11px;
}

/* VIDEO CARDS */

.video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.video-card {
    height: auto;
    min-height: 0;
    border-radius: 12px;
}

.video-box {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 16px;
}

.video-info h3 {
    font-size: 17px;
    margin-bottom: 8px;
}

.video-info p {
    font-size: 12px;
    line-height: 1.6;
    min-height: 0;
    margin-bottom: 16px;
}

/* TABLET */

@media (max-width: 950px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

/* MOBILE */

@media (max-width: 600px) {
    .cards,
    .video-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .project-image {
        height: 190px;
    }

    .project-info,
    .video-info {
        padding: 15px;
    }

    .video-box {
        aspect-ratio: 16 / 9;
    }
}
