:root {
    /* Color Palette */
    --bg-main: #030712;
    --bg-secondary: #0b0f19;
    --card-bg: rgba(17, 24, 39, 0.55);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-border-glow: rgba(99, 102, 241, 0.25);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --accent-indigo: #6366f1;
    --accent-cyan: #06b6d4;
    --accent-violet: #8b5cf6;
    
    --accent-indigo-glow: rgba(99, 102, 241, 0.4);
    --accent-cyan-glow: rgba(6, 182, 212, 0.4);
    
    /* Layout & Motion */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 20px;
    --radius-md: 12px;
}

/* -------------------------------------------------------------------------- */
/* RESET & BASE STYLES                                                        */
/* -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom cursor experience */
}

*::-webkit-scrollbar-track {
    background: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    width: 100%;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Selection highlight */
::selection {
    background: var(--accent-indigo-glow);
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-cyan));
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-cyan);
}

/* -------------------------------------------------------------------------- */
/* BACKGROUND CANVAS & GLOWS                                                  */
/* -------------------------------------------------------------------------- */
.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
}

.glow-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: screen;
    animation: orbFloat 25s ease-in-out infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-indigo);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-violet);
    top: 40%;
    left: 45%;
    animation-delay: -10s;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 50px) scale(1.1); }
    100% { transform: translate(-50px, 80px) scale(0.95); }
}

/* -------------------------------------------------------------------------- */
/* CUSTOM LIQUID CURSOR                                                       */
/* -------------------------------------------------------------------------- */
.custom-cursor {
    width: 40px;
    height: 40px;
    border: 1.5px solid var(--accent-cyan);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Hover state classes added via JS */
.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.05);
    border-color: var(--accent-indigo);
}

.cursor-hover-dot {
    transform: translate(-50%, -50%) scale(2);
    background-color: var(--accent-cyan);
}

/* Hide cursor on touch devices */
@media (max-width: 900px) {
    * { cursor: auto; }
    .custom-cursor, .custom-cursor-dot { display: none; }
}

/* -------------------------------------------------------------------------- */
/* CONTAINER & HELPER CLASSES                                                 */
/* -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}

.section-padding {
    padding: 120px 0;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-alt {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 64px auto;
}

.text-center { text-align: center; }
.text-green { color: #10b981; }
.text-blue { color: var(--accent-cyan); }
.text-purple { color: var(--accent-violet); }

/* -------------------------------------------------------------------------- */
/* BUTTONS & CORE INTERACTION ELEMENTS                                         */
/* -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-indigo-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    color: #fff;
    transform: translateY(-3px);
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
    transition: var(--transition-fast);
}

.btn-primary-small:hover {
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.4);
}

.btn-outline-small {
    padding: 8px 18px;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    text-decoration: none;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
}

.btn-outline-small:hover {
    border-color: var(--accent-cyan);
    color: #fff;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Tilt Card Base */
.tilt-card {
    transition: transform 0.1s ease-out, box-shadow 0.3s;
    transform-style: preserve-3d;
}

/* -------------------------------------------------------------------------- */
/* STICKY GLASS HEADER                                                        */
/* -------------------------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(3, 7, 18, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    background: rgba(3, 7, 18, 0.85);
}

.site-header.scrolled .header-inner {
    padding: 12px 0;
}

.brand a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

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

.logo-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: -2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--accent-indigo), var(--accent-cyan));
    transition: var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    z-index: 1010;
}

.nav-toggle span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 4px;
    transition: var(--transition-fast);
}

/* Mobile responsive navigation trigger animations */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* -------------------------------------------------------------------------- */
/* HERO SECTION                                                               */
/* -------------------------------------------------------------------------- */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 60px;
    padding: 80px 0 100px 0;
    min-height: auto;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
}

.badge-glow {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-cyan-glow);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 15px var(--accent-cyan); }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.typewriter-cursor {
    color: var(--accent-cyan);
    font-weight: 200;
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    50% { opacity: 0; }
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.info-item i {
    width: 16px;
    height: 16px;
    color: var(--accent-cyan);
}

.info-item:hover {
    border-color: rgba(6, 182, 212, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

/* -------------------------------------------------------------------------- */
/* ANALYTICS DASHBOARD MOCKUP                                                 */
/* -------------------------------------------------------------------------- */
.hero-visual {
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
}

.dashboard-header {
    background: rgba(11, 15, 25, 0.5);
    border-bottom: 1px solid var(--card-border);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dot-buttons {
    display: flex;
    gap: 6px;
}

.dot-buttons span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-buttons span:nth-child(1) { background-color: #ef4444; }
.dot-buttons span:nth-child(2) { background-color: #f59e0b; }
.dot-buttons span:nth-child(3) { background-color: #10b981; }

.dashboard-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dashboard-tabs {
    display: flex;
    gap: 4px;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
    border-radius: 8px;
}

.dash-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition-fast);
}

.dash-tab:hover {
    color: #fff;
}

.dash-tab.active {
    background: var(--bg-main);
    color: var(--accent-cyan);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.dashboard-body {
    padding: 24px;
    min-height: 200px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.kpi-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.04);
    padding: 12px 16px;
    border-radius: var(--radius-md);
}

.kpi-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.kpi-val {
    font-size: 1.15rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.chart-container {
    height: 120px;
    position: relative;
}

.dashboard-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.pulse-marker {
    animation: pulseMarker 1.5s infinite;
}

@keyframes pulseMarker {
    0% { r: 5; opacity: 0.9; }
    50% { r: 9; opacity: 0.4; }
    100% { r: 5; opacity: 0.9; }
}

/* Allocation bars tab */
.allocation-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alloc-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.75rem;
}

.alloc-bar-bg {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
}

.alloc-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 1s ease-out;
}

.alloc-pct {
    align-self: flex-end;
    font-weight: 700;
    margin-top: -16px;
}

/* Risk tab styles */
.risk-meter-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.risk-value-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.risk-val-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.risk-val-text .val {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-violet);
    font-family: var(--font-heading);
}

.risk-val-text .lbl {
    font-size: 0.6rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.risk-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.risk-detail-item {
    display: flex;
    flex-direction: column;
    font-size: 0.75rem;
}

.risk-detail-item span {
    color: var(--text-secondary);
}

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

.dashboard-footer {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--card-border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* -------------------------------------------------------------------------- */
/* ABOUT SECTION                                                              */
/* -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 64px;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.about-section {
    padding-top: 80px;
    margin-top: -15vh;
}

.profile-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    max-width: 380px;
    margin: 0 auto;
}

.profile-img-container {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

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

.profile-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(6, 182, 212, 0.2) 100%);
    mix-blend-mode: overlay;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.glow-ring {
    position: absolute;
    inset: -2px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--accent-indigo), var(--accent-cyan)) border-box;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    border-radius: 16px;
    pointer-events: none;
}

.profile-stat-box {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px;
    border-radius: var(--radius-md);
}

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

.p-stat h3 {
    font-size: 1.15rem;
    color: var(--accent-cyan);
    font-family: var(--font-heading);
}

.p-stat p {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.p-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.experience-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
    width: 100%;
    overflow: hidden;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 20px;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.highlight-card i {
    width: 24px;
    height: 24px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.highlight-card h4 {
    font-size: 1.05rem;
    font-family: var(--font-heading);
    margin-bottom: 6px;
}

.highlight-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.highlight-card:hover {
    background: rgba(99, 102, 241, 0.03);
    border-color: rgba(99, 102, 241, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* -------------------------------------------------------------------------- */
/* EXPERIENCE TIMELINE                                                        */
/* -------------------------------------------------------------------------- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 64px auto 0 auto;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.timeline-line {
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-indigo), var(--accent-cyan));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    position: relative;
    margin-bottom: 60px;
    width: 50%;
}

.timeline-item.left-item {
    align-self: flex-start;
    padding-right: 48px;
}

.timeline-item.right-item {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 48px;
    margin-left: 50%;
}

.timeline-badge {
    position: absolute;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-cyan);
    top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.timeline-badge i {
    width: 18px;
    height: 18px;
    color: var(--accent-cyan);
}

.timeline-item.left-item .timeline-badge {
    right: -22px;
}

.timeline-item.right-item .timeline-badge {
    left: -22px;
}

.timeline-content-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(12px);
    width: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: var(--transition-smooth);
}

.timeline-content-card:hover {
    border-color: var(--card-border-glow);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.15);
}

.card-header-timeline {
    margin-bottom: 18px;
}

.timeline-date {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border-radius: 4px;
    margin-bottom: 8px;
}

.timeline-content-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.company-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-style: italic;
}

.timeline-bullets {
    list-style-type: none;
    margin-bottom: 24px;
}

.timeline-bullets li {
    position: relative;
    padding-left: 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-indigo);
    font-weight: bold;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
}

/* -------------------------------------------------------------------------- */
/* ANALYTICS PLAYGROUND / SIMULATOR                                           */
/* -------------------------------------------------------------------------- */
.simulator-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.simulator-controls {
    display: flex;
    flex-direction: column;
    gap: 28px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding-right: 48px;
}

.simulator-controls h3, .simulator-results h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    margin-bottom: 4px;
}

.controls-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
}

.slider-val {
    color: var(--accent-cyan);
}

.input-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.input-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    box-shadow: 0 0 10px var(--accent-indigo-glow);
    cursor: pointer;
    transition: transform 0.1s;
}

.input-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.input-select {
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-select:focus {
    border-color: var(--accent-cyan);
}

/* Results section */
.results-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 20px 0 32px 0;
}

.result-kpi {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 14px 10px;
    border-radius: var(--radius-md);
    text-align: center;
}

.res-lbl {
    display: block;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.res-val {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

/* Simulator Bar Chart */
.simulator-chart-wrapper {
    height: 160px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    position: relative;
    padding-top: 10px;
}

.chart-y-axis {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted);
    text-align: right;
    width: 45px;
}

.chart-bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
}

.chart-growth-bar {
    flex: 1;
    margin: 0 2px;
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

/* Multiple components to growth bar (Principal vs Interest stacked look) */
.growth-bar-principal {
    width: 100%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #4f46e5, #6366f1);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.growth-bar-interest {
    width: 100%;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to top, #0891b2, #06b6d4);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.chart-growth-bar:hover {
    filter: brightness(1.2);
}

/* Tooltip on growth bar */
.bar-tooltip {
    position: absolute;
    bottom: 105%;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #111827;
    border: 1px solid var(--accent-cyan);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    color: #fff;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    z-index: 10;
}

.chart-growth-bar:hover .bar-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.chart-x-axis-lbl {
    text-align: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/* PROJECTS GRID & CARDS                                                      */
/* -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

.project-card-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, var(--accent-cyan-glow) 0%, transparent 70%);
    top: -60px;
    right: -60px;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.project-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    transition: var(--transition-fast);
}

.project-icon i {
    width: 24px;
    height: 24px;
    color: var(--accent-indigo);
    transition: var(--transition-fast);
}

.project-card h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.project-tags span {
    padding: 4px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #c7d2fe;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
}

.project-btn {
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--accent-cyan);
    font-size: 0.88rem;
    font-weight: 700;
    transition: var(--transition-fast);
    padding: 4px 0;
}

.project-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.project-card:hover {
    border-color: rgba(6, 182, 212, 0.35);
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 25px 50px rgba(6, 182, 212, 0.15);
}

.project-card:hover .project-card-glow {
    top: -40px;
    right: -40px;
    transform: scale(1.5);
}

.project-card:hover .project-icon {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
}

.project-card:hover .project-icon i {
    color: var(--accent-cyan);
}

.project-card:hover .project-btn i {
    transform: translateX(4px);
}

/* -------------------------------------------------------------------------- */
/* PROJECT DETAILS MODAL LAYOUTS                                              */
/* -------------------------------------------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 7, 18, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-smooth);
    display: none;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card.active {
    display: block;
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: #fff;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.modal-close i {
    width: 18px;
    height: 18px;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.modal-title-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-cyan);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-badge-row {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.modal-badge-row span {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-secondary);
    border-radius: 99px;
}

.modal-body-content h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.modal-body-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.modal-body-content ul {
    list-style-type: none;
    margin-bottom: 20px;
}

.modal-body-content ul li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.modal-body-content ul li::before {
    content: '▪';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
}

/* -------------------------------------------------------------------------- */
/* SKILLS MATRIX STYLING                                                      */
/* -------------------------------------------------------------------------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 56px;
}

.skills-category-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
}

.category-header i {
    width: 28px;
    height: 28px;
    color: var(--accent-cyan);
}

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

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    font-weight: 600;
}

.skill-info span:first-child {
    color: var(--text-primary);
}

.skill-info span:last-child {
    color: var(--accent-cyan);
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0; /* Dynamic width loaded via JS on scroll */
    background: linear-gradient(90deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    border-radius: 99px;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* -------------------------------------------------------------------------- */
/* CONTACT SECTION                                                            */
/* -------------------------------------------------------------------------- */
.contact-grid-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 56px;
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-cards h3, .contact-form-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.contact-cards p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.c-info-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 24px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: var(--transition-smooth);
}

.c-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.c-icon i {
    width: 20px;
    height: 20px;
    color: var(--accent-cyan);
}

.c-info-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.c-info-card p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.click-copy-lbl {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    color: var(--accent-cyan);
    margin-top: 4px;
    opacity: 0;
    transform: translateY(2px);
    transition: var(--transition-fast);
}

.c-info-card:hover {
    border-color: rgba(6, 182, 212, 0.25);
    background: rgba(6, 182, 212, 0.02);
}

.c-info-card:hover .click-copy-lbl {
    opacity: 1;
    transform: translateY(0);
}

/* Form Styling */
.contact-form-card {
    position: relative;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

/* Floating labels effect */
.floating-group input, .floating-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-fast);
}

.floating-group textarea {
    resize: none;
}

.floating-group label {
    position: absolute;
    left: 18px;
    top: 14px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    pointer-events: none;
    transition: var(--transition-fast);
}

.floating-group textarea ~ label {
    top: 14px;
}

/* Input states for float activation */
.floating-group input:focus, .floating-group textarea:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

.floating-group input:focus ~ label,
.floating-group input:not(:placeholder-shown) ~ label,
.floating-group textarea:focus ~ label,
.floating-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-cyan);
    background: var(--bg-secondary);
    padding: 0 8px;
    border-radius: 4px;
}

/* Form Success overlay state */
.form-success-overlay {
    position: absolute;
    inset: 0;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    border-radius: var(--radius-lg);
    z-index: 10;
}

.form-success-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.success-message {
    text-align: center;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: successPop 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes successPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 24px;
}

.success-circle {
    stroke: var(--accent-cyan);
    stroke-width: 2px;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: drawCircle 1s ease forwards;
}

.success-check {
    stroke: #10b981;
    stroke-width: 3px;
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: drawCheck 0.5s 0.6s ease forwards;
}

@keyframes drawCircle {
    to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.success-message p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-bottom: 28px;
}

/* -------------------------------------------------------------------------- */
/* SITE FOOTER & MISC                                                         */
/* -------------------------------------------------------------------------- */
.site-footer {
    border-top: 1px solid var(--card-border);
    background: var(--bg-secondary);
    padding: 40px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.footer-attribution a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.footer-attribution a:hover {
    color: var(--accent-indigo);
}

.heart-pulse {
    display: inline-block;
    color: #ef4444;
    animation: heartPulse 1.2s infinite;
}

@keyframes heartPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.25); }
    60% { transform: scale(1); }
}

/* Toast Alerts styling */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-message {
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--accent-cyan);
    color: #fff;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%) translateY(10px); opacity: 0; }
    to { transform: translateX(0) translateY(0); opacity: 1; }
}

.toast-message.closing {
    animation: toastSlideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideOut {
    to { transform: translateX(120%); opacity: 0; }
}

/* -------------------------------------------------------------------------- */
/* ENTRY REVEAL TRANSITIONS (SCROLL)                                          */
/* -------------------------------------------------------------------------- */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* -------------------------------------------------------------------------- */
/* RESPONSIVE LAYOUT MEDIA QUERIES                                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
    html { font-size: 15px; }
    
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 60px;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        margin: 0 auto 40px auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-info-grid {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .about-visual {
        order: -1;
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        margin-left: 0 !important;
        padding-left: 56px !important;
        padding-right: 0 !important;
        justify-content: flex-start;
    }
    
    .timeline-item.left-item .timeline-badge,
    .timeline-item.right-item .timeline-badge {
        left: 0;
        right: auto;
    }
    
    .simulator-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }
    
    .simulator-controls {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-right: 0;
        padding-bottom: 40px;
    }
    
    .projects-grid, .skills-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .contact-grid-layout {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 32px;
    }
}

@media (max-width: 768px) {
    html { font-size: 14px; width: 100%; overflow-x: hidden; }
    
    body { width: 100%; max-width: 100vw; overflow-x: hidden; }
    
    .nav-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75vw;
        max-width: 280px;
        height: 100vh;
        background: rgba(11, 15, 25, 0.98);
        border-left: 1px solid rgba(255,255,255,0.08);
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
        z-index: 1005;
        transition: var(--transition-smooth);
        overflow-y: auto;
    }
    
    .main-nav.open {
        right: 0;
    }
    
    .main-nav a {
        font-size: 1.15rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .container {
        padding: 0 16px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .hero-section {
        width: 100%;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2.8rem;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-info-grid {
        flex-direction: column;
        width: 100%;
        overflow: hidden;
    }
    
    .info-item {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .experience-highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        overflow: hidden;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        width: 100%;
        overflow: hidden;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        width: 100%;
        overflow: hidden;
    }
    
    .dashboard-mockup {
        min-height: 300px;
        width: 100%;
        max-width: none;
    }
    
    .simulator-grid {
        padding: 20px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .section-padding {
        padding: 80px 0;
    }
}

/* Extra Small Devices (Mobile Phones) */
@media (max-width: 480px) {
    html { font-size: 13px; width: 100%; overflow-x: hidden; }
    
    body { width: 100%; max-width: 100vw; overflow-x: hidden; }
    
    .container {
        padding: 0 12px;
        width: 100%;
        overflow-x: hidden;
    }
    
    .header-inner {
        padding: 16px 0;
        width: 100%;
        overflow: hidden;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.6rem;
    }
    
    .hero-section {
        padding: 40px 0 80px 0;
        min-height: auto;
        width: 100%;
        overflow: hidden;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 12px;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 16px;
        word-wrap: break-word;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 24px;
        word-wrap: break-word;
    }
    
    .hero-actions {
        gap: 12px;
        margin-bottom: 24px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .btn-primary-small {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 32px;
    }
    
    .badge-glow {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .about-grid {
        gap: 24px;
        width: 100%;
        overflow: hidden;
    }
    
    .profile-card {
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .timeline-line {
        left: 12px;
    }
    
    .timeline-item {
        padding-left: 40px !important;
        width: 100%;
        overflow: hidden;
    }
    
    .timeline-badge {
        width: 20px;
        height: 20px;
        left: 2px;
    }
    
    .timeline-date {
        font-size: 0.8rem;
    }
    
    .timeline-content-card {
        padding: 16px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .card-header-timeline h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .card-header-timeline h4 {
        font-size: 0.9rem;
        word-wrap: break-word;
    }
    
    .timeline-desc {
        font-size: 0.9rem;
    }
    
    .highlight-card {
        padding: 16px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .highlight-card h4 {
        font-size: 0.95rem;
        word-wrap: break-word;
    }
    
    .highlight-card p {
        font-size: 0.85rem;
    }
    
    .simulator-grid {
        gap: 24px;
        padding: 16px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .simulator-controls h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .simulator-results h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
    }
    
    .control-group {
        margin-bottom: 20px;
    }
    
    .slider-header label {
        font-size: 0.85rem;
    }
    
    .slider-val {
        font-size: 0.85rem;
    }
    
    .results-kpi-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .result-kpi {
        padding: 12px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .res-lbl {
        font-size: 0.8rem;
    }
    
    .res-val {
        font-size: 1.2rem;
    }
    
    .project-card {
        padding: 20px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .project-icon {
        width: 40px;
        height: 40px;
    }
    
    .project-icon i {
        width: 24px;
        height: 24px;
    }
    
    .project-card h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
    }
    
    .project-desc {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .project-tags {
        gap: 6px;
    }
    
    .project-tags span {
        font-size: 0.7rem;
        padding: 4px 8px;
        display: inline-block;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .project-btn {
        font-size: 0.8rem;
        padding: 8px 12px;
    }
    
    .modal-card {
        margin: 16px;
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
        padding: 20px;
        width: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .modal-header {
        gap: 12px;
        width: 100%;
        overflow: hidden;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        word-wrap: break-word;
    }
    
    .modal-header p {
        font-size: 0.85rem;
        word-wrap: break-word;
    }
    
    .form-group {
        margin-bottom: 16px;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 0.95rem;
        padding: 10px;
    }
    
    .contact-grid-layout {
        padding: 20px;
        gap: 32px;
    }
    
    .contact-info-item {
        padding: 12px 0;
    }
    
    .contact-info-item strong {
        font-size: 0.95rem;
    }
    
    .contact-info-item p {
        font-size: 0.85rem;
    }
    
    .footer-inner {
        padding: 16px 0;
        gap: 12px;
    }
    
    .footer-inner p {
        font-size: 0.75rem;
    }
    
    /* Hide elements that don't fit on mobile */
    .custom-cursor,
    .custom-cursor-dot {
        display: none;
    }
    
    /* Adjust grid overlays for mobile */
    .glow-orb {
        opacity: 0.1;
    }
    
    .dashboard-header {
        padding: 12px;
    }
    
    .dashboard-tabs {
        gap: 8px;
    }
    
    .dash-tab {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .kpi-row {
        gap: 8px;
    }
    
    .kpi-card {
        padding: 12px;
    }
    
    .kpi-label {
        font-size: 0.7rem;
    }
    
    .kpi-val {
        font-size: 1rem;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .hero-description {
        display: none;
    }
    
    .hero-actions {
        margin-bottom: 12px;
    }
    
    .hero-info-grid {
        display: none;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* Tablet Landscape Optimization */
@media (min-width: 769px) and (max-width: 1000px) {
    .hero-section {
        gap: 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

/* Small Tablets */
@media (max-width: 600px) {
    .main-nav {
        width: 100%;
        right: -100%;
    }
    
    .dashboard-mockup {
        display: none;
    }
    
    .hero-visual {
        display: none;
    }
    
    .about-visual {
        margin-bottom: 24px;
    }
    
    .timeline {
        padding: 0;
    }
}