/* ===========================================
   DESIGN TOKENS — Apple-Inspired Liquid Glass
   =========================================== */
:root {
    --color-bg: #f5f5f7;
    --color-bg-secondary: #ffffff;
    --color-bg-tertiary: #fafafa;
    --color-surface: rgba(255, 255, 255, 0.72);
    --color-surface-hover: rgba(255, 255, 255, 0.92);
    --color-border: rgba(0, 0, 0, 0.06);
    --color-text-primary: #1d1d1f;
    --color-text-secondary: #6e6e73;
    --color-text-tertiary: #86868b;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-accent-subtle: rgba(0, 113, 227, 0.08);
    --color-accent-glow: rgba(0, 113, 227, 0.2);

    /* Liquid Glass */
    --glass-bg: rgba(255, 255, 255, 0.55);
    --navbar-bg: rgba(255, 255, 255, 0.4);
    --glass-bg-strong: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(255, 255, 255, 0.45);
    --glass-border-subtle: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
    --glass-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
    --glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    --backdrop-blur: blur(40px) saturate(180%);

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #0071e3 0%, #5856d6 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(0, 113, 227, 0.08) 0%, transparent 60%);
    --gradient-orb-1: radial-gradient(circle, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(88, 86, 214, 0.12) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle, rgba(52, 199, 89, 0.08) 0%, transparent 70%);

    /* Photo */
    --photo-glow: rgba(0, 113, 227, 0.25);
    --photo-border: rgba(0, 113, 227, 0.3);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
    --color-bg: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111111;
    --color-surface: rgba(28, 28, 30, 0.6);
    --color-surface-hover: rgba(44, 44, 46, 0.8);
    --color-border: rgba(255, 255, 255, 0.06);
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #a1a1a6;
    --color-text-tertiary: #6e6e73;
    --color-accent: #2997ff;
    --color-accent-hover: #40a9ff;
    --color-accent-subtle: rgba(41, 151, 255, 0.1);
    --color-accent-glow: rgba(41, 151, 255, 0.25);

    --glass-bg: rgba(30, 30, 32, 0.55);
    --navbar-bg: rgba(20, 20, 22, 0.4);
    --glass-bg-strong: rgba(38, 38, 40, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-subtle: rgba(255, 255, 255, 0.04);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
    --glass-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.2);
    --glass-inner-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);

    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(41, 151, 255, 0.06) 0%, transparent 60%);
    --gradient-orb-1: radial-gradient(circle, rgba(41, 151, 255, 0.12) 0%, transparent 70%);
    --gradient-orb-2: radial-gradient(circle, rgba(88, 86, 214, 0.1) 0%, transparent 70%);
    --gradient-orb-3: radial-gradient(circle, rgba(48, 209, 88, 0.06) 0%, transparent 70%);

    --photo-glow: rgba(41, 151, 255, 0.3);
    --photo-border: rgba(41, 151, 255, 0.4);
}

/* ===========================================
   RESET & BASE
   =========================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-bg);
    transition: background-color 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
    overflow-x: hidden;
}

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

/* ===========================================
   LIQUID GLASS CARD
   =========================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow), var(--glass-inner-shadow);
    transition: transform 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo),
        border-color 0.4s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    opacity: 0.6;
    pointer-events: none;
}

[data-theme="dark"] .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-lg), var(--glass-inner-shadow);
    border-color: var(--color-accent-glow);
}

/* ===========================================
   NAVBAR — Frosted Glass
   =========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.75rem 0;
    background: var(--navbar-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-bottom: 1px solid var(--glass-border-subtle);
    transition: all 0.4s var(--ease-out-expo);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

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

.logo-svg {
    color: var(--color-accent);
    transition: transform 0.3s var(--ease-spring);
}

.nav-logo:hover .logo-svg {
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.25s;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-social {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border-radius: 10px;
    transition: all 0.25s var(--ease-out-expo);
    background: transparent;
}

.social-link:hover {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-1px);
}

.theme-toggle {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.25s var(--ease-out-expo);
}

.theme-toggle:hover {
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: block;
}

/* ===========================================
   HERO — Immersive Landing
   =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: var(--color-bg);
    overflow: hidden;
}

/* Ambient orbs */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-bg-gradient::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 20%;
    width: 600px;
    height: 600px;
    background: var(--gradient-orb-1);
    animation: floatOrb1 12s ease-in-out infinite;
}

.hero-bg-gradient::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--gradient-orb-2);
    animation: floatOrb2 15s ease-in-out infinite;
}

@keyframes floatOrb1 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

@keyframes floatOrb2 {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-30px, 40px) scale(1.08);
    }

    66% {
        transform: translate(25px, -15px) scale(0.92);
    }
}

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero-content>* {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 0.8s var(--ease-out-expo) forwards;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.1s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.2s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.35s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.5s;
}

.hero-content>*:nth-child(5) {
    animation-delay: 0.65s;
}

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

/* Profile Photo */
.hero-photo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.photo-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
}

.photo-glow {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--photo-glow) 0%, transparent 70%);
    animation: photoGlow 4s ease-in-out infinite;
    filter: blur(20px);
}

@keyframes photoGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.photo-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--gradient-accent);
    padding: 3px;
    animation: ringRotate 8s linear infinite;
}

@keyframes ringRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.photo-ring::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--color-accent), #5856d6, #34c759, var(--color-accent));
    opacity: 0.6;
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), black calc(100% - 3px));
}

.profile-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 3px solid var(--color-bg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.badge-dot {
    width: 7px;
    height: 7px;
    background: #30d158;
    border-radius: 50%;
    animation: dotPulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
}

@keyframes dotPulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(48, 209, 88, 0.5);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(48, 209, 88, 0.2);
    }
}

.title-line {
    display: block;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.title-name {
    display: block;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 540px;
    margin: 1.5rem auto 2.5rem;
    line-height: 1.75;
    font-weight: 400;
}

.hero-subtitle .highlight {
    color: var(--color-accent);
    font-weight: 600;
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-family);
    border-radius: 980px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--color-accent);
    color: #ffffff;
    box-shadow: 0 4px 16px var(--color-accent-glow);
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px var(--color-accent-glow);
}

.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    color: var(--color-text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--color-surface-hover);
    transform: translateY(-2px) scale(1.02);
}

/* Certifications */
.hero-certifications {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cert-card {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s var(--ease-out-expo);
}

.cert-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border-color: var(--color-accent-glow);
}

[data-theme="dark"] .cert-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.cert-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.cert-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

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

.cert-level {
    font-size: 0.7rem;
    color: var(--color-text-tertiary);
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    animation: scrollFloat 3s ease-in-out infinite;
}

@keyframes scrollFloat {

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

    50% {
        transform: translateY(6px);
    }
}

.scroll-text {
    font-size: 0.65rem;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
}

.scroll-line {
    width: 1px;
    height: 32px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ===========================================
   SECTIONS
   =========================================== */
.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

/* ===========================================
   ABOUT
   =========================================== */
.about-section {
    background: var(--color-bg-secondary);
}

.about-content {
    display: grid;
    gap: 2rem;
}

.about-text {
    padding: 2.5rem;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--color-text-primary);
    margin-bottom: 1.25rem;
    line-height: 1.75;
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.highlight-card {
    padding: 2rem;
    text-align: center;
}

.highlight-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: 14px;
    color: var(--color-accent);
    transition: transform 0.3s var(--ease-spring);
}

.highlight-card:hover .highlight-icon {
    transform: scale(1.1) rotate(-3deg);
}

.highlight-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.highlight-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ===========================================
   EXPERIENCE
   =========================================== */
/* ===========================================
   PROFESSIONAL EXPERIENCE (LinkedIn Style)
   =========================================== */
.work-experience-section {
    background: var(--color-bg-secondary);
}

.work-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.work-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
    position: relative;
}

.work-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--glass-border);
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2px;
}

/* Let's refine the Zoho logo div in HTML if possible, but I can do it with CSS too. */

.work-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.company-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
}

.work-total-duration {
    font-size: 0.85rem;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.company-location {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-top: -1rem;
}

.role-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    margin-top: 0.5rem;
}

.role-item {
    position: relative;
    padding-left: 1.5rem;
}

.role-marker {
    position: absolute;
    left: -2px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    border: 3px solid var(--color-bg-secondary);
    z-index: 2;
    box-shadow: 0 0 0 2px var(--color-accent-subtle);
}

.role-line-connector {
    position: absolute;
    left: 3px;
    top: 18px;
    bottom: -34px;
    /* Connect to next role */
    width: 2px;
    background: var(--color-border);
    z-index: 1;
}

.role-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

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

.role-type {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: 6px;
}

.role-date {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
}

.role-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.skill-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text-secondary);
}

.skill-more {
    font-size: 0.75rem;
    color: var(--color-text-tertiary);
    align-self: center;
}

.role-awards {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.award-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    padding: 0.3rem 0.75rem;
    background: white;
    border: 1px solid var(--color-accent-subtle);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .award-badge {
    background: var(--color-bg-tertiary);
    border-color: var(--color-accent-subtle);
}

.award-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-accent);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    margin-left: 0.3rem;
    line-height: 1.3;
}

.award-years {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-tertiary);
    margin-left: 0.3rem;
}

.role-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.role-project-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem;
    background: var(--color-bg-tertiary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: all 0.3s var(--ease-out-expo);
}

.role-project-item:hover {
    background: var(--color-surface-hover);
    transform: translateX(4px);
    border-color: var(--color-accent-glow);
}

.project-icon-small {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: 8px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.project-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text-primary);
}

.project-info p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===========================================
   PROJECTS SECTION (Formerly Experience)
   =========================================== */
.projects-section {
    background: var(--color-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.experience-grid {
    /* Keep for compatibility if still used */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.experience-card {
    padding: 2rem;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.experience-card:hover .card-glow {
    opacity: 1;
}

.experience-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-subtle);
    border-radius: 13px;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
    transition: transform 0.3s var(--ease-spring);
}

.experience-card:hover .experience-icon {
    transform: scale(1.08);
}

.experience-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.experience-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.65;
}

.experience-card p a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.experience-card p a:hover {
    opacity: 0.8;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    padding: 0.2rem 0.65rem;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

/* ===========================================
   SKILLS
   =========================================== */
.skills-section {
    background: var(--color-bg-secondary);
}

.skills-modern {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.skill-group-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-primary);
    transition: all 0.3s var(--ease-out-expo);
}

.skill-pill:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: var(--color-accent-glow);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .skill-pill:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.skill-pill i {
    font-size: 1.3rem;
}

.skill-pill svg {
    flex-shrink: 0;
}

.skill-pill.primary {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px var(--color-accent-glow);
}

.skill-pill.primary i,
.skill-pill.primary svg {
    color: #fff;
}

.skill-pill.primary:hover {
    box-shadow: 0 8px 24px var(--color-accent-glow);
}

.pill-badge {
    font-size: 0.6rem;
    padding: 0.15rem 0.45rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================================
   FOCUS (Currently Exploring)
   =========================================== */
.focus-section {
    background: var(--color-bg);
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.focus-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.focus-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.12;
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    line-height: 1;
}

.focus-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.focus-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ===========================================
   CONTACT
   =========================================== */
.contact-section {
    background: var(--color-bg-secondary);
    padding: 7rem 0;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.75rem;
    text-decoration: none;
    color: var(--color-text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 300px;
    justify-content: center;
    transition: all 0.3s var(--ease-out-expo);
}

.contact-link:hover {
    color: var(--color-accent);
    transform: translateY(-3px);
}

.contact-link svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* Copy Button */
.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-accent-subtle);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.25s var(--ease-out-expo);
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.copy-btn:hover {
    color: var(--color-accent);
    border-color: var(--color-accent-glow);
    transform: scale(1.08);
}

.copy-btn .check-icon {
    display: none;
}

.copy-btn.copied .copy-icon {
    display: none;
}

.copy-btn.copied .check-icon {
    display: block;
    color: #30d158;
}

.copy-btn.copied {
    border-color: rgba(48, 209, 88, 0.4);
    background: rgba(48, 209, 88, 0.1);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
}

.footer p {
    font-size: 0.8rem;
    color: var(--color-text-tertiary);
    letter-spacing: 0.02em;
}

/* ===========================================
   SCROLL REVEAL
   =========================================== */
.reveal-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}

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

/* Staggered children */
.reveal-item:nth-child(1) {
    transition-delay: 0s;
}

.reveal-item:nth-child(2) {
    transition-delay: 0.08s;
}

.reveal-item:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-item:nth-child(4) {
    transition-delay: 0.24s;
}

.reveal-item:nth-child(5) {
    transition-delay: 0.32s;
}

.reveal-item:nth-child(6) {
    transition-delay: 0.40s;
}

.reveal-item:nth-child(7) {
    transition-delay: 0.48s;
}

.reveal-item:nth-child(8) {
    transition-delay: 0.56s;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .container {
        padding: 0 1.25rem;
    }

    .hero {
        padding: 7rem 1.25rem 3rem;
    }

    .photo-wrapper {
        width: 130px;
        height: 130px;
    }

    .profile-photo {
        width: 130px;
        height: 130px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-certifications {
        flex-direction: column;
        align-items: center;
    }

    .cert-card {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .experience-grid,
    .focus-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .contact-link {
        min-width: auto;
        width: 100%;
        max-width: 360px;
    }

    .skill-pills {
        justify-content: center;
    }

    /* --- Experience Section Mobile Fixes --- */
    .work-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.25rem;
    }

    .work-company-logo {
        width: 48px;
        height: 48px;
        border-radius: 10px;
    }

    .work-header {
        flex-direction: column;
        gap: 0.25rem;
    }

    .company-name {
        font-size: 1.1rem;
    }

    .work-total-duration {
        font-size: 0.8rem;
    }

    .company-location {
        font-size: 0.82rem;
        margin-top: -0.5rem;
    }

    .role-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .role-title {
        font-size: 0.95rem;
    }

    .role-awards {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .award-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.6rem;
    }

    .role-project-item {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.75rem;
    }

    .project-info h5 {
        font-size: 0.88rem;
    }

    .project-info p {
        font-size: 0.8rem;
    }

    .role-bullets li {
        font-size: 0.82rem;
    }

    .role-item {
        padding-left: 1.25rem;
    }

    .role-marker {
        left: -3px;
        width: 10px;
        height: 10px;
    }

    .role-line-connector {
        left: 2px;
    }
}

@media (max-width: 480px) {

    .about-text,
    .experience-card,
    .focus-card,
    .highlight-card {
        padding: 1.5rem;
    }

    .title-line {
        font-size: 1rem;
    }

    .title-name {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
    }

    /* --- Experience Section Small Mobile --- */
    .work-item {
        padding: 1rem;
    }

    .role-project-item {
        padding: 0.65rem;
    }

    .project-info h5 {
        font-size: 0.84rem;
    }

    .project-info p {
        font-size: 0.78rem;
    }
}

/* ===========================================
   ACCESSIBILITY
   =========================================== */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--color-accent);
    color: #ffffff;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}