/* Responsive Design - Mobile First Approach */

/* Large Desktop (1440px and up) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1400px;
    }
    
    .title-main {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (1024px to 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .hero-content {
        gap: var(--spacing-2xl);
    }
    
    .title-main {
        font-size: 3.5rem;
    }
}

/* Tablet (768px to 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .title-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .arc-element {
        width: 250px;
        height: 250px;
    }
    
    .arc-element::before {
        width: 150px;
        height: 150px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        gap: var(--spacing-lg);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (320px to 767px) */
@media (max-width: 767px) {
    /* Typography adjustments */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    /* Container padding */
    .container {
        padding: 0 var(--spacing-md);
    }
    
    /* Navigation */
    .nav-container {
        height: 70px;
        padding: 0 var(--spacing-md);
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
        padding: var(--spacing-xl) 0;
        gap: var(--spacing-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Hero Section */
    .hero {
        height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-xl);
        padding: 0 var(--spacing-md);
    }
    
    .title-main {
        font-size: 2.5rem;
    }
    
    .title-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        justify-content: center;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .arc-element {
        width: 200px;
        height: 200px;
    }
    
    .arc-element::before {
        width: 120px;
        height: 120px;
    }
    
    /* Section spacing */
    .section-header {
        margin-bottom: var(--spacing-2xl);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Section */
    .about {
        padding: var(--spacing-2xl) 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .team-showcase {
        flex-direction: row;
        justify-content: center;
        gap: var(--spacing-lg);
    }
    
    .team-member {
        flex: 1;
        max-width: 200px;
    }
    
    .member-photo {
        width: 80px;
        height: 80px;
    }
    
    /* Projects Section */
    .projects {
        padding: var(--spacing-2xl) 0;
    }
    
    .projects-filter {
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .filter-btn {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: 0.875rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .project-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Services Section */
    .services {
        padding: var(--spacing-2xl) 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .service-card {
        padding: var(--spacing-lg);
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .service-features {
        justify-content: center;
    }
    
    /* Blog Section */
    .blog {
        padding: var(--spacing-2xl) 0;
    }
    
    .blog-search {
        flex-direction: column;
        align-items: stretch;
        gap: var(--spacing-md);
    }
    
    #blog-search {
        min-width: auto;
        width: 100%;
    }
    
    .blog-categories {
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .blog-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Contact Section */
    .contact {
        padding: var(--spacing-2xl) 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .contact-info {
        gap: var(--spacing-lg);
    }
    
    .contact-item {
        padding: var(--spacing-md);
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .contact-form {
        padding: var(--spacing-lg);
    }
    
    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-lg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Modal adjustments */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: var(--spacing-lg);
    }
    
    /* Button adjustments */
    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: 0.875rem;
    }
    
    /* Form adjustments */
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: var(--spacing-sm);
        font-size: 0.875rem;
    }
}

/* Small Mobile (320px to 479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-content {
        padding: 0 var(--spacing-sm);
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .arc-element {
        width: 150px;
        height: 150px;
    }
    
    .arc-element::before {
        width: 90px;
        height: 90px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 0.875rem;
    }
    
    .team-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member {
        max-width: 100%;
    }
    
    .projects-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .blog-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-md);
    }
    
    .contact-icon {
        margin: 0 auto;
    }
    
    .service-features {
        flex-direction: column;
        align-items: center;
    }
    
    .service-features span {
        width: 100%;
        text-align: center;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding-top: 70px;
    }
    
    .hero-content {
        gap: var(--spacing-lg);
    }
    
    .title-main {
        font-size: 2rem;
    }
    
    .title-subtitle {
        font-size: 0.875rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
        margin-bottom: var(--spacing-lg);
    }
    
    .arc-element {
        width: 120px;
        height: 120px;
    }
    
    .arc-element::before {
        width: 80px;
        height: 80px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .arc-element {
        border-width: 2px;
    }
    
    .arc-element::before {
        border-width: 1px;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .arc-element {
        animation: none;
    }
}

/* Dark mode support (if needed in future) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles can be added here */
}

/* Print styles */
@media print {
    .navbar,
    .hero,
    .footer {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-header {
        margin-bottom: var(--spacing-lg);
    }
    
    .about,
    .projects,
    .services,
    .blog,
    .contact {
        padding: var(--spacing-lg) 0;
        background-color: white;
    }
    
    .project-card,
    .service-card,
    .blog-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 