/* ==========================================================================
   Responsive Design - Mobile First Approach
   ========================================================================== */

/* ==========================================================================
   Small Devices (phones, 576px and up)
   ========================================================================== */
@media (min-width: 576px) {
    .hero-title {
        font-size: 5rem;
    }

    .skills-summary-line {
        font-size: 3.25rem;
    }
    
    .skills-summary-dot {
        width: 4rem;
    }

    .marquee-item {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Medium Devices (tablets, 768px and up)
   ========================================================================== */
@media (min-width: 768px) {
    /* Burger Menu */
    .burger-menu {
        width: 5rem;
        height: 5rem;
    }

    /* Navigation */
    .nav-overlay {
        width: 50%;
        left: 50%;
    }

    .nav-link {
        font-size: 3.75rem;
    }

    /* Hero Section */
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-title {
        font-size: 6rem;
    }

    .hero-text {
        font-size: 1.25rem;
    }

    .hero-content {
        padding: 0 2.5rem 8rem;
    }

    /* Skills Summary */
    .skills-summary-line {
        font-size: 3.875rem;
    }

    .skills-summary-dot {
        width: 8rem;
    }

    /* Skills Section */
    .skills-title {
        font-size: 4.5rem;
    }

    .skills-description {
        font-size: 1.25rem;
    }

    .skill-card-number {
        font-size: 3.75rem;
    }

    .skill-card-title {
        font-size: 2.5rem;
    }

    .skill-card-description {
        font-size: 1.125rem;
    }

    .skill-item-title {
        font-size: 1.125rem;
    }

    .skill-item-description {
        font-size: 0.875rem;
    }

    /* About Section */
    .about-title {
        font-size: 4.5rem;
    }

    .about-text {
        font-size: 1.25rem;
    }

    /* Experience Section */
    .experience-title {
        font-size: 4.5rem;
    }

    .experience-card {
        grid-template-columns: 220px 1fr;
    }

    /* Works Section */
    .works-title {
        font-size: 4.5rem;
    }

    .work-card-image {
        height: 250px;
    }

    /* Contact Section */
    .contact-title {
        font-size: 4.5rem;
    }

    .contact-description {
        font-size: 1.25rem;
    }

    .contact-card-title {
        font-size: 1.5rem;
    }

    .contact-card-value {
        font-size: 1.25rem;
    }

    /* Marquee */
    .marquee-item {
        font-size: 2.25rem;
    }
}

/* ==========================================================================
   Large Devices (desktops, 992px and up)
   ========================================================================== */
@media (min-width: 992px) {
    /* Hero Section */
    .hero-title {
        font-size: 7rem;
    }

    .hero-text {
        font-size: 1.5rem;
    }

    /* Skills Summary */
    .skills-summary-line {
        font-size: 6.25rem;
    }

    /* Skills Section */
    .skills-title {
        font-size: 5rem;
    }

    .skills-description {
        font-size: 1.25rem;
    }

    .skill-card-number {
        font-size: 4.375rem;
    }

    .skill-card-title {
        font-size: 3rem;
    }

    .skill-card-description {
        font-size: 1.25rem;
    }

    /* About Section */
    .about-title {
        font-size: 5rem;
    }

    /* Works Section */
    .works-title {
        font-size: 5rem;
    }

    /* Contact Section */
    .contact-title {
        font-size: 5rem;
    }

    /* Marquee */
    .marquee-item {
        font-size: 2.625rem;
    }

    /* Sticky Cards Offset */
    .skill-card[data-index="0"] {
        top: calc(10vh + 0rem);
        margin-bottom: calc(3rem * 3);
    }

    .skill-card[data-index="1"] {
        top: calc(10vh + 3rem);
        margin-bottom: calc(3rem * 2);
    }

    .skill-card[data-index="2"] {
        top: calc(10vh + 6rem);
        margin-bottom: calc(3rem * 1);
    }

    .skill-card[data-index="3"] {
        top: calc(10vh + 9rem);
        margin-bottom: 0;
    }
}

/* ==========================================================================
   Extra Large Devices (large desktops, 1200px and up)
   ========================================================================== */
@media (min-width: 1200px) {
    /* Hero Section */
    .hero-title {
        font-size: 9rem;
    }

    /* Navigation */
    .nav-link {
        font-size: 5rem;
    }

    /* Works Grid */
    .works-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Touch Device Optimizations
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .skill-card:hover .skill-card-content {
        transform: none;
    }

    .work-card:hover {
        transform: none;
    }

    .contact-card:hover {
        transform: none;
    }

    /* Experience Section Mobile */
    .experience-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }

    .experience-period {
        font-size: 0.75rem;
        padding-top: 0;
    }

    .experience-company {
        font-size: 1.25rem;
    }

    .experience-role {
        font-size: 1rem;
    }

    .experience-highlights li {
        font-size: 0.875rem;
    }

    /* Hero Actions Mobile */
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.875rem 1.5rem;
    }

    /* Resume Modal Mobile */
    .resume-modal {
        padding: 1rem;
    }

    .resume-modal-content {
        height: 85vh;
    }

    .resume-modal-header {
        padding: 1rem;
    }

    .resume-modal-body {
        padding: 1rem;
    }

    /* Make tap targets larger */
    .nav-link {
        padding: 0.5rem 0;
    }

    .contact-social-link {
        padding: 0.75rem 1rem;
    }

    /* Disable magnetic effect on touch */
    .contact-card {
        transform: none !important;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .burger-menu,
    .nav-overlay,
    .scroll-indicator,
    .polka-bg {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}

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

/* ==========================================================================
   Dark Mode Support (if system preference changes)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
    /* Already dark by default, but can add overrides if needed */
}

/* ==========================================================================
   Mobile Adjustments for Scroll Indicator
   ========================================================================== */
@media (max-width: 767px) {
    /* Hide scroll indicator on mobile to prevent collision with resume buttons */
    .scroll-indicator {
        display: none;
    }
}

/* ==========================================================================
   Landscape Orientation Adjustments
   ========================================================================== */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
    }

    .hero-content {
        padding: 0 2.5rem 2rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* ==========================================================================
   Wide Screen Optimizations (1920px and up)
   ========================================================================== */
@media (min-width: 1920px) {
    /* Center content on very wide screens */
    .skills-header,
    .about-header,
    .experience-header,
    .works-header,
    .contact-header {
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
    }

    .skills-cards,
    .experience-timeline,
    .works-grid,
    .contact-cards {
        max-width: 1800px;
        margin-left: auto;
        margin-right: auto;
    }
}
