/* ==========================================================================
   SECTIONS - Layout and styling for major page sections
   
   This file contains styles for:
   - Hero section (first impression)
   - Features section (what we do)
   - Products section (our work)
   - Contact section (get in touch)
   - Footer (brand presence)
   
   Each section has its own background, layout, and spacing
   ========================================================================== */

/* ==========================================================================
   HERO SECTION - The first thing visitors see
   ========================================================================== */

.hero {
    /* Layout */
    min-height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    
    /* Background */
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-medium) 100%);
    
    /* Spacing */
    padding: var(--space-24) var(--space-4);
}

/* Subtle background pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(45, 90, 135, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(107, 182, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Hero content container */
.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Left side - text content */
.hero-text {
    animation: slideInLeft 1s ease-out;
}

/* Right side - animated logo */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInRight 1s ease-out;
}

/* Hero title styling */
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); /* Responsive font size */
    font-weight: var(--font-weight-bold);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-4);
    line-height: 1.1;
}

/* Hero tagline */
.hero .tagline {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-6);
    opacity: 0.9;
}

/* Hero description */
.hero-description {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
    max-width: 600px;
}

/* CTA buttons in hero */
.hero .cta-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* ==========================================================================
   FEATURES SECTION - "What We Do"
   ========================================================================== */

.features {
    padding: var(--space-24) var(--space-4);
    background: var(--color-background);
}

.features-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Section title styling */
.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-16);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
}

/* Features grid layout */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-12);
}

/* Individual feature card - styles in components.css */

/* ==========================================================================
   PRODUCTS SECTION - "Our Products"
   ========================================================================== */

.products {
    padding: var(--space-24) var(--space-4);
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-medium) 100%);
}

.products-container {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Product showcase container - styles in components.css */

/* ==========================================================================
   CONTACT SECTION - "Get In Touch"
   ========================================================================== */

.contact {
    padding: var(--space-24) var(--space-4);
    background: var(--color-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Contact background pattern */
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(107, 182, 255, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Contact section title */
.contact h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    color: white;
}

/* Contact section description */
.contact p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-12);
    opacity: 0.9;
    color: white;
}

/* Contact form */
.contact-form {
    display: grid;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

/* Form group for side-by-side inputs */
.contact-form .form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
}

/* ==========================================================================
   FOOTER - Brand presence and links
   ========================================================================== */

footer {
    background: var(--color-primary-dark);
    color: white;
    padding: var(--space-12) var(--space-4) var(--space-4);
    text-align: center;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
}

/* Footer bottom section */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-6);
    margin-top: var(--space-6);
    color: var(--color-text-light);
}

.footer-bottom p {
    margin: 0;
    font-size: var(--font-size-sm);
}

/* ==========================================================================
   SECTION ANIMATIONS - Entrance effects
   ========================================================================== */

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from bottom */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   SECTION SPACING UTILITIES
   ========================================================================== */

/* Add extra spacing between sections */
.section-spacing {
    margin-bottom: var(--space-24);
}

/* Reduce spacing for compact sections */
.section-compact {
    padding: var(--space-16) var(--space-4);
}

/* Large spacing for hero-style sections */
.section-hero {
    padding: var(--space-32) var(--space-4);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   SECTION BACKGROUNDS - Reusable background patterns
   ========================================================================== */

/* Light gradient background */
.bg-gradient-light {
    background: linear-gradient(135deg, var(--color-background-light) 0%, var(--color-background-medium) 100%);
}

/* Primary gradient background */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

/* Subtle pattern overlay */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(45, 90, 135, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(107, 182, 255, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.bg-pattern > * {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   SCROLL INDICATORS - For future enhancement
   ========================================================================== */

/* Scroll down indicator in hero */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-secondary);
    animation: bounce 2s infinite;
    font-size: var(--font-size-2xl);
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   SECTION CONTENT WIDTH CONTROLS
   ========================================================================== */

/* Narrow content for better readability */
.content-narrow {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Medium content width */
.content-medium {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Wide content width */
.content-wide {
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   SECTION DIVIDERS - Visual separation between sections
   ========================================================================== */

/* Subtle divider line */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--color-primary) 50%, transparent 100%);
    margin: var(--space-16) 0;
    opacity: 0.3;
}

/* Decorative wave divider */
.wave-divider {
    position: relative;
    height: 60px;
    background: var(--color-background);
    overflow: hidden;
}

.wave-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23f8fafc'%3E%3C/path%3E%3C/svg%3E") no-repeat;
    background-size: cover;
}

/* ==========================================================================
   PRINT STYLES - Section-specific print optimizations
   ========================================================================== */

@media print {
    .hero,
    .features,
    .products,
    .contact {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .hero::before,
    .contact::before,
    .bg-pattern::before {
        display: none !important;
    }
    
    .section-title,
    .hero h1 {
        color: black !important;
        background: none !important;
        -webkit-text-fill-color: black !important;
    }
    
    /* Hide decorative elements in print */
    .scroll-indicator,
    .wave-divider {
        display: none !important;
    }
    
    /* Adjust section spacing for print */
    section {
        padding: var(--space-8) 0 !important;
        break-inside: avoid;
    }
}