/**
 * Construxicon Home Services - Modern Stylesheet
 * Stunning visual design with animations and effects
 */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    
    /* Accent Colors */
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    
    /* Neutral Colors */
    --dark: #0f172a;
    --dark-light: #1e293b;
    --gray-dark: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --lighter: #f8fafc;
    --white: #ffffff;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --info: #3b82f6;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-accent-glow: 0 0 40px rgba(245, 158, 11, 0.3);
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --max-width: 1280px;
    --section-padding: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
}

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

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

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

body {
    font-family: var(--font-main);
    line-height: 1.7;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Selection */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 1.75rem;
    filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.3));
}

.logo-text {
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.main-nav {
    display: none;
}

.main-nav.active {
    display: block;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem;
    animation: slideDown 0.3s ease;
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: var(--gray-dark);
    font-weight: 500;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--lighter);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* CTA Nav Button */
.cta-nav,
.nav-cta {
    background: var(--accent-gradient) !important;
    color: var(--white) !important;
    font-weight: 600 !important;
    box-shadow: var(--shadow);
    transition: all var(--transition) !important;
}

.cta-nav:hover,
.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-accent-glow) !important;
}

.cta-nav::after,
.nav-cta::after {
    display: none !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 10;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    top: 7px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #1e1b4b 100%);
    color: var(--white);
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--white) 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease;
}

.hero-subhead {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

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

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5), var(--shadow-accent-glow);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
    border: 2px solid var(--light);
}

.btn-secondary:hover {
    background: var(--lighter);
    border-color: var(--gray-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

/* ========================================
   SECTIONS
   ======================================== */

section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
    line-height: 1.2;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--gray);
    line-height: 1.7;
}

/* Page Hero */
.page-hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(245, 158, 11, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-hero .lead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Header (alternative) */
.page-header {
    background: linear-gradient(135deg, var(--lighter) 0%, var(--light) 100%);
    padding: 7rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--gray);
}

/* ========================================
   CARDS
   ======================================== */

/* Service Cards */
.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--lighter) 0%, var(--light) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--accent-gradient);
}

.service-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.service-card p {
    color: var(--gray);
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.learn-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.learn-more:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Solution Cards */
.solution-grid {
    display: grid;
    gap: 2rem;
}

.solution-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.solution-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-glow);
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark);
}

.solution-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Article Cards */
.articles-grid {
    display: grid;
    gap: 2rem;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light) 0%, var(--lighter) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-card .article-content {
    padding: 1.75rem;
}

.article-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-card h3 a {
    color: var(--dark);
}

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

.article-card .article-meta {
    font-size: 0.875rem;
    color: var(--gray-light);
    margin-bottom: 0.75rem;
}

.article-card .article-excerpt {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.read-more:hover {
    gap: 0.75rem;
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonials {
    background: linear-gradient(135deg, var(--lighter) 0%, var(--light) 100%);
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
}

.testimonial {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    color: var(--accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial footer {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

/* ========================================
   CTA SECTIONS
   ======================================== */

.cta-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 700px;
    margin: 0 auto;
}

.cta-note {
    margin-top: 1.5rem;
    font-size: 1rem;
    opacity: 0.8;
}

/* ========================================
   PROBLEM/SOLUTION SECTION
   ======================================== */

.problem-solution {
    background: var(--white);
}

/* ========================================
   SERVICES DETAIL PAGE
   ======================================== */

.services-detail {
    padding: 4rem 0;
}

.services-detail .service-card {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2.5rem;
}

.services-detail .service-icon {
    width: 90px;
    height: 90px;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.service-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-intro {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-content p {
    color: var(--gray-dark);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    padding: 0.625rem 0;
    padding-left: 1.75rem;
    position: relative;
    color: var(--gray-dark);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.service-cta {
    margin-top: 2rem;
}

.service-note {
    background: var(--lighter);
    border-left: 4px solid var(--accent);
    padding: 1.25rem;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 1.5rem 0;
}

/* ========================================
   ARTICLES PAGE
   ======================================== */

.articles-section {
    padding: 3rem 0 6rem;
}

.loading-message,
.no-articles,
.error-message {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray);
    font-size: 1.125rem;
}

.no-articles {
    background: var(--lighter);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--light);
}

/* Article Modal */
.article-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    width: 100%;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: var(--light);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 10;
}

.modal-close:hover {
    background: var(--danger);
    color: var(--white);
}

.modal-image {
    height: 250px;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-content h2 {
    padding: 2rem 2rem 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.modal-content .article-meta {
    padding: 0 2rem 1.5rem;
    color: var(--gray);
    border-bottom: 1px solid var(--light);
}

.article-body {
    padding: 2rem;
    line-height: 1.8;
    color: var(--gray-dark);
}

.article-body p {
    margin-bottom: 1.25rem;
}

/* ========================================
   ARTICLE FULL PAGE
   ======================================== */

.article-full {
    padding: 7rem 0 6rem;
}

.article-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.article-header h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--dark);
}

.article-header .article-meta {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.article-hero-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.article-full .article-content {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--gray-dark);
}

.article-full .article-content p {
    margin-bottom: 1.75rem;
}

.article-footer {
    max-width: 700px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--light);
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-section {
    padding: 3rem 0 6rem;
}

.contact-grid {
    display: grid;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info > p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

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

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--lighter);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.contact-method:hover {
    background: var(--light);
    transform: translateX(5px);
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-method-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.contact-method-content p {
    color: var(--gray);
    font-size: 0.9375rem;
}

.contact-method-content a {
    color: var(--primary);
    font-weight: 500;
}

.contact-method-content a:hover {
    color: var(--primary-dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-form-wrapper > p {
    color: var(--gray);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9375rem;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 0.25rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    background: var(--white);
    transition: all var(--transition-fast);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray-light);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 1.5rem;
}

.form-message {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.form-message.success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--gray-light);
    line-height: 1.7;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-light);
    transition: all var(--transition-fast);
    display: inline-block;
}

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

.footer-contact p {
    color: var(--gray-light);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
    font-size: 0.9375rem;
}

/* Alternative footer layout */
.footer-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-nav {
        display: block !important;
        position: static;
        box-shadow: none;
        padding: 0;
        background: transparent;
    }
    
    .main-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }
    
    .main-nav a {
        padding: 0.625rem 1rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .solution-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr 1.5fr;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .services-detail .service-card {
        grid-template-columns: auto 1fr;
        align-items: start;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    section {
        padding: 7rem 0;
    }
    
    .hero {
        padding: 12rem 0 8rem;
    }
}

/* Large Desktop */
@media (min-width: 1280px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .site-header,
    .site-footer,
    .cta-section,
    .mobile-menu-toggle,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    section {
        padding: 2rem 0;
    }
}
