/*
Theme Name: EFCHA Consultants Theme
Theme URI: https://efchaconsultants.com/
Author: EFCHA Consultants
Description: Tema personalizado premium e interactivo con soporte bilingue y cotizador de proyectos para la agroindustria.
Version: 1.0
Text Domain: efcha-theme
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Light Mode Default */
    --bg-dark: #f8fafc;
    --bg-card: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(123, 179, 65, 0.5);
    
    --primary: #7bb341;      /* FoodChain IQ Green */
    --primary-glow: rgba(123, 179, 65, 0.1);
    --secondary: #65a30d;    /* Complementary darker green */
    --secondary-glow: rgba(101, 163, 13, 0.1);
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    
    --gradient-hero: linear-gradient(135deg, #7bb341 0%, #65a30d 100%);
    --gradient-card: linear-gradient(135deg, rgba(123, 179, 65, 0.02) 0%, rgba(101, 163, 13, 0.02) 100%);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 20px -3px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 20px 30px -5px rgba(15, 23, 42, 0.08), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Override */
body.dark-mode {
    --bg-dark: #060f1e;
    --bg-card: rgba(13, 25, 48, 0.65);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(123, 179, 65, 0.3);
    
    --primary: #7bb341;
    --primary-glow: rgba(123, 179, 65, 0.15);
    --secondary: #84cc16;
    --secondary-glow: rgba(132, 204, 22, 0.15);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    
    --gradient-hero: linear-gradient(135deg, #7bb341 0%, #84cc16 100%);
    --gradient-card: linear-gradient(135deg, rgba(123, 179, 65, 0.05) 0%, rgba(132, 204, 22, 0.05) 100%);
    
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Background elements */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(123, 179, 65, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(132, 204, 22, 0.02) 0%, transparent 45%);
    z-index: -2;
    pointer-events: none;
}

body.dark-mode::before {
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(123, 179, 65, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 50%, rgba(132, 204, 22, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 40% 80%, rgba(123, 179, 65, 0.03) 0%, transparent 35%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
    transition: color var(--transition-normal);
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

p {
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

header .container {
    max-width: 100%;
    padding: 0 4rem;
}

/* Glassmorphism panel base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal), border-color var(--transition-fast);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
}

header.scrolled {
    background: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

body.dark-mode header.scrolled {
    background: rgba(7, 10, 19, 0.85);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition-fast);
}

header.scrolled .navbar {
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0f172a;
}

body.dark-mode .logo {
    color: #ffffff;
}

.logo span.logo-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #0f172a;
}

body.dark-mode .nav-link:hover, 
body.dark-mode .nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Nav Controls Container */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.control-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

body.dark-mode .control-btn {
    background: rgba(255, 255, 255, 0.04);
}

.control-btn:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.control-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.btn-contact-header {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-contact-header:hover {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--primary-glow);
}

body.dark-mode .btn-contact-header:hover {
    color: var(--bg-dark);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #0f172a;
    border-radius: 2px;
    transition: var(--transition-fast);
}

body.dark-mode .menu-toggle span {
    background-color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition-fast);
    gap: 8px;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(123, 179, 65, 0.2);
}

.btn-primary:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(123, 179, 65, 0.3);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: #1e293b;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.dark-mode .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

body.dark-mode .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sections General */
main > section {
    display: none !important;
    padding: 8rem 0;
    position: relative;
}

main > section.active {
    display: block !important;
    animation: fadeIn 0.4s ease-in-out;
}

main > section#hero.active {
    display: flex !important;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
}

.section-desc {
    max-width: 650px;
    margin: 0 auto;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    padding-top: 8.5rem;
    padding-bottom: 7rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(to right, #060f1e 35%, rgba(6, 15, 30, 0.7) 65%, rgba(6, 15, 30, 0) 100%), url('assets/fondo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

.hero-section::before {
    display: none !important;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 900px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(101, 163, 13, 0.06);
    border: 1px solid rgba(101, 163, 13, 0.12);
    padding: 6px 16px;
    border-radius: 50px;
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

body.dark-mode .hero-tag {
    background: rgba(132, 204, 22, 0.08);
    border: 1px solid rgba(132, 204, 22, 0.15);
}

.hero-tag span.pulse {
    width: 6px;
    height: 6px;
    background-color: var(--secondary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--secondary);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 12px var(--secondary); }
    100% { transform: scale(0.9); opacity: 0.5; }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.hero-desc {
    font-size: 1.2rem;
    color: #cbd5e1 !important;
    margin-bottom: 2.5rem;
    max-width: 850px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    padding-top: 2rem;
}

.stat-arrow {
    display: inline-block;
    margin-right: 0.35rem;
    font-weight: 700;
    color: var(--secondary);
}

.stat-item h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff !important;
    transition: color var(--transition-normal);
}

body.dark-mode .stat-item h3 {
    color: #ffffff !important;
}

.stat-item p {
    font-size: 0.85rem;
    color: #cbd5e1 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

/* Floating Card / Interactive element on Hero */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.glass-sphere-container {
    width: 100%;
    height: 350px;
    position: relative;
}

.sphere-card {
    position: absolute;
    width: 280px;
    padding: 1.5rem;
    left: 10%;
    top: 15%;
    transform: rotate(-3deg);
    animation: floatCard 6s ease-in-out infinite alternate;
}

.sphere-card-2 {
    position: absolute;
    width: 250px;
    padding: 1.25rem;
    right: 5%;
    bottom: 10%;
    transform: rotate(3deg);
    border-color: var(--border-hover);
    animation: floatCard2 7s ease-in-out infinite alternate;
}

@keyframes floatCard {
    0% { transform: translateY(0) rotate(-3deg); }
    100% { transform: translateY(-15px) rotate(-1deg); }
}

@keyframes floatCard2 {
    0% { transform: translateY(0) rotate(3deg); }
    100% { transform: translateY(12px) rotate(5deg); }
}

.card-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.card-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    transition: color var(--transition-normal);
}

body.dark-mode .card-val {
    color: #ffffff;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* About / CEO Section */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.ceo-profile {
    position: relative;
}

.ceo-image-container {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    background: #e2e8f0;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

body.dark-mode .ceo-image-container {
    background: #0f1422;
}

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

.ceo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.25rem;
    text-align: center;
    color: #ffffff;
}

.ceo-overlay h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.ceo-title-card {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    margin-top: 4px;
}

.ceo-badge {
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    text-align: center;
}

body.dark-mode .ceo-badge {
    background: rgba(7, 10, 19, 0.9);
}

.ceo-badge h4 {
    font-size: 1.1rem;
    color: #0f172a;
    transition: color var(--transition-normal);
}

body.dark-mode .ceo-badge h4 {
    color: #ffffff;
}

.ceo-badge p {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
}

.about-details h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.outcomes-list {
    list-style: none;
    margin-bottom: 2rem;
}

.outcome-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.outcome-icon {
    width: 24px;
    height: 24px;
    background-color: var(--primary-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.about-challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem 1.5rem;
    margin: 1.5rem 0;
}

.about-challenges-grid .outcome-item {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-muted);
}

.outcome-text h4 {
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.outcome-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.service-card {
    padding: 3rem 2.25rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    transition: var(--transition-fast);
}

.service-card:hover::before {
    background: var(--gradient-hero);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px -15px rgba(123, 179, 65, 0.1);
}

.service-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition-fast);
    color: var(--primary);
}

body.dark-mode .service-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.service-card:hover .service-icon-wrapper {
    background: var(--primary-glow);
    border-color: var(--primary);
    color: var(--primary);
}

.service-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    transition: var(--transition-fast);
}

.service-card:hover h3 {
    color: var(--primary);
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Services Intro and Areas Header */
.services-intro {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.services-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(123, 179, 65, 0.1);
    border: 1px solid rgba(123, 179, 65, 0.3);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.services-intro-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.services-intro-text {
    flex-grow: 1;
}

.services-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.services-intro p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.services-areas-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
}

.services-areas-header h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.services-areas-header h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* New Services Grid */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card-new {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.service-card-new:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 179, 65, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 0 15px var(--primary-glow);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card-new:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-grow: 1;
}

.card-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.card-bullets {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.card-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-main);
}

.bullet-check {
    width: 16px;
    height: 16px;
    color: var(--secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Services Tabs & Contents */
.services-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.services-tab-content {
    display: none;
}

.services-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Processes Intro Card */
.processes-intro {
    max-width: 900px;
    margin: 0 auto 3rem auto;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    text-align: left;
}

.processes-intro-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(123, 179, 65, 0.1);
    border: 1px solid rgba(123, 179, 65, 0.3);
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.processes-intro-icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.processes-intro-text {
    flex-grow: 1;
}

.processes-intro h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.processes-intro p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Industries We Serve Section */
.industries-section {
    margin-top: 5rem;
    padding-top: 5rem;
    border-top: 1px solid var(--border-color);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.industry-card {
    padding: 2.25rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform var(--transition-normal), border-color var(--transition-fast), box-shadow var(--transition-normal);
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 179, 65, 0.4);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 0 15px var(--primary-glow);
}

.industry-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(123, 179, 65, 0.1);
    border: 1px solid rgba(123, 179, 65, 0.25);
    border-radius: 10px;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.industry-icon-wrapper svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.industry-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.industry-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-muted);
}



/* Timeline / Expansion Section */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(15, 23, 42, 0.08);
    transform: translateX(-50%);
}

body.dark-mode .timeline-line {
    background: rgba(255, 255, 255, 0.08);
}

.timeline-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 0%;
    background: var(--gradient-hero);
    transform: translateX(-50%);
    transition: height 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    border: 3px solid var(--border-color);
    transform: translateX(-50%);
    z-index: 10;
    transition: var(--transition-normal);
}

.timeline-item.active .timeline-dot {
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    background-color: var(--primary);
}

.timeline-content {
    padding: 2rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    grid-column: 1;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-empty {
    grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-empty {
    grid-column: 1;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-glow);
    border-radius: 50px;
}

.timeline-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-text {
    font-size: 0.95rem;
    color: var(--text-muted);
}



/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.contact-info-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.method-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

body.dark-mode .method-icon-wrapper {
    background: rgba(255, 255, 255, 0.03);
}

.method-icon-wrapper svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
}

.method-details h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.method-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-form-wrapper {
    padding: 3rem;
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-input {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: #0f172a;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast), background-color var(--transition-normal);
    width: 100%;
}

body.dark-mode .form-input {
    background: #0f1422;
    color: #ffffff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(123, 179, 65, 0.1);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    grid-column: span 2;
    margin-top: 1rem;
}

/* Footer (Kept Dark for strong high-contrast layout structure) */
footer {
    background: #04060b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 5rem 0 3rem 0;
    color: #f3f4f6;
}

footer h4,
footer h1,
footer h2,
footer h3,
footer .logo {
    color: #ffffff !important;
}

footer p {
    color: #9ca3af !important;
}

footer a {
    color: #9ca3af !important;
}

footer a:hover {
    color: var(--primary) !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-about .logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 0.9rem;
    max-width: 320px;
    margin-bottom: 1.5rem;
}

.footer-links-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-links li svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--secondary);
    flex-shrink: 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* WordPress Admin Bar Margin Adjustment */
body.admin-bar header {
    top: 32px;
}
@media screen and (max-width: 782px) {
    body.admin-bar header {
        top: 46px;
    }
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-visual {
        display: none; /* Hide interactive elements on smaller viewports */
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .ceo-profile {
        max-width: 450px;
        margin: 0 auto;
        width: 100%;
    }
    
    .services-grid-new {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    section {
        padding: 5rem 0;
    }
    
    .navbar {
        height: 70px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(248, 250, 252, 0.95);
        backdrop-filter: blur(16px);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition-normal);
        border-top: 1px solid var(--border-color);
        align-items: center;
    }
    
    body.dark-mode .nav-menu {
        background: rgba(7, 10, 19, 0.95);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-intro,
    .processes-intro {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem;
    }
    
    .services-grid-new {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-progress {
        left: 2rem;
    }
    
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3.5rem;
    }
    
    .timeline-dot {
        left: 2rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        grid-column: 1;
        text-align: left;
        padding-left: 4rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-empty,
    .timeline-item:nth-child(even) .timeline-empty {
        display: none;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .contact-form .btn {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Processes Section */
.processes-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

body.dark-mode .tab-btn {
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-glow);
}

.tab-btn.active {
    background: var(--gradient-hero);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(123, 179, 65, 0.2);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.process-showcase {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 2.5rem;
    padding: 2.5rem;
    align-items: center;
}

@media (max-width: 1024px) {
    .process-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }
}

.process-img-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-normal);
}

.process-img-wrapper:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.process-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.process-info-card {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-info-card h3 {
    font-size: 1.8rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    position: relative;
}

body.dark-mode .process-info-card h3 {
    color: #ffffff;
}

.process-info-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-hero);
    border-radius: 2px;
}

.process-info-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-top: 1rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 10, 19, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 85%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    color: #ffffff;
    font-family: var(--font-heading);
    margin-top: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.process-img {
    cursor: pointer;
}

/* Brand Logo Text Highlight */
.logo span {
    color: var(--primary);
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}


