/* GrowZen - Main Stylesheet
   ========================= */

/* CSS Variables */
:root {
    --primary: #047857;
    /* Dark Emerald */
    --primary-dark: #065F46;
    /* Emerald 800 */
    --secondary: #1E293B;
    --secondary-light: #334155;
    --accent: #0EA5E9;
    --text: #0F172A;
    /* Darker for better contrast */
    --text-light: #475569;
    /* Darker gray for better readability */
    --text-lighter: #64748B;
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-dark: #020617;
    --border: #E2E8F0;
    --success: #22C55E;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    /* Improved line height */
    color: var(--text);
    background: var(--bg);
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 1.25rem;
    color: var(--secondary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin: 0 0 1.5rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    /* Wider container for modern look */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-whatsapp {
    background: #25D366;
    color: #fff;
    gap: 0.75rem;
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo:hover {
    color: var(--secondary);
}

.logo-img {
    height: 48px;
    /* Slightly larger for better visibility */
    width: auto;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(4, 120, 87, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-shape {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
    margin-left: auto;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.15;
    }
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ==================== MODERN HOME PAGE ==================== */

/* Modern Hero */
.hero-modern {
    padding: 140px 0 80px;
    background: var(--bg);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-modern .hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), #0ea5e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-modern .hero-subtitle {
    font-size: 1.0625rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero-modern .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trust-avatars {
    display: flex;
}

.trust-avatars .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: 0.8125rem;
    border: 2px solid var(--bg);
    margin-left: -8px;
}

.trust-avatars .avatar:first-child {
    margin-left: 0;
}

.trust-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

.trust-text strong {
    color: var(--text);
}

/* Hero Image Card */
.hero-image-card {
    background: linear-gradient(145deg, #10b981, #059669);
    /* Soft emerald gradient */
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4/3;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.hero-img-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the area */
    display: block;
}

.hero-growth-bar {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.growth-label {
    color: var(--secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.growth-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.growth-fill {
    width: 0%;
    /* Animate width */
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    animation: growBar 1.5s ease-out forwards 0.5s;
}

@keyframes growBar {
    to {
        width: 85%;
    }
}

.growth-value {
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
}

/* Modern Services */
.services-modern {
    background: var(--bg-soft);
}

.section-header-left {
    text-align: left;
    max-width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.section-header-left .section-title {
    margin-bottom: 0.5rem;
    flex: 1;
    min-width: 300px;
}

.section-header-left .section-subtitle {
    width: 100%;
    order: 3;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.view-all-link .material-icons-round {
    font-size: 18px;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card-modern {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-decoration: none;
    transition: var(--transition);
}

.service-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon-modern {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 120, 87, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
}

.service-icon-modern .material-icons-round {
    font-size: 24px;
    color: var(--primary);
}

.service-card-modern h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.service-card-modern p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Modern Why Choose */
.why-modern {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card-modern {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.feature-icon-modern {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.feature-icon-modern .material-icons-round {
    font-size: 26px;
    color: #fff;
}

.feature-card-modern h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

.feature-card-modern p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}

/* Modern CTA */
.cta-modern {
    background: var(--secondary);
    padding: 60px 0;
    border-radius: 24px;
    margin: 0 1.5rem 60px;
}

.cta-content-modern {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.cta-content-modern h2 {
    color: #fff;
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.cta-content-modern p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Responsive Modern Home */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-modern .hero-content {
        text-align: center;
    }

    .hero-modern .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-modern .hero-buttons {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .services-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-modern {
        padding: 120px 0 60px;
    }

    .services-grid-modern {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cta-modern {
        margin: 0 1rem 40px;
        padding: 40px 1rem;
        border-radius: 16px;
    }

    .section-header-left {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-modern .hero-title {
        font-size: 2rem;
    }
}

/* Sections */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(4, 120, 87, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    display: block;
    padding: 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(4, 120, 87, 0.1), rgba(14, 165, 233, 0.1));
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.service-icon .material-icons-round {
    font-size: 28px;
    color: var(--primary);
}

.service-card h3 {
    color: var(--text);
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==================== MODERN SERVICES PAGE ==================== */

/* Services Hero */
.services-hero {
    padding: 140px 0 80px;
    background: var(--bg);
    text-align: center;
}

.services-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.services-hero>.container>p {
    font-size: 1.0625rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.services-hero .hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Services List */
.services-list {
    background: var(--bg);
}

.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.service-row:last-child {
    border-bottom: none;
}

.service-row.reverse {
    direction: rtl;
}

.service-row.reverse>* {
    direction: ltr;
}

.service-icon-badge {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 120, 87, 0.1);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.service-icon-badge .material-icons-round {
    font-size: 24px;
    color: var(--primary);
}

.service-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.service-desc {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.625rem;
    font-size: 0.9375rem;
    color: var(--text);
}

.service-features .material-icons-round {
    font-size: 18px;
    color: var(--primary);
    margin-top: 2px;
}

.service-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.service-cta-link:hover {
    color: var(--primary);
}

.service-cta-link .material-icons-round {
    font-size: 18px;
}

/* Service Visual */
.service-visual img {
    width: 100%;
    border-radius: var(--radius);
}

.service-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-placeholder .material-icons-round {
    font-size: 80px;
    opacity: 0.3;
}

/* Modern Process Section */
.process-modern {
    background: var(--bg-soft);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.process-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}

.process-card:hover,
.process-card.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.15);
}

.process-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
}

.process-card.active .process-number {
    color: var(--primary);
}

.process-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.process-card p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Responsive Services Page */
@media (max-width: 1024px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .service-row.reverse {
        direction: ltr;
    }

    .service-visual {
        order: -1;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 120px 0 60px;
    }

    .service-row {
        padding: 2.5rem 0;
    }

    .service-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* Why Choose */
.why-section {
    background: var(--bg-soft);
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-features {
    margin-top: 2rem;
}

.why-feature {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.why-feature h4 {
    margin-bottom: 0.25rem;
}

.why-feature p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9375rem;
}

.visual-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.visual-stat {
    text-align: center;
    color: #fff;
}

.big-number {
    display: block;
    font-size: 5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
}

.step-number {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.blog-image {
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    margin-bottom: 0.75rem;
}

.blog-category {
    color: var(--primary);
    font-weight: 600;
}

.blog-date {
    color: var(--text-light);
}

.blog-card h3 {
    margin-bottom: 0.5rem;
}

.blog-card h3 a {
    color: var(--text);
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card>.blog-content>p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary), var(--bg-dark));
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #fff;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Page Hero */
.page-hero {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--bg-soft), var(--bg));
    text-align: center;
}

.page-hero h1 {
    margin-bottom: 0.5rem;
}

.page-hero p {
    color: var(--text-light);
    font-size: 1.125rem;
}

/* Service Pages */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-page-card {
    display: block;
    padding: 3rem 2rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.service-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.service-icon-large .material-icons-round {
    font-size: 36px;
    color: #fff;
}

.service-page-card h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.service-page-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Service Detail */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.content-block {
    margin-bottom: 2.5rem;
}

.content-block h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-cta-box {
    background: var(--bg-soft);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
}

.service-cta-box h3 {
    margin-bottom: 0.5rem;
}

.service-cta-box p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.sidebar-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-card.highlight {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    border: none;
    color: #fff;
}

.sidebar-card.highlight h3 {
    color: #fff;
}

.sidebar-card.highlight p {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.9375rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.sidebar-links a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.sidebar-links .material-icons-round {
    font-size: 20px;
    color: var(--primary);
}

/* Blog Page */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

.blog-grid-page {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    color: var(--text);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

.category-list a:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.category-list .count {
    background: var(--bg-soft);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.page-info {
    color: var(--text-light);
}

/* Blog Single */
.blog-single .blog-hero {
    padding: 150px 0 60px;
    background: linear-gradient(135deg, var(--bg-soft), var(--bg));
}

.blog-single .blog-hero h1 {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.blog-single .blog-meta {
    justify-content: center;
}

.blog-excerpt {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

.blog-featured-image {
    margin-bottom: 3rem;
}

.blog-featured-image img {
    border-radius: var(--radius);
}

.blog-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.prose {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.prose h2 {
    margin-top: 2rem;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.blog-share {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.share-btn.twitter {
    background: #1DA1F2;
    color: #fff;
}

.share-btn.linkedin {
    background: #0A66C2;
    color: #fff;
}

.share-btn.facebook {
    background: #1877F2;
    color: #fff;
}

.related-posts h2 {
    text-align: center;
    margin-bottom: 2rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.about-content h2 {
    margin-top: 2rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.stats-section {
    background: var(--secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 3rem;
    color: var(--primary);
}

.stat-item .stat-label {
    color: rgba(255, 255, 255, 0.8);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.info-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.info-card h3 {
    margin-bottom: 1.5rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-list li {
    display: flex;
    gap: 1rem;
}

.contact-list .material-icons-round {
    color: var(--primary);
    font-size: 24px;
}

.contact-list strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-list a {
    color: var(--text);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: none;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.portfolio-industry {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
}

.portfolio-detail {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
}

.portfolio-main {
    color: var(--text);
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-details li {
    display: flex;
    gap: 0.5rem;
}

.project-details strong {
    min-width: 80px;
}

/* Error Page */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.error-content {
    text-align: center;
}

.error-code {
    display: block;
    font-size: 8rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.error-content h1 {
    margin-bottom: 1rem;
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.site-footer {
    background: var(--bg);
    color: var(--text);
    padding: 60px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--secondary);
}

.footer-brand>p {
    max-width: 300px;
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-soft);
    border-radius: 50%;
    color: var(--text);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.footer-contact .material-icons-round {
    color: var(--primary);
    font-size: 20px;
}

.footer-contact a {
    color: var(--text-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    color: #15803d;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state .material-icons-round {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .why-grid,
    .service-layout,
    .portfolio-detail {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-layout,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        display: none;
    }

    .main-nav.active {
        display: flex;
    }

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 3rem;
    }

    .footer-brand {
        margin: 0;
    }

    .social-links {
        justify-content: flex-start;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== MODERN ABOUT PAGE ==================== */

/* Page Hero (Standardized Green Hero) */
.page-hero,
.about-hero {
    /* Keeping about-hero for backward compat inside specific component styles if any */
    background: linear-gradient(135deg, #0a2e1a 0%, #1a4a2e 50%, #0d3d20 100%);
    display: flex;
    /* Use Flexbox for vertical centering */
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    /* Ensure substantial height */
    padding: 100px 0 60px;
    /* Increased top padding (90 -> 100) */
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-hero::before,
.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(46,213,115,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(46,213,115,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(46,213,115,0.1)"/></svg>');
    opacity: 0.5;
}

.page-hero .container,
.about-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1,
.about-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.page-hero p,
.about-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Hero Button Variants for Dark Background */
.btn-outline-white {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.btn-outline-white:hover {
    background: #fff;
    color: var(--primary-dark);
    border-color: #fff;
}

/* Specific Adjustments */
.text-gradient-light {
    background: linear-gradient(135deg, #fff, #a7f3d0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fix lint */
}

/* Center buttons in Page Hero */
.page-hero .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.service-icon-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.service-icon-hero .material-icons-round {
    font-size: 40px;
    color: #fff;
}

/* About Hero */
.about-hero {
    /* Styles are now shared above */
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="1" fill="rgba(46,213,115,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(46,213,115,0.08)"/><circle cx="40" cy="80" r="1" fill="rgba(46,213,115,0.1)"/></svg>');
    opacity: 0.5;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.about-hero p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* About Journey Section */
.about-journey {
    padding: 80px 0;
    background: var(--bg);
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.journey-content .section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.journey-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.journey-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.journey-visual {
    position: relative;
}

.journey-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.journey-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.journey-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clients-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(4, 120, 87, 0.3);
}

.clients-badge .badge-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.clients-badge .badge-text {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Values Section */
.values-section {
    background: var(--bg-soft);
    padding: 80px 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--bg);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: rgba(4, 120, 87, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon .material-icons-round {
    font-size: 28px;
    color: var(--primary);
}

.value-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Mission & Vision */
.mission-vision {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a2e1a 0%, #1a4a2e 100%);
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mv-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
}

.mv-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mv-icon .material-icons-round {
    font-size: 24px;
    color: #fff;
}

.mv-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.mv-card p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    text-align: center;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.25rem;
    border: 4px solid var(--bg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.member-role {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Page Responsive */
@media (max-width: 1024px) {
    .journey-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .journey-visual {
        order: -1;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: 80px 0 60px;
    }

    .about-hero h1 {
        font-size: 2.25rem;
    }

    .journey-content h2 {
        font-size: 1.75rem;
    }

    .values-grid,
    .mv-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .member-photo {
        width: 120px;
        height: 120px;
    }
}

/* ==================== MODERN BLOG PAGE ==================== */

/* Blog Header */
.blog-header {
    background: var(--bg-soft);
    padding: 100px 0 60px;
    text-align: center;
}

.blog-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.blog-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background: #E8F5E9;
    color: var(--primary-dark);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Blog Layout */
.blog-section {
    padding: 60px 0;
}

.blog-layout-modern {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 3rem;
}

.section-label {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label .material-icons-round {
    color: var(--primary);
    font-size: 20px;
}

/* Featured Insights */
.featured-insights {
    margin-bottom: 4rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.featured-image {
    min-height: 350px;
    position: relative;
    background: linear-gradient(135deg, #e0f2f1, #b2dfdb);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.featured-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.badge-latest {
    background: var(--primary);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-tag {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.featured-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.featured-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.author-avatar {
    width: 32px;
    height: 32px;
    background: #e2e8f0;
    border-radius: 50%;
}

.read-full {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
}

.read-full:hover {
    gap: 0.5rem;
}

.read-full .material-icons-round {
    font-size: 18px;
}

/* Articles Grid */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.article-card {
    background: var(--bg);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 1.5rem;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
}

.article-date {
    color: var(--text-lighter);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-content h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-content h4 a {
    color: var(--text);
    text-decoration: none;
    transition: var(--transition);
}

.article-content h4 a:hover {
    color: var(--primary);
}

.article-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.8125rem;
    text-decoration: none;
}

/* Sidebar Modern */
.blog-sidebar-modern {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.sidebar-widget h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.search-box {
    position: relative;
}

.search-box .material-icons-round {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-lighter);
    font-size: 20px;
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.1);
}

.newsletter-widget {
    background: var(--primary);
    padding: 2rem;
    border-radius: 16px;
    color: #fff;
}

.newsletter-widget h4 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.newsletter-widget p {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.newsletter-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.btn-dark {
    background: var(--bg-dark);
    color: #fff;
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-dark:hover {
    background: #000;
}

.newsletter-widget small {
    display: block;
    margin-top: 1rem;
    font-size: 0.6875rem;
    opacity: 0.8;
    text-align: center;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories-list li {
    margin-bottom: 0.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9375rem;
    transition: var(--transition);
}

.categories-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(5px);
}

.categories-list .count {
    background: var(--bg-soft);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.cta-widget {
    background: var(--bg-dark);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

.cta-widget .cta-label {
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

.cta-widget h4 {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: normal;
}

/* Pagination Modern */
.pagination-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.page-arrow,
.page-num {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.page-num.active,
.page-num:hover,
.page-arrow:hover {
    background: var(--secondary);
    color: #fff;
    border-color: var(--secondary);
}

/* Blog Page Responsive */
@media (max-width: 1024px) {
    .blog-layout-modern {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-modern {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header h1 {
        font-size: 2.25rem;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 250px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .blog-sidebar-modern {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==================== MODERN PORTFOLIO PAGE ==================== */

/* Portfolio Hero */
.portfolio-hero {
    background: #fff;
    padding: 100px 0 60px;
}

.portfolio-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.portfolio-hero .text-primary {
    color: var(--primary);
}

.portfolio-hero p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 600px;
    margin-bottom: 3rem;
}

.portfolio-filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.portfolio-filters .filter-btn {
    background: #fff;
    border: 1px solid var(--border);
    color: var(--text);
    padding: 0.625rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.portfolio-filters .filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.portfolio-filters .filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Portfolio Grid */
.portfolio-section {
    padding: 60px 0 100px;
    background: var(--bg-soft);
}

.portfolio-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 260px;
    background: #f1f5f9;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-image img {
    transform: scale(1.08);

}

.placeholder-project {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e2e8f0;
    color: #94a3b8;
}

.placeholder-project.bg-1 {
    background: #E9ECEF;
}

.placeholder-project.bg-2 {
    background: #DEE2E6;
}

.placeholder-project.bg-3 {
    background: #CED4DA;
}

.placeholder-project .material-icons-round {
    font-size: 64px;
    opacity: 0.5;
}

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-industry {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.project-industry.text-success {
    color: var(--success);
}

.project-industry.text-primary {
    color: var(--primary);
}

.project-industry.text-accent {
    color: var(--accent);
}

.project-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-content p {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.view-case {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition);
}

.view-case:hover {
    gap: 0.75rem;
    color: var(--primary);
}

/* Portfolio Page Responsive */
@media (max-width: 1024px) {
    .portfolio-grid-modern {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-hero h1 {
        font-size: 2.75rem;
    }

    .portfolio-filters {
        overflow-x: auto;
        padding-bottom: 1rem;
        width: 100%;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .portfolio-filters .filter-btn {
        white-space: nowrap;
    }

    .portfolio-grid-modern {
        grid-template-columns: 1fr;
    }
}

/* ==================== HOME PAGE ENHANCEMENTS ==================== */

/* Process Section */
.process-section {
    background: var(--bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    padding-top: 2rem;
}

.process-step {
    position: relative;
    padding: 2rem;
    background: var(--bg-soft);
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(4, 120, 87, 0.15);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.process-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    position: relative;
}

.process-step p {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
}

/* Stats Counter Section */
.stats-counter-section {
    background: var(--secondary);
    padding: 60px 0;
    color: #fff;
    border-radius: 20px;
    margin: 40px 1.5rem;
}

.stats-counter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.counter-item {
    position: relative;
}

.counter-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    bottom: 20%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.counter-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.counter-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--bg-soft);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.stars {
    color: #F59E0B;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2px;
}

.stars .material-icons-round {
    font-size: 20px;
}

.testimonial-text {
    font-size: 1.0625rem;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.author-info span {
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* FAQ Section */
.faq-section {
    background: var(--bg);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.faq-item details summary {
    padding: 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-item details summary::-webkit-details-marker {
    display: none;
}

.faq-item details summary:hover {
    color: var(--primary);
}

.faq-item details summary .material-icons-round {
    transition: transform 0.3s ease;
}

.faq-item details[open] summary .material-icons-round {
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
    border-top: 1px solid transparent;
}

.faq-item details[open] .faq-content {
    border-top-color: var(--border);
    padding-top: 1.5rem;
}

/* Latest Insights Section */
.latest-insights {
    background: var(--bg-soft);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.header-flex .section-title {
    margin-bottom: 0.5rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.insight-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insight-image {
    height: 220px;
    background: #e2e8f0;
    position: relative;
    overflow: hidden;
}

.insight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.insight-card:hover .insight-image img {
    transform: scale(1.05);
}

.insight-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.insight-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-lighter);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.insight-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.read-more {
    margin-top: auto;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Updated Responsive Styles */
@media (max-width: 1024px) {

    .process-grid,
    .stats-counter-grid,
    .testimonials-grid,
    .insights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 768px) {

    /* Mobile Hero Fix: Image First */
    .hero-grid {
        display: flex;
        flex-direction: column-reverse;
        /* Puts visual on top */
        gap: 2rem;
    }

    .hero-visual {
        width: 100%;
        display: block;
    }

    .hero-image-card {
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
        height: auto;
        min-height: 200px;
        /* Force space for image */
        display: block;
    }

    .hero-img-main {
        position: relative;
        height: auto;
        width: 100%;
        display: block;
    }

    /* Full width buttons on mobile */
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* Adjust new sections for mobile */
    .process-grid,
    .stats-counter-grid,
    .testimonials-grid,
    .insights-grid {
        grid-template-columns: 1fr;
    }

    .stats-counter-section {
        margin: 40px 1rem;
        padding: 40px 0;
    }

    .counter-item {
        margin-bottom: 2rem;
    }

    .counter-item:last-child {
        margin-bottom: 0;
    }

    .header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Service Page Image Styles */
.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
    transition: var(--transition);
}

.service-visual img:hover {
    transform: scale(1.02);
}

/* Ensure service row has proper spacing */
.service-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.service-row.reverse {
    direction: rtl;
    /* simple trick to swap columns visually */
}

.service-row.reverse .service-content {
    direction: ltr;
    /* Reset text direction */
}

/* Fallback/Mobile Layout */
@media (max-width: 768px) {
    .service-row {
        display: flex;
        flex-direction: column-reverse;
        /* Image on top */
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .service-row.reverse {
        flex-direction: column-reverse;
        direction: ltr;
        /* Reset direction for mobile flex */
    }
}