/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Fonts */
    --font-primary: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;

    /* Theme-independent values */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-full: 9999px;
    --z-back: -10;
    --z-base: 1;
    --z-above: 10;
    --z-nav: 100;
    --z-modal: 200;
    --z-cursor: 9999;
}

/* Dark Theme Colors */
[data-theme="dark"] {
    --bg-primary: #0a0b10;
    --bg-secondary: #11121a;
    --bg-tertiary: #161724;
    --card-bg: rgba(22, 23, 36, 0.6);
    --card-hover-bg: rgba(28, 30, 48, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --glow-opacity: 0.15;
}

/* Light Theme Colors */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-hover-bg: rgba(255, 255, 255, 0.95);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.05);
    --glow-opacity: 0.05;
}

/* Accent Colors */
[data-accent="teal"] {
    --accent-color: #14b8a6;
    --accent-color-rgb: 20, 184, 166;
    --accent-color-glow: #0d9488;
    --accent-color-muted: rgba(20, 184, 166, 0.1);
}

[data-accent="indigo"] {
    --accent-color: #6366f1;
    --accent-color-rgb: 99, 102, 241;
    --accent-color-glow: #4f46e5;
    --accent-color-muted: rgba(99, 102, 241, 0.1);
}

[data-accent="emerald"] {
    --accent-color: #10b981;
    --accent-color-rgb: 16, 185, 129;
    --accent-color-glow: #059669;
    --accent-color-muted: rgba(16, 185, 129, 0.1);
}

[data-accent="gold"] {
    --accent-color: #e2b865;
    --accent-color-rgb: 226, 184, 101;
    --accent-color-glow: #c59b27;
    --accent-color-muted: rgba(226, 184, 101, 0.1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* Scrollbar Style */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: var(--border-radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

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

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Icons styling */
.icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: inline-block;
    vertical-align: middle;
}

/* General Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Particle Canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-back);
    pointer-events: none;
    opacity: 0.65;
}

/* Custom Cursor styling */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    opacity: 0;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-cursor);
    opacity: 0;
}

.custom-cursor.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(var(--accent-color-rgb), 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
    border: 1px solid var(--accent-color);
}
.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-color-rgb), 0.4);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
.btn-outline:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.2);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

.cert-card.cert-in-progress {
    border-color: rgba(var(--accent-color-rgb), 0.2);
}

.cert-card.cert-in-progress:hover {
    border-color: rgba(var(--accent-color-rgb), 0.28);
}

.cert-card.cert-in-progress .cert-icon-wrapper {
    opacity: 0.72;
}

.cert-card.cert-in-progress .cert-icon-wrapper img {
    opacity: 0.8;
    filter: grayscale(0.32) saturate(0.72) brightness(0.9);
}

.cert-card.cert-in-progress .cert-info h4 {
    color: var(--text-secondary) !important;
}

.cert-card.cert-in-progress .cert-progress-line {
    color: var(--text-muted) !important;
}

.cert-card.cert-in-progress .cert-progress-meta {
    color: var(--text-muted) !important;
}

.cert-card.cert-in-progress .cert-progress-tags span {
    color: var(--text-muted) !important;
    background-color: rgba(128, 128, 128, 0.14) !important;
}

.cert-card.cert-in-progress .in-progress-label {
    display: inline-block;
    margin-left: 0.15rem;
    padding: 0.1rem 0.4rem;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(var(--accent-color-rgb), 0.45);
    color: var(--accent-color) !important;
    background-color: rgba(var(--accent-color-rgb), 0.12);
    font-weight: 700;
    letter-spacing: 0.01em;
}



/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-nav);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

[data-theme="dark"] .header {
    background-color: rgba(10, 11, 16, 0.75);
}
[data-theme="light"] .header {
    background-color: rgba(248, 250, 252, 0.75);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.3rem;
    font-family: var(--font-mono);
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-btn {
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    color: var(--accent-color);
}

.nav-btn:hover {
    background-color: rgba(var(--accent-color-rgb), 0.1);
    color: var(--accent-color) !important;
}

.nav-btn::after {
    display: none;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-color-rgb), var(--glow-opacity)) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: var(--z-back);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-color);
    display: inline-block;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-title .highlight {
    color: var(--accent-color);
    position: relative;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.typewriter-text {
    color: var(--text-primary);
}

.typewriter-cursor {
    color: var(--accent-color);
    font-weight: 200;
    animation: blink 1s step-end infinite;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Visual Graphic */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.visual-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-style: dashed;
    animation: rotate 30s linear infinite;
}

.ring-2 {
    width: 80%;
    height: 80%;
    border-color: rgba(var(--accent-color-rgb), 0.2);
    animation: rotate-reverse 20s linear infinite;
}

.ring-3 {
    width: 60%;
    height: 60%;
    border-style: dotted;
    animation: rotate 15s linear infinite;
}

.visual-core {
    position: absolute;
    width: 140px;
    height: 140px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(var(--accent-color-rgb), 0.2);
}

.core-svg {
    width: 100px;
    height: 100px;
    animation: float 4s ease-in-out infinite;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: var(--border-radius-full);
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-full);
    margin-top: 6px;
    animation: scroll-wheel 1.5s infinite;
}

/* ==========================================================================
   SECTIONS GENERAL
   ========================================================================== */
section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-mono);
    color: var(--accent-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin-top: 0.75rem;
    border-radius: var(--border-radius-full);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.education-block {
    margin-top: 2.5rem;
}

.education-block h3, .about-skills h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.education-block h3::before, .about-skills h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-full);
}

.edu-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-header h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.edu-date {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.edu-school {
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.edu-detail {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.honors-badge {
    background-color: rgba(var(--accent-color-rgb), 0.15);
    color: var(--accent-color);
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.8rem;
    text-transform: uppercase;
    display: inline-block;
    margin-left: 0.5rem;
    border: 1px solid rgba(var(--accent-color-rgb), 0.3);
}

/* Skills Category styling */
.skills-category {
    margin-bottom: 2rem;
}

.skills-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* ==========================================================================
   EXPERIENCE SECTION (TIMELINE & PARTNER LOGOS)
   ========================================================================== */
.timeline-container {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
}

.timeline-nav {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
}

.timeline-nav-btn {
    background: transparent;
    border: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    padding: 0.75rem 1.5rem;
    text-align: left;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.timeline-nav-btn:hover {
    color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.timeline-nav-btn.active {
    color: var(--accent-color);
    border-left-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.timeline-details {
    position: relative;
    min-height: 320px;
}

.timeline-content-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
}

.timeline-content-pane.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.experience-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.experience-title-area h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: var(--accent-color);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Partner vector logos container */
.partner-logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 6px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.partner-logo-container:hover {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.partner-logo-svg {
    width: 100%;
    height: 100%;
}

.partner-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.timeline-bullets {
    margin-bottom: 1.5rem;
}

.timeline-bullets li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.timeline-bullets li::before {
    content: '➔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.timeline-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.timeline-tags .tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--border-radius-full);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */
.projects-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-color-rgb), 0.1);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.25rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

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

.project-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    backdrop-filter: blur(12px) saturate(180%);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px -5px rgba(var(--accent-color-rgb), 0.15);
}

.project-card.is-coming-soon {
    background: linear-gradient(180deg, rgba(var(--accent-color-rgb), 0.04), rgba(0, 0, 0, 0.02));
    border-style: dashed;
    cursor: pointer;
}

.project-card.is-coming-soon:hover {
    transform: none;
    border-color: var(--border-color);
    box-shadow: none;
}

.project-card.is-coming-soon .project-card-inner,
.project-card.is-coming-soon .project-info,
.project-card.is-coming-soon .project-img-placeholder {
    filter: grayscale(1);
}

.project-card.is-coming-soon .project-info {
    opacity: 0.92;
}

.project-card.is-coming-soon .project-img-placeholder {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.project-status-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 0.35rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--border-radius-full);
    background-color: rgba(var(--accent-color-rgb), 0.08);
    border: 1px solid rgba(var(--accent-color-rgb), 0.18);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    text-transform: uppercase;
}

.btn-coming-soon {
    border-style: dashed;
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
}

.btn-coming-soon:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.project-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.project-img-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.project-img-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.project-info .project-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

.award-text-highlight {
    color: #ffaa00 !important;
    font-weight: bold;
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

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

.project-tech span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.project-links {
    margin-top: auto;
}

.btn-card-detail {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
    width: 100%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-card-detail:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* ==========================================================================
   PROJECT MODALS (WITH IMAGES)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    width: 90%;
    max-width: 650px;
    padding: 2.5rem;
    position: relative;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

.modal.open .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-header {
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.modal-body {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.modal-body ul {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

/* Award Modal Elements */
.award-modal-banner {
    background: linear-gradient(135deg, rgba(255, 170, 0, 0.15) 0%, rgba(255, 204, 0, 0.05) 100%);
    border: 1px dashed #ffaa00;
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.award-modal-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffaa00;
    display: block;
    margin-bottom: 0.25rem;
}

.award-image-container {
    margin: 1.5rem 0;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    background-color: var(--bg-tertiary);
}

.award-image-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-slow);
}

.award-image-img:hover {
    transform: scale(1.02);
}

.award-image-caption {
    display: block;
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

.coming-soon-banner {
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.1), rgba(var(--accent-color-rgb), 0.03));
    border: 1px solid rgba(var(--accent-color-rgb), 0.2);
    padding: 1.25rem;
    border-radius: var(--border-radius-md);
    margin-bottom: 1.5rem;
}

.coming-soon-title {
    display: block;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   PUBLICATIONS & RESEARCH (WITH CITATIONS BADGES)
   ========================================================================== */
.pub-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    backdrop-filter: blur(12px) saturate(180%);
    transition: border-color var(--transition-normal);
    position: relative;
}

.pub-card:hover {
    border-color: var(--accent-color);
}

.pub-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-color);
    background-color: var(--accent-color-muted);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius-full);
    margin-bottom: 1rem;
}

.citations-badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #ffaa00;
    border: 1px solid rgba(255, 170, 0, 0.4);
    background-color: rgba(255, 170, 0, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
}

.pub-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.pub-authors {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.pub-abstract {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.abstract-collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.75rem;
}

.read-more-link {
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 1.5rem;
    text-decoration: none;
}

.read-more-link:hover {
    text-decoration: underline;
}

.pub-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.doi {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.doi a {
    color: var(--text-secondary);
}
.doi a:hover {
    color: var(--accent-color);
}

/* ==========================================================================
   CONTACT SECTION & RETRO TERMINAL
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-form-wrapper h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input, .form-group textarea {
    padding: 0.75rem 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.contact-thank-you {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(var(--accent-color-rgb), 0.08), transparent 70%);
}

.contact-thank-you h3 {
    font-size: 1.35rem;
    margin: 0;
}

.contact-thank-you p {
    color: var(--text-secondary);
    margin: 0;
    max-width: 28rem;
}

[hidden] {
    display: none !important;
}

/* Retro Dev Terminal Styles */
.contact-terminal-wrapper {
    background-color: #050508;
    border: 1px solid #1a1b26;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 400px;
    transition: transform 0.1s;
}

/* Screen shake class for terminal hacks */
.contact-terminal-wrapper.shake {
    animation: shake-anim 0.3s linear infinite;
}

@keyframes shake-anim {
    0%, 100% { transform: translate(0, 0); }
    20% { transform: translate(-4px, 2px); }
    40% { transform: translate(4px, -2px); }
    60% { transform: translate(-3px, -2px); }
    80% { transform: translate(3px, 2px); }
}

.terminal-header {
    background-color: #0c0d16;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #12131f;
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background-color: #ff5555; }
.dot.yellow { background-color: #ffb86c; }
.dot.green { background-color: #50fa7b; }

.terminal-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #6272a4;
}

.terminal-body {
    padding: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: #a9b1d6;
    overflow-y: auto;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.terminal-line {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

.terminal-success {
    color: #50fa7b;
}

.terminal-error {
    color: #ff5555;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    margin-top: auto;
    gap: 0.5rem;
}

.terminal-prompt {
    color: #7aa2f7;
    white-space: nowrap;
}

#terminal-input {
    background: transparent;
    border: none;
    outline: none;
    color: #a9b1d6;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    flex-grow: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    background-color: var(--bg-secondary);
    transition: background-color var(--transition-normal);
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: rgba(var(--accent-color-rgb), 0.05);
    transform: translateY(-2px);
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

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

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(var(--accent-color-rgb), 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(var(--accent-color-rgb), 0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(12px); }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    section {
        padding: 5rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .timeline-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline-nav {
        flex-direction: row;
        border-left: none;
        border-bottom: 2px solid var(--border-color);
        overflow-x: auto;
    }
    
    .timeline-nav-btn {
        border-left: none;
        border-bottom: 2px solid transparent;
        margin-left: 0;
        margin-bottom: -2px;
        flex: 1;
        text-align: center;
        white-space: nowrap;
    }
    
    .timeline-nav-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--accent-color);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--bg-primary);
        width: 100%;
        height: calc(100vh - 60px);
        gap: 2.5rem;
        padding: 3rem 1.5rem;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        align-items: flex-start;
        z-index: var(--z-nav);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        width: 100%;
    }
    
    .nav-btn {
        text-align: center;
        width: 100%;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-nav-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-nav-toggle.open .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .projects-controls {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
    
    .experience-header-block {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Reveal on scroll styles */
[data-reveal] {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal="fade-up"] {
    transform: translateY(30px);
}

[data-reveal="fade-right"] {
    transform: translateX(-30px);
}

[data-reveal="fade-left"] {
    transform: translateX(30px);
}

[data-reveal].active {
    opacity: 1;
    transform: translate(0);
}
