/* ==========================================================================
   Shifan Shalih Adiluhung - Modern Portfolio & Design System
   ========================================================================== */

/* --- CSS Variables & Design Tokens --- */
:root {
    /* Color Tokens (Dark Theme Default) */
    --bg-primary: #0b0f19;
    --bg-secondary: #111827;
    --bg-surface: rgba(17, 24, 39, 0.7);
    --bg-surface-solid: #1f293d;
    --bg-card: rgba(30, 41, 59, 0.5);
    --bg-card-hover: rgba(30, 41, 59, 0.8);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-gold: #f59e0b;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(6, 182, 212, 0.4);

    --primary-hsl: 189, 94%, 43%;
    --primary-color: #06b6d4;
    --primary-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --accent-glow: rgba(6, 182, 212, 0.25);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 35px -10px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(6, 182, 212, 0.35);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Transitions & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light Theme Variables Override */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-surface: rgba(255, 255, 255, 0.85);
    --bg-surface-solid: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: #ffffff;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-gold: #d97706;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(6, 182, 212, 0.6);

    --accent-glow: rgba(6, 182, 212, 0.15);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 30px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 25px rgba(6, 182, 212, 0.2);
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    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);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font-family: inherit;
    outline: none;
    border: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Layout Utility Classes --- */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }

/* --- Custom Cursor --- */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
}

.cursor-blur {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(6, 182, 212, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, transform 0.15s ease-out;
}

/* --- Glassmorphic Containers --- */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-glow);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.6);
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-glow:hover::after {
    opacity: 1;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(6, 182, 212, 0.08);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    width: 100%;
}

/* --- Section Headers --- */
.section-header {
    max-width: 680px;
    margin: 0 auto 4rem auto;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(6, 182, 212, 0.2);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* --- Header / Navbar --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: padding var(--transition-normal), background var(--transition-normal), backdrop-filter var(--transition-normal);
}

.site-header.scrolled {
    padding: 0.75rem 0;
    background: var(--bg-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-badge {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

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

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-bounce);
}

.theme-toggle-btn:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--primary-color);
    transform: rotate(15deg);
}

body.dark-theme .icon-sun { display: block; color: #f59e0b; }
body.dark-theme .icon-moon { display: none; }
body.light-theme .icon-sun { display: none; }
body.light-theme .icon-moon { display: block; color: #3b82f6; }

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all var(--transition-normal);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding: 11rem 0 6rem 0;
    overflow: hidden;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, 0.2);
}

.glow-2 {
    bottom: 0;
    right: -5%;
    width: 600px;
    height: 600px;
    background: rgba(139, 92, 246, 0.15);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1.2rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-typing-wrapper {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2rem;
}

.typing-text {
    color: var(--text-gold);
    font-weight: 700;
}

.typing-cursor {
    animation: blink 0.7s infinite;
    color: var(--primary-color);
}

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

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

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Hero Visual & Tilt Card --- */
.hero-visual {
    position: relative;
    perspective: 1000px;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    transition: transform 0.1s ease-out;
}

.glass-frame {
    position: relative;
    border-radius: var(--radius-lg);
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-portrait {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 6px);
}

.frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 25, 0.8) 100%);
    pointer-events: none;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.2rem;
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 2;
    animation: float 4s ease-in-out infinite;
}

.badge-1 {
    top: 10%;
    left: -10%;
}

.badge-2 {
    bottom: 10%;
    right: -8%;
    animation-delay: 2s;
}

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

.floating-badge i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.floating-badge strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.floating-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2.2rem;
    height: 100%;
}

.about-card-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-gradient);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
    gap: 2rem;
    border-left: 4px solid var(--primary-color);
}

.info-banner-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    color: var(--text-gold);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
}

.info-banner h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.info-banner p {
    color: var(--text-secondary);
    max-width: 700px;
}

/* --- Values Section --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.value-box:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.value-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.value-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.value-box h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

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

/* --- Skills Section --- */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.skills-category {
    padding: 2.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-header h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-pct {
    color: var(--primary-color);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: var(--radius-full);
    transition: width 1.2s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.skill-badges-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.badge-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.badge-tag i {
    color: var(--primary-color);
}

.badge-tag:hover {
    border-color: var(--primary-color);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* --- Achievements Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(139, 92, 246, 0.5) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 24px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 12px var(--primary-color);
}

.timeline-content {
    padding: 2rem;
}

.timeline-date {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.timeline-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

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

.timeline-tags span {
    padding: 0.2rem 0.6rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Projects Gallery --- */
.filter-controls {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

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

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

.project-thumb {
    height: 180px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(59, 130, 246, 0.15) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    opacity: 0.8;
    transition: transform var(--transition-bounce);
}

.project-card:hover .thumb-icon {
    transform: scale(1.15) rotate(5deg);
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.8rem;
    background: var(--bg-surface);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.project-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-details h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

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

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

.project-tech span {
    padding: 0.25rem 0.65rem;
    background: rgba(6, 182, 212, 0.08);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

/* --- Live Editor Section --- */
.editor-box {
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    background: rgba(6, 182, 212, 0.05);
}

.editor-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2.5rem;
}

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

.info-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

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

.social-links-box {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.social-links-box h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

.contact-form-side {
    padding: 2.5rem;
}

/* --- Footer --- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 1rem;
    max-width: 320px;
}

.footer-links h4, .footer-note h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-color);
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* --- Modals & Toasts --- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(8px);
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 540px;
    padding: 2.5rem;
    background: var(--bg-surface-solid);
    border: 1px solid var(--border-hover);
    z-index: 2;
    transform: scale(0.9);
    transition: transform var(--transition-bounce);
}

.modal.active .modal-card {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

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

.modal-icon {
    font-size: 2.5rem;
    color: var(--text-gold);
    margin-bottom: 0.5rem;
}

.meaning-item {
    margin-bottom: 1.25rem;
}

.meaning-item strong {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.meaning-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--bg-surface-solid);
    color: var(--text-primary);
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    animation: slideIn 0.3s ease-out forwards;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-typing-wrapper, .hero-cta-group {
        justify-content: center;
    }

    .hero-description {
        margin: 0 auto 2rem auto;
    }

    .about-grid, .values-grid, .skills-wrapper, .projects-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-surface-solid);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: transform var(--transition-normal);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
    }

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

    .hamburger-btn {
        display: flex;
    }

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

    .info-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}
