/**
 * ========================================
 * RESPONSIVE.CSS
 * Breakpoints: 1400px, 1200px, 992px, 768px, 576px
 * ========================================
 */

/* =========================
   EXTRA LARGE (1200px - 1399px)
========================= */
@media (max-width: 1399px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

/* =========================
   LARGE (992px - 1199px)
========================= */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .timeline-content {
        padding: 18px;
    }
}

/* =========================
   TABLET (768px - 991px)
========================= */
@media (max-width: 991px) {
    /* Navigation */
    .navbar-collapse {
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(12px);
        border-radius: 20px;
        padding: 20px;
        margin-top: 15px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    body.light-mode .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid #E2E8F0;
    }
    
    .nav-link {
        padding: 10px 0;
        text-align: center;
    }
    
    /* Hero */
    .hero-section {
        text-align: center;
        padding: 120px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-img {
        max-width: 280px;
        margin-top: 40px;
    }
    
    /* Sections */
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* About */
    .about-img {
        max-width: 400px;
        margin: 0 auto 30px;
        display: block;
    }
    
    .info-box {
        margin-bottom: 20px;
    }
    
    /* Skills */
    .skill-card {
        margin-bottom: 20px;
    }
    
    /* Projects */
    .project-card {
        margin-bottom: 25px;
    }
    
    /* Statistics */
    .stat-card {
        margin-bottom: 20px;
    }
    
    /* Contact */
    .contact-box {
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
}

/* =========================
   MOBILE LANDSCAPE (576px - 767px)
========================= */
@media (max-width: 767px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Buttons */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 200px;
    }
    
    /* Hero Image */
    .hero-img {
        max-width: 240px;
    }
    
    /* Section Padding */
    .section-padding {
        padding: 60px 0;
    }
    
    /* Timeline */
    .timeline {
        margin-left: 0;
        padding-left: 20px;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 20px;
    }
    
    .timeline-dot {
        left: -10px;
        width: 12px;
        height: 12px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-title {
        font-size: 1rem;
    }
    
    /* Project Card */
    .project-img {
        height: 180px;
    }
    
    .project-body {
        padding: 18px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    /* Tech Stack */
    .tech-stack span {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    /* Certification Card */
    .cert-card {
        padding: 18px;
    }
    
    .cert-title {
        font-size: 0.95rem;
    }
    
    /* Statistics */
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Contact Form */
    .contact-box {
        padding: 20px;
    }
    
    .contact-info-item {
        padding: 8px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .contact-detail p {
        font-size: 0.85rem;
    }
    
    /* Form */
    .form-control {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer h4, .footer h5 {
        font-size: 1.2rem;
    }
    
    /* Floating Elements */
    .whatsapp-float {
        width: 45px;
        height: 45px;
        font-size: 22px;
        bottom: 20px;
        left: 20px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        right: 20px;
    }
}

/* =========================
   MOBILE PORTRAIT (up to 575px)
========================= */
@media (max-width: 575px) {
    /* Typography */
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 4px 12px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 40px;
        height: 3px;
    }
    
    /* Hero */
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-img {
        max-width: 200px;
    }
    
    /* Section Padding */
    .section-padding {
        padding: 50px 0;
    }
    
    /* Grid Gaps */
    .row {
        row-gap: 20px;
    }
    
    /* Info Box */
    .info-box {
        padding: 18px 15px;
    }
    
    .info-box i {
        font-size: 2rem;
    }
    
    .info-box h4 {
        font-size: 0.95rem;
    }
    
    /* Skill Card */
    .skill-card {
        padding: 20px 15px;
    }
    
    .skill-icon {
        font-size: 2rem;
    }
    
    .skill-card h4 {
        font-size: 1.1rem;
    }
    
    .skill-tags span {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
    
    /* Progress */
    .progress-label {
        font-size: 0.8rem;
    }
    
    /* Project Card */
    .project-img {
        height: 150px;
    }
    
    .project-title {
        font-size: 1rem;
    }
    
    .project-description {
        font-size: 0.8rem;
    }
    
    .project-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .project-actions .btn-sm {
        width: 100%;
        text-align: center;
    }
    
    /* Timeline */
    .timeline-date {
        font-size: 0.7rem;
    }
    
    .timeline-title {
        font-size: 0.95rem;
    }
    
    .timeline-company {
        font-size: 0.8rem;
    }
    
    .timeline-content p {
        font-size: 0.8rem;
    }
    
    /* Certificate */
    .cert-card {
        text-align: center;
    }
    
    /* Statistics */
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    /* Testimonial */
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 0.85rem;
    }
    
    .testimonial-author {
        gap: 10px;
    }
    
    .testimonial-avatar {
        width: 45px;
        height: 45px;
    }
    
    .testimonial-name {
        font-size: 0.9rem;
    }
    
    .testimonial-role {
        font-size: 0.7rem;
    }
    
    /* Contact */
    .contact-info-item {
        gap: 10px;
    }
    
    .contact-detail h5 {
        font-size: 0.75rem;
    }
    
    .contact-detail p {
        font-size: 0.75rem;
    }
    
    /* Modal */
    .modal-body {
        padding: 20px;
    }
    
    /* Container Padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* =========================
   SMALL MOBILE (up to 375px)
========================= */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .hero-img {
        max-width: 180px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .stat-number {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .timeline-content {
        padding: 12px;
    }
}

/* =========================
   TABLET LANDSCAPE SPECIFIC
========================= */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .skill-card, .project-card, .cert-card {
        min-height: 280px;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

/* =========================
   PRINT STYLES (for CV download)
========================= */
@media print {
    .navbar,
    .whatsapp-float,
    .back-to-top,
    .footer,
    #loading-screen,
    #particles-js,
    .hero-buttons .btn-outline-primary {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section {
        background: white;
        color: black;
    }
    
    .skill-card, .project-card, .cert-card, .timeline-content {
        background: #f5f5f5;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}