/* ========================================
   Soul Solutions - Premium Landing Page
   Modern CSS with Glassmorphism & Animations
======================================== */

/* CSS Variables - Design System */
:root {
    /* Colors */
    --primary: #0066FF;
    --primary-light: #3385FF;
    --primary-dark: #0052CC;
    --accent: #00D4FF;
    --accent-secondary: #7C3AED;
    
    /* Background */
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Borders */
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 102, 255, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-card: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.02) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 102, 255, 0.3);
    
    /* Spacing */
    --section-padding: 120px;
    --container-max: 1200px;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Prevent horizontal scroll */
body, html {
    max-width: 100%;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Navigation
======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 10px 20px !important;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: var(--text-primary) !important;
}

.nav-cta:hover {
    box-shadow: var(--shadow-glow);
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

.mobile-menu span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ========================================
   Hero Section
======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

/* Reduce orb size on mobile to prevent overflow */
@media (max-width: 768px) {
    .gradient-orb-1 {
        width: 400px;
        height: 400px;
        top: -150px;
        right: -150px;
    }
    
    .gradient-orb-2 {
        width: 300px;
        height: 300px;
        bottom: -100px;
        left: -100px;
    }
}

@media (max-width: 480px) {
    .gradient-orb-1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -100px;
    }
    
    .gradient-orb-2 {
        width: 250px;
        height: 250px;
        bottom: -80px;
        left: -80px;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(0, 50px) scale(0.9); }
    75% { transform: translate(-50px, -25px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease backwards;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
    flex-wrap: wrap;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    cursor: pointer;
    border: none;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-glass);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ========================================
   Services Section
======================================== */
.services {
    padding: var(--section-padding) 0;
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    position: relative;
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition-medium);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-medium);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-card.featured {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
}

.featured-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
}

.service-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.875rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.service-features li:first-child {
    border-top: none;
}

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

/* ========================================
   Technologies Section
======================================== */
.technologies {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 255, 0.03) 50%, transparent 100%);
}

.tech-columns {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
}

.tech-column {
    padding: 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    text-align: center;
}

.tech-header {
    margin-bottom: 32px;
}

.tech-icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin: 0 auto 20px;
}

.tech-icon-large svg {
    width: 40px;
    height: 40px;
}

.mainframe .tech-icon-large svg {
    stroke: #F59E0B;
}

.modern .tech-icon-large svg {
    stroke: var(--accent);
}

.tech-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.tech-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.tech-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.tech-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-medium);
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.tech-badge-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
}

.tech-badge-info {
    text-align: left;
}

.tech-badge-info strong {
    display: block;
    font-size: 0.9375rem;
}

.tech-badge-info span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.tech-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.divider-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, transparent, var(--primary), transparent);
}

.divider-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.divider-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--primary);
}

/* ========================================
   Methodology Section
======================================== */
.methodology {
    padding: var(--section-padding) 0;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.method-card {
    position: relative;
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-medium);
    overflow: hidden;
}

.method-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-4px);
}

.method-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    line-height: 1;
}

.method-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

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

.method-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.method-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent);
}

/* ========================================
   Contact Section
======================================== */
.contact {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 255, 0.05) 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info .section-tag {
    margin-bottom: 16px;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-medium);
}

.contact-link svg {
    width: 20px;
    height: 20px;
}

.contact-link:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

.contact-form {
    padding: 40px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-fast);
}

/* Prevent zoom on iOS when focusing inputs */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* iOS won't zoom if font-size is 16px or larger */
    }
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.2);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background: var(--bg-dark);
}

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

/* ========================================
   Footer
======================================== */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand .logo {
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* ========================================
   Animations
======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet Landscape */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px;
    }
    
    .container {
        padding: 0 32px;
    }
    
    .tech-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .tech-divider {
        flex-direction: row;
    }
    
    .divider-line {
        width: 80px;
        height: 2px;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info .section-title {
        text-align: center;
    }
    
    .contact-description {
        text-align: center;
    }
    
    .contact-links {
        justify-content: center;
    }
    
    .methodology-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .container {
        padding: 0 24px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 16px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-cta {
        text-align: center;
        margin-top: 10px;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 100px 20px 80px;
    }
    
    .hero-badge {
        font-size: 0.8125rem;
        padding: 8px 16px;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .hero-ctas {
        margin-bottom: 50px;
    }
    
    .hero-stats {
        gap: 40px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card {
        padding: 28px;
    }
    
    /* Technologies */
    .tech-column {
        padding: 32px 24px;
    }
    
    .tech-badges {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .tech-badge {
        padding: 14px;
    }
    
    /* Methodology */
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    
    .method-card {
        padding: 28px;
    }
    
    .method-number {
        font-size: 2.5rem;
    }
    
    /* Contact */
    .contact-form {
        padding: 28px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-brand p {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-links {
        gap: 24px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 16px;
    }
    
    .logo {
        font-size: 1.125rem;
    }
    
    .logo-icon {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero {
        padding: 90px 16px 60px;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
        gap: 6px;
    }
    
    .pulse {
        width: 6px;
        height: 6px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 10vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .hero-subtitle {
        font-size: 0.9375rem;
        margin-bottom: 28px;
    }
    
    .hero-ctas {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.9375rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* Section Headers */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-tag {
        padding: 6px 14px;
        font-size: 0.8125rem;
        margin-bottom: 16px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        gap: 16px;
    }
    
    .service-card {
        padding: 24px;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 20px;
    }
    
    .service-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
    
    .service-features li {
        font-size: 0.8125rem;
        padding: 6px 0 6px 20px;
    }
    
    .featured-badge {
        top: 12px;
        right: 12px;
        padding: 4px 10px;
    }
    
    /* Technologies */
    .tech-column {
        padding: 28px 20px;
    }
    
    .tech-icon-large {
        width: 64px;
        height: 64px;
        margin-bottom: 16px;
    }
    
    .tech-icon-large svg {
        width: 32px;
        height: 32px;
    }
    
    .tech-header h3 {
        font-size: 1.25rem;
    }
    
    .tech-header p {
        font-size: 0.875rem;
    }
    
    .tech-badge {
        padding: 12px;
        gap: 10px;
    }
    
    .tech-badge-icon {
        width: 40px;
        height: 40px;
        font-size: 0.8125rem;
        flex-shrink: 0;
    }
    
    .tech-badge-info strong {
        font-size: 0.875rem;
    }
    
    .tech-badge-info span {
        font-size: 0.75rem;
    }
    
    .divider-icon {
        width: 48px;
        height: 48px;
    }
    
    .divider-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Methodology */
    .methodology-grid {
        gap: 16px;
    }
    
    .method-card {
        padding: 24px;
    }
    
    .method-number {
        font-size: 2rem;
    }
    
    .method-content h3 {
        font-size: 1.125rem;
    }
    
    .method-content p {
        font-size: 0.875rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        top: 20px;
        right: 20px;
    }
    
    .method-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Contact */
    .contact-wrapper {
        gap: 32px;
    }
    
    .contact-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .contact-links {
        gap: 12px;
    }
    
    .contact-link {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .contact-link svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 0.875rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 16px;
        font-size: 0.9375rem;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-content {
        margin-bottom: 30px;
    }
    
    .footer-brand p {
        font-size: 0.875rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding-top: 20px;
    }
    
    .footer-bottom p {
        font-size: 0.8125rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .service-card,
    .method-card,
    .tech-column {
        padding: 20px;
    }
    
    .contact-form {
        padding: 20px;
    }
}

/* Safe Area for devices with notch (iPhone X+) */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    
    .nav-container {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    
    .hero {
        padding-left: max(24px, env(safe-area-inset-left));
        padding-right: max(24px, env(safe-area-inset-right));
    }
    
    @media (max-width: 768px) {
        .container {
            padding-left: max(20px, env(safe-area-inset-left));
            padding-right: max(20px, env(safe-area-inset-right));
        }
    }
    
    @media (max-width: 480px) {
        .container {
            padding-left: max(16px, env(safe-area-inset-left));
            padding-right: max(16px, env(safe-area-inset-right));
        }
    }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 20px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 30px;
    }
    
    :root {
        --section-padding: 60px;
    }
}