/* ===================================
   RESPONSIVE.CSS
   Mobile and tablet optimizations
   =================================== */

/* ===================================
   TABLET (768px and below)
   =================================== */
@media (max-width: 768px) {
    
    /* ===================================
       NAVIGATION - MOBILE
       =================================== */
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 2rem 2rem;
        gap: 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 0.5rem 0;
        font-size: 1.125rem;
    }
    
    .resume-btn {
        width: 100%;
        text-align: center;
    }
    
    /* ===================================
       HERO SECTION
       =================================== */
    .hero {
        min-height: 90vh;
        padding-top: 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .typing-text {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-social {
        gap: 1rem;
    }
    
    .hero-social a {
        width: 40px;
        height: 40px;
    }
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* ===================================
       STATS SECTION
       =================================== */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    /* ===================================
       SECTION PADDING
       =================================== */
    section {
        padding: 3rem 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* ===================================
       SKILLS SECTION
       =================================== */
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-icon {
        font-size: 2.5rem;
    }
    
    /* ===================================
       PROJECT SHOWCASE
       =================================== */
    .project-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-details h3 {
        font-size: 1.5rem;
    }
    
    .project-highlights {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
    }
    
    /* ===================================
       CERTIFICATIONS
       =================================== */
    .cert-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* ===================================
       CTA SECTION
       =================================== */
    .cta-content {
        padding: 2rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.75rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* ===================================
       FOOTER
       =================================== */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    /* ===================================
       BACK TO TOP BUTTON
       =================================== */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
    
    /* ===================================
       PAGE HERO
       =================================== */
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .page-hero-content p {
        font-size: 1rem;
    }
}

/* ===================================
   ABOUT PAGE - TABLET
   =================================== */
@media (max-width: 768px) {
    
    /* Bio Section */
    .bio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .profile-placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto;
        font-size: 3rem;
    }
    
    .bio-details {
        margin-top: 1.5rem;
    }
    
    .bio-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .bio-stat h3 {
        font-size: 2rem;
    }
    
    /* Skills Section */
    .skill-category {
        margin-bottom: 2rem;
    }
    
    .skill-item {
        margin-bottom: 1.5rem;
    }
    
    /* Certifications */
    .cert-card-detailed {
        padding: 1.5rem;
    }
    
    .cert-skills {
        gap: 0.5rem;
    }
    
    /* Experience Timeline */
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-content h3 {
        font-size: 1.25rem;
    }
    
    .timeline-tech {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    /* Education */
    .education-card {
        flex-direction: column;
        text-align: center;
    }
    
    .education-icon {
        margin-bottom: 1rem;
    }
}

/* ===================================
   PROJECTS PAGE - TABLET
   =================================== */
@media (max-width: 768px) {
    
    /* Filters */
    .filters-wrapper {
        gap: 0.5rem;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    /* Project Cards */
    .project-card-full {
        margin-bottom: 3rem;
    }
    
    .project-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-number {
        font-size: 4rem;
        top: -20px;
        right: 10px;
    }
    
    .project-image-placeholder {
        height: 250px;
    }
    
    .project-header h2 {
        font-size: 1.5rem;
    }
    
    .project-features ul {
        padding-left: 1.25rem;
    }
    
    .project-features li {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .project-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .tech-tags {
        gap: 0.5rem;
    }
    
    .tech-tags span {
        font-size: 0.85rem;
        padding: 0.35rem 0.75rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-links .btn {
        width: 100%;
    }
}

/* ===================================
   CONTACT PAGE - TABLET
   =================================== */
@media (max-width: 768px) {
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-item {
        margin-bottom: 1.5rem;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .quick-links-grid {
        grid-template-columns: 1fr;
    }
    
    .copy-btn {
        margin-top: 0.5rem;
    }
    
    /* FAQ Section */
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-item {
        padding: 1.5rem;
    }
}

/* ===================================
   MOBILE (480px and below)
   =================================== */
@media (max-width: 480px) {
    
    /* Base Typography */
    html {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    /* Container Padding */
    .container {
        padding: 0 1rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        width: 85%;
        padding: 80px 1.5rem 1.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .typing-text {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        gap: 1rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
    
    /* Section Spacing */
    section {
        padding: 2.5rem 0;
    }
    
    /* Skills Cards */
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    /* Project Showcase */
    .project-image-placeholder {
        height: 200px;
    }
    
    .project-placeholder span {
        font-size: 1.5rem;
    }
    
    .project-details h3 {
        font-size: 1.25rem;
    }
    
    .project-highlights {
        gap: 0.75rem;
    }
    
    .highlight {
        padding: 0.75rem;
    }
    
    /* Certifications */
    .cert-badge {
        font-size: 2.5rem;
    }
    
    .cert-card h3 {
        font-size: 1.125rem;
    }
    
    /* CTA Section */
    .cta-content {
        padding: 1.5rem 1rem;
    }
    
    .cta-content h2 {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 0 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
        font-size: 1.125rem;
    }
    
    /* Page Hero */
    .page-hero {
        padding: 100px 0 50px;
    }
    
    .page-hero-content h1 {
        font-size: 1.75rem;
    }
}

/* ===================================
   ABOUT PAGE - MOBILE
   =================================== */
@media (max-width: 480px) {
    
    .profile-placeholder {
        width: 120px;
        height: 120px;
        font-size: 2.5rem;
    }
    
    .bio-content h2 {
        font-size: 1.5rem;
    }
    
    .bio-content p {
        font-size: 0.95rem;
    }
    
    .bio-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .bio-stat h3 {
        font-size: 1.75rem;
    }
    
    .bio-stat p {
        font-size: 0.85rem;
    }
    
    .skill-category {
        margin-bottom: 1.5rem;
    }
    
    .category-header h3 {
        font-size: 1.125rem;
    }
    
    .skill-name {
        font-size: 0.95rem;
    }
    
    .skill-percentage {
        font-size: 0.875rem;
    }
    
    .skill-description {
        font-size: 0.85rem;
    }
    
    .cert-card-detailed {
        padding: 1.25rem;
    }
    
    .cert-card-detailed h3 {
        font-size: 1.125rem;
    }
    
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-content h3 {
        font-size: 1.125rem;
    }
    
    .timeline-content h4 {
        font-size: 1rem;
    }
    
    .timeline-content ul li {
        font-size: 0.9rem;
    }
}

/* ===================================
   PROJECTS PAGE - MOBILE
   =================================== */
@media (max-width: 480px) {
    
    .filters-wrapper {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .project-number {
        font-size: 3rem;
        top: -15px;
        right: 5px;
    }
    
    .project-header h2 {
        font-size: 1.25rem;
    }
    
    .project-subtitle {
        font-size: 0.9rem;
    }
    
    .project-description p {
        font-size: 0.95rem;
    }
    
    .project-features h4,
    .project-impact h4,
    .project-highlights h4,
    .project-tech-stack h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .project-features li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .project-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-item h3 {
        font-size: 1.5rem;
    }
    
    .tech-tags span {
        font-size: 0.8rem;
        padding: 0.3rem 0.65rem;
    }
}

/* ===================================
   CONTACT PAGE - MOBILE
   =================================== */
@media (max-width: 480px) {
    
    .contact-info h2 {
        font-size: 1.5rem;
    }
    
    .contact-intro {
        font-size: 0.95rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.25rem;
    }
    
    .contact-icon {
        margin-bottom: 0.75rem;
    }
    
    #email-text {
        font-size: 0.9rem;
        word-break: break-all;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
    }
    
    .social-link {
        justify-content: center;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-header p {
        font-size: 0.9rem;
    }
    
    .response-content h3 {
        font-size: 1.25rem;
    }
    
    .faq-item h3 {
        font-size: 1.125rem;
    }
    
    .faq-item p {
        font-size: 0.9rem;
    }
}

/* ===================================
   LANDSCAPE MODE (Mobile)
   =================================== */
@media (max-height: 500px) and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: 100px 0 50px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .nav-links {
        height: 100vh;
        overflow-y: auto;
    }
}

/* ===================================
   VERY SMALL SCREENS (320px)
   =================================== */
@media (max-width: 360px) {
    
    html {
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem 0.75rem;
    }
    
    .skill-card {
        padding: 1.25rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .project-number {
        font-size: 2.5rem;
    }
    
    .cert-card {
        padding: 1.25rem;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    
    .navbar,
    .hamburger,
    .back-to-top,
    .scroll-indicator,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
}

/* ===================================
   HIGH DPI DISPLAYS
   =================================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    
    /* Optimize text rendering for retina displays */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* ===================================
   ACCESSIBILITY - FOCUS STATES
   =================================== */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ===================================
   DARK MODE SUPPORT (Future)
   =================================== */
@media (prefers-color-scheme: dark) {
    /* Already dark by default */
}

@media (prefers-color-scheme: light) {
    /* Optional: Add light mode overrides if needed */
}