/* Errakui Holding LTD - Ultra Modern CSS */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #0066ff;
    --primary-dark: #0052cc;
    --primary-light: #3385ff;
    --secondary: #00d4aa;
    --accent: #ff6b35;
    --success: #00c851;
    --warning: #ffbb33;
    --error: #ff4444;
    
    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --black: #000000;
    
    /* Dark theme */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    
    /* 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;
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-popover: 1050;
    --z-tooltip: 1060;
}

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

*,
*::before,
*::after {
    max-width: 100%;
}

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

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100%;
    max-width: 100vw;
}

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

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

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

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

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

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-normal);
}

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

.nav-logo img {
    height: 60px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    padding: 5px 0;
    transition: var(--transition-fast);
    /* Logo is already white, no filter needed */
}

.nav-logo:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: var(--space-sm);
    gap: 4px;
}

.nav-toggle .bar {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition-fast);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

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

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2em;
    transition: var(--transition-fast);
}

.btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(0, 212, 170, 0.05) 100%);
}

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

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-4xl);
    align-items: center;
}

.hero-title {
    margin-bottom: var(--space-xl);
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--space-2xl);
    color: var(--text-secondary);
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}

.hero-buttons {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

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

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: var(--transition-normal);
}

.hero-card.floating {
    animation: float 6s ease-in-out infinite;
}

.hero-card.floating[data-delay="200"] {
    animation-delay: -2s;
}

.hero-card.floating[data-delay="400"] {
    animation-delay: -4s;
}

.hero-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

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

.card-header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 3px;
    animation: progress 2s ease-out;
}

.blockchain-visual {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.block {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.block.active {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

.chart {
    display: flex;
    align-items: end;
    gap: var(--space-xs);
    height: 40px;
    margin-bottom: var(--space-sm);
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    border-radius: 2px;
    animation: chartGrow 1.5s ease-out;
}

.hero-scroll {
    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(--text-muted);
    font-size: 0.9rem;
}

.scroll-indicator {
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    border-radius: 1px;
    animation: scroll 2s ease-in-out infinite;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: var(--space-4xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-tag {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Services Preview */
.services-preview {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-4xl);
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.05) 0%, 
        transparent 50%, 
        rgba(0, 212, 170, 0.05) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.3);
}

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

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    display: block;
}

.service-title {
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

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

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.feature-tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.service-case {
    background: rgba(0, 102, 255, 0.1);
    border-left: 3px solid var(--primary);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}

.service-case strong {
    color: var(--primary);
}

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

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

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

/* Portfolio Showcase */
.portfolio-showcase {
    padding: var(--space-4xl) 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-4xl);
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.3);
}

.portfolio-image {
    height: 250px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-preview {
    width: 90%;
    height: 80%;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.preview-header {
    height: 30px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
}

.preview-dots {
    display: flex;
    gap: var(--space-xs);
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.preview-content {
    padding: var(--space-md);
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.code-line {
    display: flex;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.code-keyword {
    color: var(--primary);
}

.code-text {
    color: var(--text-muted);
}

.portfolio-content {
    padding: var(--space-2xl);
}

.portfolio-title {
    margin-bottom: var(--space-md);
    font-size: 1.3rem;
}

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

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tech-tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-metrics {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.metric-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.metric-icon {
    color: var(--success);
}

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

/* Why Choose Us */
.why-choose-us {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
}

.why-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.why-feature {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: var(--space-sm);
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--text-secondary);
    margin: 0;
}

.why-cta {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.why-visual {
    display: flex;
    justify-content: center;
}

.stats-dashboard {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    width: 100%;
    max-width: 400px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xl);
}

.dashboard-header h3 {
    font-size: 1.2rem;
    margin: 0;
}

.status-indicator {
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
}

.status-indicator.active {
    background: rgba(0, 200, 81, 0.2);
    color: var(--success);
}

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

.metric-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.metric-trend {
    font-size: 0.8rem;
    font-weight: 600;
}

.metric-trend.up {
    color: var(--success);
}

.metric-trend.down {
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(0, 212, 170, 0.1) 100%);
}

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

.cta-title {
    margin-bottom: var(--space-lg);
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

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

.cta-trust p {
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

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

.trust-badge {
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.cities-served {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.city-tag {
    padding: var(--space-xs) var(--space-md);
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.3);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition-fast);
}

.city-tag:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background: var(--bg-tertiary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-4xl) 0 var(--space-xl);
}

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

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h4 {
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

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

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--text-primary);
}

.footer-logo img {
    height: 50px;
    width: auto;
    max-width: 180px;
    margin-bottom: var(--space-lg);
    /* Logo is already white, no filter needed */
}

.footer-logo p {
    color: var(--text-secondary);
    margin: 0;
}

.contact-info p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.contact-info a {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-links {
    display: flex;
    gap: var(--space-xl);
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes progress {
    from { width: 0; }
    to { width: 85%; }
}

@keyframes chartGrow {
    from { height: 0; }
}

@keyframes scroll {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Responsive Design - Complete */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .hero-content,
    .why-content {
        gap: var(--space-2xl);
    }
}

@media (max-width: 1024px) {
    .hero-content,
    .why-content {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
        height: 70px;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        padding: var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        gap: var(--space-md);
        z-index: 1000;
    }
    
    .nav-menu.active .nav-link {
        padding: var(--space-md);
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-md);
        width: 100%;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-cta {
        display: none;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: var(--space-xl);
    }
    
    .hero-buttons,
    .cta-buttons,
    .why-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
        margin-bottom: var(--space-xl);
    }
    
    .stat-item {
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
        margin-bottom: var(--space-xl);
    }
    
    .hero-card {
        margin-bottom: var(--space-lg);
    }
    
    .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .service-card,
    .portfolio-item {
        padding: var(--space-lg);
    }
    
    .why-features {
        gap: var(--space-lg);
    }
    
    .why-feature {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .stats-dashboard {
        max-width: 100%;
        padding: var(--space-lg);
    }
    
    .cities-served {
        justify-content: center;
    }
    
    .city-tag {
        font-size: 0.8rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-xl);
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-container {
        padding: 0 var(--space-md);
        height: 60px;
    }
    
    .nav-logo img {
        height: 30px;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        margin-bottom: var(--space-lg);
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-stats {
        gap: var(--space-md);
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .section-header {
        margin-bottom: var(--space-2xl);
    }
    
    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: var(--space-md);
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card,
    .portfolio-item {
        padding: var(--space-md);
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: var(--space-md);
    }
    
    .service-title {
        font-size: 1.1rem;
        margin-bottom: var(--space-sm);
    }
    
    .service-description {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }
    
    .service-features {
        gap: var(--space-xs);
        margin-bottom: var(--space-md);
    }
    
    .feature-tag {
        font-size: 0.75rem;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .service-case {
        padding: var(--space-md);
        margin-bottom: var(--space-md);
        font-size: 0.85rem;
    }
    
    .btn {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
    
    .btn-large {
        padding: var(--space-md) var(--space-lg);
        font-size: 0.95rem;
        width: 100%;
        max-width: 280px;
    }
    
    .hero-card {
        padding: var(--space-lg);
    }
    
    .card-header h3 {
        font-size: 1rem;
    }
    
    .why-feature {
        padding: var(--space-md);
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .cities-served {
        gap: var(--space-xs);
    }
    
    .city-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .btn-large {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .service-card,
    .portfolio-item,
    .hero-card {
        padding: 1rem;
    }
}
