/* ===== RESPONSIVE DESIGN ===== */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .section {
        max-width: 1600px;
    }
    
    .hero h1 {
        font-size: 8rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .services {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .team {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Laptop/Tablet Large (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .section {
        padding: 4rem 2rem;
    }
    
    .hero h1 {
        font-size: 5rem;
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .team {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .contact-container {
        gap: 3rem;
    }
    
    .about {
        gap: 3rem;
    }
}

/* Tablet (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero h1 {
        font-size: 4rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .services {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-visual {
        height: 300px;
    }
    
    .team {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Large (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 0 1rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 0.9rem;
    }
    
    .section {
        padding: 2.5rem 1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 2rem;
    }
    
    .about-visual {
        height: 250px;
    }
    
    .team {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .testimonial-content p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    header {
        padding: 1rem;
    }
    
    .hero {
        padding: 0 1rem;
        height: 100vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .section {
        padding: 2rem 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .services {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .about {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-content p {
        font-size: 1rem;
    }
    
    .about-visual {
        height: 200px;
    }
    
    .visual-content i {
        font-size: 3rem;
    }
    
    .team {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .team-member {
        padding: 1.5rem;
    }
    
    .team-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .team-member h4 {
        font-size: 1.1rem;
    }
    
    .stats {
        padding: 2rem 1rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .stat-item p {
        font-size: 1rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-info h3 {
        font-size: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .testimonials {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }
    
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

/* Mobile Extra Small (up to 360px) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero .subtitle {
        font-size: 0.9rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 1.8rem;
    }
    
    .team-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 6rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-buttons {
        gap: 0.5rem;
    }
    
    .cta-button {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .custom-cursor,
    #canvas-container,
    .mobile-menu,
    .cta-button,
    .social-links,
    .testimonial-dots {
        display: none !important;
    }
    
    header {
        position: static;
        background: white;
        padding: 1rem 0;
        border-bottom: 2px solid #333;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
        page-break-after: always;
    }
    
    .section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .service-card,
    .team-member {
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        border-top: 2px solid #333;
        padding-top: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-icon,
    .team-avatar i,
    .visual-content i {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .custom-cursor {
        display: none;
    }
}

/* Dark Mode Support (if user prefers dark) */
@media (prefers-color-scheme: dark) {
    :root {
        --background-dark: #000000;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff4500;
        --secondary-color: #ffa500;
        --border-color: rgba(255, 107, 53, 0.5);
    }
    
    .service-card,
    .team-member,
    .contact-form {
        border: 2px solid var(--primary-color);
    }
    
    .cta-button {
        border: 2px solid var(--primary-color);
    }
}