/* 
Layout
*/

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    display: flex;
    height: 75px;
    align-items: center;
    z-index: 1000;
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

body.dark-mode .navbar {
    background: rgba(30, 30, 46, 0.95);
    transition: background-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.nav-container {
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo {
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
}

.nav-link:hover { 
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 75px;
    right: 0;
    left: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color, #e0e0e0);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    z-index: 999;
}

body.dark-mode .mobile-menu {
    background: var(--bg-secondary);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a.nav-link-highlight {
    color: var(--primary-color);
}

/* Mobile navbar */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        height: 65px;
    }

    section:first-of-type {
        margin-top: 65px;
    }
}

/* TODO: theme button and scroll to top button styling should go here */


/* basic section styling */

section {
    position: relative;
}

/* TODO: decide if I actually want this */
section:first-of-type {
    margin-top: 70px
}


/* home section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%)
}

.home-content {
    position: relative;
    text-align: center;
}

.home-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
    position: relative;
    padding-bottom: 40px;
}

.scroll-prompt {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    width: 100%;
    padding-bottom: 10px;
}

.scroll-prompt p {
    margin: 0;
    font-size: 14px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* section headers */
.about,
.experience,
.projects,
.skills,
.contact {
    padding: 100px 0;
}

.about, .projects, .contact {
    background: var(--bg-primary)
}

.experience, .skills {
    background: var(--bg-secondary)
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* about section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-me-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* TODO: experience, projects, skills after cards are generated 
         from json so I can see how they look */


.contactLayout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .contactLayout {
        grid-template-columns: 1fr;
    }
}

.contactInfo {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contactInfo h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color)
}

.contactInfo > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contactItem {
    margin-bottom: 20px;
}

.contactItem h4 {
    margin-bottom: 5px;
    color: var(--text-color);
}

.contactItem p {
    color: var(--text-secondary);
    margin: 0;
}

.contactCards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast) ease;
    box-shadow: var(--shadow);
    flex: 1;
}

.contact-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-hover);
}

.contact-card i {
    font-size: 28px;
    color: var(--primary-color);
    min-width: 40px;
    text-align: center;
}

.contact-card h4 {
    font-size: 16px;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.contact-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    word-break: break-all;
}

/* footer */
.footer {
    background: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin-bottom: 0;
}