/* Add this to the top of your existing CSS file */
html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   HEADER & STICKY NAV ENHANCEMENTS
   ========================================================================== */
.main-header {
    background-color: var(--bg-tint);
    padding: 0 8%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Sticky Class added via JS */
.main-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo a {
    display: flex;
    flex-direction: column;
}

.hero-section {
    padding: 120px 8% 80px 8%; /* Added top padding to account for fixed header */
    background-color: var(--bg-tint);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--color-blue-dark);
    cursor: pointer;
}

/* ==========================================================================
   EXPANDED FOOTER DESIGN
   ========================================================================== */
.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 80px 8% 20px 8%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

.footer-text {
    font-size: 14px;
    color: #8a94a6;
    margin-bottom: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255,255,255,0.05);
    color: #fff;
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--brand-gradient);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    color: #8a94a6;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--color-orange);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    border-radius: 4px 0 0 4px;
    outline: none;
}

.newsletter-form button {
    padding: 12px 20px;
    background: var(--brand-gradient);
    border: none;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #8a94a6;
}

/* ==========================================================================
   RESPONSIVE UPDATES
   ========================================================================== */
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}



/* ==========================================================================
   RESET & GLOBAL VARIABLES (Shilvora Branding Palette)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Gradient Colors */
    --color-blue-dark: #123cb5;
    --color-blue-light: #0084ff;
    --color-purple: #7024c4;
    --color-magenta: #e01b6d;
    --color-orange: #ff7300;
    --color-green: #29c770;
    
    /* Functional UI Colors */
    --bg-light: #fdfdfd;
    --bg-dark: #11141a;
    --bg-tint: #fff2ed; /* Kept subtle warm background tint from layout wireframe */
    --text-dark: #22252a;
    --text-muted: #666e7a;
    --font-primary: 'Poppins', sans-serif;
    
    /* Master Button/Accent Gradient */
    --brand-gradient: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-purple) 40%, var(--color-magenta) 75%, var(--color-orange) 100%);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-style: none;
    text-decoration: none;
}

/* Common Layout Components */
.section-tag {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-orange);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.section-tag.center {
    text-align: center;
}

h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 30px;
}

h2.center {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--brand-gradient);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(112, 36, 196, 0.3);
}

/* ==========================================================================
   HERO & NAVBAR
   ========================================================================== */
.hero-section {
    background-color: var(--bg-tint);
    padding: 0 8% 80px 8%;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 32px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--color-orange), var(--color-magenta), var(--color-blue-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-dark);
    margin-top: -4px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-magenta);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 60px;
    gap: 40px;
}

.hero-content {
    max-width: 550px;
}

.hero-content .tagline {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--color-purple);
    margin-bottom: 15px;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-description {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 35px;
}

.hero-image img {
    max-width: 480px;
    height: auto;
    object-fit: contain;
    border-radius: 20px;
}

/* ==========================================================================
   ABOUT US SECTION
   ========================================================================== */
.about-section {
    padding: 100px 8%;
    background-color: #fff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.about-content {
    flex: 1;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* ==========================================================================
   STATISTICS SECTION (Solid Gradient Background block)
   ========================================================================== */
.stats-section {
    background: var(--brand-gradient);
    padding: 60px 8%;
    color: #fff;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 46px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 15px;
    font-weight: 500;
    opacity: 0.9;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-section {
    padding: 100px 8%;
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border-color: var(--color-blue-light);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: var(--bg-tint);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.service-icon i {
    font-size: 22px;
    color: var(--color-magenta);
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.dot {
    width: 25px;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    cursor: pointer;
}

.dot.active {
    background: var(--brand-gradient);
}

/* ==========================================================================
   PORTFOLIO SECTION
   ========================================================================== */
.portfolio-section {
    padding: 100px 8%;
    background-color: #f6f8fb;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.portfolio-item {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.portfolio-img-wrapper {
    background-color: var(--bg-tint);
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.portfolio-img-wrapper img {
    max-width: 85%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.portfolio-item h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    padding-left: 5px;
}

.portfolio-item p {
    font-size: 13px;
    color: var(--text-muted);
    padding-left: 5px;
}

.center-btn-box {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* ==========================================================================
   PROCESS SECTION (Alternating Step Layout Blocks)
   ========================================================================== */
.process-section {
    padding: 100px 8%;
    background-color: #fff;
}

.process-grid-top, .process-grid-bottom {
    display: grid;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-grid-top {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 40px;
}

.process-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 790px; /* Aligns visually center with row above */
}

.process-card {
    background-color: var(--bg-tint);
    padding: 35px 30px;
    border-radius: 12px;
}

.process-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.process-icon i {
    font-size: 26px;
    color: var(--color-purple);
}

.process-number {
    font-size: 32px;
    font-weight: 800;
    opacity: 0.15;
}

.process-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.process-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 100px 8%;
    background-color: #f6f8fb;
}

.contact-container {
    display: flex;
    margin-top: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.contact-info-panel {
    flex: 1;
    background: var(--brand-gradient);
    color: #fff;
    padding: 60px 40px;
}

.contact-info-panel h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 20px;
    margin-top: 4px;
}

.info-item p {
    font-size: 15px;
    opacity: 0.9;
}

.contact-form-panel {
    flex: 2;
    background-color: #fff;
    padding: 60px 50px;
}

.contact-form-panel h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 35px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row input, .form-row textarea {
    flex: 1;
    padding: 14px 20px;
    background-color: #f8f9fa;
    border: 1px solid #eef0f3;
    border-radius: 6px;
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-row input:focus, .form-row textarea:focus {
    border-color: var(--color-blue-light);
}

.form-submit {
    margin-top: 10px;
}

/* ==========================================================================
   CLIENT MARQUEE & FOOTER
   ========================================================================== */
.clients-section {
    padding: 60px 8%;
    background-color: #fff;
    border-bottom: 1px solid #eeecec;
}

.brands-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.brand-logo {
    font-size: 20px;
    font-weight: 700;
    color: #b5bbc4;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 3px;
}

.footer {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 60px 8%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo .logo-main {
    font-size: 28px;
    margin-bottom: 15px;
    display: inline-block;
}

.footer-text {
    font-size: 14px;
    color: #8a94a6;
    max-width: 700px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .about-container, .contact-container {
        flex-direction: column;
    }
    .hero-image img {
        width: 100%;
    }
    .process-grid-top, .process-grid-bottom {
        grid-template-columns: 1fr 1fr;
    }
    .process-grid-bottom {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Can be paired with custom JS for a toggle menu if needed */
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .process-grid-top, .process-grid-bottom {
        grid-template-columns: 1fr;
    }
    .form-row {
        flex-direction: column;
        gap: 20px;
    }
    .stats-container {
        flex-direction: column;
        gap: 30px;
    }
}

/* ==========================================================================
   INNER PAGES (ABOUT US) ADDITIONS
   ========================================================================== */

/* Page Header / Inner Banner */
.page-header {
    padding: 160px 8% 80px 8%;
    background: var(--bg-tint);
    text-align: center;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--color-magenta);
}

.breadcrumb span {
    color: #ccc;
}

.breadcrumb .current {
    color: var(--color-orange);
}

/* Mission & Vision Section */
.mission-vision-section {
    padding: 0 8% 100px 8%;
    background-color: #fff;
}

.mission-vision-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-card {
    background: var(--brand-gradient);
    color: #fff;
    padding: 50px 40px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(112, 36, 196, 0.15);
}

.mv-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.mv-icon i {
    font-size: 28px;
    color: #fff;
}

.mv-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mv-card p {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.7;
}

/* Helper Class for Core Values */
.bg-white {
    background-color: #fff !important;
    border: 1px solid #f0f0f0;
}

/* Responsive adjustments for inner pages */
@media (max-width: 768px) {
    .page-header {
        padding: 130px 8% 60px 8%;
    }
    
    .mission-vision-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SERVICES PAGE CTA BANNER
   ========================================================================== */
.cta-banner {
    padding: 80px 8%;
    background: var(--brand-gradient);
    text-align: center;
    color: #fff;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 36px;
}

.cta-content p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: #fff;
    color: var(--color-blue-dark);
    font-weight: 700;
    font-size: 15px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    color: var(--color-magenta);
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 28px;
    }
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC ADDITIONS
   ========================================================================== */
.map-section {
    line-height: 0; /* Removes any default whitespace below the iframe */
    width: 100%;
    filter: grayscale(20%) contrast(110%); /* Slight visual tweak to make the map match a premium tech theme */
}

.map-section iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.contact-info-panel .info-item div strong {
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
}

@media (max-width: 768px) {
    .map-section iframe {
        height: 300px; /* Shorter map on mobile devices */
    }
}

/* ==========================================================================
   PORTFOLIO PAGE SPECIFIC ADDITIONS (Filters)
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background-color: #f6f8fb;
    color: var(--text-muted);
    border: 1px solid #eef0f3;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    color: var(--color-blue-dark);
    border-color: var(--color-blue-dark);
}

.filter-btn.active {
    background: var(--brand-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(112, 36, 196, 0.2);
}

/* For JavaScript Filtering Animation */
.filter-item {
    transition: all 0.4s ease;
}

.filter-item.hide {
    display: none;
}

/* ==========================================================================
   UPDATED FOOTER BOTTOM (Legal Links with Separators)
   ========================================================================== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px;
    color: #8a94a6;
}

.legal-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.legal-links a {
    color: #8a94a6;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

/* This adds the vertical line | between links, matching your logo style */
.legal-links a:not(:last-child)::after {
    content: "|";
    color: #4a515e; /* A muted grey so it doesn't distract from the links */
    margin: 0 15px; /* Creates even spacing on the left and right of the line */
    font-size: 12px;
    pointer-events: none; /* Prevents the line from being clickable */
}

.legal-links a:hover {
    color: var(--color-orange);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .legal-links {
        justify-content: center;
        gap: 10px 0; /* Adds vertical spacing if they wrap to a second line */
    }
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Terms, Refund, Disclaimer)
   ========================================================================== */
.legal-content-section {
    padding: 80px 8%;
    background-color: #fff;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-dark);
}

.legal-container .last-updated {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.legal-container h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--color-blue-dark);
}

.legal-container p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.legal-container ul {
    margin-left: 20px;
    margin-bottom: 25px;
}

.legal-container ul li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.legal-container ul li strong {
    color: var(--text-dark);
}

.grievance-box {
    background-color: var(--bg-tint);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--color-magenta);
    margin-top: 20px;
}

.grievance-box p {
    margin-bottom: 0;
    color: var(--text-dark);
}