* { margin: 0;
    padding: 0; 
    box-sizing: border-box; 
    font-family: sans-serif; }

.navbar {
    background: #2c3e50;
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.logo { color: white; font-size: 26px; font-weight: bold; }

.nav-links { display: flex; list-style: none; }

.nav-links li a {
    color: white; 
    text-decoration: none;
    padding: 15px 20px; 
    font-size: 18px;
    font-weight: 600;
    transition: 0.8s;
}

.nav-links li a:hover {
    color: #3498db; 
    text-decoration: none;
    padding: 15px 20px; 
    font-size: 18px;
}
.nav-links li a:hover, 
.nav-links li a.active {
    color: #3498db;        /* Pehle wala Bright Blue color */
}
/* Dropdown */
.dropdown-content { display: none; 
    position: 
    absolute; 
    background: #2c3e50; 
    min-width: 220px; 
    top: 82%; 

}
.dropdown:hover .dropdown-content { display: block; }
.dropdown-content li a { color: #ffffff; display: block; border-bottom: 1px solid #eee; }

/* --- MOBILE TOGGLE BUTTON DESIGN --- */
.menu-btn {
    display: none; /* Desktop pe hide */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 30px; height: 4px;
    background-color: white;
    transition: 0.4s;
}

/* --- MOBILE RESPONSIVE --- */
/* --- MOBILE VIEW FIX (900px se kam screen ke liye) --- */
@media screen and (max-width: 900px) {
    
    /* 1. Hamburger Icon ko dikhao */
    .menu-btn { 
        display: flex !important; 
    }

    /* 2. Mobile Menu ka layout (Initially hidden) */
    .nav-links {
        display: none; 
        position: absolute;
        top: 80px; 
        left: 0; 
        width: 100%;
        background: #2c3e50; 
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
    }

    /* 3. Jab hamburger click ho (JS se active class aayegi) */
    .nav-links.active { 
        display: flex !important; 
    }

    .nav-links li { 
        width: 100%; 
        text-align: center; 
    }

    .nav-links li a { 
        display: block; 
        padding: 15px; 
        font-size: 22px; /* Bada Font */
    }

    /* 4. MOBILE DROPDOWN FIX (Hover disable, Click enable) */
    
    /* Hover karne par apne aap nahi khulega */
    .dropdown:hover .dropdown-content {
        display: none ; 
        
    }

    /* Jab "Our Verticals" par click ho (JS se open class aayegi) */
    .dropdown-content.open {
        display: block !important;
        position: static; /* List ki tarah niche dikhega */
        width: 100%;
        background-color: #34495e; /* Thoda light shade taaki alag dikhe */
        box-shadow: none;
    }

    .dropdown-content li a {
        font-size: 18px;
        color: #ecf0f1 !important;
        border-bottom: 1px solid #2c3e50;
    }
}

/* --- MOBILE TOGGLE BUTTON DESIGN --- */
.menu-btn {
    display: none; /* Desktop pe hide */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 30px; height: 4px;
    background-color: white;
    transition: 0.4s;
}

/* --- MOBILE RESPONSIVE --- */
/* --- MOBILE VIEW FIX (900px se kam screen ke liye) --- */
@media screen and (max-width: 900px) {
    
    /* 1. Hamburger Icon ko dikhao */
    .menu-btn { 
        display: flex !important; 
    }

    /* 2. Mobile Menu ka layout (Initially hidden) */
    .nav-links {
        display: none; 
        position: absolute;
        top: 80px; 
        left: 0; 
        width: 100%;
        background: #2c3e50; 
        flex-direction: column;
        padding: 20px 0;
        z-index: 999;
    }

    /* 3. Jab hamburger click ho (JS se active class aayegi) */
    .nav-links.active { 
        display: flex !important; 
    }

    .nav-links li { 
        width: 100%; 
        text-align: center; 
    }

    .nav-links li a { 
        display: block; 
        padding: 15px; 
        font-size: 22px; /* Bada Font */
    }

    /* 4. MOBILE DROPDOWN FIX (Hover disable, Click enable) */
    
    /* Hover karne par apne aap nahi khulega */
    .dropdown:hover .dropdown-content {
        display: none ; 
        
    }

    /* Jab "Our Verticals" par click ho (JS se open class aayegi) */
    .dropdown-content.open {
        display: block !important;
        position: static; /* List ki tarah niche dikhega */
        width: 100%;
        background-color: #34495e; /* Thoda light shade taaki alag dikhe */
        box-shadow: none;
    }

    .dropdown-content li a {
        font-size: 18px;
        color: #ecf0f1 !important;
        border-bottom: 1px solid #2c3e50;
    }
}


/* --- 1. SUBMENU BASE STYLING (Desktop) --- */
.dropdown-submenu {
    position: relative;
}

.submenu-content {
    display: none; /* Default hidden */
    position: absolute;
    top: 0;
    left: 100%; /* Side mein khulega */
    background-color: #34495e;
    min-width: 200px;
    list-style: none;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
}

/* Desktop Hover Logic */
.dropdown-submenu:hover > .submenu-content {
    display: block;
}

/* Submenu Links Styling */
.submenu-content li a {
    padding: 12px 20px;
    color: white !important;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: block;
}

/* --- 2. MOBILE TOGGLE CLASS (JS use karega) --- */
.active-submenu {
    display: block !important;
}

/* --- 3. MOBILE VIEW FIX (900px) --- */
@media screen and (max-width: 900px) {
    /* Mobile par hover band */
    .dropdown-submenu:hover > .submenu-content {
        display: none; 
    }

    .submenu-content {
        position: static; /* List ki tarah niche dikhega */
        width: 100%;
        background-color: #1a252f; /* Thoda dark shade */
        box-shadow: none;
    }

    /* Jab active-submenu class JS se add ho tab dikhega */
    .submenu-content.active-submenu {
        display: block !important;
    }
}



/* --- 1. HERO SECTION --- */
.projects-hero { 
    background: #1a252f; 
    padding: 150px 8% 100px; 
    text-align: center; 
    color: white;
    margin-top: 80px;
}
.hero-inner h1 { font-size: 3.5rem; margin-bottom: 20px; }
.hero-stats { display: flex; justify-content: center; gap: 50px; margin-top: 40px; }
.s-item span { font-size: 2.5rem; color: #3498db; font-weight: 800; display: block; }

/* --- 2. PORTFOLIO EXPLORER (EQUAL SIZES) --- */
.portfolio-explorer { padding: 100px 8%; background: #fdfdfd; }
.container { max-width: 1200px; margin: 0 auto; }

.case-study { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 80px; 
    margin-bottom: 120px; 
    align-items: center; 
}

/* Reverse Layout Logic */
.case-study.reversed { direction: rtl; }
.cs-content { direction: ltr; } /* Text hamesha left-to-right rahega */

/* --- EXACT IMAGE HEIGHT & WIDTH FIX --- */
.cs-image {
    width: 100%;
    height: 450px; /* SABHI IMAGES KI HEIGHT YAHA LOCK HAI */
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.cs-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* Isse image kategi par box ekdam barabar dikhega */
    object-position: center;
}

/* Content Styling */
.tag { background: #3498db; color: white; padding: 6px 15px; border-radius: 5px; font-size: 14px; font-weight: bold; }
.cs-content h3 { font-size: 32px; margin: 20px 0; color: #2c3e50; }
.cs-content p { color: #666; line-height: 1.8; font-size: 17px; margin-bottom: 25px; }
.cs-details { display: flex; gap: 30px; margin-bottom: 30px; padding: 15px 0; border-top: 1px solid #eee; }

.view-btn { 
    display: inline-block; 
    padding: 12px 30px; 
    border: 2px solid #3498db; 
    color: #3498db; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    transition: 0.3s; 
}
.view-btn:hover { background: #3498db; color: white; }

/* --- 3. PROCESS SECTION --- */
.our-process { padding: 100px 8%; background: #f9f9f9; text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; margin-top: 50px; }
.p-card { background: white; padding: 50px 30px; border-radius: 15px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.p-card span { font-size: 45px; font-weight: 900; color: rgba(52, 152, 219, 0.2); display: block; margin-bottom: 10px; }

/* --- 4. BOTTOM CTA --- */
.bottom-cta { background: #3498db; color: white; padding: 100px 8%; text-align: center; }
.bottom-cta h2 { font-size: 40px; margin-bottom: 20px; }

/* --- RESPONSIVE FIX --- */

   
@media (max-width: 992px) {
         /* 1. Hero ki side padding fix */
    .projects-hero { padding: 100px 5% 60px; }

    /* 2. Description ko chipakne se rokne ke liye */
    .hero-inner p { padding: 0 15px; }

    /* 3. Numbers (Stats) ko wrap aur space dene ke liye */
    .hero-stats { flex-wrap: wrap; gap: 20px; padding: 0 10px; }

    .case-study, .case-study.reversed { grid-template-columns: 1fr; direction: ltr; gap: 40px; }
    .cs-image { height: 300px; }
    .hero-inner h1 { font-size: 2.5rem; }
}


/*--footer section starts--*/

/* --- FOUNTENA FOOTER STYLING --- */
.fountena-footer {
    background-color: #2c3e50; /* Same as Header */
    color: #ffffff;
    padding: 70px 0 20px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* desktop par 4 columns ko pakka ek line mein rakhne ke liye */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px; /* Gap thoda kam kiya hai taaki jagah ban sake */
    padding: 0 4%;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-box h3 {
    font-size: 20px;
    margin-bottom: 25px;
    position: relative;
    color: #3498db; /* Bright Blue Accent */
}

/* Heading ke niche choti line */
.footer-box h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 2px;
    background: #3498db;
}

.footer-box p {
    line-height: 1.8;
    color: #bdc3c7;
    font-size: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.footer-links li a i {
    font-size: 12px;
    margin-right: 10px;
    color: #3498db;
}

.footer-links li a:hover {
    color: #ffffff;
    transform: translateX(8px); /* Hover effect */
}

/* Social Media Icons */
.social-media {
    margin-top: 25px;
}

.social-media a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: #34495e;
    color: white;
    margin-right: 12px;
    border-radius: 50%;
    transition: 0.3s;
    text-decoration: none;
}


.social-media a:hover {
    background: #3498db;
    transform: translateY(-5px);
}

/* Contact Details Icons */
.contact-box p i {
    margin-right: 12px;
    color: #3498db;
    width: 20px;
}

/* Copyright Section */
.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding: 25px 0;
    border-top: 1px solid #34495e;
}

.footer-bottom p {
    font-size: 15px;
    color: #bdc3c7;
}

.footer-bottom span {
    color: #ffffff;
    font-weight: 600;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media screen and (max-width: 992px) {
    .footer-wrapper {
        grid-template-columns: repeat(2, 1fr); /* Tablet pe 2 columns */
    }
}

@media screen and (max-width: 600px) {
    .footer-wrapper {
        grid-template-columns: 1fr; /* Mobile pe 1 column */
        text-align: center;
    }
    
    .footer-box h3::after {
        left: 50%;
        transform: translateX(-50%); /* Line center mein */
    }

    .footer-links li a {
        justify-content: center;
    }

    .footer-links li a:hover {
        transform: none; /* Mobile pe shift effect band */
    }
}

