/**
 * Main Stylesheet for Developer Portfolio
 * Mobile-first responsive design with modern CSS features
 *
 * Table of Contents:
 * 1. CSS Custom Properties (Variables)
 * 2. Reset & Base Styles
 * 3. Typography
 * 4. Layout Utilities
 * 5. Navigation
 * 6. Hero Section
 * 7. Services Section
 * 8. Skills Section
 * 9. Process Section
 * 10. Contact Section
 * 11. Footer
 * 12. Animations
 * 13. Media Queries
 */

/* ==========================================================================
   1. CSS Custom Properties
   ========================================================================== */

:root {
    /* Colors - Dark Theme */
    --color-bg-primary: #0a0a0f;
    --color-bg-secondary: #12121a;
    --color-bg-tertiary: #1a1a24;
    --color-bg-card: #16161f;
    --color-bg-hover: #1e1e2a;

    /* Accent Colors */
    --color-primary: #6366f1;
    --color-primary-light: #818cf8;
    --color-primary-dark: #4f46e5;
    --color-secondary: #22d3ee;
    --color-accent: #f472b6;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #22d3ee 50%, #f472b6 100%);
    --gradient-text: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --gradient-hover: linear-gradient(135deg, #818cf8 0%, #67e8f9 100%);

    /* Text Colors */
    --color-text-primary: #f8fafc;
    --color-text-secondary: #94a3b8;
    --color-text-muted: #64748b;

    /* Border & Shadow */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.15);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* 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 ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

@media (min-width: 768px) {
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
}

@media (min-width: 1024px) {
    h1 { font-size: var(--text-6xl); }
}

/* ==========================================================================
   4. Layout Utilities
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

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

.section-tag {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary-light);
    margin-bottom: var(--space-md);
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--color-text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    font-weight: 500;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.4);
}

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

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

.btn-full {
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   5. Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-md) 0;
    background: transparent;
    transition: all var(--transition-base);
}

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

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

.nav-logo {
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: var(--text-xl);
    font-weight: 600;
}

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

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

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: var(--space-sm);
    z-index: var(--z-fixed);
}

.hamburger {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-base);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: var(--transition-base);
}

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

.hamburger::after {
    bottom: -8px;
}

.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    background: var(--color-bg-primary);
    transition: right var(--transition-slow);
}

.nav-menu.active {
    right: 0;
}

.nav-link {
    font-size: var(--text-xl);
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-text-primary);
}

.nav-cta {
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: white !important;
    border-radius: var(--radius-lg);
}

/* Desktop Navigation */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: transparent;
        gap: var(--space-xl);
    }

    .nav-link {
        font-size: var(--text-base);
    }
}

/* ==========================================================================
   6. Hero Section
   ========================================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-4xl) 0 var(--space-2xl);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at 40% 80%, rgba(244, 114, 182, 0.1) 0%, transparent 40%);
}

.code-rain {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='10' y='20' fill='%236366f1' font-family='monospace' font-size='12'%3E01%3C/text%3E%3Ctext x='50' y='40' fill='%2322d3ee' font-family='monospace' font-size='12'%3E{%7D%3C/text%3E%3Ctext x='20' y='60' fill='%23f472b6' font-family='monospace' font-size='12'%3E/%3E%3C/text%3E%3Ctext x='70' y='80' fill='%236366f1' font-family='monospace' font-size='12'%3E;%3C/text%3E%3C/svg%3E");
    animation: float 20s linear infinite;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

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

.hero-subtitle {
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-3xl);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 500px;
    margin: 0 auto;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.stat-number::after {
    content: '+';
    color: var(--color-primary);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
}

.scroll-text {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scroll-bounce 2s infinite;
}

/* Hero responsive */
@media (min-width: 640px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .hero-cta {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: var(--text-6xl);
    }
}

/* ==========================================================================
   7. Services Section
   ========================================================================== */

.services {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-secondary);
}

.services-grid {
    display: grid;
    gap: var(--space-lg);
}

.service-card {
    position: relative;
    padding: var(--space-xl);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

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

.service-card > * {
    position: relative;
    z-index: 1;
}

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

.featured-badge {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    color: white;
    border-radius: var(--radius-full);
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-bottom: var(--space-lg);
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-lg);
}

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

.service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.service-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-lg);
}

.service-features {
    margin-bottom: var(--space-lg);
}

.service-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--color-primary-light);
    transition: gap var(--transition-base);
}

.service-link:hover {
    gap: var(--space-md);
}

.service-link svg {
    width: 16px;
    height: 16px;
}

/* Services grid responsive */
@media (min-width: 640px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card-featured {
        grid-column: span 1;
    }
}

/* ==========================================================================
   8. Skills Section
   ========================================================================== */

.skills {
    padding: var(--space-4xl) 0;
}

.skills-container {
    display: grid;
    gap: var(--space-xl);
}

.skill-category {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.category-title {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: var(--text-lg);
    margin-bottom: var(--space-lg);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.category-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.skill-tag {
    padding: var(--space-sm) var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-light);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   9. Process Section
   ========================================================================== */

.process {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-secondary);
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary), var(--color-accent));
}

.process-step {
    position: relative;
    display: flex;
    gap: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.process-step:last-child {
    padding-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-bg-primary);
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
}

.step-content {
    flex: 1;
    padding-top: var(--space-sm);
}

.step-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.step-description {
    color: var(--color-text-secondary);
}

@media (min-width: 768px) {
    .process-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .process-step {
        justify-content: flex-end;
    }

    .process-step:nth-child(odd) {
        flex-direction: row-reverse;
    }

    .process-step:nth-child(odd) .step-content {
        text-align: right;
    }

    .step-number {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .step-content {
        width: calc(50% - 50px);
    }
}

/* ==========================================================================
   10. Contact Section
   ========================================================================== */

.contact {
    padding: var(--space-4xl) 0;
}

.contact-wrapper {
    display: grid;
    gap: var(--space-3xl);
}

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

.contact-description {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-xl);
}

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

.contact-method {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

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

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
}

.method-icon svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.method-text {
    color: var(--color-text-secondary);
}

/* Contact Form */
.contact-form {
    padding: var(--space-xl);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

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

.form-label {
    display: block;
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-input {
    width: 100%;
    padding: var(--space-md);
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
}

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

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

.form-input.error {
    border-color: #ef4444;
}

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

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

.form-error {
    display: block;
    margin-top: var(--space-xs);
    font-size: var(--text-xs);
    color: #ef4444;
}

.btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: block;
}

.spinner {
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
}

.form-success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--radius-lg);
    color: #22c55e;
    margin-top: var(--space-lg);
}

.form-success svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.form-success.show {
    display: flex;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

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

    .contact-methods {
        flex-direction: column;
    }

    .contact-method {
        justify-content: flex-start;
    }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    text-align: center;
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    margin-top: var(--space-sm);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    border-color: var(--color-primary);
    background: var(--color-bg-hover);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

.footer-social a:hover svg {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
}

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

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ==========================================================================
   12. Animations
   ========================================================================== */

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

@keyframes float {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: scaleY(1);
        opacity: 1;
    }
    50% {
        transform: scaleY(0.5);
        opacity: 0.5;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

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

/* Animation classes for JS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ==========================================================================
   13. Media Queries - Additional Breakpoints
   ========================================================================== */

/* Extra small devices */
@media (max-width: 359px) {
    :root {
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
        --text-6xl: 3rem;
    }

    .hero-stats {
        gap: var(--space-md);
    }

    .stat-number {
        font-size: var(--text-2xl);
    }
}

/* Large tablets and small desktops */
@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-card:nth-child(4) {
        grid-column: 2;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .service-card:nth-child(4) {
        grid-column: auto;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
