/* ==========================================================================
   TymSol - Professional UI/UX Optimized Design System
   Following WCAG 2.1 AA Standards & Modern Best Practices
   ========================================================================== */

/* ==========================================================================
   1. CSS Reset & Base Improvements
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==========================================================================
   2. Design Tokens (Improved Contrast & Consistency)
   ========================================================================== */

:root {
    /* Colors - WCAG 2.1 AA Compliant */
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary: #0891b2;
    --accent: #f59e0b;
    --accent-pink: #ec4899;
    
    /* Text Colors - Improved Contrast */
    --text-primary: #0f172a;        /* 18.34:1 on white */
    --text-secondary: #334155;      /* 9.94:1 on white */
    --text-muted: #64748b;          /* 4.85:1 on white */
    --text-light: #94a3b8;          /* 3.43:1 on dark */
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-secondary: #1e293b;
    
    /* Gradients */
    --bg-gradient: linear-gradient(135deg, #2563eb 0%, #0891b2 100%);
    --bg-gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Borders */
    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;
    --border-dark: #94a3b8;
    
    /* Status Colors */
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;
    --info: #2563eb;
    
    /* Spacing Scale (8px base) */
    --space-0: 0;
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Content Width */
    --content-narrow: 700px;
    --content-normal: 1200px;
    --content-wide: 1400px;
}

/* ==========================================================================
   3. Typography System (Consistent & Accessible)
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    font-family: var(--font-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: var(--space-6); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: var(--space-5); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: var(--space-4); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); margin-bottom: var(--space-4); }
h5 { font-size: 1.25rem; margin-bottom: var(--space-3); }
h6 { font-size: 1.125rem; margin-bottom: var(--space-3); }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: var(--content-narrow);
}

/* Long-form text readability */
.long-text {
    max-width: var(--content-narrow);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   4. Layout System (Consistent Spacing & Alignment)
   ========================================================================== */

.container {
    max-width: var(--content-normal);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-6);
    padding-right: var(--space-6);
    width: 100%;
}

.section {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
    position: relative;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--bg-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ==========================================================================
   5. Navigation (Improved Alignment & Accessibility)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    max-width: var(--content-normal);
    margin: 0 auto;
    min-height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-weight: var(--font-bold);
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo:hover {
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-8);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: var(--transition-fast);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary);
    outline: none;
}

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

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

.btn-nav {
    background: var(--primary);
    color: white;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-semibold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-fast);
    white-space: nowrap;
}

.btn-nav:hover,
.btn-nav:focus {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    outline: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: var(--space-2);
    background: none;
    border: none;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: var(--transition-fast);
}

/* ==========================================================================
   6. Hero Section (Improved Overlay & Text Readability)
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 25%, #581c87 50%, #7c2d12 75%, #dc2626 100%);
    position: relative;
    padding-top: 88px;
    padding-bottom: var(--space-16);
    overflow: hidden;
}

/* Semi-transparent dark overlay for text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}

/* Decorative gradient overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-16);
    align-items: center;
    max-width: var(--content-normal);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    width: fit-content;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    font-weight: var(--font-bold);
    line-height: 1.1;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: var(--space-2);
}

.title-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: var(--leading-relaxed);
    max-width: 600px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-4);
    margin-bottom: var(--space-4);
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: var(--font-bold);
    color: #60a5fa;
    display: block;
    margin-bottom: var(--space-2);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
    line-height: var(--leading-normal);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

/* ==========================================================================
   7. Buttons (Consistent Styling & States)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: 1rem;
    line-height: 1;
    transition: var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    outline: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    outline: none;
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   8. Hero Visual (Improved Layout)
   ========================================================================== */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    position: relative;
}

.cloud-diagram {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.central-cloud {
    width: 120px;
    height: 120px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-2xl);
    z-index: 2;
}

.central-cloud span {
    font-size: 0.75rem;
    margin-top: var(--space-2);
    font-weight: var(--font-semibold);
}

.service-node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-light);
    transition: var(--transition-normal);
}

.service-node:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.service-node span {
    font-size: 0.625rem;
    margin-top: var(--space-2);
    font-weight: var(--font-semibold);
}

.node-1 { top: 15%; left: 15%; }
.node-2 { top: 15%; right: 15%; }
.node-3 { bottom: 15%; left: 15%; }
.node-4 { bottom: 15%; right: 15%; }

/* ==========================================================================
   9. Card Systems (Equal Height & Proper Alignment)
   ========================================================================== */

/* Why Choose TymSol Section */
.why-choose {
    background: var(--bg-primary);
    position: relative;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-8);
}

.why-choose-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Equal height */
}

.why-choose-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.why-choose-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}

.why-choose-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: var(--font-bold);
}

.why-choose-card p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: 1rem;
    margin: 0;
}

/* Services Section */
.services {
    background: var(--bg-gradient-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.3;
    z-index: 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-8);
    position: relative;
    z-index: 1;
}

.service-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height */
}

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

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

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-6);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: var(--font-bold);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
    flex-grow: 1;
}

.service-features {
    list-style: none;
    margin-top: auto; /* Push to bottom */
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: var(--leading-normal);
}

.service-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: var(--font-bold);
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   10. About Section (Improved Grid & Alignment)
   ========================================================================== */

.about {
    background: var(--bg-secondary);
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr));
    gap: var(--space-16);
    align-items: start;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.about-content h2 {
    margin-bottom: var(--space-4);
}

.about-content p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.about-stat {
    text-align: center;
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition-normal);
}

.about-stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.about-stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: var(--font-bold);
    color: var(--primary);
    display: block;
    margin-bottom: var(--space-2);
}

.about-stat-label {
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    font-size: 0.9375rem;
}

/* AWS Services */
.aws-services {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.aws-services h3 {
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: var(--font-bold);
}

.aws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: var(--space-4);
}

.aws-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
    border: 2px solid transparent;
    min-height: 120px;
}

.aws-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    background: white;
}

.aws-logo {
    width: 50px;
    height: 50px;
    background: var(--bg-gradient);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.aws-service span {
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    text-align: center;
    line-height: var(--leading-tight);
}

/* ==========================================================================
   11. Pricing Section (Equal Height Cards)
   ========================================================================== */

.pricing {
    background: var(--bg-secondary);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: var(--space-8);
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-light);
    transition: var(--transition-normal);
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%; /* Equal height */
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    transform: scale(1);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1);
}

.pricing-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-gradient);
    color: white;
    padding: var(--space-2) var(--space-6);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: var(--font-semibold);
    white-space: nowrap;
}

.pricing-header {
    margin-bottom: var(--space-6);
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-weight: var(--font-bold);
}

.price {
    margin-bottom: var(--space-4);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-1);
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: var(--font-semibold);
}

.amount {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--primary);
    line-height: 1;
}

.period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: var(--font-medium);
}

.pricing-header > p {
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: var(--leading-normal);
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-8);
    text-align: left;
    flex-grow: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
    line-height: var(--leading-normal);
}

.pricing-features li i {
    color: var(--success);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ==========================================================================
   12. Contact Section (Improved Form Layout & Alignment)
   ========================================================================== */

.contact {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    color: white;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.contact .section-title {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 450px), 1fr));
    gap: var(--space-16);
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.contact-item i {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-item div {
    flex: 1;
}

.contact-item h4 {
    color: white;
    margin-bottom: var(--space-2);
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
}

.contact-item p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2);
    line-height: var(--leading-normal);
}

.contact-form {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
}

.form-group {
    margin-bottom: var(--space-6);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-weight: var(--font-semibold);
    font-size: 0.9375rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--space-4);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: var(--leading-normal);
}

.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(37, 99, 235, 0.1);
}

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

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

/* ==========================================================================
   13. Footer (Improved Grid & Alignment)
   ========================================================================== */

.footer {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand h3 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: 1.5rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.footer-column h4 {
    color: white;
    margin-bottom: var(--space-4);
    font-size: 1.125rem;
    font-weight: var(--font-semibold);
}

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

.footer-column li {
    margin-bottom: var(--space-3);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
    display: inline-block;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
}

/* ==========================================================================
   14. Mobile Navigation Enhancements
   ========================================================================== */

.nav-open {
    overflow: hidden;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   15. Animations
   ========================================================================== */

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

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   16. Responsive Design (Mobile-First, Progressive Enhancement)
   ========================================================================== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
    :root {
        --space-16: 3rem;
        --space-20: 4rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-8);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
}

/* Mobile (768px and below) */
@media (max-width: 768px) {
    :root {
        --space-12: 2rem;
        --space-16: 2.5rem;
        --space-20: 3rem;
    }
    
    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    .section {
        padding-top: var(--space-12);
        padding-bottom: var(--space-12);
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--space-6);
        gap: var(--space-4);
        box-shadow: var(--shadow-2xl);
        z-index: 1000;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        border-bottom: 1px solid var(--border-light);
    }
    
    .nav-menu.active {
        display: flex;
        animation: slideDown 0.3s ease-out;
    }
    
    .hamburger {
        display: flex;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-4);
    }
    
    .services-grid,
    .why-choose-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .aws-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-3);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    /* Improve touch targets */
    .btn,
    .nav-link,
    .contact-item i {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Prevent iOS zoom on focus */
    input,
    textarea,
    select {
        font-size: 16px;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --space-8: 1.5rem;
        --space-12: 1.75rem;
        --space-16: 2rem;
    }
    
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 10vw, 2rem);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .aws-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   17. Utility Classes
   ========================================================================== */

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* Spacing Utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-6 { margin-bottom: var(--space-6) !important; }
.mb-8 { margin-bottom: var(--space-8) !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-6 { margin-top: var(--space-6) !important; }
.mt-8 { margin-top: var(--space-8) !important; }

/* Visibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   18. Print Styles
   ========================================================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    .navbar,
    .footer,
    .btn,
    .scroll-progress {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
}

/* ==========================================================================
   END OF STYLESHEET
   ========================================================================== */

