@import url('https://fonts.cdnfonts.com/css/sf-pro-display');

/* ========================================================= */
/* 0. BASE STYLES & UTILITIES */
/* ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --secondary: #06B6D4;
    --bg-light: #ffffff;
    --bg-dark: #0F172A;
    --text-light: #1E293B;
    --text-dark: #F1F5F9;
    --border-light: #E2E8F0;
    --border-dark: #334155;
    --accent-gradient: linear-gradient(135deg, #06B6D4 0%, #4F46E5 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'San Francisco', 'SF Pro Display', -apple-system, BlinkMacMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

/* Optional: Prevents background scrolling when mobile menu is open (requires JS to toggle class) */
body.menu-open {
    overflow: hidden; 
}

/* Global helper for text alignment */
.text-center {
    text-align: center;
}

.section-intro.text-center {
    margin-left: auto;
    margin-right: auto;
}

/* Headings Bold (San Francisco Font Style) */
h1, h2, h3, h4, strong, .btn, .brand h1 {
    font-weight: 700;
}

body.light {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    color: var(--text-light);
}

body.dark {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    color: var(--text-dark);
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--secondary);
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}


/* ========================================================= */
/* 1. HEADER & NAVIGATION STYLES (STICKY GLASS CARD) */
/* ========================================================= */

header {
    /* STICKY BEHAVIOR */
    position: fixed; 
    top: 1.5rem; 
    z-index: 100;
    
    /* === FIX 1: DESKTOP/WIDE SCREEN CENTERING === */
    max-width: 1200px;
    
    /* left/right 0 और auto margin सेंटरिंग सुनिश्चित करते हैं */
    left: 0;
    right: 0;
    margin-left: auto; 
    margin-right: auto; 

    /* यह सुनिश्चित करता है कि 1200px से कम चौड़ाई पर 1.5rem का साइड मार्जिन रहे */
    width: calc(100% - 3rem); 
    /* =========================================== */

    /* GLASS MORPHISM & CURVED EDGES (बाकी सब वही रहेगा) */
    border-radius: 25px;
    
    /* Apply Glass Effect Directly to Header */
    background: rgba(255, 255, 255, 0.1); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    
    /* Layout */
    padding: 1.5rem 2rem; /* Inner spacing */
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* Dark Mode specific glass effect */
body.dark header {
    background: rgba(30, 41, 59, 0.3); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* --- LOGO IMAGE STYLING --- */
.logo {
    width: auto; 
    height: auto;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none; 
    box-shadow: none; 
}

.logo img {
    width: 200px;
    height: 50px;
    object-fit: contain; 
    border-radius: 12px;
    box-shadow: none; 
    animation: none;
}
/* --- END LOGO IMAGE STYLING --- */


.brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand p {
    font-size: 0.75rem;
    opacity: 0.7;
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav a {
    color: inherit;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color 0.35s;
}

nav a:hover {
    color: var(--primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

/* NEW CONTAINER FOR TOGGLE BUTTONS */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    padding: 0.5rem;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s;
    color: inherit; 
    z-index: 110; 
}

body.dark .theme-toggle {
    border-color: var(--border-dark);
    background: rgba(0, 0, 0, 0.2);
}

.theme-toggle:hover {
    transform: rotate(180deg);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem; 
    position: relative;
    z-index: 1;
    /* NEW: Pushes content down to clear the fixed header + its top margin (1.5rem) */
    padding-top: calc(1.5rem + 80px + 3rem); /* Approx 128px or 8rem */
}

/* ========================================================= */
/* --- HAMBURGER TOGGLE STYLES --- */
/* ========================================================= */

.hamburger-toggle {
    display: none; /* Hidden by default (desktop) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101; 
    position: relative;
    width: 40px;
    height: 40px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 6px 0;
    background-color: var(--text-light); /* Light mode color */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

body.dark .bar {
    background-color: var(--text-dark); /* Dark mode color */
}

/* Hamburger transition to close (X) icon */
.hamburger-toggle.is-active .bar:nth-child(2) {
    opacity: 0; /* Middle bar fades out */
}
.hamburger-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg); /* Top bar rotates */
}
.hamburger-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg); /* Bottom bar rotates */
}


/* ========================================================= */
/* 2. SHARED SECTION STYLES (Hero, Titles, Buttons) */
/* ... (Keep your existing styles for sections 2-10 here) ... */
/* ========================================================= */

section {
    margin-bottom: 5rem;
}

h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-intro {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 700px;
}

/* --- Hero Section Styles --- */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    padding: 0.9rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    font-weight: 700;
    /* Added base border for secondary button styling */
    border: 2px solid transparent; 
}

/* --- PRIMARY BUTTON STYLING (Default State) --- */
.btn-primary {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--primary); 
}

/* Dark Mode Primary: Adjust border for consistency */
body.dark .btn-primary {
    border-color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(79, 70, 229, 0.5);
}

/* --- SECONDARY BUTTON STYLING (Default State) --- */

.btn-secondary {
    /* Light Mode Default */
    background: var(--bg-light);
    color: var(--primary); /* Primary text color for contrast */
    border-color: var(--border-light);
}

body.dark .btn-secondary {
    /* Dark Mode Default */
    background: var(--bg-light);
    color: var(--text-light); /* Light text color for contrast */
    border-color: var(--border-dark);
}

.btn-secondary:hover {
    /* Hover effect is kept as you defined it (changes to solid primary color) */
    background: #4ac4cf9b;
    color: rgb(255, 255, 255);
    border-color: var(--primary);
}

/* Hero Stats Grid Styles */
.hero-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.hero-stat-item strong {
    font-weight: 700;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    animation: fadeInUp 0.8s ease-out 0.3s both;
    /* FIX: Contain the large, blurred .glow-effect */
    overflow: hidden; 
    border-radius: 24px; 
}

.mockup-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10; 
}

body.dark .mockup-card {
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.mockup-image-placeholder {
    background: linear-gradient(135deg, #E0F2FE 0%, #EEF2FF 100%);
    height: 250px;
    border-radius: 16px;
}

.mockup-caption {
    margin-top: 1rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

.mockup-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(79, 70, 229, 0.1), transparent);
    animation: rotate 8s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-gradient);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    right: -100px;
    bottom: -100px;
    animation: glow 4s ease-in-out infinite;
    z-index: 1; 
}

@keyframes glow {
    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}


/* ========================================================= */
/* 3. SERVICES & PROCESS SECTION (Cleaned & Unified) */
/* ========================================================= */


/* ========================================================= */
/* SERVICES — IMAGE CARD STYLE (INDEX PAGE ONLY) */
/* ========================================================= */

.services-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}

/* Card container */
.service-image-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Image wrapper — CLEAN, NO SHADOW */
.service-image-wrapper {
    width: 100%;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;

    background: linear-gradient(135deg, #e0f2fe, #eef2ff);
    border: 1px solid rgba(255,255,255,0.25);

    /* ❌ shadow removed */
    box-shadow: none;

    transition: transform 0.45s ease;
}

/* Image — fixed & perfect fit */
.service-image-wrapper img {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.6s ease;
}

/* Hover — image comes forward (NO SHADOW) */
.service-image-card:hover .service-image-wrapper {
    transform: translateY(-6px);
}

.service-image-card:hover img {
    transform: scale(1.08);
}

/* Title */
.service-image-title {
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    margin-top: 0.6rem;

    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark mode — clean glass look */
body.dark .service-image-wrapper {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.15);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .service-image-wrapper {
        height: 180px;
    }
}

/* ========================================================= */
/* GENERIC SERVICES GRID (Used by Process Section) */
/* ========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Process Grid override — clean 4-column behavior */
.process-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Standard service / process card */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s ease;
    cursor: pointer;
}

body.dark .service-card {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--border-dark);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
    border-color: var(--primary);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;

    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================================= */
/* 4. PORTFOLIO SECTION */
/* ========================================================= */

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.portfolio-filter {
    font-size: 0.9rem;
    opacity: 0.6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
    border: 1px solid var(--border-light);
    cursor: pointer;
    /* FIX: Add a base z-index so hover state can elevate it */
    z-index: 1; 
}

body.dark .project-card {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--border-dark);
}

.project-card:hover {
/* FIX 1: Ensures the card hovers above its neighbors */
    z-index: 10; 
    
    /* FIX 2: Slightly increase the vertical offset to show the shadow on top,
              and apply the glow specific to the hover effect. */
    transform: scale(1.03) translateY(-5px); /* Increased scale slightly */
    box-shadow: 0 0 40px 0 rgba(79, 70, 229, 0.2); /* Stronger glow, spread outward (0 horizontal, 0 vertical) */
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #E0F2FE 0%, #EEF2FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover .project-image::before {
    opacity: 0.2;
}

.project-info {
    padding: 1.5rem;
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.project-description {
    opacity: 0.7;
    font-size: 0.95rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
}

.project-category {
    opacity: 0.6;
}

.project-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}


/* ========================================================= */
/* 5. TESTIMONIALS SLIDER (Continuous News-Ticker Style) */
/* ========================================================= */

.testimonials-section {
    /* FINAL FIX: Ensure background is transparent in both modes 
       so it always shows the <body> gradient. */
    background: transparent; 
    padding: 4rem 2rem;
    padding-left: 2rem; 
    padding-right: 2rem;
    color: var(--text-light); /* Light mode default text color */
}

body.dark .testimonials-section {
    /* DARK MODE BACKGROUND (Matches body background) */
    background: transparent;
    color: var(--text-dark);
}

/* --- Core Slider Layout --- */
.slider-container {
    overflow: hidden; 
    max-width: 1200px;
    margin: 0 auto;
    background: transparent; 
    border-radius: 0; 
    padding: 2rem 0;
}

/* REMOVED body.dark .slider-container { ... } */

.slider-track {
    display: flex;
    will-change: transform; 
    gap: 20px; 
    background: transparent;
}

.testimonial-card {
    /* Card Background: Glass Effect */
    background: var(--glass-bg); 
    
    /* FIX: Increase border thickness and use a darker color for visibility */
    /* We use a temporary, slightly darker color to ensure the border is seen 
       against the light background, overriding the potentially too-light glass-border. */
    border: 2px solid rgba(255, 255, 255, 0.5); 
    
    border-radius: 25px; 
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    
    /* Ensure subtle shadow is present */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
}

/* Dark Mode adjustment for border visibility */
body.dark .testimonial-card {
    color: var(--text-dark);
    /* FIX: Dark mode needs a light border color */
    border: 2px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


.testimonial-card:hover {
    transform: translateY(-6px);
    /* Hover Glow for Light Mode */
    box-shadow: 0 0 15px 5px rgba(79, 70, 229, 0.5); 
}

body.dark .testimonial-card:hover {
    /* Hover Glow for Dark Mode */
    box-shadow: 0 0 15px 5px rgba(108, 99, 255, 0.5);
}

.testimonial-card .quote {
    font-style: italic;
    font-size: 1.05rem;
    opacity: 0.9;
    flex-grow: 1;
    margin-bottom: 20px; 
}

.client-info-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto; 
}

.client-photo {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.client-info strong {
    font-size: 1rem;
    color: inherit; 
}
body.dark .client-info strong {
    color: var(--text-dark);
}
.client-info p {
    font-size: 0.85rem;
    color: #a5b4fc;
}


/* ========================================================= */
/* 6. TECH STACK SLIDER (Continuous News-Ticker Style) */
/* ========================================================= */

.tech-stack-section {
    padding: 3rem 0;
}

.tech-slider-container {
    width: 100%; 
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    overflow: hidden;
}

.tech-icons-grid {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start; 
    flex-wrap: nowrap; 
    gap: 2.5rem; 
    margin-top: 3rem;
    padding-left: 1rem; 
}

.tech-icon-item {
    text-align: center;
    padding: 1rem;
    flex-shrink: 0; 
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
}

.tech-icon-item:hover {
    opacity: 1;
    transform: translateY(-5px);
}

.tech-icon {
    width: 45px;
    height: 45px;
    color: var(--primary); 
    margin-bottom: 0.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

body.dark .tech-icon {
    color: var(--secondary);
}

.tech-icon-item p {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0; 
}

.slider-dots { 
    display: none; 
}


/* ========================================================= */
/* 7. INFO BANNERS (CTA) */
/* ========================================================= */

/* Info Banner Section Styles */
.info-banner-section {
    margin-bottom: 5rem;
}

.info-banner-card {
    text-align: center;
}

.info-banner-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.info-banner-text {
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto;
}

.info-banner-btn {
    margin-top: 1rem;
}

/* ========================================================= */
/* 8. CONTACT SECTION */
/* ========================================================= */

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem 0; 
}

.contact-form {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

body.dark .contact-form {
    background: rgba(30, 41, 59, 0.7);
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); */
    border-color: var(--border-dark);
}

.contact-info h3 {
    margin-bottom: 1rem;
}

.contact-intro-text {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: #ffffff; 
    transition: all 0.3s;
    font-family: inherit;
    color: var(--text-light);
}

/* Restricting horizontal resize */
textarea {
    resize: vertical; 
}


body.dark input,
body.dark textarea {
    background: #1e293b; 
    border-color: var(--border-dark);
    color: var(--text-dark);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    padding: 2rem;
    border-radius: 20px;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateX(10px);
}

.info-card.gradient {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.3);
    text-align: center; 
}

.info-card.standard {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
}

body.dark .info-card.standard {
    background: rgba(30, 41, 59, 0.7);
    border-color: var(--border-dark);
}

.contact-detail-card a {
    color: inherit; /* Ensure link color matches the surrounding text */
    text-decoration: none; /* Remove the underline */
    transition: color 0.3s;
}

.contact-detail-card a:hover {
    color: var(--primary); /* Optional: Highlight on hover */
}

.contact-detail-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    background: none; 
    -webkit-text-fill-color: inherit;
    color: var(--text-light); 
}

body.dark .contact-detail-card h4 {
    color: var(--text-dark);
}


/* ========================================================= */
/* 9. ABOUT PAGE SPECIFIC STYLES (Cleaned) */
/* ========================================================= */

.hero-about {
    margin-top: 3rem; 
}

.about-hero-image {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    object-fit: cover;
}

.timeline-grid, .values-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Team Section Layout */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    justify-content: center;
}

.team-card {
    text-align: center;
    cursor: default; 
}

.team-card:hover {
    transform: none; 
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.1); 
    border-color: var(--border-light);
}

body.dark .team-card:hover {
    border-color: var(--border-dark);
}

.team-image-container {
    background: linear-gradient(135deg,#EEF2FF,#E0F2FE);
    padding: 2rem;
    height: auto; 
}

.team-member-photo {
    border-radius: 50%;
    width: 120px;
    height: 120px;
    object-fit: cover;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.team-title {
    opacity: 0.8;
}

.team-description {
    font-size: 0.95rem;
    opacity: 0.7;
}

/* CTA Banner at the end of about.php */
.cta-banner-section {
    margin-top: 5rem;
}

.cta-card {
    text-align: center;
}

.cta-btn {
    margin-top: 1rem;
}


/* ========================================================= */
/* 10. FOOTER STYLES */
/* ========================================================= */

.site-footer {
    /* REMOVED margin-top to fix extra space below content */
    /* REMOVED fixed background/color from here */
    padding-top: 4rem; /* Add padding here if you need top spacing inside the footer */
}

/* Light Mode Footer */
body.light .site-footer {
    /* Uses the light background gradient you have for the body, or a suitable solid color */
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%); 
    color: var(--text-light); /* Dark text for light mode */
    border-top: 1px solid var(--border-light); /* Add a subtle separator */
}

/* Dark Mode Footer */
body.dark .site-footer {
    /* Uses the dark background gradient you have for the body */
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    color: var(--text-dark); /* Light text for dark mode */
    border-top: 1px solid var(--border-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem; /* Adjusted padding-top to 0 as it's now on .site-footer */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.footer-brand .logo {
    /* Keep width/height from the original design but change display */
    width: 200px; /* Width of the actual header logo */
    height: auto;
    background: none; /* Ensure no gradient background remains */
    border-radius: 0;
    display: block; /* Change back to block display */
    margin-bottom: 1rem;
}

/* New style for the logo image itself */
.footer-logo-img {
    width: 100%; /* Fill the 200px width set by .footer-brand .logo */
    height: auto;
    object-fit: contain;
}


.footer-brand h4 {
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.footer-links h4, .footer-careers h4, .footer-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul, .footer-careers ul {
    list-style: none;
    padding: 0;
    line-height: 2;
}

.footer-links a, .footer-careers a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-links a:hover, .footer-careers a:hover {
    opacity: 1;
    color: var(--primary);
}


.footer-newsletter p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

/* Updated for light/dark mode theming */
.footer-newsletter input[type="email"] {
    padding: 0.9rem;
    border: none;
    border-radius: 10px;
    outline: none;
    font-family: inherit;
    color: var(--text-light); /* Default dark text */
    background: #ffffff;
}

body.dark .footer-newsletter input[type="email"] {
    color: var(--text-dark); /* Light text for dark mode */
    background: #1e293b; /* Darker background */
}


.footer-newsletter button[type="submit"] {
    padding: 0.9rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.footer-newsletter button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.3);
}


.footer-bottom {
    /* Use dynamic border color */
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

body.dark .footer-bottom {
    /* Ensure border is visible in dark mode */
    border-top: 1px solid var(--border-dark);
}

.footer-bottom a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
}


/* ========================================================= */
/* --- HAMBURGER TOGGLE & CONTROLS STYLES --- */
/* ========================================================= */

.hamburger-toggle {
    display: none; /* Hidden by default (desktop) */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101; 
    position: relative;
    width: 40px;
    height: 40px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 6px 0;
    background-color: var(--text-light); /* Light mode color */
    transition: all 0.3s ease-in-out;
    border-radius: 2px;
}

body.dark .bar {
    background-color: var(--text-dark); /* Dark mode color */
}

/* Hamburger transition to close (X) icon */
.hamburger-toggle.is-active .bar:nth-child(2) {
    opacity: 0; /* Middle bar fades out */
}
.hamburger-toggle.is-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg); /* Top bar rotates */
}
.hamburger-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg); /* Bottom bar rotates */
}


/* ========================================================= */
/* 11. MEDIA QUERIES (FINAL RESPONSIVENESS) */
/* ========================================================= */


/* ========================================================= */
/* INDEX.PHP — Theme-styled "View All" buttons (Services/Projects)
   - Single main comment for index.php area, then mini comments.
   - Drop this block into the end of your style.css (or where index-specific overrides live)
   ========================================================= */

/* --- Layout wrapper for footer buttons in index.php --- */
.section-footer-btn {
    /* center the button and keep spacing consistent with other sections */
    text-align: center;
    margin-top: 1.25rem;
}

/* --- Primary themed "View All" button (used for both services & projects) --- */
/* Mini: visual / hover / focus / dark-mode adjustments */
.view-all-btn {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    text-align: center;
    cursor: pointer;

    /* Theme look */
    background: var(--accent-gradient);
    color: #fff;
    border: 2px solid rgba(79,70,229,0.95);

    /* Elevation */
    box-shadow: 0 10px 30px rgba(79,70,229,0.14);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 150ms ease;
}

/* mini: subtle motion on hover (lift + stronger shadow) */
.view-all-btn:hover,
.view-all-btn:focus {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(79,70,229,0.22);
    outline: none;
}

/* mini: keyboard accessibility focus ring */
.view-all-btn:focus {
    box-shadow: 0 18px 48px rgba(79,70,229,0.18), 0 0 0 6px rgba(79,70,229,0.06);
}

/* mini: small arrow added by pseudo-element so HTML text remains simple */
.view-all-btn::after {
    content: " →";
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 160ms ease;
}

/* mini: arrow animation on hover */
.view-all-btn:hover::after {
    transform: translateX(4px);
}

/* --- Dark mode tweaks for contrast --- */
body.dark .view-all-btn {
    border-color: var(--primary-dark);
    /* in dark mode the gradient still works; increase contrast if necessary */
    box-shadow: 0 12px 36px rgba(108,99,255,0.12);
}

/* --- Optional variant: outline / secondary style if you want a light alternative --- */
.view-all-btn.secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--border-light);
    box-shadow: none;
}
body.dark .view-all-btn.secondary {
    color: var(--text-dark);
    border-color: var(--border-dark);
}

/* --- Responsive tweak: make sure button scales on small screens --- */
@media (max-width: 480px) {
    .view-all-btn {
        padding: 0.65rem 1rem;
        font-size: 0.92rem;
    }
}


/* Mobile overrides (Up to 768px) */
@media (max-width: 768px) {

    /* --- General Layout --- */
    main {
        padding: 3rem 1rem; 
        padding-top: 8rem; 
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-section {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        order: -1; 
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero h2 {
        font-size: 2.5rem;
    }
    
    /* --- HEADER SPECIFIC (Mobile Look) --- */
header {
        top: 0.5rem; 
        
        /* === FIX 2A: Header width fix for mobile/scrollbar === */
        left: 1rem; 
        right: 1rem;
        width: calc(100% - 2rem); 
        max-width: none; /* Desktop max-width को ओवरराइड करें */
        /* =================================================== */
        
        padding: 0.7rem 1rem; 
        justify-content: space-between; 
        position: fixed; 
    }
    
    /* 1. Show the Header Controls (ALWAYS VISIBLE) */
.header-controls {
        display: flex !important; /* Force display on the container */
        position: absolute; 
        right: 1rem; 
        top: 50%;
        transform: translateY(-50%);
        z-index: 105; 
        gap: 0.5rem;
    }

    .hamburger-toggle {
        display: block !important; /* IMPORTANT: Force show the hamburger */
    }

    /* 2. Style the Mobile Navigation Menu (Links and Controls move inside the overlay) */
nav#nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(100%); 
        transition: transform 0.4s ease-in-out;
        z-index: 99;
        visibility: hidden; /* Menu बंद होने पर लेआउट से बाहर कर दें */
        transition: transform 0.4s ease-in-out, visibility 0s 0.4s;
        gap: 1.5rem; 
        padding-top: 0;
    }
    
body.dark nav#nav-menu {
        background: rgba(15, 23, 42, 0.98);
    }
    
    nav#nav-menu.is-open {
        transform: translateX(0);
        visibility: visible; /* Menu खुलने पर visible करें */
        transition: transform 0.4s ease-in-out;
    }

    /* 3. Hide nav links when menu is closed, but NOT the controls in the header */
    nav a {
        display: none; 
    }
    
    /* 4. Show links AND header controls inside the menu when menu is open */
   nav#nav-menu.is-open a {
        display: block; 
        font-size: 1.5rem; 
        padding: 0.5rem 0;
    }

/* Remove controls from the main header and place them inside the opened nav overlay */
    nav#nav-menu.is-open .header-controls {
        display: flex !important; 
        position: static; 
        transform: none;
        margin-top: 2rem;
    }
    
    /* SLIDER: Testimonials (Show 1 card) */
    .testimonial-card {
        flex: 0 0 calc(100% - 20px); 
        min-width: 300px; 
    }
    
    /* SLIDER: TECH STACK (Show 3 icons) */
    .tech-icons-grid {
        gap: 15px; 
        padding-left: 1rem;
    }
    .tech-icon-item {
        flex: 0 0 calc(33.33% - 10px);
    }
}

/* Tablet overrides (769px to 1023px) */
@media (min-width: 769px) and (max-width: 1023px) {
    /* Restore padding on medium screens */
    main {
        padding: 3rem 2rem;
padding-top: 9rem;
    }
    
/* --- HEADER SPECIFIC (Tablet Look) --- */
header {
        top: 1rem; 
        
        /* === FIX 3A: Header width fix for tablet/scrollbar === */
        left: 1.5rem; 
        right: 1.5rem;
        width: calc(100% - 3rem); 
        max-width: none; /* Desktop max-width को ओवरराइड करें */
        /* =================================================== */
        
        padding: 1rem 1.5rem;
        justify-content: space-between;
    }

    /* 1. Show the Header Controls (ALWAYS VISIBLE) */
.header-controls {
        display: flex !important; /* Force display on the container */
        position: absolute; 
        right: 1.5rem; 
        top: 50%;
        transform: translateY(-50%);
        z-index: 105; 
        gap: 0.5rem;
    }

    /* 2. Show the Hamburger Button explicitly */
    .hamburger-toggle {
        display: block !important; /* IMPORTANT: Force show the hamburger */
    }

    /* 3. Style the Tablet Navigation Menu (Hidden by default) */
    nav#nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        visibility: hidden; /* Menu बंद होने पर लेआउट से बाहर कर दें */
        transition: transform 0.4s ease-in-out, visibility 0s 0.4s;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 99;
        
        gap: 2rem;
        padding-top: 0;
    }
    
    body.dark nav#nav-menu {
        background: rgba(15, 23, 42, 0.98);
    }
    
    nav#nav-menu.is-open {
transform: translateX(0);
        visibility: visible; /* Menu खुलने पर visible करें */
        transition: transform 0.4s ease-in-out;    }
    
    /* 4. Hide nav links when menu is closed */
    nav a {
        display: none; 
    }
    
    /* 5. Show links inside the menu when menu is open */
    nav#nav-menu.is-open a {
        display: block; 
        font-size: 1.6rem;
        padding: 0.5rem 0;
    }

    /* Remove controls from the main header and place them inside the opened nav overlay */
    nav#nav-menu.is-open .header-controls {
        display: flex !important; 
        position: static; 
        transform: none;
        margin-top: 2rem;
    }
    
    /* SLIDER: TESTIMONIALS (Show 2 cards) */
    .testimonial-card {
        flex: 0 0 calc(50% - 10px);
    }
    
    /* SLIDER: TECH STACK (Show 5 icons) */
    .tech-icons-grid {
        gap: 15px; 
    }
    .tech-icon-item {
        flex: 0 0 calc(20% - 12px);
    }
}

/* Desktop overrides (1024px and up) */
@media (min-width: 1024px) {
    /* ... (Keep existing desktop overrides) ... */
    main {
        padding: 3rem 2rem;
        padding-top: calc(1.5rem + 80px + 3rem); 
    }
    /* HEADER SPECIFIC (Desktop Look) */
    header {
        top: 1.5rem; 
        padding: 1.5rem 2rem; 
        
        /* FIX: Use space-between again, which aligns: 
           1. Logo (Left) 
           2. Nav Menu (Right)
           (The hidden .header-controls don't affect space-between now) */
        justify-content: space-between; 
    }
    /* Ensure .header-controls is visible and inline with nav links on desktop */
   .header-controls {
        display: flex; /* Ensure the controls container is visible */
        position: static; /* Reset mobile positioning */
        transform: none;
        z-index: 1;
        gap: 1rem;
        
        /* FIX: Move controls block to the right, next to Nav */
        margin-left: 2rem; 
    }
.testimonial-card {
        flex: 0 0 calc(33.333% - 13.33px); /* Retains original 3-column width */
    }
    /* Hamburger must be hidden on desktop */
    .hamburger-toggle {
        display: none !important;
    }
    
    /* Reset nav to desktop layout */
    nav#nav-menu {
        /* Remove margin-left: auto; we'll wrap the Nav Links and Controls together */
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        
        /* FIX: Push NAV (links only) to the right using auto margin */
        margin-left: auto;
    }

    /* Ensure nav links are visible on desktop */
    nav a {
        display: flex !important; 
    }
}

/* ========================================================= */
/* 12. TEXT HIGHLIGHT & ANIMATED LINKS (Used in About Page) */
/* ========================================================= */

/* Accent text gradient effect */
.highlight {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600; 
}

/* Animated underline link effect (used for inline <a>) */
.link-animated {
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}
.link-animated::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-animated:hover {
  color: var(--primary);
}
.link-animated:hover::after {
  transform: scaleX(1);
}

/* ========================================================= */
/* 13. BLOG PAGE — Apple News Minimal Layout (Envintra Styled) */
/* ========================================================= */

/* Container Layout */
.blog-wrapper {
    max-width: 1300px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.blog-header-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================= */
/* FEATURED POST SECTION */
/* ========================================= */
.featured-card {
    background: var(--bg-light);
    border-radius: 22px;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    transition: 0.3s ease;
}

body.dark .featured-card {
    background: rgba(15,23,42,0.65);
    border-color: var(--border-dark);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.featured-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 50px rgba(79,70,229,0.25);
}

.featured-flex {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.featured-thumb {
    flex: 1 1 48%;
    height: 260px;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.featured-content {
    flex: 1 1 48%;
}

.featured-category {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.featured-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.6rem 0;
    line-height: 1.3;
    cursor: pointer;
    transition: 0.2s;
}

.featured-title:hover {
    color: var(--primary);
}

.featured-excerpt {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.featured-meta {
    font-size: 0.9rem;
    opacity: 0.7;
}

.featured-btn {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    transition: 0.25s;
}

.featured-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ========================================= */
/* RECENT POSTS GRID */
/* ========================================= */

.recent-grid {
    margin-top: 3rem;
}

.recent-grid-title {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.recent-grid-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
    gap: 1.8rem;
}

.post-card {
    background: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border: 1px solid var(--border-light);
    transition: 0.3s;
}

body.dark .post-card {
    background: rgba(15,23,42,0.6);
    border-color: var(--border-dark);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(79,70,229,0.25);
}

.post-thumb {
    height: 180px;
    background-size: cover;
    background-position: center;
}

.post-box {
    padding: 1.2rem 1.5rem;
}

.post-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.2s;
}

body.dark .post-title {
    color: var(--text-dark);
}

.post-title:hover {
    color: var(--primary);
}

.post-excerpt {
    font-size: 0.9rem;
    opacity: 0.75;
    margin: 0.4rem 0 0.8rem;
}

.post-meta {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ========================================= */
/* SIDEBAR */
/* ========================================= */

.blog-sidebar {
    width: 100%;
    margin-top: 3rem;
}

@media(min-width:1024px) {
    .blog-layout {
        display:flex;
        gap:2rem;
        align-items:flex-start;
    }
    .blog-main { width:75%; }
    .blog-sidebar { width:25%; margin-top:0; }
}

/* Sidebar cards */
.sidebar-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.6rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    margin-bottom: 1.8rem;
}

body.dark .sidebar-card {
    background: rgba(15,23,42,0.6);
    border-color: var(--border-dark);
}

/* Sidebar titles */
.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Sidebar search */
.sidebar-search-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
}

body.dark .sidebar-search-input {
    background: rgba(15,23,42,0.8);
    border-color: var(--border-dark);
}

/* Categories list */
.sidebar-categories li a {
    display:flex;
    justify-content:space-between;
    padding: 0.4rem 0;
    font-size: 0.95rem;
    opacity:0.85;
    transition:0.25s;
}

.sidebar-categories li a:hover {
    color: var(--primary);
    opacity: 1;
}

/* ========================================= */
/* PAGINATION */
/* ========================================= */

.blog-pagination {
    display:flex;
    gap:0.6rem;
    justify-content:center;
    margin:3rem 0 1rem;
    flex-wrap:wrap;
}

.page-button {
    padding: 0.55rem 1rem;
    border-radius: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    font-weight: 600;
    transition: 0.25s;
}

body.dark .page-button {
    background: rgba(15,23,42,0.7);
    border-color: var(--border-dark);
    color: var(--text-dark);
}

.page-button:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.page-active {
    background: var(--primary);
    color: #fff;
    pointer-events:none;
}

/* ========================================= */
/* RESPONSIVE TUNING */
/* ========================================= */

@media(max-width:768px){
    .featured-flex{ flex-direction: column; }
    .featured-thumb{ height:220px; }
    .featured-title{ font-size:1.6rem; }
}

/* ========================================================= */
/* 13.x – Sticky Sidebar */
/* ========================================================= */
@media (min-width: 1024px) {
    .blog-layout {
        display: flex;
        gap: 2rem;
        align-items: flex-start; /* REQUIRED for sticky */
    }

    .blog-sidebar {
        position: sticky;
        top: 120px;
        height: fit-content;
        align-self: flex-start;
    }
}

/* ========================================================= */
/* 13.x — Clean Category List */
/* ========================================================= */
.sidebar-categories {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

.sidebar-categories li {
    margin-bottom: 10px;
}

.sidebar-categories li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none !important;
    color: inherit !important;
    opacity: .85;
    font-weight: 500;
    font-size: .95rem;
    padding: 2px 0;
    transition: .25s ease;
}

.sidebar-categories li a:hover {
    opacity: 1;
    transform: translateX(4px);
}

.sidebar-categories li a span {
    opacity: .55;
    font-size: .83rem;
}

.sidebar-categories li::marker {
    content: none !important;
}

/* Active category highlight */
.active-category {
    font-weight: 700 !important;
    opacity: 1 !important;
    color: var(--primary) !important;
}
body.dark .active-category {
    color: var(--secondary) !important;
}

/* ========================================================= */
/* 14. BLOG SINGLE — PREMIUM LAYOUT (Fixed & Polished)       */
/* ========================================================= */

/* Reset & Variables */
:root {
    --primary: #4f46e5; /* Indigo-600 */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-card: #ffffff;
    --border-light: rgba(0,0,0,0.06);
}

body.dark {
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --bg-card: #1e293b;
    --border-light: rgba(255,255,255,0.08);
}

.single-wrapper {
    background: transparent;
    padding-bottom: 4rem;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- HERO SECTION --- */
.single-hero {
    margin: 3rem 0 3.5rem;
}

.single-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.single-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: rgba(79, 70, 229, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive font size */
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
}

.single-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.single-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.author-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

.post-details {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.single-hero-media {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
}

/* --- MAIN GRID LAYOUT --- */
.article-layout {
    display: grid;
    grid-template-columns: 1fr; /* Default mobile */
    gap: 3rem;
    position: relative;
}

@media (min-width: 1024px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr) 300px; /* Sidebar fixed width */
        align-items: start;
    }
    
    .article-sidebar {
        position: sticky;
        top: 100px; /* Stick to top on scroll */
    }
}

/* --- CONTENT BODY --- */
.article-body {
    font-size: 1.125rem; /* 18px */
    line-height: 1.85;
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif; /* Ensure clean font */
}

.article-body p {
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

.article-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

/* Modern Blockquote */
.article-body blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--text-main);
}

/* Code Blocks */
.article-body pre {
    background: #0f172a;
    color: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    position: relative; /* For copy button */
    margin: 2rem 0;
}

.code-copy {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.code-copy:hover { background: rgba(255,255,255,0.2); }

/* --- SIDEBAR --- */
.toc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.8rem;
}

.toc-list a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* --- RELATED POSTS --- */
.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background 0.2s;
    color: var(--text-main);
}

.related-card:hover {
    background: var(--border-light);
}

.related-thumb {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.related-title {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}

/* --- MOBILE ADJUSTMENTS --- */
@media (max-width: 768px) {
    .single-hero-media { height: 250px; }
    .single-title { font-size: 2.2rem; }
    .article-body { font-size: 1.05rem; }
}

/* ============================
   PORTFOLIO LIST PAGE
============================ */

.portfolio-hero {
    padding: 3rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.portfolio-heading {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.portfolio-subtitle {
    color: var(--text-muted);
    margin-top: .3rem;
}

.portfolio-search {
    display: flex;
    gap: .5rem;
}
.portfolio-search input {
    padding: .6rem .8rem;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.08);
}
.portfolio-search button {
    padding: .6rem 1rem;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    border: none;
}

.portfolio-filters {
    margin-bottom: 1rem;
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.filter-tag {
    padding: .4rem .8rem;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    font-size: .85rem;
    text-decoration: none;
    color: inherit;
}
.filter-tag.active {
    background: linear-gradient(90deg,#7c3aed,#06b6d4);
    color: #fff;
    border: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 1.4rem;
}
.portfolio-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
    transition: .25s;
}
.portfolio-card:hover {
    transform: translateY(-5px);
}
.portfolio-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.portfolio-info {
    padding: 1rem;
}
.portfolio-category {
    font-size: .85rem;
    opacity: .7;
}
.portfolio-empty {
    grid-column: 1/-1;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 12px;
    text-align: center;
}

/* ============================================================
   PORTFOLIO SINGLE PAGE — PREMIUM APPLE STYLE (Envintra)
   ============================================================ */

.portfolio-single-wrapper {
    max-width: 1150px;
    margin: 0 auto;
    padding: 1rem 1.25rem 0.5rem;
}

/* =================== */
/* HERO SECTION */
/* =================== */
.ps-hero {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.ps-hero-left {
    flex: 1 1 420px;
}

.ps-category {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0,0,0,0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

body.dark .ps-category {
    background: rgba(255,255,255,0.08);
}

.ps-title {
    margin: 1rem 0;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.ps-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 90%;
}

.ps-cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.9rem 1.4rem;
    border-radius: 14px;
    background: var(--primary);
    color: #fff !important;
    font-weight: 600;
    transition: 0.25s ease;
    box-shadow: 0 8px 20px rgba(79,70,229,0.25);
}

.ps-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(79,70,229,0.35);
}

/* Right Hero Banner */
.ps-hero-right {
    flex: 1 1 420px;
    position: relative;
}

.ps-banner {
    width: 100%;
    height: 340px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.18);
    position: relative;
}

.ps-banner-overlay {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.1), rgba(0,0,0,0.15));
    pointer-events: none;
}

body.dark .ps-banner-overlay {
    background: linear-gradient(to bottom right, rgba(0,0,0,0.4), rgba(0,0,0,0.65));
}

@media(max-width: 768px) {
    .ps-banner { height: 230px; }
    .ps-title { font-size: 2.1rem; }
}


/* =============================== */
/* STRIPE-STYLE INFO CARDS */
/* =============================== */
.ps-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin: 2rem 0 4rem;
}

.ps-card {
    background: var(--bg-card);
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--border-light);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: 0.25s ease;
}

body.dark .ps-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.ps-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.ps-card h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    opacity: 0.8;
}

.ps-card p {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    opacity: 0.9;
}


/* =============================== */
/* OVERVIEW SECTION */
/* =============================== */
.ps-overview h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ps-overview-text {
    font-size: 1.1rem;
    line-height: 1.75;
    opacity: 0.95;
}


/* =============================== */
/* PROCESS STEPS (VERTICAL) */
/* =============================== */
.ps-process {
    margin: 4rem 0;
}

.ps-process h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.ps-step {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
}

.ps-step-num {
    width: 38px;
    height: 38px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.ps-step-content h4 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.ps-step-content p {
    margin: 0;
    opacity: 0.85;
}


/* =============================== */
/* GALLERY GRID */
/* =============================== */
.ps-gallery {
    margin: 4rem 0;
}

.ps-gallery h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ps-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.ps-gallery-grid img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transition: 0.25s ease;
}

.ps-gallery-grid img:hover {
    transform: scale(1.03);
}


/* =============================== */
/* TECH STACK */
/* =============================== */
.ps-tech {
    margin: 4rem 0;
}

.ps-tech h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.ps-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ps-tech-badges span {
    padding: 0.45rem 0.85rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
}

body.dark .ps-tech-badges span {
    background: rgba(255,255,255,0.06);
}


/* =============================== */
/* PREV / NEXT NAVIGATION */
/* =============================== */
.ps-nav {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.ps-nav-card {
    flex: 1 1 260px;
    padding: 1.2rem;
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: 0.25s;
    text-decoration: none !important;
    color: inherit !important;
}

body.dark .ps-nav-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}

.ps-nav-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.15);
}

.ps-nav-card small {
    opacity: 0.7;
}

.ps-nav-card h4 {
    margin-top: 0.35rem;
    font-size: 1.1rem;
    font-weight: 700;
}

.ps-disabled {
    opacity: 0.4;
}

/* ============================================================
   PORTFOLIO BREADCRUMBS
   ============================================================ */

.ps-breadcrumbs {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.85;
}

.ps-breadcrumbs a {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
    transition: 0.2s ease;
}

.ps-breadcrumbs a:hover {
    color: var(--primary);
}

.ps-breadcrumbs span {
    opacity: 0.6;
}

.ps-breadcrumbs .current {
    font-weight: 700;
    opacity: 1;
    cursor: default;
}

body.dark .ps-breadcrumbs a {
    color: #ddd;
}


/* ================================ */
/* SERVICES — SIMPLE CLEAN DESIGN   */
/* ================================ */

.services-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3.5rem 1.25rem;
}

.services-hero {
    text-align: center;
    margin-bottom: 2.5rem;
}

.services-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-light);
}

body.dark .services-title {
    color: var(--text-dark);
}

.services-subtitle {
    font-size: 1rem;
    opacity: .8;
    max-width: 660px;
    margin: 0 auto;
    color: var(--text-light);
}

body.dark .services-subtitle {
    color: var(--text-dark);
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

/* CARD — simple clean */
.service-card {
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    padding: 1.5rem;
    background: var(--bg-light);
    color: var(--text-light);
    text-decoration: none;
}

body.dark .service-card {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.12);
    color: var(--text-dark);
}

.service-card:hover {
    background: rgba(0,0,0,0.04);
}

body.dark .service-card:hover {
    background: rgba(255,255,255,0.08);
}

/* ICON */
.service-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 1rem;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* TITLE */
.service-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .6rem;
}

/* DESCRIPTION */
.service-desc {
    font-size: .9rem;
    opacity: .9;
    line-height: 1.5;
    margin-bottom: 1rem;
}

/* FEATURES */
.service-features {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
    font-size: .88rem;
    opacity: .9;
    line-height: 1.45;
}

.service-features li {
    margin-bottom: .3rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .services-wrapper {
        padding: 2.2rem 1rem;
    }
    .service-card {
        padding: 1.2rem;
    }
}


/* =============================== */
/* SERVICE CONTAINER               */
/* =============================== */

.service-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3.5rem 1rem;
}

/* =============================== */
/* HERO — LEFT TEXT + RIGHT IMG    */
/* =============================== */

.service-hero-split {
    margin-bottom: 3.5rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-split-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.hero-split-left {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.hero-icon-wrap {
    width: 60px;
    height: 60px;
}

.hero-icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-split-left h1 {
    font-size: 2.2rem;
    font-weight: 800;
}

.hero-short {
    font-size: 0.98rem;
    max-width: 650px;
    line-height: 1.6;
    opacity: 0.88;
}

/* Right Illustration */
.hero-split-right img {
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    opacity: 0.92;
}

/* =============================== */
/* 2-COLUMN KEY FEATURES           */
/* =============================== */

.feature-split {
    display: grid;
    grid-template-columns: 1fr 0.7fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.feature-left .service-features li {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

/* Right box */
.feature-right {
    padding: 1.2rem;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
}

.feature-right h3 {
    font-size: 1.2rem;
    margin-bottom: 0.7rem;
}

.feature-right ul {
    padding-left: 1.2rem;
    list-style: disc;
}

.feature-right li {
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    opacity: 0.85;
}

/* =============================== */
/* RELATED SERVICES                */
/* =============================== */

.related-services {
    margin-bottom: 3.5rem;
}

.related-grid {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.related-card {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    text-align: center;
    text-decoration: none;
    color: inherit;
    background: rgba(255,255,255,0.05);
}

.related-card img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.7rem;
}

.related-card h4 {
    font-size: 0.95rem;
    margin-top: 0.4rem;
}


/* =============================== */
/* PROJECT EXAMPLES (FIXED FINAL)  */
/* =============================== */

.service-projects {
    margin: 3.5rem 0;
}

.section-heading {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 1.5rem !important;
    width: 100%;
}

/* Card container */
.project-card {
    display: block;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none !important;
    color: var(--text-light) !important;
}

/* Dark mode fix */
body.dark .project-card {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    color: var(--text-dark) !important;
}

/* Hover */
.project-card:hover {
    background: rgba(255,255,255,0.10);
}

/* Thumbnail */
.project-thumb img {
    width: 100% !important;
    height: 160px !important;
    object-fit: cover !important;
    display: block;
}

/* Info */
.project-info {
    padding: 1rem 1.1rem 1.3rem;
}

.project-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: inherit !important;
}

.project-meta {
    font-size: 0.85rem;
    opacity: 0.75;
    margin-top: 2px;
}



/* =============================== */
/* CTA + WHATSAPP BUTTON           */
/* =============================== */

.service-cta {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2rem;
}

.whatsapp-btn {
    display: inline-block;
    margin-top: 1rem;
    background: #25D366;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    color: #fff;
    font-size: 0.95rem;
    text-decoration: none;
}

.whatsapp-btn:hover {
    background: #1ebe5c;
}

/* CTA form */
.cta-form {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    padding: 1.3rem;
    border-radius: 8px;
}

.cta-btn {
    margin-top: 0.4rem;
    padding: 0.65rem 1.2rem;
    background: #3B82F6;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.cta-btn:hover {
    background: #2563EB;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-split-inner,
    .feature-split,
    .cta-inner {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   INDEX PAGE — UI & SPACING FIXES (FINAL PATCH)
   ========================================================= */

/* ---------------------------------------------------------
   1. HERO → SERVICES
   - Add visual separation
   - Add centered "Services" heading spacing
---------------------------------------------------------- */

/* Ensure space after hero */
.hero {
    margin-bottom: 6rem; /* was visually collapsing */
}

/* Services section wrapper (index page) */
.services-section {
    margin-top: 2rem;
}

/* Centered Services heading */
.services-section > h3,
.services-section .section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}


/* ---------------------------------------------------------
   2. View All Services → Process Section
   - Missing vertical spacing
---------------------------------------------------------- */

.section-footer-btn {
    margin-bottom: 4.5rem; /* creates clear break */
}

/* Extra safety if process follows immediately */
.process-section {
    margin-top: 0;
}


/* ---------------------------------------------------------
   3. PORTFOLIO HEADER FIX
   - Center heading
   - Remove useless filter (All only)
---------------------------------------------------------- */

.portfolio-header {
    justify-content: center;
    text-align: center;
}

/* Kill filter completely */
.portfolio-filter {
    display: none !important;
}


/* ---------------------------------------------------------
   4. CLIENT REVIEWS — UI UPGRADE
   - Better card depth
   - Cleaner glass look
---------------------------------------------------------- */

.testimonial-card {
    border-radius: 22px;
    padding: 2.2rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.testimonial-card .quote {
    font-size: 1.1rem;
    line-height: 1.65;
}

.client-photo {
    border-width: 3px;
}


/* ---------------------------------------------------------
   5. REVIEWS → TECH STACK
   - Reduce excessive gap
---------------------------------------------------------- */

.testimonials-section {
    padding-bottom: 3rem; /* reduced */
}

.tech-stack-section {
    padding-top: 2rem; /* reduced */
}


/* ---------------------------------------------------------
   6. REMOVE "START A PROJECT" CTA SECTION
   - Hide completely (no layout gap)
---------------------------------------------------------- */

.info-banner-section,
.info-banner-card,
.info-banner-btn {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}


/* ---------------------------------------------------------
   MOBILE TUNING (Consistency)
---------------------------------------------------------- */
@media (max-width: 768px) {

    .hero {
        margin-bottom: 4rem;
    }

    .section-footer-btn {
        margin-bottom: 3.5rem;
    }

    .testimonials-section {
        padding-bottom: 2rem;
    }
}


/* =========================================
   SERVICES PAGE — IMAGE FIX
   ========================================= */

.service-thumb {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: #f1f5f9;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.dark .service-thumb {
    background: rgba(255,255,255,0.08);
}
