/* ===== RESPONSIVE STYLES ===== */

/* Large devices (desktop, 1200px and below) */
@media screen and (max-width: 1200px) {
    /* Add specific desktop adjustments here */
    .hero {
        padding: 100px 3%;
    }
    
    .hero-image {
        right: 3%;
        z-index: 3;
    }
    
    .social-icons {
        left: 3%;
        z-index: 3;
    }
}

/* Medium devices (tablets, 992px and below) */
@media screen and (max-width: 992px) {
    /* Enhance navbar mobile styles */
    .nav-links {
        gap: 20px;
    }
    
    .nav-links.active {
        padding: 30px 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    /* Hero section tablet styles */
    .hero-content {
        text-align: center;
        margin: 0 auto;
        color: #ffffff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero-image {
        position: relative;
        z-index: 3;
    }
    
    .social-icons {
        position: relative;
        z-index: 3;
    }
    
    /* Projects section tablet styles */
    .projects-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Small devices (landscape phones, 768px and below) */
@media screen and (max-width: 768px) {
    /* Header adjustments */
    .navbar {
        padding: 15px 5%;
    }

    .hero-image {
        right: 0%;
    }

    .hero-picture {
        display: none;
    }
    /* Video background adjustments for mobile */
    #hero-video {
        object-position: center;
    }
    
    .video-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    /* Project cards on small devices */
    .projects-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Skills section on small devices */
    .skills-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    /* Contact form adjustments */
    .contact-form {
        padding: 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    /* Footer adjustments */
    footer {
        padding: 40px 5% 15px;
    }
}

/* Extra small devices (portrait phones, 576px and below) */
@media screen and (max-width: 576px) {
    /* Section header adjustments */
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Hero content mobile adjustments */
    .hero {
        padding-top: 120px;
    }
    .col-hero{
        flex-direction: column;
        align-items: center;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    .social-icons {
        left: 0%;

    }
    
    /* Contact items mobile adjustments */
    .contact-item {
        flex-direction: column;
        text-align: center;
        margin-left: 1px auto;
        gap: 5px;
    }
    
    .contact-item i {
        margin: 0 auto;
    }
}

/* Mobile navigation enhancements */
@media screen and (max-width: 991px) {
    .hamburger.active .bar {
        background-color: var(--primary-color);
    }
    
    /* Add animation to mobile menu */
    .nav-links li {
        opacity: 0;
        transform: translateY(10px);
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    
    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.5s; }
}

/* Touch device enhancements */
@media (hover: none) {
    .project-card:hover {
        transform: none;
    }
    
    .project-card:active {
        transform: translateY(-5px);
    }
    
    .project-card:hover .project-img img {
        transform: none;
    }
}

/* Dark mode support for users with dark mode preferences */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1e293b;
        --bg-color-light: #0f172a;
        --text-color: #f8fafc;
        --light-text-color: #cbd5e1;
        --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    .project-card,
    .contact-form {
        background-color: #1e293b;
    }
    
    .form-group input,
    .form-group textarea {
        background-color: #0f172a;
        border-color: #334155;
        color: #f8fafc;
    }
    
    .project-tech span {
        background-color: #334155;
    }
    
    footer {
        background-color: #0f172a;
    }
}