/* PREMIUM PORTFOLIO STYLE SHEET
   Theme: High-Tech Dark Mode (Obsidian & Silver)
   Aesthetic: Inspired by Gemini/Google clean interactive look
   Fonts: Outfit (Titles), Inter (Body)
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap");

:root {
    /* Obsidian Theme Palette */
    --bg-color: #050505;
    --bg-gradient: radial-gradient(circle at 50% 30%, #121212, #050505 85%);
    --card-bg: rgba(20, 20, 20, 0.45);
    --card-border: rgba(255, 255, 255, 0.05);
    --card-border-hover: rgba(255, 255, 255, 0.15);

    --primary: #ffffff; /* Crisp White */
    --primary-glow: rgba(255, 255, 255, 0.05);
    --secondary: #a1a1a6; /* Silver grey */
    --accent: #4285f4; /* Soft tech blue (default particle color) */

    --text-primary: #f5f5f7; /* Off-white */
    --text-secondary: #a1a1a6; /* Neutral grey */
    --text-muted: #515154; /* Dark grey */

    /* Fonts */
    --font-title: "Outfit", sans-serif;
    --font-body: "Inter", sans-serif;

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* GENERAL RESET & SCROLLING */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    background-color: #1c2541;
    background-image: linear-gradient(
        125deg,
        #1c2541,
        #3a506b,
        #0a1128,
        #005f73,
        #001219
    );
    background-size: 300% 300%;
    background-position: 0% 0%;
    transition: background-position 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* INTERACTIVE CANVAS BACKGROUND */
#interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Scroll Entrance Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: var(--transition-smooth);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom reveal transition specifically for project cards to add a subtle scale-up effect */
.project-card.reveal {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition:
        opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card.reveal.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* TYPOGRAPHY */

h1,
h2,
h3,
h4 {
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
}

a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* STICKY DESKTOP NAV */

@keyframes navGlow {
    0% {
        background-position: 0% 50%;
        border-color: rgba(255, 255, 255, 0.08);
    }
    50% {
        background-position: 100% 50%;
        border-color: rgba(66, 133, 244, 0.25);
        box-shadow:
            0 10px 35px rgba(0, 0, 0, 0.25),
            0 0 15px rgba(66, 133, 244, 0.1);
    }
    100% {
        background-position: 0% 50%;
        border-color: rgba(255, 255, 255, 0.08);
    }
}

nav#desktop-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    max-width: 900px;
    height: 60px;
    background: linear-gradient(
        125deg,
        rgba(15, 25, 45, 0.45),
        rgba(30, 50, 90, 0.35),
        rgba(15, 25, 45, 0.45)
    );
    background-size: 200% 200%;
    animation: navGlow 8s ease-in-out infinite;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    z-index: 100;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.logo {
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    letter-spacing: -0.02em;
}

.logo-icon {
    margin-right: 0.5rem;
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    border-bottom: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger animations */
.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}
.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* LAYOUT SECTION GLOBAL STYLES */

section {
    padding: 100px 8% 60px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.section__text__p1 {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.title {
    font-size: 2.75rem;
    text-align: center;
    margin-bottom: 3.5rem;
    color: var(--primary);
    font-weight: 800;
}

/* HERO / PROFILE SECTION (CENTERED) */

#profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 140px;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    width: 100%;
}

.section__pic-container {
    display: flex;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.section__pic-container:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.section__pic-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-left-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

.about-education-card {
    width: 100%;
    max-width: 320px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-sizing: border-box;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.about-education-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.education-card-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.edu-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
}

.edu-badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--primary);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.edu-institution {
    font-size: 0.76rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.majors-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 12px;
    padding: 0.55rem 0.4rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
    box-sizing: border-box;
}

.edu-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.edu-spec-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
    align-self: center;
}

.edu-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    opacity: 0.75;
}

.edu-value {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 0.1rem;
}

.stats-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
}

.stat-pill {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.45rem 0.35rem;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.75;
}

.stat-val {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-title);
    margin-top: 0.1rem;
}

.hero-container .section__text__p1 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.hero-container .title {
    text-align: center;
    font-size: 3.25rem;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.section__text__p2 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-secondary);
    min-height: 35px; /* prevent layout shift during typing */
    margin-bottom: 1.5rem;
}

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.3rem;
    background-color: var(--text-secondary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%,
    100% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
}

/* HERO BUTTONS */

.btn-container {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.btn {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-color-1 {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.btn-color-1:hover {
    transform: translateY(-2px);
    background: #e5e5e7;
    border-color: #e5e5e7;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.08);
}

.btn-color-2 {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-color-2:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

#socials-container {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}

#socials-container .icon {
    width: 22px;
    height: 22px;
    filter: invert(0.65);
    transition: var(--transition-fast);
    cursor: pointer;
}

#socials-container .icon:hover {
    filter: invert(0.95);
    transform: translateY(-2px);
}

/* SOPHISTICATED CENTERED CHAT BAR */

.ai-chat-bar-container {
    width: 100%;
    max-width: 650px;
    margin: 1.5rem 0 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

@keyframes pulseGlow {
    0% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(66, 133, 244, 0.15);
        border-color: rgba(66, 133, 244, 0.35);
    }
    50% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.6),
            0 0 25px rgba(66, 133, 244, 0.35);
        border-color: rgba(66, 133, 244, 0.6);
    }
    100% {
        box-shadow:
            0 15px 35px rgba(0, 0, 0, 0.6),
            0 0 15px rgba(66, 133, 244, 0.15);
        border-color: rgba(66, 133, 244, 0.35);
    }
}

.ai-chat-bar {
    width: 100%;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 9999px;
    padding: 0.6rem 0.8rem 0.6rem 1.5rem;
    transition: var(--transition-smooth);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
}

.ai-chat-bar:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

.ai-chat-bar:focus-within {
    background: rgba(255, 255, 255, 0.05);
    animation: pulseGlow 2.5s ease-in-out infinite;
    outline: none;
}

.chat-bar-icon {
    font-size: 1.1rem;
    margin-right: 0.8rem;
    opacity: 0.8;
}

.chat-bar-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
}

.chat-bar-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.55;
}

.chat-bar-send {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: none;
    outline: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.chat-bar-send:hover {
    background: var(--text-primary);
    color: #000000;
    transform: scale(1.04);
}

.chat-bar-send svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* MINIMALIST CHIPS */

.starter-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.starter-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 0.1rem 0.3rem;
}

.starter-link:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.15);
}

.starter-links .divider {
    color: var(--text-muted);
    font-size: 0.75rem;
    pointer-events: none;
}

/* TYPOGRAPHIC RESPONSE PANEL */

.ai-response-panel {
    width: 100%;
    max-width: 650px;
    margin-top: 1rem;
    text-align: left;
    display: none;
    position: relative;
    animation: slide-down 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slide-down {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.response-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* CHAT HISTORIES & EXCHANGES */
.chat-exchange {
    background: rgba(15, 25, 45, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem;
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.chat-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding-bottom: 0.8rem;
    user-select: none;
}

.chat-header-q-wrapper {
    border-left: 2px solid rgba(255, 255, 255, 0.25);
    padding-left: 0.8rem;
    margin-left: 0.2rem;
    flex-grow: 1;
    min-width: 0;
}

.chat-header-q {
    font-size: 1.05rem;
    line-height: 1.5;
    font-family: var(--font-body);
    font-style: italic;
    color: #ffffff;
    font-weight: 300;
    opacity: 0.95;
    word-break: break-word;
}

.chat-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
    margin-left: 0.8rem;
    flex-shrink: 0;
}

.chat-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chevron-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: rotate(180deg);
}

.chat-exchange.minimized .chevron-icon {
    transform: rotate(0deg);
}

.chat-body {
    transition:
        max-height 0.4s ease,
        opacity 0.4s ease,
        padding 0.4s ease;
    max-height: 5000px;
    opacity: 1;
    overflow: hidden;
}

.chat-text-container {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    word-break: break-word;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015);
}

/* Status Header & Pulsing Dot */
.chat-body-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.status-text {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    font-family: var(--font-title);
    color: var(--text-secondary);
    opacity: 0.8;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

/* Thinking Gradient & Pulsing Glow */
.status-dot.thinking {
    background: linear-gradient(135deg, #4285f4, #9b51e0);
    animation: pulse-dot 1.6s infinite ease-in-out;
}

/* Active / AI Assistant Steady Glow */
.status-dot.active {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

/* Error State Dot */
.status-dot.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 0 8px rgba(66, 133, 244, 0);
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.chat-text-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.chat-text-content b {
    color: #ffffff;
}

.chat-text-content a {
    color: #60a5fa;
    border-bottom: 1px dotted rgba(96, 165, 250, 0.4);
}

.chat-text-content a:hover {
    color: #93c5fd;
    border-bottom-color: #93c5fd;
}

/* MINIMIZED STATE */
.chat-exchange.minimized .chat-header-row {
    border-bottom: none;
    padding-bottom: 0;
}

.chat-exchange.minimized .chat-body {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
}

/* SHIFTED CHAT BAR (under response) */
.ai-chat-bar-container.shifted {
    margin-top: 2rem;
    transition: var(--transition-smooth);
}

/* typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 0.5rem 0.2rem;
    align-items: center;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: typing-bounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-4px);
    }
}

/* ABOUT SECTION */

#about {
    position: relative;
}

.section-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: stretch;
}

.about__pic-container {
    display: flex;
    justify-content: center;
}

.about-pic {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.about-pic:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border-color: var(--card-border-hover);
}

.about-details-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-details-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
}

.text-details-container h2 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.text-details-container p {
    font-size: 0.95rem;
    line-height: 1.6;
}

.text-details-container b {
    color: var(--text-primary);
}

/* SKILLS / EXPERIENCE SECTION */

#experience {
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.details-container {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.details-container:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.experience-sub-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--primary);
    padding-left: 0.75rem;
}

.article-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

article {
    display: flex;
    align-items: center;
    gap: 1rem;
}

article .icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(0.2) brightness(0.9);
    transition: var(--transition-fast);
}

article:hover .icon {
    transform: scale(1.1);
    filter: grayscale(0) brightness(1);
}

article h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

article p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* PROJECTS SECTION */

#projects {
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.project-card:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.project-img-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--card-border);
    position: relative;
}

.project-img-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(5, 5, 5, 0.4), transparent);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-img {
    transform: scale(1.03);
}

.project-info-wrapper {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.project-card .project-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.project-card .skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.project-card .skill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.project-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.project-card .btn-container {
    margin-top: auto;
    margin-bottom: 0;
    gap: 0.8rem;
}

.project-card .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    flex-grow: 1;
}

.project-category-title {
    font-family: var(--font-title);
    font-size: 1.45rem;
    color: var(--secondary);
    margin-top: 4.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: 100%;
}

#projects h2.project-category-title:first-of-type {
    margin-top: 0.5rem;
}

.project-card .btn-journal {
    background: linear-gradient(90deg, #0a1128, #005f73, #3a506b, #0a1128);
    background-size: 300% 100%;
    color: #ffffff !important;
    border: 1px solid rgba(0, 95, 115, 0.4);
    box-shadow: 0 0 12px rgba(0, 95, 115, 0.25);
    animation: buttonShimmer 5s ease infinite;
    font-weight: 700;
    letter-spacing: 0.5px;
}

@keyframes buttonShimmer {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.project-card .btn-journal:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 95, 115, 0.8);
    box-shadow: 0 0 20px rgba(0, 95, 115, 0.7);
}

.project-card .btn-github {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    flex-grow: 0;
    flex-shrink: 0;
}

.project-card .btn-github img {
    width: 18px;
    height: 18px;
    filter: invert(0.85);
    transition: var(--transition-fast);
}

.project-card .btn-github:hover img {
    filter: invert(1);
    transform: scale(1.12);
}

/* HONOURS SECTION */

#honours {
    position: relative;
}

.honours-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.honours-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.honour-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1.2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.honour-card:hover {
    border-color: var(--card-border-hover);
    transform: translateX(5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.honour-icon-container {
    display: flex;
    align-items: flex-start;
}

.honour-card .icon {
    width: 22px;
    height: 22px;
    filter: invert(0.85);
}

.honour-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.honour-info h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.honour-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.honour-card .btn-container {
    margin: 0.5rem 0 0;
}

.honour-card .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
}

.honours__pic-container {
    display: flex;
    justify-content: center;
}

.awards-pic {
    width: 100%;
    max-width: 320px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.awards-pic:hover {
    transform: translateY(-4px) rotate(0.5deg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--card-border-hover);
}

/* CONTACT SECTION */

#contact {
    min-height: 60vh;
    justify-content: center;
    align-items: center;
}

.contact-card {
    width: 100%;
    max-width: 600px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-info-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.contact-info-container:hover {
    border-color: var(--card-border-hover);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.04);
}

.contact-info-container .icon {
    width: 18px;
    height: 18px;
    filter: invert(0.85);
}

.contact-info-container p a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: none;
}

.contact-info-container p a:hover {
    color: var(--primary);
}

/* FOOTER SECTION */

footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 8% 2rem;
    background: rgba(5, 5, 5, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 5;
    position: relative;
}

footer nav {
    display: flex;
    justify-content: center;
}

footer .nav-links {
    gap: 2rem;
    flex-wrap: wrap;
}

footer .nav-links a {
    font-size: 0.9rem;
    border-bottom: none;
}

footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

/* RESPONSIVE MEDIA QUERIES (COMPACT OVERRIDES) */

@media screen and (max-width: 1200px) {
    #desktop-nav {
        display: flex;
        width: 90%;
    }
    #hamburger-nav {
        display: none;
    }
    section {
        padding: 100px 5% 50px;
    }
    #profile {
        padding-top: 110px;
    }
    .hero-container .title {
        font-size: 2.75rem;
    }
    .section__pic-container {
        margin: 0 auto 1.5rem;
    }
    .btn-container {
        justify-content: center;
    }
    #socials-container {
        justify-content: center;
    }
    .section-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-left-container {
        height: auto;
        gap: 1.5rem;
    }
    .honours-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .honours__pic-container {
        order: -1;
    }
}

@media screen and (max-width: 600px) {
    .title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    .section__pic-container {
        width: 160px;
        height: 160px;
    }
    .hero-container .title {
        font-size: 2.2rem;
    }
    .section__text__p2 {
        font-size: 1.15rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-upper-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .contact-info-container {
        width: 100%;
        justify-content: center;
    }
    .ai-chat-bar {
        padding: 0.5rem 0.6rem 0.5rem 1rem;
    }
    .starter-links {
        gap: 0.4rem;
    }
    .starter-link {
        font-size: 0.8rem;
    }
    .chat-exchange {
        padding: 1rem;
    }
    nav#desktop-nav {
        width: 92%;
        padding: 0;
        height: 54px;
        top: 15px;
    }
    .nav-links {
        gap: 0.85rem;
        width: 100%;
        height: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        align-items: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(66, 133, 244, 0.4) transparent;
        justify-content: safe center;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    .nav-links a {
        font-size: 0.82rem;
    }
    .nav-links::-webkit-scrollbar {
        display: block;
        height: 3px;
    }
    .nav-links::-webkit-scrollbar-track {
        background: transparent;
    }
    .nav-links::-webkit-scrollbar-thumb {
        background: rgba(66, 133, 244, 0.4);
        border-radius: 99px;
    }
}

/* SOFT HALO HOVER EFFECT */
.project-card:hover,
.details-container:hover,
.contact-card:hover,
.honour-card:hover {
    border-color: rgba(66, 133, 244, 0.3) !important;
    background: rgba(255, 255, 255, 0.04) !important;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(66, 133, 244, 0.1) !important;
}

/* ASK AI NAVBAR LINK GLOW & PULSE EFFECT */
.nav-links a.ask-ai-nav {
    color: var(--primary) !important;
    font-weight: 600;
}
.nav-links a.ask-ai-nav::before {
    content: "✦ ";
    font-size: 0.85rem;
    color: var(--primary);
    opacity: 0.95;
    margin-right: 0.2rem;
    display: inline-block;
    vertical-align: middle;
}
.ai-chat-bar.pulse-highlight {
    animation: pulseGlow 0.5s ease-in-out 3 !important;
}
