/* ==========================================
   CSS Variables & Base Styles
   ========================================== */
:root {
    /* Primary Colors - Professional Navy Blue Theme */
    --primary: #1e3a5f;
    --primary-light: #2d5a8a;
    --primary-dark: #0f2744;
    --primary-rgb: 30, 58, 95;
    
    /* Accent Colors */
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --accent-rgb: 59, 130, 246;
    
    /* Secondary Accent - Teal */
    --secondary: #0d9488;
    --secondary-light: #14b8a6;
    
    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e293b 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(var(--accent-rgb), 0.3);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'Consolas', monospace;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}

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

/* Disable text selection */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form inputs */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

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

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

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

ul, ol {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Base */
.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section:nth-child(even) {
    background-color: var(--bg-secondary);
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-accent);
    margin: 16px auto 0;
    border-radius: var(--radius-full);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.navbar:not(.scrolled) .logo-text {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-menu {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--white);
    border-radius: var(--radius);
    transition: var(--transition);
}

.navbar.scrolled .nav-link {
    color: var(--text-secondary);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--accent);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--white);
    background: var(--accent);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
}

.navbar.scrolled .nav-toggle {
    background: var(--gray-100);
}

.hamburger {
    width: 20px;
    height: 2px;
    background: var(--white);
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .hamburger {
    background: var(--text-primary);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: inherit;
    transition: var(--transition);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* Hamburger to X animation when menu is open */
.nav-toggle.active .hamburger {
    background: transparent;
}

.nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--white);
}

.nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--white);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(var(--accent-rgb), 0.1) 0%, transparent 40%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: float 15s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-text {
    color: var(--white);
}

.hero-greeting {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.hero-name {
    font-size: clamp(1.75rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.hero-title-wrapper {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 500;
    margin-bottom: 24px;
    min-height: 40px;
}

.hero-title-static {
    color: var(--gray-300);
}

.hero-title-dynamic {
    color: var(--accent-light);
}

.cursor {
    animation: blink 1s infinite;
    color: var(--accent-light);
}

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

.hero-tagline {
    font-size: 1.125rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white);
    display: inline;
}

.stat-plus {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: 4px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.4);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.hero-image-container {
    position: relative;
}

.hero-image-bg {
    position: absolute;
    inset: -20px;
    background: var(--gradient-accent);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(40px);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.hero-image-placeholder {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 10px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.initials {
    font-size: 6rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-badge {
    position: absolute;
    bottom: 20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    animation: bounce 2s ease-in-out infinite;
}

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

.badge-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #22c55e;
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--gray-400);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 2s;
    opacity: 0;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--gray-500);
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-light);
    border-radius: var(--radius-full);
    animation: scroll 2s infinite;
}

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

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================
   About Section
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.about-image-wrapper {
    position: relative;
}

.about-img-placeholder {
    background: var(--gradient-hero);
    border-radius: var(--radius-lg);
    padding: 30px;
    overflow: hidden;
}

.code-block {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius);
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-block code {
    color: #e2e8f0;
}

.code-keyword { color: #c792ea; }
.code-variable { color: #82aaff; }
.code-property { color: #f78c6c; }
.code-string { color: #c3e88d; }

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--accent);
}

.exp-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.exp-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.about-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: var(--radius);
    color: var(--accent);
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.about-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.about-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-description strong {
    color: var(--text-primary);
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(var(--accent-rgb), 0.05);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ==========================================
   Skills Section
   ========================================== */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.skills-category {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: var(--white);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
}

.skill-icon.python { background: linear-gradient(135deg, #3776AB, #FFD43B); }
.skill-icon.sql { background: linear-gradient(135deg, #00758F, #F29111); }
.skill-icon.js { background: linear-gradient(135deg, #F7DF1E, #323330); color: #323330; }
.skill-icon.tableau { background: linear-gradient(135deg, #E97627, #C72E49); }
.skill-icon.aws { background: linear-gradient(135deg, #FF9900, #232F3E); }
.skill-icon.react { background: linear-gradient(135deg, #61DAFB, #20232a); }

.skill-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1s ease-out;
}

.skill-item.animate .skill-progress {
    width: var(--progress);
}

/* Tools Cloud */
.tools-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-tag {
    padding: 10px 20px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.tool-tag:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

/* Domain Skills */
.domain-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.domain-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.domain-item:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.domain-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.domain-icon svg {
    width: 24px;
    height: 24px;
}

.domain-item span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==========================================
   Experience Section
   ========================================== */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent), var(--secondary), var(--gray-300));
    border-radius: var(--radius-full);
}

.timeline-item {
    position: relative;
    padding-left: 50px;
    padding-bottom: 50px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 3px solid var(--accent);
    border-radius: 50%;
    z-index: 1;
}

.timeline-marker.current {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.2);
}

.timeline-marker.current .marker-dot {
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.timeline-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.company-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.company-type {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.timeline-period {
    padding: 6px 14px;
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
}

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

.role {
    padding-left: 20px;
    border-left: 2px solid var(--gray-200);
}

.role.current-role {
    border-left-color: var(--accent);
}

.role-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.role-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.role-period {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.current-badge {
    padding: 4px 10px;
    background: #22c55e;
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.role-highlights {
    margin-bottom: 16px;
}

.role-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

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

.tech-tags span {
    padding: 4px 12px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Earlier Experience */
.timeline-content.collapsed .earlier-roles {
    display: none;
}

.timeline-content.expanded .earlier-roles {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.expand-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gray-100);
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}

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

.expand-btn svg {
    width: 16px;
    height: 16px;
    transition: var(--transition);
}

.timeline-content.expanded .expand-btn svg {
    transform: rotate(180deg);
}

.earlier-role {
    padding: 16px;
    background: var(--gray-50);
    border-radius: var(--radius);
}

.earlier-role h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.earlier-role .role-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 4px;
}

.earlier-role .period {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ==========================================
   Education Section
   ========================================== */
.education-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
    max-width: 900px;
    margin: 0 auto;
}

.edu-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    color: var(--white);
}

.edu-icon svg {
    width: 40px;
    height: 40px;
}

.edu-degree {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.edu-field {
    font-size: 1.125rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
}

.edu-university {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.edu-year {
    display: inline-block;
    padding: 6px 14px;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
}

.edu-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edu-highlight {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.edu-highlight .highlight-icon {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.contact-info > p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.contact-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-rgb), 0.1);
    border-radius: var(--radius);
    color: var(--accent);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-label {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    transition: var(--transition);
    resize: none;
}

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

.form-group label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 4px;
}

.form-group textarea ~ label {
    top: 20px;
    transform: translateY(0);
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.8125rem;
    color: var(--accent);
    background: var(--white);
}

.submit-btn {
    width: 100%;
    padding: 16px 32px;
}

.submit-btn svg {
    width: 18px;
    height: 18px;
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    background: var(--bg-dark);
    color: var(--gray-400);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-700);
    flex-wrap: wrap;
    gap: 32px;
}

.footer-logo .logo-text {
    margin-bottom: 12px;
}

.footer-logo p {
    font-size: 0.9375rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--gray-400);
    transition: var(--transition);
}

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

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-800);
    border-radius: var(--radius);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-social svg {
    width: 20px;
    height: 20px;
    color: var(--gray-400);
}

.footer-social a:hover svg {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.footer-quote {
    font-style: italic;
    color: var(--gray-500);
}

/* ==========================================
   Mobile Bottom Navigation
   Hidden on desktop, shown only via media query on mobile
   ========================================== */
.mobile-nav,
.mobile-more-menu {
    display: none;
}

/* ==========================================
   Animations
   ========================================== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeLeft 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }
.delay-5 { animation-delay: 1s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Reveal Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease;
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-visual {
        order: 1;
    }
    
    .hero-tagline {
        margin: 0 auto 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .domain-skills {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .education-card {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }
    
    .edu-highlights {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .edu-highlights {
        align-items: flex-start;
        width: 100%;
    }
    
    .edu-highlight {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        font-size: 0.8125rem;
    }
    
    .edu-highlight .highlight-icon {
        flex-shrink: 0;
        margin-top: 2px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    /* Hide entire desktop navbar on mobile */
    .navbar {
        display: none !important;
    }
    
    /* Show mobile bottom nav */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 8px 16px;
        justify-content: space-around;
        align-items: center;
        z-index: 9999;
        border-top: 1px solid #334155;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 16px;
        color: #94a3b8;
        text-decoration: none;
        border-radius: 8px;
        cursor: pointer;
    }
    
    .mobile-nav-item:hover,
    .mobile-nav-item.active {
        color: #60a5fa;
    }
    
    .mobile-nav-icon {
        font-size: 1.25rem;
        line-height: 1;
    }
    
    .mobile-nav-label {
        font-size: 0.625rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mobile-more-menu {
        display: none;
        position: fixed;
        bottom: 75px;
        right: 16px;
        background: #1e293b;
        border-radius: 12px;
        padding: 8px 0;
        min-width: 160px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid #334155;
        z-index: 10000;
    }
    
    .mobile-more-menu.show {
        display: block;
    }
    
    .more-menu-item {
        display: block;
        padding: 12px 20px;
        color: #cbd5e1;
        text-decoration: none;
        font-size: 0.9375rem;
    }
    
    .more-menu-item:hover {
        background: rgba(59, 130, 246, 0.1);
        color: #60a5fa;
    }
    
    /* Adjust body padding for bottom nav */
    body {
        padding-bottom: 70px;
        padding-top: 0;
    }
    
    /* Adjust hero section since no top navbar */
    .hero {
        padding-top: 40px;
    }
    
    .hero-image-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .initials {
        font-size: 4rem;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .about-cards {
        grid-template-columns: 1fr;
    }
    
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .domain-skills {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 8px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .timeline-header {
        flex-direction: column;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .hero-badge {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: 16px;
        animation: none;
    }
    
    .hero-image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .experience-badge {
        width: 100px;
        height: 100px;
        right: -10px;
        bottom: -10px;
    }
    
    .exp-number {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 24px;
    }
    
    .contact-form-wrapper {
        padding: 24px;
    }
}

/* ==========================================
   Enhanced Mobile Compatibility
   ========================================== */

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Mobile-first touch targets */
@media (max-width: 768px) {
    /* Larger touch targets */
    .btn {
        min-height: 48px;
        padding: 14px 24px;
    }
    
    .nav-link {
        padding: 14px 20px;
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 16px;
    }
    
    /* Better form inputs for mobile */
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    /* Improve readability */
    .about-description {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .role-highlights li {
        font-size: 0.875rem;
    }
    
    /* Stack contact items better */
    .contact-items {
        gap: 12px;
    }
    
    .contact-icon {
        width: 48px;
        height: 48px;
    }
    
    /* Code block adjustments */
    .code-block {
        padding: 16px;
        font-size: 0.75rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Section padding reduction */
    :root {
        --section-padding: 60px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Timeline improvements */
    .timeline-item {
        padding-bottom: 30px;
    }
    
    .role {
        padding-left: 16px;
    }
    
    .role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tech-tags {
        gap: 6px;
    }
    
    .tech-tags span {
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    /* Tool tags on mobile */
    .tools-cloud {
        gap: 8px;
    }
    
    .tool-tag {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }
    
    /* Skills section */
    .skills-category {
        padding: 24px;
    }
    
    .skill-item {
        padding: 16px;
    }
    
    .skill-icon {
        width: 48px;
        height: 48px;
        font-size: 0.875rem;
    }
    
    /* Hero section mobile */
    .hero {
        padding: 80px 0 60px;
        min-height: auto;
    }
    
    .hero-image-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .initials {
        font-size: 3rem;
    }
    
    .hero-badge {
        position: relative;
        right: auto;
        bottom: auto;
        transform: none;
        margin-top: 20px;
        padding: 10px 16px;
        display: inline-flex;
        justify-content: center;
        animation: none;
    }
    
    .hero-image-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .badge-icon {
        width: 20px;
        height: 20px;
        font-size: 0.625rem;
    }
    
    .badge-text {
        font-size: 0.8125rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Scroll indicator hidden on mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Education card mobile */
    .education-card {
        padding: 24px;
        gap: 20px;
    }
    
    .edu-icon {
        width: 60px;
        height: 60px;
    }
    
    .edu-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .edu-degree {
        font-size: 1.25rem;
    }
    
    .edu-field {
        font-size: 1rem;
    }
    
    /* Footer mobile */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-links {
        gap: 16px;
    }
    
    .footer-links a {
        font-size: 0.875rem;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title-wrapper {
        font-size: 1rem;
    }
    
    .company-name {
        font-size: 1.125rem;
    }
    
    .role-title {
        font-size: 1rem;
    }
    
    .about-card {
        padding: 16px;
    }
    
    .domain-item {
        padding: 12px;
        gap: 12px;
    }
    
    .domain-icon {
        width: 40px;
        height: 40px;
    }
    
    .domain-item span {
        font-size: 0.8125rem;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
        min-height: auto;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 30px;
    }
}

/* Improve touch scrolling */
.timeline,
.tools-cloud,
.earlier-roles {
    -webkit-overflow-scrolling: touch;
}

/* Focus states for accessibility */
.btn:focus,
.nav-link:focus,
.contact-item:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-particles {
        display: none;
    }
}
