
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-title .name {
        font-size: 2.5rem;
    }

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

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right var(--transition-fast);
    }

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

    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .theme-toggle {
        margin-top: 30px;
    }

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

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }

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

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

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

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .cyber-btn {
        width: 200px;
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

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

    .timeline-marker {
        left: -40px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .projects-filter {
        flex-wrap: wrap;
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

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

    .contact-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        flex-wrap: wrap;
        margin-bottom: 40px;
    }

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

    .title-line {
        display: none;
    }

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

    .logo-subtitle {
        display: none;
    }

    .hero {
        padding: 100px 20px;
    }

    .avatar-border {
        width: 120px;
        height: 120px;
    }

    .hero-title .greeting {
        font-size: 1rem;
    }

    .hero-title .name {
        font-size: 1.5rem;
    }

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

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

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

    .hero-social {
        gap: 15px;
    }

    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

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

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

    .highlight-item {
        padding: 15px;
    }

    .stat-card {
        padding: 15px;
    }

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

    .timeline {
        padding-left: 20px;
    }

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

    .timeline-marker {
        left: -45px;
    }

    .timeline-content {
        padding: 20px 15px;
    }

    .company-name {
        font-size: 1.2rem;
    }

    .position-title {
        font-size: 1rem;
    }

    .experience-description {
        font-size: 0.95rem;
    }

    .tech-tags {
        gap: 5px;
    }

    .tech-tag {
        padding: 3px 10px;
        font-size: 0.75rem;
    }

    .project-card {
        padding: 20px;
    }

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

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

    .skill-category {
        padding: 20px;
    }

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

    .tech-cloud .tech-item {
        padding: 6px 15px;
        font-size: 0.9rem;
    }

    .terminal-body {
        min-height: 200px;
        max-height: 300px;
        padding: 15px;
        font-size: 0.85rem;
    }

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

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

    .contact-item {
        gap: 15px;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .contact-item h4 {
        font-size: 0.9rem;
    }

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

    .footer {
        padding: 20px 0;
    }

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

@media (max-width: 360px) {
    .container {
        padding: 0 15px;
    }

    .hero-title .name {
        font-size: 1.3rem;
    }

    .cyber-btn {
        width: 100%;
        padding: 10px 20px;
    }

    .project-card {
        padding: 15px;
    }

    .tech-tag {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 50px 20px;
    }

    .avatar-border {
        width: 80px;
        height: 80px;
    }

    .hero-title .name {
        font-size: 1.8rem;
    }

    .scroll-indicator {
        display: none;
    }
}

@media (min-width: 1440px) {
    :root {
        --container-width: 1320px;
    }

    .hero-title .name {
        font-size: 3.5rem;
    }

    .section-title .title-text {
        font-size: 2.5rem;
    }
}

@media print {
    .navbar,
    .scroll-indicator,
    .terminal-section,
    .contact-form-wrapper,
    .theme-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

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

    a {
        text-decoration: underline;
        color: black;
    }
}