/* ================================
   Responsive Design
================================ */

/* Tablet Landscape and below (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tech-orbit {
        width: 350px;
        height: 350px;
    }

    .ring-1 {
        width: 220px;
        height: 220px;
    }

    .ring-2 {
        width: 320px;
        height: 320px;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        padding-left: 60px;
    }

    .timeline-item:nth-child(even) {
        direction: ltr;
    }

    .timeline-date {
        text-align: left;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .timeline-item:nth-child(even) .timeline-date {
        text-align: left;
        padding-left: 0;
    }

    .timeline-content::before {
        left: -45px !important;
        right: auto !important;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Tablet Portrait and below (768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --container-padding: 15px;
    }

    /* Navigation Mobile */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-fast);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    /* Hero Section */
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

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

    .hero-description {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* About Section */
    .about-stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-item {
        flex: 1 1 calc(50% - 20px);
        min-width: 120px;
    }

    .tech-orbit {
        width: 300px;
        height: 300px;
    }

    .ring-1 {
        width: 180px;
        height: 180px;
    }

    .ring-2 {
        width: 260px;
        height: 260px;
    }

    .orbit-item {
        width: 60px;
        height: 60px;
        font-size: 0.7rem;
    }

    /* Timeline */
    .timeline-item {
        padding-left: 50px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Mobile Large and below (640px) */
@media (max-width: 640px) {
    .section-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-word {
        display: block;
    }

    .about-intro {
        font-size: 1.1rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-content::before {
        left: -35px !important;
        width: 16px;
        height: 16px;
    }

    .skill-category {
        padding: 20px;
    }

    .project-content {
        padding: 20px;
    }

    .contact-details {
        font-size: 0.9rem;
    }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
    :root {
        --section-padding: 50px;
        --container-padding: 15px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        height: 30px;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .about-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .tech-orbit {
        width: 250px;
        height: 250px;
    }

    .ring-1 {
        width: 150px;
        height: 150px;
    }

    .ring-2 {
        width: 210px;
        height: 210px;
    }

    .orbit-center {
        width: 80px;
        height: 80px;
        font-size: 0.7rem;
    }

    .orbit-item {
        width: 50px;
        height: 50px;
        font-size: 0.6rem;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    .timeline-achievements {
        font-size: 0.9rem;
    }

    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .category-title {
        font-size: 1.1rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }

    .project-number {
        font-size: 2rem;
    }

    .project-title {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

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

    .social-link {
        width: 40px;
        height: 40px;
    }

    .form-input {
        font-size: 0.95rem;
    }

    .footer-text {
        font-size: 0.85rem;
    }
}

/* Mobile Extra Small (360px) */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .timeline-content {
        padding: 15px;
    }

    .skill-category {
        padding: 15px;
    }

    .project-content {
        padding: 15px;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }

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

    .section-title {
        font-size: 4rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }

    .navbar,
    .hero-background,
    .scroll-indicator,
    .cursor-dot,
    .cursor-outline,
    .loading-screen {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    .container {
        max-width: 100%;
    }
}

/* Hover States for Touch Devices */
@media (hover: none) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }

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

    .timeline-content:hover {
        transform: none;
    }

    .skill-category:hover {
        transform: none;
    }

    .social-link:hover {
        transform: none;
    }

    .tech-tag:hover {
        background: transparent;
        color: var(--primary-color);
        transform: none;
    }
}

/* 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-behavior: auto !important;
    }

    .parallax {
        transform: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-bg: #000000;
        --dark-surface: #0A0A0A;
    }
}

/* Light Mode Support (if needed in future) */
@media (prefers-color-scheme: light) {
    /* Light mode variables can be added here */
}