/* ============================================
   BILL KLINTEN GUDURU — RESUME WEBSITE
   Premium Enhanced Design — Navy + Gold
   ============================================ */

/* ========== CSS VARIABLES ========== */
:root {
    /* Colors - Light Theme */
    --primary: #1b2d4e;
    --primary-dark: #0f1e36;
    --primary-light: #2a4470;
    --primary-glow: rgba(27, 45, 78, 0.08);
    --accent: #c9a84c;
    --accent-light: #d4b86a;
    --accent-glow: rgba(201, 168, 76, 0.15);

    --bg-primary: #faf9f7;
    --bg-secondary: #f2f0ec;
    --bg-tertiary: #e8e5df;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f6f3;

    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #8a8a8a;
    --text-inverse: #ffffff;

    --border: #e2e0dc;
    --border-light: #f1efe9;

    --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.04), 0 1px 2px rgba(10, 22, 40, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(10, 22, 40, 0.06), 0 2px 4px -2px rgba(10, 22, 40, 0.04);
    --shadow-lg: 0 10px 24px -4px rgba(10, 22, 40, 0.08), 0 4px 8px -4px rgba(10, 22, 40, 0.04);
    --shadow-xl: 0 20px 40px -8px rgba(10, 22, 40, 0.1), 0 8px 16px -6px rgba(10, 22, 40, 0.04);
    --shadow-glow: 0 0 30px rgba(201, 168, 76, 0.12);

    --gradient-primary: linear-gradient(135deg, #1b2d4e 0%, #2a4470 100%);
    --gradient-hero: linear-gradient(145deg, #0a1628 0%, #152238 40%, #0e1c30 70%, #0a1628 100%);
    --gradient-accent: linear-gradient(135deg, #c9a84c, #e0c56e);
    --gradient-card-border: linear-gradient(135deg, transparent 0%, rgba(201, 168, 76, 0.3) 50%, transparent 100%);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --nav-height: 72px;
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #0a0e14;
    --bg-secondary: #0f1620;
    --bg-tertiary: #1a2332;
    --bg-card: #111822;
    --bg-card-hover: #1a2332;

    --text-primary: #e4e0d8;
    --text-secondary: #9ea8b8;
    --text-tertiary: #5a6478;
    --text-inverse: #0a0e14;

    --border: #1e2a3c;
    --border-light: #151d2a;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.08);

    --primary-glow: rgba(42, 68, 112, 0.2);
    --accent-glow: rgba(201, 168, 76, 0.1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

/* Subtle noise texture overlay for authenticity */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

[data-theme="dark"] body::after {
    opacity: 0.035;
}

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

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

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== SCROLL PROGRESS BAR ========== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 10001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(201, 168, 76, 0.4);
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(226, 224, 220, 0.6);
    box-shadow: 0 1px 8px rgba(10, 22, 40, 0.04);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(10, 14, 20, 0.82);
    border-bottom: 1px solid rgba(30, 42, 60, 0.6);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: -0.5px;
    position: relative;
}

.navbar.scrolled .nav-logo {
    color: var(--text-primary);
}

.logo-bracket {
    color: var(--accent);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.01em;
}

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

.nav-link:hover,
.nav-link.active {
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.1);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar.scrolled .theme-toggle {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(20deg) scale(1.05);
}

.navbar.scrolled .theme-toggle:hover {
    background: var(--primary-glow);
    color: var(--primary);
}

.nav-cta {
    padding: 8px 22px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 120px 24px 80px;
}

/* Dot grid pattern in hero */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(201, 168, 76, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

/* Subtle radial glow behind content */
.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(201, 168, 76, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-bg-animation {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.04;
    background: var(--accent);
    filter: blur(1px);
}

.shape-1 { width: 400px; height: 400px; top: -100px; right: -100px; animation: float 20s infinite ease-in-out; }
.shape-2 { width: 300px; height: 300px; bottom: -50px; left: -80px; animation: float 15s infinite ease-in-out reverse; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 10%; animation: float 18s infinite ease-in-out 2s; }
.shape-4 { width: 150px; height: 150px; top: 20%; right: 20%; animation: float 12s infinite ease-in-out 5s; }
.shape-5 { width: 100px; height: 100px; bottom: 20%; right: 30%; animation: float 16s infinite ease-in-out 3s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(15px, -10px) rotate(3deg); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.greeting-line {
    width: 40px;
    height: 2px;
    background: var(--accent);
}

.hero-greeting span:last-child {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-name {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.name-highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-titles {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24px;
    min-height: 35px;
}

.title-dynamic {
    color: var(--accent);
    font-weight: 600;
}

.typing-cursor {
    color: var(--accent);
    animation: blink 1s infinite;
    font-weight: 300;
}

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

.hero-description {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.85;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-description strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

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

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(27, 45, 78, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(27, 45, 78, 0.35);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
    color: var(--accent-light);
    transform: translateY(-3px);
}

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

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

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    transition: var(--transition-spring);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.3);
}

/* ========== PROFILE CARD ========== */
.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.profile-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 44px 36px;
    text-align: center;
    width: 100%;
    max-width: 380px;
    transition: var(--transition-slow);
    position: relative;
    transform-style: preserve-3d;
}

/* Subtle gold accent line at top of card */
.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 0 0 2px 2px;
    opacity: 0.6;
}

/* Glow effect behind card */
.profile-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1), transparent 40%, transparent 60%, rgba(42, 68, 112, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

.profile-card:hover::after {
    opacity: 1;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    position: relative;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15), 0 0 0 8px rgba(201, 168, 76, 0.06);
}

.avatar-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid rgba(10, 22, 40, 0.8);
    animation: pulse-status 3s infinite;
}

@keyframes pulse-status {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.3); }
    50% { box-shadow: 0 0 0 5px rgba(201, 168, 76, 0); }
}

.profile-info h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.profile-info p {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.88rem;
    margin-top: 4px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin: 24px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
    font-family: var(--font-mono);
}

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

.stat-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.tag {
    padding: 6px 14px;
    background: rgba(201, 168, 76, 0.08);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(201, 168, 76, 0.12);
    transition: var(--transition);
}

.tag:hover {
    background: rgba(201, 168, 76, 0.15);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeInUp 1s ease 1.5s both;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.mouse-wheel {
    width: 3px;
    height: 7px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollWheel 2s infinite;
    opacity: 0.7;
}

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

.scroll-indicator span {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 500;
}

/* ========== WAVE SECTION DIVIDERS ========== */
.wave-divider {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    margin-top: -1px;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-fill-primary {
    fill: var(--bg-primary);
}

.wave-fill-secondary {
    fill: var(--bg-secondary);
}

/* ========== SECTIONS COMMON ========== */
.section {
    padding: 100px 0;
    position: relative;
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .section-tag {
    background: rgba(201, 168, 76, 0.08);
    border-color: rgba(201, 168, 76, 0.12);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.7px;
    line-height: 1.2;
}

.section-line {
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ========== ABOUT SECTION ========== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-intro {
    font-size: 1.12rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .about-text strong {
    color: var(--accent);
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 32px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.detail-item:hover {
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.detail-item:hover::before {
    opacity: 1;
}

.detail-item i {
    color: var(--accent);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.detail-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.detail-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

a.detail-value:hover {
    color: var(--accent);
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.highlight-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

/* Shimmer line on hover */
.highlight-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transition: left 0.8s ease;
}

.highlight-card:hover::after {
    left: 100%;
}

.highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(201, 168, 76, 0.2);
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 1.2rem;
    transition: var(--transition-spring);
}

.highlight-card:hover .highlight-icon {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    transform: scale(1.1) rotate(-5deg);
}

.highlight-card h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

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

/* ========== EXPERIENCE TIMELINE ========== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border), var(--border), #3d7a54);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 40px 60px;
}

.timeline-item[data-position="left"] {
    left: 0;
    text-align: right;
}

.timeline-item[data-position="right"] {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    z-index: 2;
    transition: var(--transition-spring);
}

.timeline-item[data-position="left"] .timeline-dot {
    right: -22px;
}

.timeline-item[data-position="right"] .timeline-dot {
    left: -22px;
}

.timeline-dot.current {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 0 20px rgba(201, 168, 76, 0.15);
    animation: pulse-dot 3s infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-glow), 0 0 20px rgba(201, 168, 76, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(201, 168, 76, 0.05), 0 0 30px rgba(201, 168, 76, 0.1); }
}

.timeline-dot.start {
    border-color: #3d7a54;
    color: #3d7a54;
}

.timeline-item:hover .timeline-dot {
    background: var(--gradient-accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: scale(1.2);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
    text-align: left;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: background 0.4s ease;
}

.timeline-content:hover {
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.timeline-content:hover::before {
    background: var(--gradient-accent);
}

.timeline-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.timeline-badge.current {
    background: rgba(201, 168, 76, 0.12);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.timeline-badge.promotion {
    background: rgba(27, 45, 78, 0.06);
    color: var(--primary-light);
    border: 1px solid rgba(27, 45, 78, 0.1);
}

[data-theme="dark"] .timeline-badge.promotion {
    background: rgba(42, 68, 112, 0.2);
    color: #7a9cc6;
}

.timeline-badge.start {
    background: rgba(76, 140, 100, 0.08);
    color: #3d7a54;
    border: 1px solid rgba(76, 140, 100, 0.15);
}

.timeline-date {
    font-size: 0.83rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.timeline-date i {
    margin-right: 4px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.timeline-company {
    font-size: 0.92rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-company i {
    margin-right: 4px;
    font-size: 0.85rem;
}

.timeline-location {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.timeline-location i {
    margin-right: 4px;
}

.timeline-responsibilities {
    list-style: none;
    margin-bottom: 16px;
}

.timeline-responsibilities li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.timeline-responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.timeline-tech span {
    padding: 4px 10px;
    background: var(--accent-glow);
    color: var(--accent);
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 600;
    border: 1px solid rgba(201, 168, 76, 0.1);
    letter-spacing: 0.02em;
}

[data-theme="dark"] .timeline-tech span {
    background: rgba(201, 168, 76, 0.06);
}

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

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.skill-category:hover {
    border-color: rgba(201, 168, 76, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.skill-category:hover::after {
    transform: scaleX(1);
}

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

.category-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.05rem;
    transition: var(--transition-spring);
}

.skill-category:hover .category-icon {
    transform: rotate(-8deg) scale(1.05);
}

.category-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.skill-info span:first-child {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-percent {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
}

.skill-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Shine effect on skill bars */
.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
    animation: skill-shine 2.5s ease-in-out infinite;
}

@keyframes skill-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Skill Cloud */
.skill-cloud {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
}

.skill-cloud h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.skill-cloud h3 i {
    color: var(--accent);
    margin-right: 8px;
}

.cloud-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.cloud-tag {
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.86rem;
    font-weight: 500;
    transition: var(--transition-spring);
    cursor: default;
}

.cloud-tag[data-level="expert"] {
    background: rgba(201, 168, 76, 0.1);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.2);
    font-weight: 700;
    font-size: 0.92rem;
}

.cloud-tag[data-level="advanced"] {
    background: rgba(27, 45, 78, 0.06);
    color: var(--primary);
    border: 1px solid rgba(27, 45, 78, 0.12);
}

[data-theme="dark"] .cloud-tag[data-level="advanced"] {
    background: rgba(42, 68, 112, 0.2);
    color: #7a9cc6;
    border-color: rgba(42, 68, 112, 0.3);
}

.cloud-tag[data-level="intermediate"] {
    background: rgba(76, 140, 100, 0.06);
    color: #3d7a54;
    border: 1px solid rgba(76, 140, 100, 0.12);
}

.cloud-tag:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: var(--shadow-md);
}

.skill-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.legend-dot.expert { background: var(--accent); }
.legend-dot.advanced { background: var(--primary); }
[data-theme="dark"] .legend-dot.advanced { background: #7a9cc6; }
.legend-dot.intermediate { background: #3d7a54; }

/* ========== PROJECTS SECTION ========== */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.filter-btn.active {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Top accent stripe */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: left;
}

.project-card[data-category="ai"]::before {
    background: var(--gradient-accent);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border-color: rgba(201, 168, 76, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card.hidden {
    display: none;
}

.project-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    transition: var(--transition-spring);
}

.project-icon.ai {
    background: var(--accent-glow);
    color: var(--accent);
}

.project-card:hover .project-icon {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    transform: scale(1.1) rotate(-5deg);
}

.project-header {
    margin-bottom: 12px;
}

.project-header h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.project-type {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.project-desc {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tech span {
    padding: 4px 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    font-size: 0.73rem;
    font-weight: 500;
    transition: var(--transition);
}

.project-card:hover .project-tech span {
    background: var(--accent-glow);
    color: var(--accent);
}

.project-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.project-domain {
    font-size: 0.78rem;
    color: var(--text-tertiary);
}

.project-domain i {
    margin-right: 4px;
    color: var(--accent);
}

/* ========== EDUCATION SECTION ========== */
.education-content {
    max-width: 700px;
    margin: 0 auto;
}

.education-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.education-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient-accent);
}

.education-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    transform: translateY(-4px);
}

.edu-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.2);
}

.edu-year {
    font-size: 0.83rem;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.edu-year i {
    margin-right: 4px;
}

.edu-degree {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

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

.edu-institution {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.edu-institution i {
    margin-right: 4px;
    color: var(--accent);
}

.edu-decoration {
    position: absolute;
    top: -10px;
    right: -10px;
}

.edu-badge {
    width: 80px;
    height: 80px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent);
    transform: rotate(15deg);
    border: 1px solid rgba(201, 168, 76, 0.15);
}

/* ========== CONTACT SECTION ========== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.75;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateX(6px);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--primary-glow);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
    background: var(--gradient-accent);
    color: var(--primary-dark);
}

.contact-card-icon.whatsapp {
    background: rgba(37, 211, 102, 0.08);
    color: #25d366;
}

.contact-card-icon.linkedin {
    background: rgba(10, 102, 194, 0.08);
    color: #0a66c2;
}

.contact-card-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

.contact-card-value {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-map {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: var(--accent-glow);
    border-radius: var(--radius-md);
    border: 1px solid rgba(201, 168, 76, 0.1);
}

.contact-map i {
    font-size: 1.3rem;
    color: var(--accent);
}

.map-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 500;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.93rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
    background: var(--bg-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button special style */
.contact-form .btn-primary {
    background: var(--gradient-accent);
    color: var(--primary-dark);
    font-weight: 700;
    padding: 16px 28px;
}

.contact-form .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.35);
}

/* ========== FOOTER ========== */
.footer {
    background: #080d14;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 24px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.25;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.footer-brand p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

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

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
    font-weight: 500;
}

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

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-spring);
}

.footer-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.25);
}

.footer-bottom {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-tagline {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.78rem;
}

.heart {
    color: var(--accent);
}

/* ========== BACK TO TOP ========== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    left: 32px;
    width: 46px;
    height: 46px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.3);
    z-index: 999;
    font-weight: 700;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(201, 168, 76, 0.4);
}

/* ========== ANIMATIONS ========== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for children */
.animate-on-scroll.stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.3s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.4s; }
.animate-on-scroll.stagger-5 { transition-delay: 0.5s; }
.animate-on-scroll.stagger-6 { transition-delay: 0.6s; }

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

/* ========== CURSOR GLOW (Hero only) ========== */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.active {
    opacity: 1;
}

/* ========== AI CHAT SECTION ========== */
.ai-chat-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.ai-chat-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.ai-chat-intro > p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.ai-chat-intro strong {
    color: var(--accent);
}

/* How it works */
.ai-how-it-works {
    margin-bottom: 0;
}

.ai-how-it-works h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-how-it-works h4 i {
    color: var(--accent);
}

.ai-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ai-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.ai-features li:hover {
    border-color: rgba(201, 168, 76, 0.25);
    box-shadow: var(--shadow-sm);
}

.ai-feature-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.85rem;
    margin-top: 2px;
}

.ai-features li strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.ai-features li span {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Real world quote */
.ai-real-world {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
}

.ai-real-world p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

.ai-real-world i {
    color: var(--accent);
    margin-right: 4px;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ========== CHAT WINDOW (Section) ========== */
.ai-chat-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    height: 670px;
    position: relative;
}

.ai-chat-window::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 2;
}

.chat-window-header {
    padding: 16px 20px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-header-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1rem;
    position: relative;
}

.chat-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    border: 2px solid #0a1628;
}

.chat-header-name {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: -0.2px;
}

.chat-header-status {
    display: block;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

/* Chat Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

/* Suggestion Chips */
.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0;
}

.suggestion-chip {
    padding: 8px 14px;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.suggestion-chip i {
    font-size: 0.72rem;
}

.suggestion-chip:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(201, 168, 76, 0.2);
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 10px;
    max-width: 88%;
    animation: chatMsgIn 0.3s ease;
}

.chat-message.user {
    flex-direction: row-reverse;
    align-self: flex-end;
}

.chat-message.bot {
    align-self: flex-start;
}

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

.chat-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 4px;
}

.chat-message.bot .chat-avatar {
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.chat-message.user .chat-avatar {
    background: var(--primary-glow);
    color: var(--primary);
    border: 1px solid rgba(27, 45, 78, 0.1);
}

[data-theme="dark"] .chat-message.user .chat-avatar {
    color: #7a9cc6;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 0.86rem;
    line-height: 1.65;
}

.chat-message.bot .chat-bubble {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble strong {
    font-weight: 700;
}

.chat-bubble code {
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

[data-theme="dark"] .chat-bubble code {
    background: rgba(255, 255, 255, 0.08);
}

/* Typing Indicator */
.typing-dots {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.4;
    animation: typingBounce 1.2s infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Chat Input */
.chat-input-area {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
    background: var(--bg-card);
}

.chat-input-area input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.chat-input-area input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.chat-input-area input::placeholder {
    color: var(--text-tertiary);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-spring);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.3);
}

/* ========== FLOATING CHAT WIDGET ========== */

@keyframes floatingPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35); }
    50% { box-shadow: 0 4px 30px rgba(201, 168, 76, 0.5); }
}

/* Floating Chat Window */
.floating-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 32px;
    width: 380px;
    height: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}

.floating-chat-widget.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

.floating-chat-header {
    padding: 14px 18px;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.floating-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-chat-avatar {
    width: 34px;
    height: 34px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 0.85rem;
}

.floating-chat-name {
    display: block;
    color: white;
    font-weight: 700;
    font-size: 0.88rem;
}

.floating-chat-status {
    display: block;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.68rem;
}

.floating-chat-close {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-chat-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.floating-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.floating-chat-messages::-webkit-scrollbar {
    width: 3px;
}

.floating-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.floating-chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    background: var(--bg-card);
}

.floating-chat-input-area input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-family: var(--font-sans);
    font-size: 0.84rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.floating-chat-input-area input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-glow);
}

.floating-chat-input-area input::placeholder {
    color: var(--text-tertiary);
}

.floating-chat-input-area .chat-send-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    font-size: 0.82rem;
}

.floating-suggestions .suggestion-chip {
    font-size: 0.72rem;
    padding: 6px 11px;
}

/* Back-to-top stays at its original position */

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-greeting { justify-content: center; }
    .hero-description { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-social { justify-content: center; }

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

    .skill-categories {
        grid-template-columns: 1fr 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .ai-chat-content {
        grid-template-columns: 1fr;
    }

    .ai-chat-window {
        height: 500px;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-link {
        color: var(--text-primary);
        padding: 12px 16px;
        width: 100%;
        text-align: left;
    }

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

    .nav-cta { display: none; }
    .hamburger { display: flex; }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .profile-card {
        max-width: 320px;
    }

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

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

    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        left: 0 !important;
        text-align: left;
    }

    .timeline-item .timeline-dot {
        left: -2px !important;
        right: auto !important;
    }

    .skill-categories {
        grid-template-columns: 1fr;
    }

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

    .education-card {
        flex-direction: column;
        text-align: center;
        padding: 32px;
    }

    .education-card::before {
        width: 100%;
        height: 4px;
        top: 0;
        left: 0;
        right: 0;
        bottom: auto;
    }

    .scroll-indicator {
        display: none;
    }

    .cursor-glow {
        display: none;
    }

    .floating-chat-widget {
        right: 12px;
        left: 12px;
        width: auto;
        bottom: 150px;
        height: 450px;
    }

    .ai-chat-fab {
        bottom: 90px;
        right: 24px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .back-to-top {
        left: 24px;
    }

    .ai-chat-window {
        height: 480px;
    }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2rem; }
    .hero-titles { font-size: 1rem; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.8rem; }
    .profile-stats { gap: 16px; }
    .stat-number { font-size: 1.4rem; }
    .btn { padding: 12px 20px; font-size: 0.85rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* ========== PRINT STYLES ========== */
@media print {
    .navbar, .hamburger, .theme-toggle, .back-to-top,
    .scroll-indicator, .hero-bg-animation, .contact-form-wrapper,
    .nav-cta, .btn, .hero-actions, .scroll-progress, .cursor-glow,
    .wave-divider, .ai-chat-fab, .floating-chat-widget,
    .ai-chat-window, .ai-real-world { display: none !important; }

    body {
        background: white !important;
        color: black !important;
        font-size: 11pt;
    }

    body::after { display: none; }

    .hero {
        background: white !important;
        min-height: auto;
        padding: 20px 0;
    }

    .hero::before, .hero::after { display: none; }

    .hero-name {
        color: black !important;
        font-size: 2rem;
    }

    .name-highlight {
        -webkit-text-fill-color: #1b2d4e;
    }

    .hero-titles, .hero-description {
        color: #333 !important;
    }

    .section {
        padding: 30px 0;
        page-break-inside: avoid;
    }

    .timeline::before { background: #ccc; }
    .timeline-dot { border-color: #ccc; }

    .project-card, .skill-category, .education-card,
    .highlight-card, .contact-card, .detail-item, .timeline-content {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }

    .floating-shapes { display: none; }
}


/* ==================================================================
   AGENTIC CHATBOT – TOOL CARDS & TOOL UI
   ================================================================== */

/* Tool Output Container */
.tool-output {
    margin: 8px 0 4px;
}

/* Tool Card Base */
.tool-card {
    background: rgba(27, 45, 78, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 8px 0;
    backdrop-filter: blur(8px);
    animation: toolSlideIn 0.4s ease-out;
}

@keyframes toolSlideIn {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tool-badge i {
    font-size: 0.6rem;
}

/* Location Card */
.location-card .location-image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin: 8px 0;
    aspect-ratio: 16 / 9;
    background: rgba(27, 45, 78, 0.5);
}

.location-card .location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.location-card:hover .location-image {
    transform: scale(1.03);
}

.location-card .location-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 120px;
    font-size: 3rem;
    background: linear-gradient(135deg, rgba(27, 45, 78, 0.6), rgba(201, 168, 76, 0.15));
    border-radius: 10px;
}

.location-card .location-info {
    margin-top: 8px;
}

.location-card .location-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.location-card .location-name i {
    color: var(--accent);
    margin-right: 4px;
}

/* Tech Logo Card */
.tech-card .tech-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-radius: 10px;
    background: rgba(27, 45, 78, 0.4);
    border: 1px solid rgba(201, 168, 76, 0.1);
    transition: all 0.2s ease;
}

.tech-logo-item:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-2px);
    background: rgba(27, 45, 78, 0.6);
}

.tech-logo-item i {
    font-size: 1.8rem;
    color: var(--accent);
}

.tech-logo-item .tech-emoji {
    font-size: 1.6rem;
}

.tech-logo-item span:last-child {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
}

/* Navigate Card */
.navigate-card {
    text-align: center;
}

.navigate-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--accent), #b8962f);
    color: #1b2d4e;
    border: none;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 8px 0;
}

.navigate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 168, 76, 0.4);
}

.navigate-hint {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

/* Project Detail Card */
.project-detail-card .project-detail-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.project-detail-card .project-detail-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
}

.project-type-badge {
    font-size: 0.6rem;
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-detail-card .project-detail-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin-bottom: 10px;
}

.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech-badge {
    font-size: 0.65rem;
    background: rgba(201, 168, 76, 0.1);
    color: var(--accent);
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(201, 168, 76, 0.2);
}

/* Tool Thinking Indicator */
.tool-thinking {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 10px;
    margin: 6px 0;
    font-size: 0.75rem;
    color: var(--accent);
    animation: toolPulse 1.5s ease-in-out infinite;
}

@keyframes toolPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.tool-thinking i {
    animation: spin 1s linear infinite;
}

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

.tool-thinking-label {
    font-weight: 500;
}

/* ==================================================================
   RESUME TAILORING AGENT SECTION
   ================================================================== */

.resume-agent-section {
    background: linear-gradient(180deg, rgba(27, 45, 78, 0.02) 0%, rgba(27, 45, 78, 0.06) 100%);
}

.resume-agent-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.resume-agent-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.resume-agent-intro p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

/* Right column wrapper: pipeline + interactive element */
.showcase-right-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Agent Architecture - Pipeline Visual */
.agent-architecture {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 5px 0px;
    margin-bottom: 4px;
}

.agent-architecture h4 {
    font-size: 0.88rem;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.agent-architecture h4 i {
    margin-right: 6px;
}

.agent-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 10px;
    background: rgba(27, 45, 78, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    min-width: 80px;
    transition: all 0.3s ease;
}

/* .pipeline-step:hover {
    border-color: rgba(201, 168, 76, 0.4);
    transform: translateY(-3px);
} */

.pipeline-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.2), rgba(201, 168, 76, 0.05));
    border-radius: 10px;
    color: var(--accent);
    font-size: 1rem;
}

.pipeline-step span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-align: center;
}

.pipeline-arrow {
    color: rgba(201, 168, 76, 0.4);
    font-size: 0.9rem;
}

/* Tech stack badges */
.ai-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 46px;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 20px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(201, 168, 76, 0.15);
    border-color: rgba(201, 168, 76, 0.4);
}

.tech-badge i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* JD Input Area */
.resume-agent-workspace {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 5px 30px;
    backdrop-filter: blur(20px);
}

.jd-input-area label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.jd-input-area label i {
    color: var(--accent);
}

#jdInput {
    width: 100%;
    min-height: 280px;
    padding: 16px;
    background: rgba(27, 45, 78, 0.3);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 12px;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    line-height: 1.6;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

#jdInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

#jdInput::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

#jdInput.shake {
    animation: shakeInput 0.5s ease;
}

@keyframes shakeInput {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-8px); }
    40% { transform: translateX(8px); }
    60% { transform: translateX(-5px); }
    80% { transform: translateX(5px); }
}

.jd-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.agent-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.agent-btn.primary {
    background: linear-gradient(135deg, var(--accent), #b8962f);
    color: #1b2d4e;
}

.agent-btn.primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.4);
}

.agent-btn.primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.agent-btn.secondary {
    background: rgba(27, 45, 78, 0.4);
    color: var(--text-muted);
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.agent-btn.secondary:hover {
    border-color: rgba(201, 168, 76, 0.4);
    color: var(--text);
}

/* Agent Steps Progress */
.agent-output {
    margin-top: 30px;
}

.agent-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: rgba(27, 45, 78, 0.2);
    border-radius: 12px;
    margin-bottom: 24px;
}

.agent-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.agent-step.active {
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.agent-step.completed {
    opacity: 0.7;
}

.agent-step.pending {
    opacity: 0.35;
}

.agent-step-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.8rem;
}

.agent-step.completed .agent-step-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.agent-step.active .agent-step-icon {
    background: rgba(201, 168, 76, 0.15);
    color: var(--accent);
}

.agent-step.pending .agent-step-icon {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
}

.agent-step-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.agent-step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.agent-step-detail {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Agent Result Cards */
.agent-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.agent-result-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 24px;
    backdrop-filter: blur(20px);
    animation: resultFadeIn 0.5s ease-out;
}

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

.agent-result-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Score Card */
.score-card {
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, rgba(27, 45, 78, 0.4), rgba(27, 45, 78, 0.2));
    border: 1px solid rgba(201, 168, 76, 0.25);
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 8;
}

.score-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 0 339.292;
    transition: stroke-dasharray 1.2s ease-out;
}

.score-fill.animate {
    stroke-dasharray: var(--target-dash, 0) 339.292;
}

.score-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}

.score-info {
    flex: 1;
}

.score-level {
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 0 6px;
}

.score-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Matched Skills */
.matched-skills-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.matched-skill-item {
    padding: 12px 14px;
    background: rgba(27, 45, 78, 0.25);
    border-radius: 10px;
    border: 1px solid rgba(201, 168, 76, 0.08);
}

.matched-skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

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

.matched-skill-strength {
    font-size: 0.65rem;
    padding: 2px 10px;
    border-radius: 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.strength-strong {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.strength-moderate {
    background: rgba(201, 168, 76, 0.15);
    color: #c9a84c;
}

.strength-basic {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.matched-skill-evidence {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Experience Match */
.experience-match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.experience-match-item {
    padding: 14px;
    background: rgba(27, 45, 78, 0.25);
    border-radius: 10px;
    border-left: 3px solid rgba(201, 168, 76, 0.3);
}

.exp-requirement,
.exp-match {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 4px;
}

.exp-requirement strong,
.exp-match strong {
    color: var(--text);
}

.exp-relevance {
    display: inline-block;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-top: 4px;
}

.rel-high { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.rel-medium { background: rgba(201, 168, 76, 0.15); color: #c9a84c; }
.rel-low { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* Gaps */
.gaps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gap-item {
    padding: 12px 14px;
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: 10px;
}

.gap-requirement {
    font-size: 0.8rem;
    color: #ef4444;
    margin-bottom: 6px;
    font-weight: 500;
}

.gap-requirement i {
    margin-right: 6px;
}

.gap-suggestion {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.gap-suggestion i {
    color: var(--accent);
    margin-right: 6px;
}

/* Tailored Summary Card */
.tailored-card {
    border-color: rgba(201, 168, 76, 0.3);
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.05), rgba(27, 45, 78, 0.3));
}

.tailored-summary {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.copy-summary-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.copy-summary-btn:hover {
    background: rgba(201, 168, 76, 0.2);
    transform: translateY(-1px);
}

/* Talking Points */
.talking-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.talking-points li {
    padding: 10px 14px;
    background: rgba(27, 45, 78, 0.25);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-left: 3px solid var(--accent);
}

/* Overall Card */
.overall-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Error Card */
.error-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.error-detail {
    font-size: 0.75rem;
    color: rgba(239, 68, 68, 0.6);
    margin-top: 8px;
    font-family: 'JetBrains Mono', monospace;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .resume-agent-content {
        grid-template-columns: 1fr;
    }

    .showcase-right-col {
        gap: 16px;
    }

    .agent-pipeline {
        flex-direction: column;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    .score-card {
        flex-direction: column;
        text-align: center;
    }

    .tech-logos-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .resume-agent-workspace {
        padding: 20px;
    }

    .jd-actions {
        flex-direction: column;
    }

    .agent-btn {
        justify-content: center;
    }
}

/* ==============================================================================
   AI SHOWCASE — Tabbed Section
   ============================================================================== */

/* Tab Navigation */
.showcase-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.showcase-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md, 12px);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.showcase-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.15);
}

.showcase-tab.active {
    background: var(--gradient-primary, linear-gradient(135deg, #1b2d4e 0%, #2a4470 100%));
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.showcase-tab.active i {
    color: var(--accent);
}

/* Tab Panels */
.showcase-panel {
    display: none;
    animation: showcaseFadeIn 0.4s ease;
}

.showcase-panel.active {
    display: block;
}

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

/* Meeting Showcase Tab Content */
.meeting-showcase-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.meeting-showcase-intro h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.meeting-showcase-intro > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.meeting-showcase-intro strong {
    color: var(--accent);
}

.meeting-showcase-intro {
    /* consistent with other tab intros */
}

.meeting-showcase-cta {
    display: flex;
    align-items: center;
    justify-content: center;
}

.meeting-cta-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg, 16px);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    width: 100%;
}

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

.meeting-cta-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary, linear-gradient(135deg, #1b2d4e 0%, #2a4470 100%));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.meeting-cta-card h4 {
    font-size: 20px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.meeting-cta-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.meeting-cta-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
    text-align: left;
}

.meeting-cta-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meeting-cta-features i {
    color: var(--accent);
    font-size: 0.7rem;
}

/* Project Demo Link */
.project-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.project-demo-link:hover {
    color: var(--accent-light, #d4b86a);
    transform: translateX(4px);
}

.project-demo-link i {
    font-size: 14px;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ── Floating AI Chat FAB ── */
.floating-fab {
    position: fixed;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-spring);
    box-shadow: 0 4px 20px rgba(201, 168, 76, 0.35);
}

.ai-chat-fab {
    bottom: 100px;
    right: 32px;
    background: var(--gradient-accent);
    color: var(--primary-dark);
    font-size: 1.3rem;
    animation: floatingPulse 3s ease-in-out infinite;
}

.ai-chat-fab:hover {
    transform: scale(1.1);
    animation: none;
    box-shadow: 0 6px 25px rgba(201, 168, 76, 0.45);
}

.ai-chat-fab.active {
    animation: none;
    background: var(--gradient-primary);
    color: var(--accent);
    transform: rotate(0);
}

.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.ai-chat-fab.active .fab-badge {
    display: none;
}

/* Floating chat widget — now anchored to AI Chat FAB */
.floating-chat-widget {
    bottom: 170px;
}

@media (max-width: 768px) {
    .ai-chat-fab {
        bottom: 90px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .floating-chat-widget {
        bottom: 150px;
        right: 12px;
        width: calc(100vw - 24px);
    }

    .meeting-showcase-content {
        grid-template-columns: 1fr;
    }

    .showcase-tab span {
        display: none;
    }

    .showcase-tab {
        padding: 12px 16px;
        font-size: 18px;
    }
}
