/* Responsive Design */

@media (max-width: 1024px) {
    .container {
        max-width: 960px;
    }
    
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 720px;
    }
    
    /* Flexbox adjustments */
    .flex-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Grid adjustments */
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Header adjustments */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .header-wrapper {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    /* Navigation adjustments */
    .primary-navigation {
        display: none !important;
    }
    
    /* Hero section adjustments */
    .hero-section {
        min-height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Sections adjustments */
    .section-spacing {
        padding: 2.5rem 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr !important;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    /* Cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .testimonial-slide {
        padding: 1.5rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    /* Floating buttons */
    .floating-buttons {
        bottom: 80px;
        right: 1rem;
        gap: 0.75rem;
    }
    
    .floating-btn {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 70px;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }
    
    .container {
        max-width: 540px;
    }
    
    /* Grid adjustments */
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    /* Header */
    .header-wrapper {
        padding: 0.75rem 1rem;
    }
    
    .site-branding {
        gap: 0.5rem;
    }
    
    .site-logo {
        height: 50px;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    /* Hero section */
    .hero-section {
        min-height: 300px;
        background-attachment: scroll;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    /* Portfolio grid */
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    /* Services */
    .services-header h2 {
        font-size: 1.5rem;
    }
    
    /* Forms */
    input,
    textarea,
    select {
        width: 100%;
        padding: 0.75rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Statistics */
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    /* FAQ */
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 1rem;
    }
    
    /* Newsletter form */
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }
    
    /* Floating buttons */
    .floating-buttons {
        bottom: 60px;
        right: 0.75rem;
    }
    
    .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 55px;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    html {
        font-size: 13px;
    }
    
    .container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
    
    .hero-section {
        min-height: 250px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .section-spacing {
        padding: 1.5rem 0;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

/* Print styles */
@media print {
    .site-header,
    .site-footer,
    .sidebar,
    .comments,
    .floating-buttons,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    a {
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    body.dark-mode {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    body.dark-mode .site-header {
        background-color: #222;
        border-bottom-color: #333;
    }
    
    body.dark-mode .service-card,
    body.dark-mode .testimonial-slide {
        background-color: #222;
    }
}

@media (max-width: 768px) {
    .custom-logo {
        width: 140px;
    }
}

@media (max-width: 480px) {
    .custom-logo {
        width: 100px;
    }
}

@media(max-width:991px){

.about-banner{
padding:70px 0;
}

.about-banner h1{
font-size:38px;
}

.about-banner p{
font-size:18px;
}

.our-story{
padding:70px 0;
}

.our-story h2{
margin-top:35px;
font-size:34px;
}

.counter-box{
justify-content:space-between;
gap:20px;
}

}

@media(max-width:767px){

.about-banner{
padding:50px 20px;
}

.about-banner h1{
font-size:30px;
}

.about-banner p{
font-size:16px;
}

.our-story{
text-align:center;
}

.counter-box{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:15px;
margin-top:30px;
}

.counter h3{
font-size:28px;
}

}

@media(max-width:575px){

.counter-box{
grid-template-columns:1fr;
}

}