/* Responsive Styles */

/* Base Responsive Adjustments (from original general responsive block) */
@media(max-width: 768px) {
    /* General h1, hero subtitle, tagline */
    h1 {
        font-size: 2.5em;
    }
    .hero-content .subtitle {
        font-size: 1.5em;
    }
    .hero-content .tagline {
        font-size: 1.1em;
    }

    /* About section content stacking */
    .about-content {
        flex-direction: column;
    }
    .about-image img {
        width: 200px;
        height: 200px;
    }

    /* Skills grid adjustment */
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

/* Mobile Navigation */
@media(max-width: 768px) {
    #main-nav .nav-container ul {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on nav height */
        left: 0;
        width: 100%;
        background-color: rgba(18, 18, 18, 0.98);
        padding: 10px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.3);
    }

    #main-nav .nav-container ul.mobile-active {
        display: flex; /* Shown when active */
    }

    #main-nav ul li {
        margin: 10px 0; /* Vertical spacing for mobile */
        text-align: center;
        width: 100%; /* Full width list items */
    }

    #main-nav ul li a {
        padding: 10px 0; /* Larger touch target */
    }

    /* Mobile dropdown adjustments */
    .dropdown-content {
        position: static; /* No longer absolute */
        box-shadow: none;
        border-radius: 0;
        background-color: transparent;
        padding-left: 20px; /* Indent sub-items */
        transform: none; /* Reset transform */
        opacity: 1; /* Always visible when parent is */
        max-height: none; /* Allow content to flow */
        border-top: 1px solid rgba(255,255,255,0.1); /* Separator for clarity */
    }

    .dropdown-content a {
        padding: 8px 0px; /* Adjust padding */
        font-size: 0.9em;
        color: #00aaff; /* Make them stand out a bit */
    }
    .dropdown-content a:hover {
        background-color: transparent;
        color: #fff;
    }
    
    .dropdown .dropbtn i { /* Hide dropdown arrow on mobile if it behaves differently */
        display: none; 
    }

    .mobile-menu-toggle {
        display: block; /* Show hamburger icon */
    }
}

/* Hero Section Responsive Adjustments */
@media(max-width: 768px) {
    #hero {
        height: auto;
        min-height: 50vh;
        padding-top: 80px; /* Adjust if nav height changes */
        padding-bottom: 40px;
    }

    #hero h1 { /* Already have a general h1 rule, this is more specific for hero */
        font-size: 2.8em;
    }

    /* .hero-content .hero-tagline is covered by general .hero-content .tagline */

    .cta-button {
        font-size: 1em;
        padding: 10px 20px;
        margin: 10px;
    }
}

@media (max-height: 450px) { /* For very short screens */
    #hero {
        min-height: 100vh; /* Ensure hero takes full viewport height */
        padding-top: 60px; /* Adjust if needed */
    }
}

/* Project Accordion Responsive */
@media(max-width: 768px) {
    .accordion-header {
        font-size: 1.1em;
        padding: 12px 15px;
    }
    .accordion-content p {
        font-size: 0.95em;
    }
}

/* Project Detail Page Header Title Responsive */
@media(max-width: 992px) {
    .project-detail-header h1 {
        font-size: 2.3em;
    }
}

@media(max-width: 768px) {
    main#project-detail-page {
        padding-top: 70px; /* Match mobile nav height */
    }
    .project-detail-header h1 {
        font-size: 2em;
        max-width: 95%;
        margin-bottom: 15px;
    }
}

@media(max-width: 480px) {
    .project-detail-header h1 {
        font-size: 1.8em;
    }
    /* Further reduce padding/margins on very small screens for project sections if needed */
    .project-section {
        padding: 15px;
    }
    .project-section h3 {
        font-size: 1.6em;
    }
    .project-section h4 {
        font-size: 1.3em;
    }
} 