/* ===== Global Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== Header ===== */
header {
    background: #0056b3;
    color: white;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.gem-badge {
    height: 40px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.gem-badge:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    padding: 5px 0;
    position: relative;
}

nav ul li a:hover {
    color: #ffcc00;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ffcc00;
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}

/* ===== Page Header ===== */
.page-header {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 180px 0 120px;
    margin-top: 70px;
    position: relative;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.page-header p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ===== Page Content ===== */
.page-content {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    color: #0056b3;
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ff6600;
    margin: 15px auto 0;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 16px;
    margin: 5px;
    text-align: center;
}

.btn-orange {
    background: #ff6600;
    color: white;
    border: 2px solid #ff6600;
}

.btn-orange:hover {
    background: #e65c00;
    border-color: #e65c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,102,0,0.3);
}

.btn-white {
    background: white;
    color: #0056b3;
    border: 2px solid white;
}

.btn-white:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.3);
}

/* ===== Services Grid ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-box img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.service-box h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 20px;
}

/* ===== Government Highlights ===== */
.gov-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.highlight-box {
    background: #f0f7ff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #d0e3ff;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,86,179,0.1);
}

.highlight-box i {
    font-size: 30px;
    color: #0056b3;
    margin-bottom: 15px;
}

.highlight-box h3 {
    color: #0056b3;
    margin-bottom: 10px;
    font-size: 24px;
}

.highlight-box p {
    color: #666;
    font-size: 14px;
}

/* ===== Brand Logos ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin: 40px 0;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.brand-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Process Steps ===== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    text-align: center;
    position: relative;
    padding-top: 70px;
}

.process-step-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #0056b3;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0,86,179,0.3);
}

.process-step h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 20px;
}

.process-step p {
    color: #666;
}

/* ===== Testimonials ===== */
.testimonials {
    margin: 60px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-box {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-box:before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(0,86,179,0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content {
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-author-info h4 {
    color: #0056b3;
    margin-bottom: 5px;
}

.testimonial-author-info p {
    color: #777;
    font-size: 14px;
}

/* ===== Footer ===== */
footer {
    background: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #ffcc00;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ff6600;
}

.footer-col p {
    margin-bottom: 15px;
    color: #bbb;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
}

.footer-col a:hover {
    color: #ffcc00;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* ===== Hero Badges ===== */
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0056b3;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    nav.show {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 150px 0 90px;
    }
    
    .page-header h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .gem-badge {
        height: 30px;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .logo {
        font-size: 20px;
    }
    
    .page-header {
        padding: 130px 0 70px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* ===== GeM Logo Specific Styles ===== */
.gem-badge {
    height: 50px;
    margin-left: 15px;
    transition: all 0.3s ease;
}

/* Government section flex layout for mobile */
.gov-section-flex {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.gov-section-flex .flex-left {
    text-align: center;
}

.gov-section-flex .gem-portal-img {
    max-width: 280px;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .gem-badge {
        height: 60px;
    }
    
    .gov-section-flex {
        flex-direction: row;
        align-items: center;
    }
    
    .gov-section-flex .flex-left {
        flex: 1;
        text-align: center;
    }
    
    .gov-section-flex .flex-right {
        flex: 2;
    }
    
    .gem-portal-img {
        max-width: 350px;
    }
}

/* Prevent horizontal scrolling on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .gem-badge {
        height: 40px;
        margin-left: 8px;
    }
    
    .page-header {
        padding: 120px 0 60px;
    }
    
    .gov-highlights {
        grid-template-columns: 1fr;
    }
    
    .hero-badges .badge {
        font-size: 12px;
        padding: 8px 15px;
    }
}

/* Government Page Specific */
.hero-gem {
    background: linear-gradient(rgba(0,86,179,0.9), rgba(0,86,179,0.9)), url('images/govt-bg.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 120px 20px;
    color: white;
}

.hero-gem-content {
    max-width: 800px;
    margin: 0 auto;
}

.gem-logo-hero {
    max-width: 300px;
    margin: 0 auto 30px;
}

.govt-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.govt-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    text-align: center;
}

.govt-card:hover {
    transform: translateY(-10px);
}

.govt-card .icon-box {
    font-size: 40px;
    color: #0056b3;
    margin-bottom: 20px;
}

.department-list {
    columns: 2;
    column-gap: 40px;
    margin-top: 30px;
}

.department-group {
    break-inside: avoid;
    margin-bottom: 30px;
}

.department-group h3 {
    color: #0056b3;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.department-group ul {
    list-style: none;
}

.department-group li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-box {
    background: #f0f7ff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #0056b3;
    margin-bottom: 5px;
}

.stat-title {
    color: #666;
    font-size: 16px;
}

.cta-section {
    margin: 60px 0;
}

.cta-box {
    background: #0056b3;
    color: white;
    padding: 50px;
    border-radius: 10px;
    text-align: center;
}

.cta-box h2 {
    margin-bottom: 15px;
}

.cta-box p {
    max-width: 600px;
    margin: 0 auto 25px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hero-gem {
        padding: 80px 20px;
    }
    
    .gem-logo-hero {
        max-width: 200px;
    }
    
    .department-list {
        columns: 1;
    }
    
    .cta-box {
        padding: 30px 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===== Brand Logos ===== */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    margin: 40px 0;
}

.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.brand-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: #0056b3;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    transition: all 0.3s ease;
    /* Remove grayscale filter */
    filter: none;
    opacity: 1;
}

/* Optional: Add slight color boost on hover */
.brand-logo:hover img {
    filter: brightness(1.1);
}

/* Gallery Styles */
.gallery-section {
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}

.gallery-container {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.gallery-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.gallery-item {
    scroll-snap-align: start;
    flex: 0 0 250px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); }
}

.gallery-container.auto-scroll {
    animation: scroll 30s linear infinite;
    width: calc(250px * 10);
}

/* Navigation Arrows */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.gallery-nav button {
    pointer-events: all;
    background: rgba(0,86,179,0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.gallery-nav button:hover {
    background: #0056b3;
}

/* Visitor Counter Styles */
.visitor-counter {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.counter-box {
    background: rgba(255,255,255,0.1);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 150px;
}

.counter-box i {
    font-size: 24px;
    color: #ffcc00;
}

.counter-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.counter-label {
    display: block;
    font-size: 14px;
    color: #ddd;
    margin-top: 5px;
}

@media (max-width: 576px) {
    .visitor-counter {
        gap: 15px;
    }
    
    .counter-box {
        padding: 12px 15px;
        min-width: 120px;
    }
    
    .counter-number {
        font-size: 20px;
    }
}