/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Aptos Display Font */
@font-face {
    font-family: 'Aptos Display';
    src: url('../fonts/Aptos-Display.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Display';
    src: url('../fonts/Aptos-Display-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Serif';
    src: url('../fonts/Aptos.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aptos Semi Bold';
    src: url('../fonts/Aptos-SemiBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html {
    background: #0a0a0a;
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Vanta.js Background Container */
#vanta-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

:root {
    --primary-color: #81e6f8;
    --primary-dark: #4dd4e6;
    --secondary-color: #81e6f8;
    --text-primary: #232222;
    --text-secondary: #cccccc;
    --box-left-border-color: #32ffcce7;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-alt: #1a1a1a4a;
    --border-color: #000000;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 9px -3px rgba(0, 0, 0, 0.7);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Aptos Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: transparent;
    font-size: 16px;
    min-height: 100vh;
}


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

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background-color: rgba(0, 0, 0, 0.518);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(129, 230, 248, 0.2);
    z-index: 1000;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(129, 230, 248, 0.1);
    padding-bottom: 1.5rem;
    text-align: center;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0 1rem;
}

.sidebar-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

.sidebar-links a:hover {
    color: var(--primary-color);
    background-color: rgba(129, 230, 248, 0.1);
}

.sidebar-links a.active {
    color: var(--primary-color);
    background-color: rgba(129, 230, 248, 0.15);
    border-left: 3px solid var(--primary-color);
}

.sidebar-links a.sidebar-sub {
    padding-left: 2rem;
    font-size: 1rem;
    opacity: 0.8;
}

.sidebar-links a.sidebar-sub:hover {
    opacity: 1;
}

/* Sidebar Dropdown */
.sidebar-dropdown {
    position: relative;
}

.sidebar-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.dropdown-arrow {
    transition: transform 0.48s ease;
}

.sidebar-dropdown:hover .dropdown-arrow,
.sidebar-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    padding-left: 0;
}

.sidebar-dropdown:hover .sidebar-dropdown-menu,
.sidebar-dropdown.active .sidebar-dropdown-menu {
    max-height: 300px;
    opacity: 1;
    padding-left: 0.5rem;
}

.main-content {
    margin-left: 250px;
    min-height: 100vh;
}


/* Hero Section */
.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: transparent;
    color: var(--text-primary);
    margin-top: 0;
}

.hero-title {
    font-family: 'Aptos Display';
    font-size: 4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.highlight {
    color: #2d2d2d;
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); */
}

.hero-subtitle {
    font-family: 'Aptos Display';
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    color: var(--text-primary);
}

.hero-description {
    font-family: 'Aptos Display';
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    line-height: 1.7;
    color: var(--text-primary);
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    font-size: 1.125rem;
    color: var(--text-primary);
    font-family: 'Aptos Display';
}

.hero-buttons {
    font-family: 'Aptos Display';
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    border: 2px solid rgba(0, 0, 0, 0.3);
    /* box-shadow: var(--shadow-sm); */
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background-color: var(--bg-alt);
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 15px -5px var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: var(--bg-alt);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px -5px var(--primary-color);
    transform: scale(1.05);
}

/* Sections */
.section {
    padding: 40px 0;
}

.section-alt {
    background-color: transparent;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    /* box-shadow: var(--shadow-sm); */
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(129, 230, 248, 0.2);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--box-left-border-color);
    transform: scale(1);
}

.project-card.scroll-centered {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg), 0 0 20px -5px var(--primary-color);
    border-color: var(--primary-color);
    z-index: 10;
    position: relative;
}


.project-card:hover {
    background-color: var(--bg-alt);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 15px -5px var(--primary-color);
    border-color: var(--primary-color);
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}


.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.project-link:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* Experience Section */
.experience-list {
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    /* box-shadow: var(--shadow-sm); */
    border: 1px solid rgba(129, 230, 248, 0.421);
    border-left: 4px solid var(--box-left-border-color);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    transform: scale(1);
}

.experience-item.scroll-centered {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg), 0 0 20px -5px var(--primary-color);
    border-color: var(--primary-color);
    z-index: 10;
    position: relative;
}


.experience-item:hover {
    background-color: var(--bg-alt);
    box-shadow: var(--shadow-md), 0 0 15px -5px var(--primary-color);
    transform: translateX(4px) scale(1.02);
    border-color: var(--primary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.experience-period {
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.experience-company {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.experience-description {
    color: var(--text-primary);
    line-height: 1.7;
}

/* Education Section */
.education-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.education-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 12px;
    /* box-shadow: var(--shadow-sm); */
    border: 1px solid rgba(129, 230, 248, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--box-left-border-color);
    transform: scale(1);
}

.education-item.scroll-centered {
    transform: scale(1.08);
    box-shadow: var(--shadow-lg), 0 0 20px -5px var(--primary-color);
    border-color: var(--primary-color);
    z-index: 10;
    position: relative;
}


.education-item:hover {
    background-color: var(--bg-alt);
    box-shadow: var(--shadow-md), 0 0 15px -5px var(--primary-color);
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.education-degree {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-institution {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-period {
    color: var(--text-primary);
    font-size: 0.875rem;
    
}

/* Contact Section */
.contact-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(129, 230, 248, 0.2);
    transition: var(--transition);
    font-weight: 600;
    backdrop-filter: blur(10px);
}


.contact-link:hover {
    background-color: var(--bg-alt);
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-md), 0 0 15px -5px var(--primary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.contact-link svg {
    flex-shrink: 0;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .sidebar-brand {
        font-size: 1.25rem;
        padding: 0 1.5rem;
    }

    .sidebar-links {
        padding: 0 0.5rem;
    }

    .sidebar-links a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }


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

    .projects-grid {
        grid-template-columns: 1fr;
    }


    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 180px;
        padding: 1.5rem 0;
    }

    .main-content {
        margin-left: 180px;
    }

    .sidebar-brand {
        font-size: 1.1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .sidebar-links a {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

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

    .section {
        padding: 60px 0;
    }

    .container {
        padding: 0 16px;
    }
}
