/* Variables & Reset */
:root {
    /* Color Palette based on AI/Tech theme (Deep Blues, Teals) */
    --bg-dark: #0a192f;
    --bg-card: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-color: #64ffda;
    --accent-hover: #4adbc8;
    --white: #e6f1ff;

    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
.header {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.05);
    transition: var(--transition);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
    background-color: rgba(10, 25, 47, 0.95);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: var(--transition);
}

.header.scrolled .header-container {
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    background: linear-gradient(90deg, var(--white), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    margin-bottom: 6px;
    transition: var(--transition);
}

.bar:last-child {
    margin-bottom: 0;
}

/* Hero Section */
.hero {
    padding: 160px 0 40px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(17, 34, 64, 0.5) 0%, rgba(10, 25, 47, 0) 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    /* Ensure it takes full width up to max-width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.3));
}

.hero-header-row {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    justify-content: center;
}

.hero-title {
    font-family: var(--font-heading);
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-main {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    letter-spacing: -1px;
}

.title-sub {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
}

.highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.name-highlight {
    color: var(--white);
    font-weight: 600;
}

.hero-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 20px;
}

.info-box {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    text-align: left;
    height: 100%;
}

.box-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding-bottom: 10px;
}

.mission-text {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-style: italic;
}

.projects-list {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--accent-color);
    /* Match bullet color to text */
}

.projects-list li {
    margin-bottom: 10px;
}

.projects-list li:last-child {
    margin-bottom: 0;
}

.projects-list a {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-style: italic;
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.projects-list a:hover {
    opacity: 0.8;
    border-bottom-color: var(--accent-color);
}

/* Links Section */
.links-section {
    padding: 20px 0 100px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 800px;
    /* Match hero-content width */
    margin: 0 auto;
    /* Center the grid */
    padding: 0 20px;
    /* Match container padding of hero-content */
}

.dynamic-btn {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.dynamic-btn:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.dynamic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(100, 255, 218, 0.05), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.dynamic-btn:hover::before {
    transform: translateX(100%);
}

.btn-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.btn-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.3rem;
    /* Increased size */
    color: var(--white);
    flex-grow: 1;
    line-height: 1.2;
    /* Better spacing for multi-line text */
}

.btn-arrow {
    color: var(--bg-dark);
    background-color: var(--accent-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    transition: var(--transition);
}

.dynamic-btn:hover .btn-arrow {
    transform: translateX(5px);
    background-color: var(--accent-hover);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid rgba(100, 255, 218, 0.1);
}

.footer-tagline {
    margin-top: 10px;
    color: var(--accent-color);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 75%;
        max-width: 400px;
        height: 100vh;
        background-color: rgba(17, 34, 64, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        box-shadow: -10px 0 30px -10px rgba(2, 12, 27, 0.7);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-list {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        width: 100%;
    }

    .nav-list li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease-in-out;
    }

    .nav-menu.active .nav-list li {
        opacity: 1;
        transform: translateX(0);
    }

    /* Staggered animation for menu items */
    .nav-menu.active .nav-list li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-menu.active .nav-list li:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-menu.active .nav-list li:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-menu.active .nav-list li:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-header-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-logo {
        max-width: 220px;
        margin-bottom: 15px;
    }
}



/* Contact Page Styles */
.contact-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    background: radial-gradient(circle at 50% 50%, rgba(17, 34, 64, 0.5) 0%, rgba(10, 25, 47, 0) 50%);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-logo {
    width: 150px;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 15px rgba(100, 255, 218, 0.2));
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 20px;
}

.contact-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.contact-link {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
}

.contact-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.contact-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-socials {
    display: flex;
    gap: 25px;
    /* Increased gap for icons */
    align-items: center;
    margin-top: 20px;
}

.social-link {
    color: var(--text-secondary);
    /* Default color */
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
    /* Subtle lift effect */
}

.social-icon {
    width: 32px;
    /* Set icon size */
    height: 32px;
}

.separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Experience & Projects Page Styles */
.page-hero-container {
    width: 100%;
    margin-top: 100px;
    /* Offset for fixed header */
    display: flex;
    justify-content: center;
    padding: 20px 0;
    background: radial-gradient(circle at 50% 50%, rgba(17, 34, 64, 0.5) 0%, rgba(10, 25, 47, 0) 50%);
}

.page-hero-container a {
    display: flex;
    justify-content: center;
}

.page-hero-img {
    max-width: 90%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(100, 255, 218, 0.3));
}

.content-section {
    padding: 120px 0 80px;
}

/* Reduce spacing when content follows hero image (for Project pages) */
.page-hero-container+.content-section {
    padding-top: 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    width: 100%;
    margin: 20px 0;
    opacity: 0.5;
}

.content-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.list-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
    padding-bottom: 10px;
}

.item-date {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.item-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
}

.item-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.item-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    width: fit-content;
    margin-top: 0;
    align-self: flex-end;
}

.read-more::after {
    content: ' →';
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 5px;
}