/* Responsive Styles */

/* Tablet */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-left {
        padding-right: 20px;
    }
    /* Ensure hero clears fixed header on tablet */
    .hero { 
        padding: 120px 0 60px; 
    }
    
    .hero-title {
        font-size: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Extra top padding to avoid overlap with fixed header */
    .hero { 
        padding: 140px 0 60px; 
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }
    
    .hero-left {
        padding-right: 0;
        order: 1;
    }
    
    .hero-right {
        order: 2;
        height: 300px;
    }
    
    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .hero-description {
        margin-bottom: 30px;
    }
    
    .description-line {
        display: none;
    }
    
    .description-icon {
        position: static;
        transform: none;
        margin-top: 10px;
        display: inline-block;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    
    /* Navigation (no hamburger on mobile) */
    .nav-links { display: none; }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Demo */
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Results */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .process-step::after {
        display: none;
    }
    
    /* Audit */
    .audit-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Benefits stack: image top, content bottom */
    .benefits-content { grid-template-columns: 1fr; gap: 30px; }
    .benefits-left { order: 1; }
    .benefits-right { order: 2; padding-left: 0; }
    .benefits-title { text-align: left; padding-left: 16px; }
    .benefits { padding: 40px 20px; }
    
    /* Contact */
    .contact-form { padding: 0 20px; }
    
    /* Footer */
    .footer-content { grid-template-columns: 1fr; gap: 30px; text-align: left; }
    /* Footer fine-tune */
    .footer-content { grid-template-columns: 1fr; gap: 24px; }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .feature-card,
    .demo-card,
    .pricing-card {
        padding: 30px 20px;
    }
    
    .hero-right {
        height: 250px;
    }
    
    .character-head {
        width: 50px;
        height: 50px;
    }
    
    .character-body {
        width: 70px;
        height: 80px;
    }
    
    .laptop {
        width: 100px;
        height: 70px;
    }
    
    .laptop-screen {
        width: 80px;
        height: 50px;
    }
}

/* Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .hero-right {
        height: 600px;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-buttons,
    .floating-elements,
    .hero-right {
        display: none;
    }
    
    .hero {
        background: white;
        padding: 20px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        color: #000;
        font-size: 24px;
    }
    
    .hero-description p {
        color: #000;
    }
}

/* Features Section Responsive */
@media (max-width: 1024px) {
    .features-grid {
        gap: 30px;
    }
    
    .feature-card {
        padding: 35px 25px;
    }
}

@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }
    
    .features-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .features-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .feature-title {
        font-size: 20px;
    }
    
    .feature-description {
        font-size: 15px;
    }
    
    .comparison-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .comparison-card {
        padding: 25px 20px;
    }
    
    .comparison-title {
        font-size: 18px;
    }
    
    .comparison-list li {
        font-size: 13px;
    }
}

/* Case Studies Page Responsive */
@media (max-width: 1024px) {
    .case-studies-filters {
        padding: 0 20px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-group,
    .filter-group {
        width: 100%;
    }
    
    .case-studies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .case-studies {
        padding: 100px 0 40px; /* Reduce top padding to decrease gap between header and title */
    }
    
    .footer {
        
    }
    
    .floating-contact {
        bottom: 15px; /* Raise floating contact icons higher on mobile */
        gap : 20px;
        right: 15px;
    }
    
    .back-to-top {
        bottom: 15px; /* Raise back-to-top button higher on mobile */
        left: 15px;
    }
    
    .case-studies-header {
        padding: 0 20px;
        text-align: center;
    }
    
    .case-studies-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .case-studies-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .case-studies-filters {
        padding: 0 20px;
        margin-bottom: 30px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }
    
    .filters-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-group {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        padding: 12px 15px 12px 45px;
        font-size: 16px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-select {
        width: 100%;
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .search-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .case-studies-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .case-study-card {
        margin-bottom: 0;
    }
    
    .case-study-content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .case-study-title {
        font-size: 18px;
        margin-bottom: 0;
    }
    
    .case-study-link {
        margin-top: auto;
    }
    
    .case-study-client,
    .case-study-duration,
    .case-study-results {
        font-size: 13px;
        justify-content: left;
    }
    
    .case-study-excerpt {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .case-study-link {
        padding: 10px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .case-studies-title {
        font-size: 24px;
    }
    
    .case-studies-subtitle {
        font-size: 14px;
    }
    
    .filters-form {
        gap: 10px;
    }
    
    .search-input,
    .filter-select {
        padding: 10px 12px 10px 40px;
        font-size: 14px;
    }
    
    .search-icon {
        left: 12px;
        font-size: 14px;
    }
    
    .search-button {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .case-studies-grid {
        padding: 0;
        gap: 15px;
    }
    
    .case-study-card {
        border-radius: 8px;
    }
    
    .case-study-image {
        height: 200px;
    }
    
    .case-study-content {
        padding: 12px;
        gap: 6px;
    }
    
    .case-study-title {
        font-size: 16px;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    .case-study-client,
    .case-study-duration,
    .case-study-results {
        font-size: 12px;
        padding: 4px 8px;
        justify-content: left;
    }
    
    .case-study-excerpt {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 0;
    }
    
    .case-study-link {
        padding: 8px 12px;
        font-size: 13px;
        margin-top: auto;
    }
    
    .industry-badge,
    .status-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* Case Study Detail Page Responsive */
@media (max-width: 1024px) {
    .case-study-detail {
        padding: 100px 0 40px; /* Add top padding to avoid header overlap */
    }
    
    .case-study-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .case-study-sidebar {
        order: 2;
    }
    
    .case-study-main {
        order: 1;
    }
    
    .other-projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .case-study-detail {
        padding: 100px 0 30px; /* Add top padding to avoid header overlap */
    }
    
    .case-study-header {
        padding: 0 20px;
        text-align: center;
    }
    
    .case-study-title {
        font-size: 24px;
        margin-top: 10px;
    }
    
    .case-study-client {
        font-size: 14px;
        justify-content: left;
        /* margin-bottom: 20px; */
    }
    
    .case-study-featured-image {
        margin: 0 20px 30px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .case-study-content {
        padding: 0 20px;
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .case-study-main h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .case-study-main .content {
        font-size: 14px;
        line-height: 1.6;
    }
    
    .case-study-gallery {
        margin-top: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .sidebar-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar-card h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 15px;
    }
    
    .info-item i {
        font-size: 16px;
    }
    
    .info-item .label {
        font-size: 14px;
        font-weight: 600;
    }
    
    .info-item .value {
        font-size: 14px;
    }
    
    .contact-button {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        text-align: center;
    }
    
    .other-projects {
        padding: 0 20px;
        margin-top: 40px;
    }
    
    .other-projects h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .other-projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .other-project-card {
        border-radius: 8px;
    }
    
    .other-project-content {
        padding: 15px;
    }
    
    .other-project-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .other-project-client {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .other-project-excerpt {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .other-project-meta {
        gap: 8px;
    }
    
    .other-project-duration,
    .other-project-results {
        font-size: 12px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .case-study-detail {
        padding: 100px 0 20px; /* Add top padding to avoid header overlap */
    }
    
    .case-study-header {
        padding: 0 15px;
    }
    
    .case-study-title {
        font-size: 20px;
    }
    
    .case-study-client {
        font-size: 13px;
    }
    
    .case-study-featured-image {
        margin: 0 15px 20px;
    }
    
    .case-study-content {
        padding: 0 15px;
        gap: 20px;
    }
    
    .case-study-main h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    
    .case-study-main .content {
        font-size: 13px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .sidebar-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .sidebar-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .info-item {
        margin-bottom: 12px;
    }
    
    .info-item i {
        font-size: 14px;
    }
    
    .info-item .label {
        font-size: 13px;
    }
    
    .info-item .value {
        font-size: 13px;
    }
    
    .contact-button {
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .other-projects {
        padding: 0 15px;
        margin-top: 30px;
    }
    
    .other-projects h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .other-projects-grid {
        gap: 15px;
    }
    
    .other-project-content {
        padding: 12px;
    }
    
    .other-project-title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .other-project-client {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .other-project-excerpt {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .other-project-duration,
    .other-project-results {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .view-more-projects {
        padding: 10px 15px;
        font-size: 13px;
    }
}
