/* * Custom CSS for Personal Website
 */

/* --- CSS Variables and Base Styles --- */
:root {
    --primary-red: #E62623;
    --light-bg: #ffffff;
    --card-bg: #2d2b2d;
    --card-border: #2D2B2D;
    --text-light: #ffffff;
    --text-dark-gray: #2D2B2D;
    --border-color: #2D2B2D;
    --card-title-color: #ffffff;
    --about-title-color: #E62623;
    --text-black: #000000;
    --header-bg: rgba(45, 43, 45, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--light-bg);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    color: var(--text-black);
    border-bottom: 2px solid var(--primary-red);
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 0.5rem;
    /* border: 2px solid var(--card-border); */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Orbitron', 'Inter', sans-serif;
    letter-spacing: 0.5px;
}

/* --- Header & Navigation --- */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
}

.nav-brand:hover {
    text-decoration: none;
}

.nav-links {
    display: none;
    /* Hidden on mobile */
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-light);
    transition: color 0.2s ease-in-out;
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--primary-red);
    text-decoration: none;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    font-weight: 500;
}

.btn:hover {
    text-decoration: none;
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-red);
    color: white;
}

.mobile-menu-button {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
    /* Visible on mobile */
}

.mobile-menu {
    display: none;
    /* Hidden by default */
    padding: 0 1.5rem 1rem;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu a {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-light);
    text-align: center;
}

.mobile-menu a.btn {
    margin-top: 0.5rem;
}


/* --- About Section --- */
.about-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.about-image img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
}

.about-bio p {
    margin-bottom: 1rem;
    color: var(--text-dark-gray);
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    /* margin-bottom: 0.5rem; */
    color: var(--about-title-color);
}

/* In style.css */

/* --- START: Styles for Drone in About Section --- */
.about-title-container {
    display: flex;
    align-items: center;
    /* justify-content: center; */
    /* Center aligns the title and drone on mobile */
    gap: 1rem;
    /* Adjust space between title and drone */
    flex-direction: column;
    /* Allows items to wrap on very small screens */
}

.about-drone {
    height: auto;
    /* Adjust size as needed */
    width: auto;
}

/* --- END: Styles for Drone in About Section --- */

.about-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-black) !important;
}

/* --- GIF Divider Section --- */
.gif-section {
    padding: 2rem 0;
    /* Adds some space above and below the GIF */
}

.gif-image {
    width: auto;
    /* Makes the GIF span the full width of the container */
    height: auto;
    /* Maintains the correct aspect ratio */
    display: block;
    /* Removes any extra space below the image */
    border-radius: 0.5rem;
    /* Optional: adds rounded corners to match your cards */
}

/* --- Research Section --- */
#research {
    padding-top: 15%;
    padding-bottom: 5%;
}

.research-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.card-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--card-title-color);
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* --- Publications Section --- */
.publication-item {
    margin-bottom: 2rem;
}

/* Optionally, reduce space below the Publications section */
#publications {
    padding-bottom: 2%;
    padding-top: 0%;
}

.publication-title {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    color: var(--card-title-color);
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.publication-authors {
    color: var(--text-light);
}

.publication-venue {
    font-style: italic;
    color: var(--text-light);
}

.publication-links {
    margin-top: 0.75rem;
}

.publication-links a {
    margin-right: 1rem;
    color: var(--primary-red);
    font-weight: 500;
}

/* --- Contact Section --- */
.contact-section {
    text-align: center;
}

.tag-line {
    font-size: 1.2rem;
    color: var(--primary-red);
}

.contact-email {
    margin: 1.5rem 0;
    color: var(--text-dark-gray);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: var(--text-dark-gray);
    transition: color 0.2s ease-in-out;
}

.social-links a:hover {
    color: var(--primary-red);
}

/* --- Footer --- */
.footer {
    background-color: var(--card-bg);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.highlight-link {
    color: var(--primary-red);
    font-weight: bold;
    text-decoration: none;
}

.highlight-link:hover {
    text-decoration: underline;
}

/* Reduce space above the Contact section */
#contact.contact-section {
    padding-top: 0%;
    padding-bottom: 0%;
}

/* --- Media Queries for Responsiveness --- */
@media (min-width: 768px) {
    .mobile-menu-button {
        display: none;
    }

    .mobile-menu {
        display: none !important;
        /* Ensure it's hidden on desktop */
    }

    .nav-links {
        display: flex;
    }

    .about-section {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
    .about-title-container {
        flex-direction: row;
        /* Switches to side-by-side on desktop */
        justify-content: flex-start;
        gap: 1rem;
        /* A larger gap for the horizontal layout */   }

    .research-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        text-align: left;
    }
}

@media (max-width: 767px) {
    section {
        padding: 2rem 0;
    }
}
