* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #0f172a;
    color: #fff;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed;
    width: 100%;
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

/* LOGO + TEXT WRAPPER */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    /* ← yahin se distance control hota hai */
}

/* CIRCLE LOGO */
.brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

/* TEXT LOGO */
.logo {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
}

.logo span {
    color: #38bdf8;
}

/* NAV LINKS */
.navbar a {
    margin-left: 30px;
    color: #fff;
    text-decoration: none;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

#smoke-canvas {
    position: fixed;
    inset: 0;
    z-index: -1;
    /* content ke peeche */
    background: #0f172a;
    /* website base color */
}

/* Hero */


.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Background video */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Full cover, aspect ratio maintain */
    z-index: 0;
    filter: brightness(1.5);
}

/* Overlay for readability */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1;
}

.intro-small {
    width: 90%;
    max-width: 700px;
    margin: 80px auto;
    text-align: center;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.intro-small p {
    font-size: 20px;
    color: white;
    opacity: 0;
    transform: translateY(20px);
    animation: textFade 1.5s ease forwards;
    animation-delay: 0.3s;
    letter-spacing: 1px;
}

/* Fade-in + slide-up animation */
@keyframes textFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlide {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover glow effect */
.intro-small:hover {
    box-shadow: 0 30px 80px rgba(0, 198, 255, 0.35);
    transition: box-shadow 0.5s ease;
}

/* Content stays above video */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 58px;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: #38bdf8;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: .95;
    margin-bottom: 30px;
}

.cta-btn {
    padding: 18px 50px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: .4s;
}

.cta-btn:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 20px 40px rgba(56, 189, 248, .5);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media(max-width:1024px) {
    .hero h1 {
        font-size: 42px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* Sections */
.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 60px;
}

.services {
    padding: 120px 80px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.3);
}

.results-section {
    padding: 120px 60px;
    background: #0f172a;
    text-align: center;
    color: #fff;
}

.results-title {
    font-size: 48px;
    margin-bottom: 80px;
}

.results-title span {
    color: #38bdf8;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.result-card {
    position: relative;
    height: 180px;
    perspective: 1000px;
}

.result-card div {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 20px;
    font-weight: 600;
    transition: .6s;
    backface-visibility: hidden;
}

.result-card .front {
    background: rgba(255, 255, 255, 0.06);
}

.result-card .back {
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    transform: rotateY(180deg);
}

.result-card:hover .front {
    transform: rotateY(180deg);
}

.result-card:hover .back {
    transform: rotateY(0deg);
}

.services-showcase {
    padding: 120px 60px;
    background: #0f172a;
}

.section-title {
    text-align: center;
    font-size: 48px;
    margin-bottom: 80px;
    color: #fff;
}

.section-title span {
    color: #38bdf8;
}

/* Grid */
.video-services {
    padding: 130px 60px;
    background: #0f172a;
}

.services-title {
    text-align: center;
    font-size: 52px;
    color: #fff;
    margin-bottom: 90px;
}

.services-title span {
    color: #38bdf8;
}

/* GRID */
.video-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
}

/* CARD */
.video-service-card {
    position: relative;
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    isolation: isolate;
}

/* VIDEO */
.video-service-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s ease;
    filter: brightness(0.7);
}

/* OVERLAY */
.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.98),
            rgba(15, 23, 42, 0.7),
            rgba(15, 23, 42, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 45px;
    color: #fff;
    transition: .6s;
}

/* TEXT */
.video-overlay h3 {
    font-size: 30px;
    margin-bottom: 14px;
}

.video-overlay p {
    font-size: 16px;
    line-height: 1.6;
    opacity: .85;
    margin-bottom: 24px;
}

/* BUTTON */
.video-overlay a {
    width: max-content;
    padding: 14px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
    transform: translateY(25px);
    opacity: 0;
    transition: .6s;
}

/* HOVER EFFECTS */
.video-service-card:hover video {
    transform: scale(1.15);
    filter: brightness(0.85);
}

.video-service-card:hover .video-overlay {
    background: linear-gradient(to top,
            rgba(15, 23, 42, 0.99),
            rgba(15, 23, 42, 0.8),
            rgba(15, 23, 42, 0.3));
}

.video-service-card:hover a {
    transform: translateY(0);
    opacity: 1;
}

/* RESPONSIVE */
@media(max-width:768px) {
    .services-title {
        font-size: 38px;
    }

    .video-service-card {
        height: 380px;
    }
}

/* Hero */
.work-hero {
    text-align: center;
    padding: 120px 20px;
    animation: fadeIn 1.5s ease forwards;
}

.work-hero h1 {
    font-size: 52px;
    margin-bottom: 16px;
}

.work-hero h1 span {
    color: #38bdf8;
}

.work-hero p {
    font-size: 18px;
    opacity: 0.85;
}

/* Gallery Grid */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 50px;
    padding: 0 60px 100px;
}

/* Portfolio Card */
.portfolio-card {
    background: linear-gradient(145deg, #111827, #1e293b);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 50px 100px rgba(56, 189, 248, 0.45);
}

/* Media Container */
.media-container {
    position: relative;
    overflow: hidden;
}

.media-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 1s ease;
}

.portfolio-card:hover img {
    transform: scale(1.15);
}

/* Preview link (appears on hover) */
.preview-link {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 2;
}

.portfolio-card:hover .preview-link {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Portfolio content */
.portfolio-content {
    padding: 30px;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-content {
    transform: translateY(-10px);
}

.portfolio-content h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.portfolio-content p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* Tech Stack Badges */
.tech-stack span {
    display: inline-block;
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 12px;
    margin-right: 6px;
    transition: background 0.3s ease;
}

.portfolio-card:hover .tech-stack span {
    background: rgba(56, 189, 248, 0.5);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media(max-width:768px) {
    .work-hero h1 {
        font-size: 38px;
    }

    .work-hero p {
        font-size: 16px;
    }

    .media-container img {
        height: 180px;
    }
}

/* Preview Section */
.intro-preview {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    border-radius: 12px;
    cursor: pointer;
}

.intro-overlay {
    position: relative;
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.intro-overlay h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.intro-overlay h2 span {
    color: #38bdf8;
}

.intro-overlay p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.intro-overlay button {
    padding: 10px 25px;
    background: #38bdf8;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.3s;
}

.intro-overlay button:hover {
    background: #0ea5e9;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    position: relative;
    max-width: 900px;
    width: 90%;
}

.modal-content video {
    width: 100%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

/* ===== INTERACTION PREVIEW SECTION ===== */
.demo-section {
    margin-top: 120px;
    padding: 90px 40px;
    text-align: center;
    border-radius: 35px;
    background:
        linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(14, 165, 233, 0.05)),
        rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.demo-section::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, transparent, #38bdf8, transparent);
    opacity: .15;
}

.demo-section h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

.demo-section p {
    opacity: .85;
    margin-bottom: 45px;
}

/* Button wrapper for focus */
.demo-btn-wrapper {
    display: flex;
    justify-content: center;
}

/* Enhanced Demo Button */
.demo-btn {
    padding: 20px 65px;
    border-radius: 50px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: .5s ease;
    position: relative;
    overflow: hidden;
}

/* Glow effect */
.demo-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, #ffffff88, transparent 60%);
    opacity: 0;
    transition: .5s;
}

.demo-btn:hover::after {
    opacity: 1;
}

.demo-btn:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 30px 60px rgba(56, 189, 248, .6);
}


.demo-btn:hover {
    transform: translateY(-8px) scale(1.08);
    box-shadow: 0 20px 40px rgba(56, 189, 248, .45);
}


/* CTA */
.cta {
    padding: 120px 80px;
    text-align: center;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #0f172a;
}

.cta h2 {
    font-size: 42px;
    margin-bottom: 15px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}