:root {
    /* Light Theme */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;
    --accent-primary: #2563eb;
    --accent-secondary: #3b82f6;
    --border-color: rgba(59, 130, 246, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);
    --nav-bg: rgba(255, 255, 255, 0.85);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --accent-primary: #60a5fa;
    --accent-secondary: #3b82f6;
    --border-color: rgba(148, 163, 184, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --nav-bg: rgba(15, 23, 42, 0.85);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #3b82f6, #6366f1);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2563eb, #4f46e5);
}

/* Navigation */
.glass-nav {
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

/* Mobile Menu */
#mobile-menu {
    z-index: 100;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.mobile-menu-open {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.mobile-menu-closed {
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}

#mobile-menu a {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#mobile-menu a:last-child {
    border-bottom: none;
}

/* Mobile Action Buttons (larger touch targets) */
.mobile-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-action-btn:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Hamburger Icon Animation */
.hamburger-icon {
    width: 22px;
    height: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

/* Hamburger to X animation */
.hamburger-open .hamburger-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger-open .hamburger-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Active Nav Link */
.nav-link.active {
    color: var(--accent-primary);
}

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

.mobile-nav-link.active {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    font-weight: 600;
}

/* Focus States for Accessibility */
.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

.nav-link {
    position: relative;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    transition: width 0.3s ease;
}

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

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

/* Buttons */
.btn-primary {
    padding: 12px 32px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    padding: 12px 32px;
    background: var(--bg-secondary);
    color: var(--accent-primary);
    border: 2px solid var(--accent-secondary);
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background: var(--bg-tertiary);
}

/* Theme Toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.theme-toggle:hover {
    background: var(--accent-primary);
    color: white;
    transform: rotate(15deg);
    box-shadow: 0 0 15px var(--accent-primary);
}

/* Hero Animations */
.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 50%, #e0e7ff 100%);
    background-size: 400% 400%;
    animation: gradientMove 20s ease infinite;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(147, 197, 253, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 181, 253, 0.3) 0%, transparent 50%);
    animation: particleFloat 15s ease-in-out infinite;
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.badge-available {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    margin-right: 8px;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Profile */
.profile-container {
    position: relative;
    width: 450px;
    height: 450px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.profile-ring {
    position: absolute;
    inset: -8px;
    border: 3px dashed rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Availability Dashboard */
.availability-dashboard {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: var(--card-shadow);
    display: inline-block;
    margin-bottom: 24px;
}

/* Achievement Cards in Modals */
.achievement-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
}

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

.achievement-content h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.achievement-content p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

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

.dashboard-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.dashboard-grid {
    display: flex;
    gap: 24px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.status-dot.available {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.status-dot.limited {
    background-color: #eab308;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.4);
}

.status-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

@media (max-width: 640px) {
    .dashboard-grid {
        flex-direction: column;
        gap: 8px;
    }
}

.profile-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 30px;
    transform: rotate(6deg);
    opacity: 0.15;
    filter: blur(40px);
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    border: 6px solid white;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

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

.profile-badge {
    position: absolute;
    bottom: 40px;
    right: -20px;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 20;
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hero 3D Effect */
.hero-visual {
    perspective: 1000px;
}

.hero-3d-container {
    position: relative;
    width: 100%;
    height: 600px;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.hero-main-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    width: 400px;
    z-index: 2;
}

.hero-card-glass {
    position: absolute;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--card-shadow);
    width: 180px;
    z-index: 3;
    transition: all 0.3s ease;
}

.hero-card-glass:nth-child(1) {
    top: 20%;
    left: 0;
    transform: translateZ(40px);
}

.hero-card-glass.card-2 {
    bottom: 20%;
    right: 0;
    transform: translateZ(60px);
}

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

.card-content h3 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.card-content p {
    font-size: 12px;
    color: var(--text-secondary);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(59, 130, 246, 0.4);
    font-size: 28px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Sections */
.pattern-dots {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: radial-gradient(circle, white 1px, transparent 1px);
    background-size: 20px 20px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #60a5fa;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
}

.label-line {
    width: 40px;
    height: 2px;
    background: #60a5fa;
}

.quote-card {
    border-left: 4px solid #3b82f6;
    padding: 24px;
    font-style: italic;
    font-size: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.value-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px 24px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-8px);
}

.value-icon {
    font-size: 40px;
    color: #60a5fa;
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15);
}

.value-card h3 {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 14px;
    color: #cbd5e1;
}

.section-badge {
    color: #3b82f6;
    font-weight: 700;
    letter-spacing: 0.15em;
    font-size: 13px;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    margin-bottom: 16px;
}

.section-subtitle {
    color: #64748b;
}

/* Skills */
.skill-tabs-container {
    background: var(--bg-secondary);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.skill-tabs {
    display: flex;
    flex-wrap: wrap;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.skill-tab {
    flex: 1;
    padding: 20px 24px;
    text-align: center;
    font-weight: 700;
    color: var(--text-tertiary);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.skill-tab:hover {
    color: var(--accent-secondary);
    background: var(--bg-secondary);
}

.skill-tab.active-tab {
    color: var(--accent-primary);
    background: var(--bg-secondary);
    border-bottom-color: var(--accent-secondary);
}

.skill-content {
    padding: 48px;
    min-height: 350px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.tab-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.tab-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-pill {
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid;
}

.skill-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-pill.blue {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.skill-pill.purple {
    background: #f5f3ff;
    color: #7c3aed;
    border-color: #ddd6fe;
}

.skill-pill.green {
    background: #f0fdf4;
    color: #16a34a;
    border-color: #bbf7d0;
}

.skill-pill.orange {
    background: #fff7ed;
    color: #ea580c;
    border-color: #fed7aa;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #e2e8f0, #cbd5e1, #e2e8f0);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
    cursor: pointer;
}

.timeline-dot {
    position: absolute;
    left: -26px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid #cbd5e1;
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-dot.current {
    background: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
    animation: pulse 2s ease infinite;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    border-color: #3b82f6;
}

.timeline-card {
    background: var(--bg-secondary);
    padding: 36px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

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

.timeline-header h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 22px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.badge-current {
    padding: 6px 14px;
    background: #dcfce7;
    color: #15803d;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(22, 163, 74, 0.1);
}

.timeline-date {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg-tertiary);
    padding: 4px 12px;
    border-radius: 8px;
}

.timeline-role {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    font-weight: 400;
}

.timeline-cta {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
    padding: 8px 0;
}

.timeline-item:hover .timeline-cta {
    gap: 12px;
    color: #1d4ed8;
}

/* Personal */
.personal-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(147, 197, 253, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(196, 181, 253, 0.2) 0%, transparent 50%);
}

.personal-card {
    background: var(--bg-secondary);
    padding: 48px 32px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s ease;
}

.personal-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(59, 130, 246, 0.15);
}

.personal-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
    transition: transform 0.5s ease;
}

.personal-card:hover .personal-icon {
    transform: scale(1.1);
}

.personal-icon.blue {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #2563eb;
}

.personal-icon.purple {
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff);
    color: #7c3aed;
}

.personal-icon.orange {
    background: linear-gradient(135deg, #ffedd5, #fed7aa);
    color: #ea580c;
}

.personal-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.personal-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact */
.contact-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.contact-btn.primary {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-btn.primary:hover {
    transform: translateY(-3px);
}

.contact-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.contact-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.social-link {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: white;
    color: #2563eb;
    transform: scale(1.15);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: all;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Modals */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
}

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

.modal-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-secondary);
    border-radius: 24px;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 101;
}

.modal-wrapper.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    padding: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 40px 40px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.modal-header p {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.modal-close {
    color: var(--text-tertiary);
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
}

.modal-body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding-left: 32px;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 16px;
    position: relative;
}

.modal-body li::before {
    content: '\f00c';
    /* FontAwesome check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent-primary);
    font-size: 14px;
    background: var(--bg-tertiary);
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Process Section */
.process-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    gap: 20px;
    flex-wrap: wrap;
}

.process-line {
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--border-color);
    z-index: 0;
    border-radius: 4px;
}

.process-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-primary);
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

.process-container.active .process-line::after {
    width: 100%;
}

.process-step {
    flex: 1;
    min-width: 200px;
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 20px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--accent-primary);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.step-content h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .process-container {
        flex-direction: column;
        gap: 40px;
    }

    .process-line {
        width: 4px;
        height: 100%;
        left: 40px;
        top: 0;
    }

    .process-line::after {
        width: 100%;
        height: 0;
        transition: height 1.5s ease-out;
    }

    .process-container.active .process-line::after {
        height: 100%;
    }

    .process-step {
        display: flex;
        text-align: left;
        gap: 24px;
        padding-top: 0;
    }

    .step-icon {
        margin: 0;
        min-width: 80px;
    }
}

/* Impact Stats */
.stat-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
}

/* Tech Stack Marquee */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 100px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(to right, #0f172a, transparent);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(to left, #0f172a, transparent);
}

.marquee-content {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.tech-pill {
    display: inline-block;
    padding: 8px 24px;
    margin: 0 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-pill.highlight {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: #60a5fa;
}

.tech-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Reviews Section */
.review-card {
    background: var(--bg-secondary);
    padding: 32px;
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.review-avatar-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
}

.review-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.review-platform {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #4285F4;
    /* Google Blue */
    font-size: 14px;
}

.review-meta {
    flex: 1;
}

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

.star-rating {
    color: #fbbf24;
    /* Amber 400 */
    font-size: 14px;
    display: flex;
    gap: 2px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
    font-style: italic;
    flex: 1;
}

/* Mobile Menu Fix & Responsive Styles */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }

    .hero-gradient {
        background-size: 200% 200%;
    }

    .profile-container {
        width: 320px;
        height: 320px;
    }

    .skill-content {
        padding: 24px;
    }

    .timeline {
        padding-left: 20px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-dot {
        left: -16px;
    }

    .timeline-card {
        padding: 24px;
    }

    .modal-header {
        padding: 24px;
    }

    .modal-body {
        padding: 24px;
    }
}