/* Responsive Media Queries */

/* Hamburger Menu Styles */
.hamburger-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #FDF0D5;
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Simple clean X animation */
.hamburger-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.hamburger-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

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

/* Mobile menu styles */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ac3d37;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 1rem 0;
}

.mobile-nav-links li {
    margin: 0;
}

.mobile-nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: #FDF0D5;
    text-decoration: none;
    font-family: Baskervville;
    font-size: 18px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-bottom: 1px solid rgba(253, 240, 213, 0.1);
}

.mobile-nav-links a:hover {
    background-color: rgba(253, 240, 213, 0.1);
    color: #cdc3af;
}

/* Resume theme hamburger colors */
body.resume-theme .hamburger-line {
    background-color: #820811;
}

body.resume-theme .mobile-menu {
    background: #f8f8f8;
    border-top: 1px solid #ddd;
}

body.resume-theme .mobile-nav-links a {
    color: #111;
    border-bottom: 1px solid rgba(17, 17, 17, 0.1);
}

body.resume-theme .mobile-nav-links a:hover {
    background-color: rgba(130, 8, 17, 0.1);
    color: #333;
}

/* Large screens (desktops) */
@media (min-width: 1200px) {
    .site-greetings {
        gap: 3rem;
    }
    
    .greeting-message h1 {
        font-size: 100px;
    }
    
    .greeting-message h2 {
        font-size: 32px;
    }
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .container-fluid {
        padding: 0 30px;
    }
    
    .site-greetings {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .profile-image {
        justify-content: center;
        order: -1; /* Move image above text */
    }
    
    .profile-image img {
        width: min(60vw, 380px);
        height: auto;
    }
    
    .greeting-message h1 {
        font-size: 70px;
    }
    
    .greeting-message h2 {
        font-size: 26px;
    }
    
    .role-prefix {
        font-size: 1.75rem;
    }
    
    .role-title {
        font-size: 2.5rem;
    }
}

/* Small screens (mobile) */
@media (max-width: 768px) {
    /* Show hamburger menu on mobile */
    .hamburger-toggle {
        display: flex;
    }
    
    /* Hide desktop navigation on mobile */
    .desktop-nav {
        display: none;
    }
    
    .container-fluid {
        padding: 0 20px;
        justify-content: space-between;
    }

    .navbar .container-fluid {
        flex-direction: row;
        align-items: center;
    }

    .navbar-brand {
        font-size: 28px;
    }

    .site-content {
        padding: 0.25rem 15px 1rem;
        min-height: 80vh;
    }

    .greeting-message h1 {
        font-size: 50px;
        letter-spacing: 1px;
    }

    .greeting-message h2 {
        font-size: 22px;
        letter-spacing: 1px;
    }

    .greeting-message h3 {
        font-size: 1.1rem;
    }

    .greeting-message h4 {
        font-size: 0.85rem;
    }

    .role-prefix {
        font-size: 1.5rem;
    }

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

    .profile-image img {
        width: min(70vw, 340px);
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .site-footer .container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 20px;
    }
    
    .site-footer .container::before {
        display: none;
    }
    
    .site-footer .credits p {
        font-size: 0.9rem;
        text-align: center;
    }

    .about-me {
        margin: 2rem auto 3rem;
        padding: 0 15px;
    }
    
    .about-me h2 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
        text-align: center;
    }
    
    .about-me-description {
        border-radius: 12px;
        padding: 1rem 1.25rem 1.75rem;
    }

    /* Projects page mobile */
    .projects-content {
        padding: 0 15px;
    }
    
    .projects-content h1,
    .projects-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .card-img-top {
        height: 180px;
    }

    .project-drawer {
        width: 100vw;
        left: 0;
        right: 0;
    }

    /* Resume page mobile */
    .resume-content {
        padding: 0 15px;
    }
    
    .resume-content h2 {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .resume-list {
        display: block; /* Simple block layout for mobile */
    }
    
    .resume-list dt {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 0.75rem;
        margin-top: 2rem;
        border-bottom: 2px solid #030000;
        padding-bottom: 0.5rem;
        color: #030000;
        display: block;
        width: 100%;
    }
    
    .resume-list dt:first-child {
        margin-top: 1rem; /* Less margin for first section */
    }
    
    .resume-list dd {
        padding-left: 0;
        margin-bottom: 2rem;
        display: block;
        width: 100%;
    }
    
    .resume-list .degree {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }
    
    .resume-list .school {
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }
    
    .resume-list li {
        font-size: 0.95rem;
        margin-top: 0.25rem;
    }
    
    .resume-list hr {
        margin: 2rem 0;
        display: block;
        clear: both;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .container-fluid {
        padding: 0 15px;
    }
    
    .navbar-brand {
        font-size: 24px;
    }
    
    .mobile-nav-links a {
        font-size: 16px;
        padding: 0.875rem 1.5rem;
    }
    
    .greeting-message h1 {
        font-size: 40px;
    }
    
    .greeting-message h2 {
        font-size: 18px;
    }
    
    .role-prefix {
        font-size: 1.25rem;
    }
    
    .role-title {
        font-size: 1.75rem;
    }
    
    .profile-image img {
        width: min(80vw, 280px);
    }
    
    .about-me-description {
        padding: 0.75rem 1rem 1.5rem;
    }
    
    .projects-content h1,
    .projects-content h2 {
        font-size: 1.5rem;
    }
    
    .resume-content h2 {
        font-size: 1.5rem;
    }
    
    .resume-list dt {
        font-size: 1.25rem;
    }
}