/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-content h1 {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    :root {
        --container-padding: 4%;
    }
    
    .hero {
        gap: var(--spacing-2xl);
    }
    
    .content-split {
        gap: var(--spacing-2xl);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 991px) {
    :root {
        --container-padding: 3%;
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.5rem;
    }
    
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: var(--spacing-2xl) 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right var(--transition-base);
        z-index: 999;
    }
    
    .nav-links.mobile-active {
        right: 0;
    }
    
    .nav-links li {
        margin: var(--spacing-md) 0;
    }
    
    .nav-link {
        font-size: var(--font-size-lg);
        padding: var(--spacing-md) var(--spacing-lg);
        display: block;
        text-align: center;
        width: 200px;
        border-radius: var(--border-radius);
        transition: all var(--transition-base);
    }
    
    .nav-link:hover,
    .nav-link.active {
        background: var(--bg-light);
        color: var(--primary-blue);
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .cta-button {
        display: none;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Hero Section */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
        padding-top: 100px;
        min-height: auto;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 0;
    }
    
    .hero-subtitle {
        max-width: none;
    }
    
    .floating-cards {
        height: 300px;
        transform: scale(0.8);
    }
    
    /* Content Split */
    .content-split {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .content-left,
    .content-right {
        text-align: center;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    /* Portfolio Preview */
    .portfolio-preview {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
}

/* Mobile Large */
@media (max-width: 767px) {
    :root {
        --container-padding: 5%;
        --spacing-4xl: 3rem;
        --spacing-3xl: 2.5rem;
        --spacing-2xl: 2rem;
    }
    
    /* Typography */
    .hero-content h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: var(--font-size-lg);
    }
    
    /* Navigation */
    .nav-links {
        width: 100%;
        right: -100%;
    }
    
    .nav-links.mobile-active {
        right: 0;
    }
    
    /* Hero Section */
    .hero {
        padding: 80px var(--container-padding) 60px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--spacing-md);
    }
    
    .btn {
        padding: var(--spacing-md) var(--spacing-xl);
        min-width: 200px;
        justify-content: center;
    }
    
    .floating-cards {
        height: 250px;
        transform: scale(0.7);
    }
    
    .floating-card {
        min-width: 140px;
    }
    
    .floating-card[data-delay="0"] {
        width: 160px;
    }
    
    .floating-card[data-delay="2"] {
        width: 150px;
    }
    
    .floating-card[data-delay="4"] {
        width: 140px;
    }
    
    /* Stats */
    .stats {
        padding: 60px var(--container-padding);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: var(--font-size-base);
    }
    
    /* Services */
    .services-overview {
        padding: 80px var(--container-padding);
    }
    
    .service-card {
        padding: var(--spacing-xl);
    }
    
    /* Why Choose Us */
    .why-choose-us {
        padding: 80px var(--container-padding);
    }
    
    .benefit-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .benefit-content {
        text-align: center;
    }
    
    .experience-showcase {
        margin-top: var(--spacing-xl);
    }
    
    /* Portfolio Teaser */
    .portfolio-teaser {
        padding: 80px var(--container-padding);
    }
    
    .portfolio-item {
        margin-bottom: var(--spacing-lg);
    }
    
    /* CTA Section */
    .cta-section {
        padding: 80px var(--container-padding);
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .cta-content p {
        font-size: var(--font-size-lg);
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    /* Footer */
    .footer {
        padding: 40px var(--container-padding) 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }
}

/* Mobile Small */
@media (max-width: 575px) {
    :root {
        --spacing-4xl: 2rem;
        --spacing-3xl: 1.5rem;
        --spacing-2xl: 1.5rem;
    }
    
    /* Typography */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav {
        padding: var(--spacing-sm) var(--container-padding);
    }
    
    .logo {
        font-size: var(--font-size-xl);
    }
    
    /* Hero */
    .hero {
        padding: 60px var(--container-padding) 40px;
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .floating-cards {
        transform: scale(0.6);
        height: 200px;
    }
    
    /* Service Cards */
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-xl);
    }
    
    /* Portfolio Tags */
    .portfolio-tags {
        justify-content: center;
    }
    
    .tag {
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Benefits */
    .benefit-icon {
        width: 35px;
        height: 35px;
        font-size: var(--font-size-base);
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    :root {
        --container-padding: 4%;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        min-width: 180px;
        padding: 0.75rem 1.5rem;
        font-size: var(--font-size-sm);
    }
    
    .floating-cards {
        transform: scale(0.5);
        height: 180px;
    }
    
    .service-card,
    .portfolio-item,
    .experience-item {
        margin-bottom: var(--spacing-md);
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .header,
    .mobile-menu-toggle,
    .cta-section,
    .footer {
        display: none !important;
    }
    
    .hero {
        margin-top: 0;
        padding-top: 0;
    }
    
    .floating-cards {
        display: none;
    }
    
    a:visited {
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
    }
    
    .btn {
        border: 1px solid black;
        background: transparent;
        color: black;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #0000ff;
        --primary-purple: #800080;
        --text-dark: #000000;
        --text-light: #333333;
        --bg-white: #ffffff;
        --border-light: #000000;
    }
    
    .btn-primary {
        background: var(--primary-blue);
        border: 2px solid var(--primary-blue);
    }
    
    .service-card,
    .portfolio-item {
        border: 2px solid var(--text-dark);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    .service-card:hover,
    .portfolio-item:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-white: #1a1a1a;
        --bg-light: #2d2d2d;
        --text-dark: #ffffff;
        --text-light: #b0b0b0;
        --text-muted: #808080;
        --border-light: #404040;
        --border-muted: rgba(255, 255, 255, 0.1);
    }
    
    .header {
        background: rgba(26, 26, 26, 0.95);
        border-bottom-color: var(--border-muted);
    }
    
    .service-card,
    .portfolio-item,
    .experience-item {
        background: var(--bg-light);
        border-color: var(--border-light);
    }
    
    .floating-card[data-delay="0"] {
        background: linear-gradient(135deg, #1e3a8a, #1e40af);
    }
    
    .floating-card[data-delay="2"] {
        background: linear-gradient(135deg, #581c87, #6b21a8);
    }
    
    .floating-card[data-delay="4"] {
        background: linear-gradient(135deg, #065f46, #047857);
    }
}