/* =========================
   RESET + BASE
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #1E293B;
    line-height: 1.6;
    overflow-x: hidden;
}

/* LOGO DESIGN */

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: #0F172A;
}

.logo img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}






/* ONLY APPLY TRANSITIONS TO INTERACTIVE ELEMENTS */
.service-card,
.why-card,
.portfolio-card,
.contact-card,
.btn-primary,
.btn-secondary,
.nav-btn,
.contact-card a,
.card,
.nav-links a,
.navbar {
    transition: all 0.25s ease;
}



.nav-btn {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
    color: white;

    padding: 10px 18px;
    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;
    font-size: 14px;

    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);

    transition: all 0.3s ease;
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}


.nav-links a {
    position: relative;
    color: #1E293B;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.25s ease;
}


.nav-links a:hover {
    color: #2563EB;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;

    width: 0%;
    height: 2px;

    background: #2563EB;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links {
    list-style: none;   /* removes bullets */
    margin: 0;
    padding: 0;
    display: flex;      /* keeps horizontal layout */
    gap: 20px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-btn {
    background: #2563EB;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

/* MOBILE */
@media (max-width: 768px) {

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: white;
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-btn {
        display: none;
    }
}

/* =========================
   GLOBAL SECTION SPACING
========================= */

section {
    padding: 40px 8%;
}

/* =========================
   HERO
========================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 80px 8%;
    background: #F8FAFC;
}

.hero-content {
    flex: 1;
}

.tagline {
    color: #2563EB;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.hero h1 {
    font-size: 52px;
    line-height: 1.1;
    margin: 15px 0;
    color: #0F172A;
}

.subtext {
    font-size: 18px;
    color: #475569;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background: #2563EB;
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn-secondary {
    border: 2px solid #ffffff;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
   
  
}

/* =========================
   HERO BACKGROUND IMAGE LAYER
========================= */

/* =========================
   HERO IMAGE CONTROL (FIXED LAYER)
========================= */

.hero {
    position: relative;
    overflow: hidden;
}

/* BACKGROUND IMAGE LAYER */
.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 70%; /* stops around button area */

    background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c");
    background-size: cover;
    background-position: center;

    z-index: 0;
}

/* DARK OVERLAY FOR READABILITY */


.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(15, 23, 42, 0.55),
        rgba(15, 23, 42, 0.90)
    );

    z-index: 1; /* 🔴 CRITICAL FIX */
}

/* ENSURE CONTENT IS ABOVE IMAGE */
.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
    color: white;
}


.hero h1,
.hero p,
.tagline {
    color: white;
}
.card {
    background: white;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    font-weight: 600;
    padding: 20px;
}

.card:hover {
    transform: translateY(-6px);
}

::selection {
    background: #2563EB;
    color: white;
}


/* =========================
   HERO IMAGE LAYER (NEW)
========================= */

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 3%;
}

.hero-visual {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    position: relative;
}




/* big image */
.hero-image-wrapper:first-child {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

/* small images */
.hero-image-wrapper.small {
    height: 100%;
}

/* image styling */
.hero-image-wrapper {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-image-wrapper:hover img {
    transform: scale(1.05);
}
/* =========================
   SECTION HEADER SYSTEM
========================= */

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 34px;
    color: #0F172A;
    margin-bottom: 10px;
}

.section-header p {
    color: #64748B;
    max-width: 700px;
    margin: 0 auto;
}

/* =========================
   HERO MIDDLE IMAGE BLOCK (NEW FIX)
========================= */

.hero {
    flex-direction: column; /* IMPORTANT: stacks sections vertically */
    align-items: stretch;
}

/* image block between text and lower content */
.hero-media {
    width: 100%;
    margin: 30px 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.hero-media img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* =========================
   SERVICES
========================= */

.services {
    background: white;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: white;

    padding: 35px 30px;

    border-radius: 20px;

    border: 1px solid rgba(37,99,235,0.08);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.05),
        0 1px 2px rgba(0,0,0,0.03);

    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-12px);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.10),
        0 10px 25px rgba(37,99,235,0.08);
}

.service-card h3 {
    color: #2563EB;
    margin-bottom: 10px;
}

.service-card p {
    color: #475569;
    font-size: 14px;
}

/*ICON DESIGN*/

.service-icon {
    width: 70px;
    height: 70px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 30px;

    border-radius: 18px;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);

    background: linear-gradient(
        135deg,
        #2563EB,
        #06B6D4
    );

    color: white;

    margin: 0 auto 20px;
}



/* =========================
   WHY US
========================= */

.why-us {
    background: #F8FAFC;
    text-align: center;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.10);
}

.why-card h3 {
    color: #0F172A;
    margin-bottom: 10px;
}

.why-card p {
    color: #64748B;
    font-size: 14px;
}

/* =========================
   PORTFOLIO
========================= */

.portfolio {
    background: white;
    text-align: center;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;

    background: white;
    border-radius: 20px;

    box-shadow: 0 15px 40px rgba(0,0,0,0.06);

    transition: all 0.35s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.portfolio-image {
    height: 180px;
    background: linear-gradient(135deg, #2563EB, #06B6D4);
    border-radius: 10px;
    margin-bottom: 15px;
}

/* =========================
   CONTACT
========================= */

.contact {
    background: #F8FAFC;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);

    padding: 30px 25px;

    border-radius: 18px;

    border: 1px solid rgba(37, 99, 235, 0.08);

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

    transition: all 0.35s ease;

    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}
.contact-card h3 {
    color: #0F172A;
    margin-bottom: 10px;
}

.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(90deg, #2563EB, #06B6D4);

    opacity: 0.8;
}



.contact-card p {
    color: #64748B;
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-card a {
    display: inline-block;
    background: #2563EB;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    background: #1D4ED8;
}

/* =========================
   FOOTER
========================= */

.footer {
    background: #0F172A;
    color: white;
    padding: 60px 8% 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-box h3 {
    color: #06B6D4;
    margin-bottom: 10px;
}

.footer-box p {
    color: #CBD5E1;
    font-size: 14px;
    margin-bottom: 6px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1E293B;
    padding-top: 15px;
    color: #94A3B8;
    font-size: 13px;
}

/* =========================
   ANIMATIONS
========================= */
.hidden {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-visual {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .why-grid,
    .portfolio-grid,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }


   
    .nav-links {
        display: none;
    }
}


@media (max-width: 768px) {

    .view-project-btn {
        margin-top: 5px;
        transform: translateY(-3px);
    }
}


/* =========================
   HERO BACKGROUND SLIDER
========================= */

/* =========================
   CINEMATIC HERO BACKGROUND SLIDER
========================= */

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    overflow: hidden;
    z-index: 0;
}

/* BASE SLIDES */
.hero-slider .slide {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;

    opacity: 0;
    transform: scale(1.08);

    animation: cinematicFade 14s infinite;
}

/* IMAGE 1 */
.hero-slider .slide1 {
    background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c");
    animation-delay: 0s;
}

/* IMAGE 2 */
.hero-slider .slide2 {
    background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978");
    animation-delay: 7s;
}

/* CINEMATIC FADE + ZOOM (KEY EFFECT) */
@keyframes cinematicFade {
    0% {
        opacity: 0;
        transform: scale(1.08);
        filter: blur(2px);
    }

    10% {
        opacity: 1;
        transform: scale(1.03);
        filter: blur(0px);
    }

    45% {
        opacity: 1;
        transform: scale(1.0);
    }

    55% {
        opacity: 0;
        transform: scale(1.02);
    }

    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}

/* CINEMATIC DARK OVERLAY */
.hero-slider::after {
    content: "";
    position: absolute;
    inset: 0;

    background: radial-gradient(
        circle at 30% 20%,
        rgba(37, 99, 235, 0.15),
        rgba(15, 23, 42, 0.92)
    );

    z-index: 1;
}

/* ENSURE CONTENT FLOATS ABOVE */
.hero-content,
.hero-visual {
    position: relative;
    z-index: 2;
}

/* TEXT READABILITY LOCK */
.hero h1,
.hero p,
.tagline {
    color: white;
}

/* BUTTON CONTRAST ENHANCEMENT */
.btn-primary {
    background: #2563EB;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.btn-secondary {
    border: 2px solid rgba(255,255,255,0.8);
    color: white;
}







.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}







/* SHRINK EFFECT CLASS */
.navbar.shrink {
    padding: 10px 8%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* MOBILE TOGGLE */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
}

/* MOBILE NAV */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        gap: 15px;
        padding: 20px;
        
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

    .nav-links.active {
        display: flex;
    }
}



/* =========================
   ANIMATION VARIANTS
========================= */

/* SCALE REVEAL (Portfolio) */
.hidden-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.6s ease;
}

.show-scale {
    opacity: 1;
    transform: scale(1);
}

/* LEFT / RIGHT REVEAL (Why Us alternating feel) */
.hidden-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.6s ease;
}

.hidden-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.6s ease;
}

.show-left,
.show-right {
    opacity: 1;
    transform: translateX(0);
}



/* =========================
   STAGGER ANIMATION DELAYS
========================= */

/* Services */
.services-grid .service-card:nth-child(1) { transition-delay: 0.05s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.25s; }

/* Portfolio */
.portfolio-grid .portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-grid .portfolio-card:nth-child(2) { transition-delay: 0.15s; }
.portfolio-grid .portfolio-card:nth-child(3) { transition-delay: 0.25s; }

/* Why Us */
.why-grid .why-card:nth-child(1) { transition-delay: 0.05s; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.15s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.25s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.35s; }

/* Contact */
.contact-grid .contact-card:nth-child(1) { transition-delay: 0.05s; }
.contact-grid .contact-card:nth-child(2) { transition-delay: 0.15s; }
.contact-grid .contact-card:nth-child(3) { transition-delay: 0.25s; }


/* =========================
   HERO ANIMATION TIMING
========================= */

.hero .tagline {
    transition-delay: 0.05s;
}

.hero h1 {
    transition-delay: 0.15s;
}

.hero .subtext {
    transition-delay: 0.25s;
}

.hero .hero-buttons {
    transition-delay: 0.35s;
}


/* =========================
   NAVBAR PREMIUM EFFECT
========================= */

.navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.shrink {
    background: rgba(255, 255, 255, 0.9);
}

.nav-links a {
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 2px;
    background: #2563EB;
    transition: width 0.3s ease;
}

.nav-links a.active::after {
    width: 100%;
}

/*PORTFOLIO IMAGE PLACEHOLDER */
   

.portfolio-image {
    height: 240px;

    background-size: cover;
    background-position: center;

    transition: transform 0.5s ease;
}
.portfolio-card:nth-child(1) .portfolio-image {
    background-image: url("assets/portfolio3.png");
}

.portfolio-card:nth-child(2) .portfolio-image {
    background-image: url("assets/portfolio2.png");
}

.portfolio-card:nth-child(3) .portfolio-image {
    background-image: url("assets/portfolio1.png");
}


.portfolio-card:hover .portfolio-image {
    transform: scale(1.08);
}

.portfolio-card h3,
.portfolio-card p {
    padding-left: 25px;
    padding-right: 25px;
}

.portfolio-card h3 {
    margin-top: 20px;
}

.portfolio-card p {
    padding-bottom: 25px;
    color: #64748B;
}


.portfolio-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #2563EB,
        #06B6D4
    );
}

/* VIEW PROJECT BUTTON */
.view-project-btn {
    display: inline-block;

    margin: 20px 25px 25px;

    background: #2563EB;
    color: white;

    padding: 10px 16px;

    border-radius: 10px;

    text-decoration: none;
    font-weight: 600;

    transition: all 0.3s ease;
}

.view-project-btn:hover {
    transform: translateY(-2px);
}

/* STAT GRID */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 16px;

    text-align: center;

    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}

.stat-card h3 {
    font-size: 28px;
    color: #2563EB;
    margin-bottom: 5px;
}

.stat-card p {
    color: #64748B;
    font-size: 14px;
}

.counter {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: #2563EB;
}

/* CONTACT SECTION */

.contact {
    position: relative;
    overflow: hidden;
}

.contact-shape-image {
    position: absolute;
    top: -80px;
    right: -120px;

    width: 500px;
    height: 500px;

    background-image: url("assets/contact1.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0.12;

    z-index: 0;

    pointer-events: none;
}



.why-us {
    position: relative;
    overflow: hidden;
}

.about-bg-image {
    position: absolute;
    inset: 0;

    background-image: url("assets/contact2.jpg");
    background-size: cover;
    background-position: center;

    opacity: 0.08; /* keep it subtle */
    filter: saturate(0.8) contrast(1.1);

    z-index: 0;
}

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom {
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
}

#services {
    margin-top: 20px;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;

    width: 60px;
    height: 60px;

    background: #25D366;
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 10px 25px rgba(0,0,0,0.25);

    z-index: 9999;

    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 15px;
        right: 15px;
    }

    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}
