:root {
    --primary-color: #06b6d4;
    --secondary-color: #8b5cf6;
}

html, html[data-theme="dark"] {
    --background: #0a0e1a;
    --background-alt: #0f172a;
    --surface: #1e293b;
    --surface-light: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border: #334155;
    --border-light: #475569;
    --shadow: rgba(0, 0, 0, 0.5);
    --glow: rgba(6, 182, 212, 0.25);
}

html[data-theme="light"] {
    --background: #ffffff;
    --background-alt: #f8fafc;
    --surface: #f1f5f9;
    --surface-light: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --border-light: #cbd5e1;
    --shadow: rgba(0, 0, 0, 0.1);
    --glow: rgba(6, 182, 212, 0.2);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1) rotate(2deg);
    }
}

/* Geometric pattern overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
    background-image:
        linear-gradient(30deg, var(--primary-color) 12%, transparent 12.5%, transparent 87%, var(--primary-color) 87.5%, var(--primary-color)),
        linear-gradient(150deg, var(--primary-color) 12%, transparent 12.5%, transparent 87%, var(--primary-color) 87.5%, var(--primary-color)),
        linear-gradient(30deg, var(--primary-color) 12%, transparent 12.5%, transparent 87%, var(--primary-color) 87.5%, var(--primary-color)),
        linear-gradient(150deg, var(--primary-color) 12%, transparent 12.5%, transparent 87%, var(--primary-color) 87.5%, var(--primary-color));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    animation: flowPattern 60s linear infinite;
}

@keyframes flowPattern {
    0% {
        background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    }
    100% {
        background-position: 80px 140px, -80px -140px, 120px 210px, -40px -70px;
    }
}

/* Floating background orbs */
.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -3;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent);
    top: 10%;
    left: 10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25), transparent);
    top: 60%;
    right: 10%;
    animation-duration: 30s;
    animation-delay: -10s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent);
    bottom: 10%;
    left: 50%;
    animation-duration: 28s;
    animation-delay: -5s;
}

@keyframes float-orb {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 50px) scale(0.9);
    }
    75% {
        transform: translate(40px, 20px) scale(1.05);
    }
}

.theme-toggle, .palette-toggle {
    position: fixed;
    top: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 15px var(--shadow);
}

.theme-toggle { right: 2rem; }
.palette-toggle { right: 5.5rem; }

.theme-toggle:hover, .palette-toggle:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color);
}

.theme-toggle svg, .palette-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.sun-icon { display: none; }
.moon-icon { display: block; }
html[data-theme="light"] .sun-icon { display: block; }
html[data-theme="light"] .moon-icon { display: none; }

.palette-picker {
    position: fixed;
    top: 5rem;
    right: 2rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px var(--shadow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 320px;
}

.palette-picker.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.palette-header {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}

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

.palette-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.palette-option::before, .skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.palette-option:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px var(--glow);
}

.palette-option:hover::before {
    opacity: 0.1;
}

.palette-option.active {
    border-color: var(--primary-color);
    background: var(--background);
}

.palette-option.active::after {
    content: '✓';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.palette-preview {
    display: flex;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.palette-preview span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--background);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.palette-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

html[data-palette="ocean"] { --primary-color: #0ea5e9; --secondary-color: #14b8a6; --glow: rgba(14, 165, 233, 0.25); }
html[data-palette="sunset"] { --primary-color: #f97316; --secondary-color: #ec4899; --glow: rgba(249, 115, 22, 0.25); }
html[data-palette="forest"] { --primary-color: #10b981; --secondary-color: #059669; --glow: rgba(16, 185, 129, 0.25); }
html[data-palette="lavender"] { --primary-color: #a855f7; --secondary-color: #d946ef; --glow: rgba(168, 85, 247, 0.25); }
html[data-palette="fire"] { --primary-color: #ef4444; --secondary-color: #f59e0b; --glow: rgba(239, 68, 68, 0.25); }
html[data-palette="rose"] { --primary-color: #f43f5e; --secondary-color: #ec4899; --glow: rgba(244, 63, 94, 0.25); }
html[data-palette="amber"] { --primary-color: #eab308; --secondary-color: #f59e0b; --glow: rgba(234, 179, 8, 0.25); }

html[data-theme="light"][data-palette="ocean"] { --glow: rgba(14, 165, 233, 0.2); }
html[data-theme="light"][data-palette="sunset"] { --glow: rgba(249, 115, 22, 0.2); }
html[data-theme="light"][data-palette="forest"] { --glow: rgba(16, 185, 129, 0.2); }
html[data-theme="light"][data-palette="lavender"] { --glow: rgba(168, 85, 247, 0.2); }
html[data-theme="light"][data-palette="fire"] { --glow: rgba(239, 68, 68, 0.2); }
html[data-theme="light"][data-palette="rose"] { --glow: rgba(244, 63, 94, 0.2); }
html[data-theme="light"][data-palette="amber"] { --glow: rgba(234, 179, 8, 0.2); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Header Styles */
.header {
    text-align: center;
    padding: 3rem 0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: pulseGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
    animation: floatIn 1s ease-out;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px var(--shadow), 0 0 0 8px var(--surface);
    transition: all 0.3s ease;
    object-fit: cover;
    object-position: center;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    position: relative;
    animation: gentleFloat 6s ease-in-out infinite;
}

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

.profile-image:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color), 0 0 0 8px var(--surface);
    animation-play-state: paused;
}

.name {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 1rem;
    position: relative;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

@keyframes expandLine {
    to {
        width: 120px;
    }
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

/* Animated blinking cursor after tagline */
.tagline::after {
    content: '|';
    color: var(--primary-color);
    font-style: normal;
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

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

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.icon {
    width: 16px;
    height: 16px;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.stat-card:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-number,
.stat-label {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Content Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

section h2::after, .name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.name::after {
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    animation: expandLine 1s ease-out 0.8s forwards;
}

.about, .skills, .experience, .links {
    background: rgba(30, 41, 59, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 12px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.about::before, .skills::before, .experience::before, .links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

/* Two-column layout for About section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.about-bio {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-bio p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0;
}

.focus-areas {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.focus-areas h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.focus-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.875rem;
}

.focus-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.focus-list li::before, .timeline-content::before, .link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.focus-list li:hover {
    border-color: var(--primary-color);
    transform: scale(1.05) translateX(8px);
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color);
}

.focus-list li:hover::before, .timeline-item:hover .timeline-content::before {
    opacity: 0.15;
}

.link-card:hover::before { opacity: 0.15; }

.focus-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    position: relative;
    z-index: 1;
}

/* Floating Skills Cloud */
.floating-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 2rem;
    min-height: 300px;
    position: relative;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    min-width: 140px;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}

.skill-tag:hover {
    transform: scale(1.2) translateY(-5px);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color);
}

.skill-tag:hover::before { opacity: 1; }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-10px) translateX(5px);
    }
    50% {
        transform: translateY(-5px) translateX(-5px);
    }
    75% {
        transform: translateY(-15px) translateX(3px);
    }
}

.timeline {
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.animate {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.timeline-item.animate:nth-child(1) {
    animation-delay: 0.1s;
}

.timeline-item.animate:nth-child(2) {
    animation-delay: 0.2s;
}

.timeline-item.animate:nth-child(3) {
    animation-delay: 0.3s;
}

.timeline-item.animate:nth-child(4) {
    animation-delay: 0.4s;
}

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

.timeline-marker {
    position: absolute;
    left: -2.4rem;
    top: 0.3rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 2px solid var(--background);
    box-shadow: 0 0 0 4px var(--surface);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.5);
    box-shadow: 0 0 0 4px var(--surface), 0 0 20px var(--primary-color);
}

.timeline-content {
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.timeline-icon {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.company-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.redhat-logo {
    filter: brightness(0) saturate(100%) invert(37%) sepia(93%) saturate(4599%) hue-rotate(353deg) brightness(94%) contrast(91%);
}

.akamai-logo {
    filter: brightness(0) saturate(100%) invert(25%) sepia(98%) saturate(1950%) hue-rotate(196deg) brightness(95%) contrast(101%);
}

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

.timeline-item:hover .company-logo {
    transform: scale(1.1) rotate(5deg);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary-color);
    transform: scale(1.02) translateX(8px);
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.timeline-header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    margin: 0.75rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.timeline-period {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02) translateX(8px);
    box-shadow: 0 8px 25px var(--glow), 0 4px 15px var(--primary-color);
}

.link-icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

/* CTA Section */
.cta {
    text-align: center;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-light) 100%);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 3.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.cta h2 {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.cta p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--glow), 0 4px 20px var(--primary-color);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll-triggered animations */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

.scroll-fade-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-fade-right.animate {
    opacity: 1;
    transform: translateX(0);
}

html[data-theme="light"] .about, html[data-theme="light"] .skills,
html[data-theme="light"] .experience, html[data-theme="light"] .links {
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }

    .theme-toggle svg {
        width: 20px;
        height: 20px;
    }

    .palette-toggle {
        top: 1rem;
        right: 4.5rem;
        width: 44px;
        height: 44px;
    }

    .palette-toggle svg {
        width: 20px;
        height: 20px;
    }

    .palette-picker {
        top: 4rem;
        right: 1rem;
        min-width: 280px;
        max-width: calc(100vw - 2rem);
    }

    .palette-options {
        gap: 0.5rem;
    }

    .palette-option {
        padding: 0.5rem;
    }

    .palette-preview span {
        width: 28px;
        height: 28px;
    }

    .name {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-bio p {
        font-size: 1rem;
    }

    .link-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-marker {
        left: -1.9rem;
    }

    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta {
        padding: 2rem 1.5rem;
    }

    .container {
        padding: 1rem;
    }

    .header {
        padding: 2rem 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 120px;
        height: 120px;
    }

    .name {
        font-size: 1.75rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .about, .skills, .experience, .links, .cta {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .timeline-header h3 {
        font-size: 1.1rem;
    }

    .timeline-icon {
        float: none;
        margin-bottom: 1rem;
        display: flex;
        justify-content: center;
    }

    .company-logo {
        width: 40px;
        height: 40px;
    }
}