/* ===================================
   TRUST MWABA PORTFOLIO - RESPONSIVE
   =================================== */

/* Large Desktops (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title .name {
        font-size: 4.5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop (1200px to 1399px) */
@media (max-width: 1399px) {
    .hero-title .name {
        font-size: 3.75rem;
    }
    
    .section-title {
        font-size: 2.75rem;
    }
}

/* Laptop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-title .name {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .image-frame {
        width: 350px;
        height: 350px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 1.5rem;
    }
    
    /* Navigation */
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 300px;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    /* Hero Section */
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title .name {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .image-frame {
        width: 300px;
        height: 300px;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Featured Work */
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Tablet Portrait (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Navigation */
    .logo a {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        width: 250px;
    }
    
    /* Hero Section */
    .hero {
        padding: 5rem 1rem 2rem;
        min-height: auto;
    }
    
    .hero-title .name {
        font-size: 2.5rem;
    }
    
    .greeting {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .image-frame {
        width: 250px;
        height: 250px;
    }
    
    .profile-placeholder i {
        font-size: 7rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-tag {
        font-size: 0.8125rem;
        padding: 0.4rem 1.25rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
    
    .service-card h3 {
        font-size: 1.25rem;
    }
    
    /* Featured Work */
    .featured-grid {
        gap: 1.25rem;
    }
    
    .featured-overlay h3 {
        font-size: 1.5rem;
    }
    
    /* Stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        font-size: 1.25rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Mobile (up to 575px) */
@media (max-width: 575px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .logo a {
        font-size: 1.25rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
    
    /* Hero Section */
    .hero {
        padding: 4rem 1rem 2rem;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-title .name {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .greeting {
        font-size: 0.9375rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-description {
        font-size: 0.9375rem;
    }
    
    .image-frame {
        width: 200px;
        height: 200px;
    }
    
    .profile-placeholder i {
        font-size: 5rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 0.875rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-description {
        font-size: 0.9375rem;
    }
    
    .section-tag {
        font-size: 0.75rem;
        padding: 0.375rem 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .service-card p {
        font-size: 0.9375rem;
        margin-bottom: 1rem;
    }
    
    /* Featured Work */
    .image-placeholder {
        font-size: 3rem;
    }
    
    .featured-overlay h3 {
        font-size: 1.25rem;
    }
    
    .featured-overlay p {
        font-size: 0.875rem;
    }
    
    .view-project {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .stat-label {
        font-size: 0.9375rem;
    }
    
    /* CTA */
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2.5rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.125rem;
    }
    
    .footer-section p {
        font-size: 0.875rem;
    }
    
    .footer-social a {
        width: 35px;
        height: 35px;
        font-size: 0.875rem;
    }
    
    .contact-info li {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        font-size: 0.8125rem;
        padding-top: 1.5rem;
    }
}

/* Small Mobile (up to 374px) */
@media (max-width: 374px) {
    html {
        font-size: 13px;
    }
    
    .hero-title .name {
        font-size: 1.75rem;
    }
    
    .image-frame {
        width: 180px;
        height: 180px;
    }
    
    .profile-placeholder i {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 1.25rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .nav-toggle,
    .scroll-indicator,
    .footer-social,
    .social-links,
    .btn {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero-background,
    .gradient-overlay,
    .particles {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator,
    .particles {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5865f2;
        --text-primary: #ffffff;
        --text-secondary: #e0e0e0;
        --dark-bg: #000000;
        --light-bg: #1a1a1a;
    }
    
    .btn-primary {
        border: 2px solid white;
    }
    
    .service-card,
    .featured-item {
        border: 1px solid white;
    }
}

/* Dark Mode (System Preference) */
@media (prefers-color-scheme: light) {
    /* This portfolio is designed for dark mode,
       but we can add light mode support here if needed */
}