/* Responsive Design - Mobile, Tablet, Desktop */

/* ===== DESKTOP (1200px and above) ===== */
@media (min-width: 1200px) {
    .hero-wrapper {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .hero-visual {
        height: 500px;
    }
    
    .hero-bg-image {
        max-width: 450px;
    }
    
    .hero-stats-modern {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .services-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .impact-content {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 80px;
    }
    
    .reach-content {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ===== TABLET (768px to 1199px) ===== */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-container {
        padding: 0 30px;
    }
    
    .hero-container {
        padding: 0 30px;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-bottom: 60px;
    }
    
    .hero-visual {
        height: 350px;
    }
    
    .hero-bg-image {
        max-width: 350px;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
    }
    
    .hero-stats-modern {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .stat-item {
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .large-card {
        grid-column: 1 / -1;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .reach-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .reach-stats {
        justify-content: flex-start;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    section {
        padding: 100px 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* ===== MOBILE (480px to 767px) ===== */
@media (max-width: 767px) {
    .container {
        padding: 0 20px;
    }
    
    .nav-container {
        padding: 0 20px;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .hero-visual {
        height: 280px;
    }
    
    .hero-bg-image {
        max-width: 250px;
        opacity: 0.7;
    }
    
    .hero-title {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .badge-icon {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-top: 0;
    }
    
    .hero-stats-modern {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 30px;
    }
    
    .stat-item {
        gap: 15px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stat-icon svg {
        width: 26px;
        height: 26px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .about-card {
        padding: 30px;
    }
    
    .about-card h3 {
        font-size: 1.3rem;
    }
    
    .impact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .impact-text h2 {
        font-size: 1.8rem;
    }
    
    .impact-text p {
        font-size: 1rem;
    }
    
    .impact-stats {
        gap: 30px;
    }
    
    .impact-stat {
        padding: 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .large-card {
        min-height: 400px;
    }
    
    .service-card {
        min-height: 350px;
    }
    
    .card-content {
        padding: 30px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .card-stats {
        gap: 10px;
    }
    
    .card-stats span {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info {
        gap: 30px;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-form input,
    .contact-form textarea {
        padding: 14px 16px;
        font-size: 16px;
    }
    
    .reach-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .reach-stats {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .reach-stat .stat-number {
        font-size: 3rem;
    }
    
    .reach-text p {
        font-size: 1rem;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .client-logo {
        min-height: 150px;
    }
    
    .client-logo img {
        max-width: 120px;
        max-height: 60px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-item {
        padding: 20px;
    }
    
    .tech-item img {
        width: 40px;
        height: 40px;
    }
    
    .tech-item p {
        font-size: 0.85rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* ===== SMALL MOBILE (320px to 479px) ===== */
@media (max-width: 479px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .hero-wrapper {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .hero-visual {
        height: 220px;
    }
    
    .hero-bg-image {
        max-width: 180px;
        opacity: 0.5;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .hero-badge {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .badge-icon {
        font-size: 1rem;
    }
    
    .hero-cta {
        gap: 10px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    
    .hero-stats-modern {
        grid-template-columns: 1fr;
        gap: 15px;
        padding-top: 20px;
    }
    
    .stat-item {
        gap: 12px;
    }
    
    .stat-icon {
        width: 45px;
        height: 45px;
    }
    
    .stat-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .about-card {
        padding: 24px;
    }
    
    .about-card h3 {
        font-size: 1.2rem;
    }
    
    .card-icon {
        width: 40px;
        height: 40px;
    }
    
    .impact-text h2 {
        font-size: 1.5rem;
    }
    
    .impact-stat {
        padding: 24px;
    }
    
    .impact-stat .stat-number {
        font-size: 2.5rem;
    }
    
    .service-card {
        min-height: 300px;
    }
    
    .card-content {
        padding: 24px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
    }
    
    .contact-item h4 {
        font-size: 1rem;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    .reach-stat .stat-number {
        font-size: 2.5rem;
    }
    
    .reach-text p {
        font-size: 0.95rem;
    }
    
    .client-logo {
        min-height: 120px;
        padding: 20px;
    }
    
    .client-logo img {
        max-width: 100px;
        max-height: 50px;
    }
    
    .client-text-content h4 {
        font-size: 1rem;
    }
    
    .client-text-content p {
        font-size: 0.9rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-card h3 {
        font-size: 1.1rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-item {
        padding: 16px;
    }
    
    .tech-item img {
        width: 36px;
        height: 36px;
    }
    
    .tech-item p {
        font-size: 0.8rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
}

/* ===== RESPONSIVE ADJUSTMENTS FOR NEW SECTIONS ===== */

/* Capability Statement Section */
@media (max-width: 1199px) {
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .capability-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .capability-intro {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .capability-statement {
        padding: 80px 0;
    }
    
    .capability-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        margin-bottom: 30px;
    }
    
    .capability-intro {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .capability-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .capability-item h3 {
        font-size: 1.1rem;
    }
    
    .capability-list li {
        font-size: 1rem;
        padding-left: 20px;
    }
    
    .capability-closing {
        font-size: 1rem;
        padding: 24px;
    }
}

@media (max-width: 479px) {
    .capability-statement {
        padding: 60px 0;
    }
    
    .capability-title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
        margin-bottom: 24px;
    }
    
    .capability-intro {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .capability-item h3 {
        font-size: 1rem;
    }
    
    .capability-list li {
        font-size: 0.95rem;
        padding-left: 18px;
    }
    
    .capability-closing {
        font-size: 0.95rem;
        padding: 20px;
    }
}

/* CTA Section (Main Page) */
@media (max-width: 1199px) {
    .cta-section {
        padding: 100px 0;
    }
    
    .cta-title {
        font-size: clamp(2rem, 4vw, 2.8rem);
    }
    
    .cta-text {
        font-size: 1.1rem;
    }
    
    .cta-highlight {
        font-size: 1.2rem;
    }
}

@media (max-width: 767px) {
    .cta-section {
        padding: 80px 0;
    }
    
    .cta-title {
        font-size: clamp(1.5rem, 3.5vw, 2rem);
        margin-bottom: 30px;
    }
    
    .cta-body {
        gap: 16px;
        margin-bottom: 30px;
    }
    
    .cta-text {
        font-size: 1rem;
    }
    
    .cta-highlight {
        font-size: 1.1rem;
        padding: 20px;
    }
    
    .cta-button {
        margin-top: 16px;
        font-size: 1rem;
    }
}

@media (max-width: 479px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-title {
        font-size: clamp(1.3rem, 3vw, 1.8rem);
        margin-bottom: 24px;
    }
    
    .cta-body {
        gap: 14px;
        margin-bottom: 24px;
    }
    
    .cta-text {
        font-size: 0.95rem;
    }
    
    .cta-highlight {
        font-size: 1rem;
        padding: 18px;
    }
    
    .cta-button {
        width: 100%;
        justify-content: center;
        margin-top: 14px;
    }
}

/* Service CTA Section (Service Pages) */
@media (max-width: 1199px) {
    .service-cta {
        padding: 80px 0;
    }
    
    .service-cta h2 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .service-cta p {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .service-cta {
        padding: 70px 0;
    }
    
    .service-cta-content {
        max-width: 100%;
    }
    
    .service-cta h2 {
        font-size: clamp(1.4rem, 3.5vw, 2rem);
        margin-bottom: 20px;
    }
    
    .service-cta p {
        font-size: 1rem;
        margin-bottom: 24px;
    }
    
    .service-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 479px) {
    .service-cta {
        padding: 50px 0;
    }
    
    .service-cta h2 {
        font-size: clamp(1.2rem, 3vw, 1.7rem);
        margin-bottom: 18px;
    }
    
    .service-cta p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .service-cta .btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Contact Intro Section */
@media (max-width: 1199px) {
    .contact-intro {
        margin-bottom: 50px;
    }
    
    .contact-intro p {
        font-size: 1.05rem;
    }
}

@media (max-width: 767px) {
    .contact-intro {
        max-width: 100%;
        margin-bottom: 40px;
        gap: 14px;
    }
    
    .contact-intro p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 479px) {
    .contact-intro {
        margin-bottom: 30px;
        gap: 12px;
    }
    
    .contact-intro p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
}

/* Services Intro Text */
@media (max-width: 1199px) {
    .services-intro {
        font-size: 1.1rem;
        margin-bottom: 50px;
    }
}

@media (max-width: 767px) {
    .services-intro {
        font-size: 1rem;
        margin-bottom: 40px;
        max-width: 100%;
    }
}

@media (max-width: 479px) {
    .services-intro {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
}

/* Hero Description (Service Pages) */
@media (max-width: 1199px) {
    .hero-description {
        max-width: 100%;
        gap: 20px;
    }
    
    .hero-primary {
        font-size: 1.3rem;
    }
    
    .hero-secondary {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .service-hero {
        padding: 120px 0 80px;
    }
    
    .service-hero h1 {
        font-size: clamp(2rem, 5vw, 2.8rem);
        margin-bottom: 1.2rem;
    }
    
    .hero-description {
        gap: 16px;
    }
    
    .hero-primary {
        font-size: 1.2rem;
        line-height: 1.6;
    }
    
    .hero-secondary {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 479px) {
    .service-hero {
        padding: 100px 0 60px;
    }
    
    .service-hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 1rem;
    }
    
    .hero-description {
        gap: 14px;
    }
    
    .hero-primary {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .hero-secondary {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Additional responsive adjustments for service pages and components */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .large-card {
        grid-column: 1 / -1;
    }
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--darker-bg);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 40px 20px;
        gap: 30px;
        transform: translateY(-100vh);
        transition: transform 0.3s ease;
        z-index: 999;
    }
    
    .nav-menu.active {
        display: flex;
        transform: translateY(0);
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        text-align: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
