/* ========================================
   POLUSAI - RESPONSIVE STYLES
   ======================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 200px;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(59, 130, 246, 0.1);
        border-radius: 0 0 0 10px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .nav-links a:hover {
        background-color: rgba(59, 130, 246, 0.1);
    }

    .nav-links .hiring-link {
        background: linear-gradient(45deg, #3b82f6, #1d4ed8);
        color: white !important;
        margin-top: 0.5rem;
        text-align: center;
        font-weight: 600;
    }

    .nav-links .hiring-link:hover {
        background: linear-gradient(45deg, #1d4ed8, #1e40af);
        color: white !important;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* Header Responsive */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 0;
        min-height: 70px;
    }
    
    nav {
        align-items: center;
        height: 70px;
    }
    
    .logo img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.5rem 0;
        min-height: 60px;
    }
    
    nav {
        height: 60px;
    }
    
    .logo img {
        width: 121px;
        height: 121px;
    }
    
    .nav-links {
        width: 180px;
    }
}

/* Hero Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-mission {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-mission {
        font-size: 0.95rem;
    }
}

/* Section Titles Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
}

/* Grid Responsive */
@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card-main {
        transform: none;
        order: 2;
    }
    
    .service-card:first-of-type {
        order: 1;
    }
    
    /* Enhanced mobile touch targets */
    .service-card {
        min-height: 48px;
        padding: 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Journey Wheel Responsive */
    .journey-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .journey-wheel {
        width: 300px;
        height: 300px;
    }
    
    .wheel-inner-ring {
        width: 150px;
        height: 150px;
        margin: -75px 0 0 -75px;
    }
    
    .inner-content h2 {
        font-size: 1rem;
    }
    
    .inner-content p {
        font-size: 0.8rem;
    }
    
    .phase-content h3 {
        font-size: 0.8rem;
    }
    
    .phase-content p {
        font-size: 0.7rem;
    }
    
    .details-panel {
        max-width: 100%;
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .details-content h3 {
        font-size: 1.3rem;
    }
    
    .details-content p {
        font-size: 0.95rem;
    }
    
    .job-listings {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .service-card-main {
        transform: none;
        order: 2;
    }
    
    .service-card:first-of-type {
        order: 1;
    }
    
    /* Ensure proper touch targets on mobile */
    .service-card {
        min-height: 44px;
        padding: 2rem;
    }
    
    .timeline-container {
        padding: 1.5rem 0;
        width: 100%;
    }
    
    .timeline-track {
        padding: 0 1.5rem;
        gap: 1.25rem;
        justify-content: flex-start;
    }
    
    .timeline-track::before {
        left: 1.5rem;
        width: 80%;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .timeline-step {
        min-width: 130px;
        max-width: 150px;
        padding: 1.5rem 1rem;
        flex: none;
    }
}

/* Card Responsive */
@media (max-width: 768px) {
    .value-card, .service-card, .job-card, .team-member, .timeline-step {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .value-card, .service-card, .job-card, .team-member, .timeline-step {
        padding: 1.5rem;
    }
    
    .timeline-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Journey Wheel Mobile */
    .journey-wheel {
        width: 250px;
        height: 250px;
    }
    
    .wheel-inner-ring {
        width: 120px;
        height: 120px;
        margin: -60px 0 0 -60px;
    }
    
    .inner-content h2 {
        font-size: 0.9rem;
    }
    
    .inner-content p {
        font-size: 0.75rem;
    }
    
    .phase-content h3 {
        font-size: 0.7rem;
    }
    
    .phase-content p {
        font-size: 0.6rem;
    }
    
    .details-panel {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .details-content h3 {
        font-size: 1.2rem;
    }
    
    .details-content p {
        font-size: 0.9rem;
    }
    
    .phase-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .phase-icon::before {
        font-size: 1.2rem;
    }
}

/* CTA Buttons Responsive */
@media (max-width: 768px) {
    .cta-button, .cta-secondary {
        display: block;
        margin-bottom: 1rem;
        text-align: center;
        width: 100%;
    }
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* About Page Responsive */
@media (max-width: 768px) {
    .leadership-grid {
        flex-direction: column;
        gap: 2rem;
    }

    .leader-card.ceo {
        order: 1;
    }

    .leader-card.founder-left {
        order: 2;
    }

    .leader-card.founder-right {
        order: 3;
    }

    .leader-bubble {
        width: 180px;
        height: 180px;
    }

    .leader-card.ceo .leader-bubble {
        width: 200px;
        height: 200px;
    }

    .fast-facts-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .fast-fact-item {
        padding: 1rem;
    }

    .fast-fact-number {
        font-size: 1.8rem;
    }

    .fast-fact-text {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 2.5rem;
    }

    .cta-subtitle {
        font-size: 1.2rem;
    }

    .cta-email {
        padding: 1.4rem 3rem;
        font-size: 1.2rem;
    }

    .cta-section {
        padding: 4rem 0;
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .leader-bubble {
        width: 160px;
        height: 160px;
    }

    .leader-card.ceo .leader-bubble {
        width: 180px;
        height: 180px;
    }

    .fast-facts-container {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .fast-fact-item {
        padding: 0.75rem;
    }

    .fast-fact-number {
        font-size: 1.6rem;
    }

    .fast-fact-text {
        font-size: 0.85rem;
    }

    .cta-title {
        font-size: 2.2rem;
    }

    .cta-subtitle {
        font-size: 1.1rem;
    }

    .cta-email {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .cta-section {
        padding: 3rem 0;
        margin-top: 0;
    }
}

/* Blog Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .featured-blog-title {
        font-size: 2.5rem;
    }
    
    .featured-blog-excerpt {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .blog-featured-hero {
        padding: 8rem 0 6rem;
    }
    
    .featured-blog-image {
        height: 500px;
    }
    
    .featured-blog-overlay {
        padding: 3rem;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 280px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .featured-meta {
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
        gap: 0.75rem;
        display: flex;
        align-items: center;
        z-index: 10;
    }
    
    .featured-category {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .featured-date {
        font-size: 0.85rem;
    }
    
    .featured-blog-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
    
    .featured-blog-excerpt {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .featured-read-more {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        display: inline-block;
        width: auto;
        align-self: flex-start;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card-content {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .pagination button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .featured-blog-image {
        height: 450px;
    }
    
    .featured-blog-overlay {
        padding: 2.5rem;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        min-height: 250px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .featured-meta {
        margin-bottom: 1.25rem;
        flex-wrap: wrap;
        gap: 0.5rem;
        display: flex;
        align-items: center;
        z-index: 10;
    }
    
    .featured-category {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }
    
    .featured-date {
        font-size: 0.8rem;
    }
    
    .featured-blog-title {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }
    
    .featured-blog-excerpt {
        font-size: 0.95rem;
        line-height: 1.4;
        margin-bottom: 1.25rem;
    }
    
    .featured-read-more {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
        display: inline-block;
        width: auto;
        align-self: flex-start;
    }
    
    .blog-card-content {
        padding: 1.25rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* Blog Post Responsive */
@media (max-width: 768px) {
    .blog-post-hero {
        padding: 6rem 0 2rem;
    }
    
    .back-to-blog-nav {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .back-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
    
    .blog-post-title {
        font-size: 2.5rem;
    }
    
    .blog-post-meta {
        font-size: 1rem;
    }
    
    .blog-post-featured-image {
        height: 250px;
        font-size: 1rem;
    }
    
    .blog-post-article {
        padding: 2rem;
    }
    
    .blog-post-article h2 {
        font-size: 1.6rem;
    }
    
    .blog-post-article h3 {
        font-size: 1.3rem;
    }
    
    .blog-post-article p {
        font-size: 1rem;
    }
    
    .back-to-blog a {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .blog-post-title {
        font-size: 2rem;
    }
    
    .blog-post-meta {
        font-size: 0.9rem;
    }
    
    .blog-post-featured-image {
        height: 200px;
    }
    
    .blog-post-article {
        padding: 1.5rem;
    }
    
    .blog-post-article h2 {
        font-size: 1.4rem;
    }
    
    .blog-post-article h3 {
        font-size: 1.2rem;
    }
}

/* Legal Pages Responsive */
@media (max-width: 768px) {
    .main-content {
        padding-top: 90px;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .content-section {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .content-section h1 {
        font-size: 2rem;
    }
    
    .content-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .content-section h1 {
        font-size: 1.8rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
    }
}
