
/* ======== CSS VARIABLES (THEME) ======== */
:root {
    --dark-navy: #0a192f;
    --light-navy: #112240;
    --lightest-navy: #233554;
    --slate: #8892b0;
    --light-slate: #a8b2d1;
    --lightest-slate: #ccd6f6;
    --accent: #64ffda; /* Electric Cyan/Teal */
    --accent-dark: rgba(100, 255, 218, 0.1);

    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --nav-height: 80px;
}

/* ======== GLOBAL RESETS & STYLES ======== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-navy);
    color: var(--light-slate);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--accent);
    filter: brightness(1.2);
}

p {
    margin-bottom: 15px;
    max-width: 650px;
}

ul {
    list-style: none;
}

/* ======== REUSABLE COMPONENTS ======== */
.btn {
    color: var(--accent);
    background-color: transparent;
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn:hover {
    background-color: var(--accent-dark);
}

.btn-large {
    /* Reduced size for improved balance with icon shortcuts */
    padding: 0.6rem 0.9rem;
    font-size: 14px;
    border-radius: 6px;
    background-color: rgba(100, 255, 218, 0.02);
}

.content-section {  
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px;
    opacity: 0; /* For scroll reveal */
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    display: flex;
    align-items: center;
    font-size: 28px;
    color: var(--lightest-slate);
    margin-bottom: 30px;
    white-space: nowrap;
}

.section-heading span {
    font-size: 20px;
    color: var(--accent);
    margin-right: 10px;
    font-weight: 400;
}

.section-heading::after {
    content: '';
    display: block;
    width: 200px;
    height: 1px;
    background-color: var(--lightest-navy);
    margin-left: 20px;
}

/* ======== HEADER / NAVBAR ======== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: rgba(10, 25, 47, 0.85); /* Dark navy with transparency */
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 50px;
    z-index: 100;
    transition: top 0.3s ease-in-out;
}

#navbar.nav-hidden {
    top: -var(--nav-height);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1600px;
}

.nav-logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 5px 8px;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links li {
    margin: 0 15px;
    font-size: 14px;
}

.nav-links li a {
    color: var(--lightest-slate);
    padding: 10px;
}

.nav-links li a:hover {
    color: var(--accent);
}

.nav-links li a span {
    color: var(--accent);
    margin-right: 5px;
}

#mobile-menu-toggle {
    display: none;
    color: var(--accent);
    cursor: pointer;
}

/* ======== MOBILE MENU ======== */
#mobile-menu {
    position: fixed;
    top: 0;
    right: -100%; /* Start off-screen */
    width: 75%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--light-navy);
    z-index: 110;
    transition: right 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#mobile-menu.is-open {
    right: 0;
}

.mobile-menu-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--accent);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.mobile-nav-links li {
    margin: 20px 0;
    font-size: 20px;
}

.mobile-nav-links li a {
    color: var(--lightest-slate);
    padding: 10px;
}

#mobile-menu.btn {
    margin-top: 30px;
    padding: 1rem 1.5rem;
    font-size: 18px;
}

/* ======== SOCIALS SIDEBAR ======== */
.socials-sidebar {
    position: fixed;
    bottom: 0;
    width: 40px;
    z-index: 50;
}

.socials-sidebar ul {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.socials-sidebar li {
    margin: 10px 0;
}

.socials-sidebar a {
    color: var(--slate);
    padding: 10px;
}

.socials-sidebar a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

.socials-sidebar::after {
    content: '';
    display: block;
    width: 1px;
    height: 90px;
    background-color: var(--slate);
    margin: 20px auto 0;
}

.socials-sidebar.left {
    left: 40px;
}
.socials-sidebar.right {
    right: 40px;
}

.email-link {
    writing-mode: vertical-rl;
    color: var(--slate);
    letter-spacing: 2px;
    font-size: 14px;
    padding: 10px;
}

.email-link:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* ======== HERO SECTION ======== */
#hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    color: var(--accent);
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 20px;
}

.hero-content h2 {
    color: var(--lightest-slate);
    font-size: clamp(40px, 8vw, 70px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-content h3 {
    color: var(--slate);
    font-size: clamp(30px, 6vw, 50px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-content p {
    color: var(--light-slate);
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 40px;
}
.quick-links {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}



/* Hero fade-in animations */
.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
    opacity: 0;
}
.fade-in-delay-1 { animation: fadeIn 0.5s ease-out 0.1s forwards; opacity: 0; }
.fade-in-delay-2 { animation: fadeIn 0.5s ease-out 0.2s forwards; opacity: 0; }
.fade-in-delay-3 { animation: fadeIn 0.5s ease-out 0.3s forwards; opacity: 0; }
.fade-in-delay-4 { animation: fadeIn 0.5s ease-out 0.4s forwards; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ======== ABOUT SECTION ======== */
.about-content {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
}

.about-text p {
    font-size: 18px;
    color: var(--light-slate);
}

.skill-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    margin-top: 20px;
}

.skill-list li {
    position: relative;
    padding-left: 20px;
    color: var(--light-slate);
}

.skill-list li::before {
    content: '▸'; /* Triangle bullet */
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 14px;
}

.skill-list li:hover {
    background-color: #1d325a;
    color: #64FFDA;
}

.about-image {
    position: relative;
    max-width: 300px;
}

.image-wrapper {
    position: relative;
    border-radius: 4px;
    background-color: var(--accent);
    transition: all 0.2s ease-in-out;
}

.image-wrapper img {
    width: 100%;
    display: block;
    border-radius: 4px;
    position: relative;
    z-index: 1;
    mix-blend-mode: multiply;
    filter: grayscale(100%) contrast(1);
    transition: all 0.2s ease-in-out;
}

.image-wrapper:hover img {
    mix-blend-mode: normal;
    filter: none;
}

.image-wrapper::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: 4px;
    top: 15px;
    left: 15px;
    z-index: 0;
    transition: all 0.2s ease-in-out;
}

.image-wrapper:hover::after {
    top: 10px;
    left: 10px;
}

/* ======== EXPERIENCE SECTION ======== */
.experience-tabs {
    display: flex;
    gap: 30px;
}

.tab-list {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.tab-btn {
    background: transparent;
    border: none;
    border-left: 2px solid var(--lightest-navy);
    padding: 15px 20px;
    color: var(--slate);
    font-size: 16px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tab-btn:hover {
    background-color: var(--lightest-navy);
    color: var(--accent);
}

.tab-btn.active {
    color: var(--accent);
    border-left-color: var(--accent);
    background-color: var(--lightest-navy);
}

.tab-panel {
    max-width: 600px;
}

.tab-panel[hidden] {
    display: none;
}

.tab-panel h3 {
    font-size: 22px;
    color: var(--lightest-slate);
    font-weight: 500;
    margin-bottom: 5px;
}

.tab-panel h3 span:first-child {
    font-weight: 600;
}

.tab-panel.company-name {
    color: var(--accent);
}

.job-dates {
    color: var(--light-slate);
    font-size: 14px;
    margin-bottom: 20px;
}

.tab-panel ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--light-slate);
}

.tab-panel ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ======== PROJECTS SECTION ======== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: var(--light-navy);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

.project-image {
    display: none; /* Hidden for now */
    width: 100%;
    height: 200px;
    background-color: var(--lightest-navy);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    overflow: hidden;
}

.project-image img {
    display: none; /* Hidden for now */
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) brightness(0.7) contrast(1.1);
    transition: all 0.3s ease;
}

.project-card:hover.project-image img {
    filter: grayscale(0) brightness(1) contrast(1);
}

.project-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    color: var(--lightest-slate);
    font-size: 22px;
    margin-bottom: 10px;
}

.project-description {
    color: var(--light-slate);
    font-size: 17px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 13px;
    color: var(--slate);
    margin-bottom: 20px;
}


.project-tech li {
    display: inline-block;
    background-color: #112240;
    color: #cbd5e1;
    font-family: 'monospace';
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    border: 1px solid #1d325a;
    transition: all 0.2s ease;
}


.project-tech li:hover {
    background-color: #1d325a;
    color: #64FFDA;
}

.project-links a {
    color: var(--light-slate);
    margin-right: 15px;
}

.project-links a:hover {
    color: var(--accent);
}

/* ======== CONTACT SECTION ======== */
#contact {
    max-width: 600px;
    text-align: center;
    padding-bottom: 150px;
}

.contact-content h3 {
    color: var(--lightest-slate);
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-content p {
    color: var(--light-slate);
    font-size: 18px;
    margin: 0 auto 30px;
}

/* ======== FOOTER ======== */
footer {
    padding: 20px;
    color: var(--slate);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-socials {
    display: none; /* Hidden, only for small screens */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-socials a {
    color: var(--slate);
    margin: 0 10px;
}

/* ======== RESPONSIVE DESIGN ======== */
@media (max-width: 1080px) {
   .socials-sidebar {
        display: none;
    }
}

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

   .about-image {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #navbar {
        padding: 0 25px;
    }
    
   .nav-links,.nav-cta {
        display: none;
    }

    #mobile-menu-toggle {
        display: block;
    }

   .content-section {
        padding: 80px 10px;
    }

   .section-heading::after {
        width: 100px;
    }

   .experience-tabs {
        flex-direction: column;
        gap: 20px;
    }

   .tab-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        border-bottom: 1px solid var(--lightest-navy);
    }

   .tab-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        padding: 10px 15px;
    }

   .tab-btn.active {
        border-left: none;
        border-bottom: 2px solid var(--accent);
    }

   .hero-content {
        padding: 0 10px;
    }
    
    footer {
        padding-bottom: 80px; /* Space for footer socials */
    }

   .footer-socials {
        display: block;
    }
}

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