:root {
    --primary: #0f172a;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --surface: #f8fafc;
    --card: #ffffff;
    --text: #334155;
    --text-light: #64748b;
    --border: #e2e8f0;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: white;
    overflow-x: hidden;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.6rem 2rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

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

.nav-logo img {
    height: 32px;
    width: auto;
    transition: transform 0.2s;
    filter: brightness(0) invert(1);
}

.nav-logo:hover img {
    transform: scale(1.06);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123,147,207,0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(99,102,241,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: white;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-light), #7b93cf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.btn-outline {
    border: 1.5px solid rgba(255,255,255,0.3);
    color: white;
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.05);
}

.btn-green {
    border-color: rgba(16,185,129,0.5);
    color: #10b981;
}
.btn-green:hover {
    border-color: #10b981;
    background: rgba(16,185,129,0.1);
    color: #34d399;
}

.btn-blue {
    border-color: rgba(59,130,246,0.5);
    color: #3b82f6;
}
.btn-blue:hover {
    border-color: #3b82f6;
    background: rgba(59,130,246,0.1);
    color: #60a5fa;
}

.btn-purple {
    border-color: rgba(139,92,246,0.5);
    color: #8b5cf6;
}
.btn-purple:hover {
    border-color: #8b5cf6;
    background: rgba(139,92,246,0.1);
    color: #a78bfa;
}

.nav-cv {
    border: 1px solid var(--accent-light);
    color: var(--accent-light) !important;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.82rem !important;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.nav-cv:hover {
    background: var(--accent);
    color: white !important;
    border-color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: rgba(255,255,255,0.4);
}

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

.section {
    padding: 6rem 2rem;
}

.section-has-canvas {
    position: relative;
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-inner-above {
    position: relative;
    z-index: 1;
}

.section-inner {
    max-width: 1000px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.section-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.about-grid {
    max-width: 700px;
    margin: 0 auto;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.02rem;
}

.about-text p:last-child { margin-bottom: 0; }

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: rgba(255,255,255,0.85);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(25px) scale(0.97);
}

.skill-category.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.skill-category.visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.skill-category h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 .icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-90deg) scale(0);
    transition: transform 0.4s ease;
}

.skill-category.visible h3 .icon {
    transform: rotate(0deg) scale(1);
}

.skill-category h3 .icon svg {
    width: 18px;
    height: 18px;
}

.icon-engineering { background: linear-gradient(135deg, #4f6ef7, #6c8cff); }
.icon-etl { background: linear-gradient(135deg, #10b981, #34d399); }
.icon-sql { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.icon-viz { background: linear-gradient(135deg, #8b5cf6, #a78bfa); }
.icon-cloud { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.icon-ai { background: linear-gradient(135deg, #ef4444, #f87171); }

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

.skill-tag {
    padding: 0.3rem 0.7rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.82rem;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    transform: translateY(6px);
}

.skill-category.visible .skill-tag {
    opacity: 1;
    transform: translateY(0);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.timeline {
    position: relative;
    padding-left: 140px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 3rem;
    bottom: 3rem;
    width: 2px;
    background: linear-gradient(to bottom, #7b93cf, var(--border));
}

.timeline::after {
    content: '';
    position: absolute;
    left: 119px;
    bottom: 3rem;
    width: 4px;
    height: 40px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    filter: blur(1px);
    animation: timelinePulse 8s ease-in-out infinite;
}

@keyframes timelinePulse {
    0% { bottom: 3rem; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { bottom: calc(100% - 3rem); opacity: 0; }
}

.timeline-continuation-top,
.timeline-continuation-bottom {
    position: absolute;
    left: 120px;
    width: 2px;
    height: 3rem;
}

.timeline-continuation-top {
    top: 0;
    background: linear-gradient(to bottom, transparent, #7b93cf);
}

.timeline-continuation-bottom {
    bottom: 0;
    background: linear-gradient(to top, transparent, var(--border));
}

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

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.timeline-dot {
    position: absolute;
    left: -26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7b93cf;
    border: 3px solid var(--surface);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item.visible .timeline-dot {
    animation: dotPop 0.5s ease forwards;
}

@keyframes dotPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.timeline-dot-start {
    top: 1.65rem;
}

.timeline-item:first-child .timeline-dot-start {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
}

.timeline-date {
    position: absolute;
    left: -140px;
    width: 100px;
    text-align: right;
    font-size: 0.78rem;
    font-weight: 600;
    color: #4a5da0;
    white-space: nowrap;
}

.timeline-date-start {
    top: 1.55rem;
}

.timeline-card {
    position: relative;
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.timeline-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.company-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 120px;
    height: 48px;
    object-fit: contain;
    object-position: right;
    opacity: 0.85;
}

.company-logo-lg {
    height: 64px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    padding-right: 130px;
}

.timeline-company {
    font-size: 0.92rem;
    color: var(--text-light);
    padding-right: 130px;
}

.timeline-card ul {
    padding-left: 1.2rem;
    margin-bottom: 0.8rem;
}

.timeline-card li {
    font-size: 0.92rem;
    margin-bottom: 0.3rem;
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.timeline-tech span {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    background: var(--surface);
    border-radius: 4px;
    color: var(--text-light);
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s, color 0.2s;
}

.timeline-item.visible .timeline-tech span {
    opacity: 1;
    transform: translateY(0);
}

/* Watermark background */
.watermark-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.wm-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.wm {
    position: absolute;
    opacity: 0.1;
    filter: grayscale(1) brightness(0.4);
    will-change: transform;
    object-fit: contain;
    height: auto;
}

/* Experience — floating company logos */
.wm-1, .wm-2, .wm-3, .wm-4, .wm-5, .wm-6 {
    width: 240px;
    max-height: 100px;
}
.wm-1 { top: 5%;  right: 8%;  animation: wmFloat1 20s ease-in-out infinite; }
.wm-2 { top: 22%; left: 5%;   animation: wmFloat2 24s ease-in-out infinite; }
.wm-3 { top: 42%; right: 4%;  animation: wmFloat3 22s ease-in-out infinite; }
.wm-4 { top: 58%; left: 8%;   animation: wmFloat1 26s ease-in-out infinite reverse; }
.wm-5 { top: 75%; right: 6%;  animation: wmFloat2 21s ease-in-out infinite reverse; }
.wm-6 { top: 90%; left: 4%;   animation: wmFloat3 23s ease-in-out infinite; }

/* Skills — floating tool logos spread around edges */
.wm-skill {
    width: 160px;
    max-height: 90px;
}
/* Top row — 4 logos */
/*  2: python    */ .wm-skill:nth-child(2)  { top: 1%;  left: 1%;    width: 200px; max-height: 120px; opacity: 0.14; animation: wmFloat1 19s ease-in-out infinite; }
/*  3: spark     */ .wm-skill:nth-child(3)  { top: 1%;  left: 28%;   animation: wmFloat2 23s ease-in-out infinite; }
/*  4: scala     */ .wm-skill:nth-child(4)  { top: 1%;  right: 22%;  animation: wmFloat3 21s ease-in-out infinite; }
/*  5: airflow   */ .wm-skill:nth-child(5)  { top: 1%;  right: 1%;   animation: wmFloat1 25s ease-in-out infinite reverse; }
/* Left side — 3 logos */
/*  6: airbyte   */ .wm-skill:nth-child(6)  { top: 28%; left: 0%;    animation: wmFloat2 20s ease-in-out infinite reverse; }
/*  7: sql       */ .wm-skill:nth-child(7)  { top: 50%; left: 0%;    animation: wmFloat3 24s ease-in-out infinite; }
/*  8: trino     */ .wm-skill:nth-child(8)  { top: 72%; left: 0%;    animation: wmFloat1 22s ease-in-out infinite; }
/* Right side — 3 logos */
/*  9: delta     */ .wm-skill:nth-child(9)  { top: 28%; right: 0%;   animation: wmFloat2 26s ease-in-out infinite reverse; }
/* 10: databricks*/ .wm-skill:nth-child(10) { top: 50%; right: 0%;   width: 200px; max-height: 120px; animation: wmFloat3 18s ease-in-out infinite reverse; }
/* 11: arcadedb  */ .wm-skill:nth-child(11) { top: 72%; right: 0%;   animation: wmFloat1 23s ease-in-out infinite; }
/* Bottom row — 6 logos */
/* 12: powerbi   */ .wm-skill:nth-child(12) { bottom: 1%; left: 1%;  animation: wmFloat2 21s ease-in-out infinite; }
/* 13: aws       */ .wm-skill:nth-child(13) { bottom: 1%; left: 18%; animation: wmFloat3 25s ease-in-out infinite reverse; }
/* 14: azure     */ .wm-skill:nth-child(14) { bottom: 1%; left: 35%; width: 230px; max-height: 150px; opacity: 0.14; animation: wmFloat1 20s ease-in-out infinite reverse; }
/* 15: litellm   */ .wm-skill:nth-child(15) { bottom: 1%; right: 28%; animation: wmFloat2 24s ease-in-out infinite; }
/* 16: ollama    */ .wm-skill:nth-child(16) { bottom: 1%; right: 12%; width: 190px; max-height: 110px; animation: wmFloat3 22s ease-in-out infinite reverse; }
/* 17: hive      */ .wm-skill:nth-child(17) { bottom: 1%; right: 1%; animation: wmFloat1 26s ease-in-out infinite; }

/* Education — floating university logos */
.wm-edu-1, .wm-edu-2 {
    width: 200px;
    max-height: 200px;
}
.wm-edu-1 { top: 10%; right: 6%;   width: 260px; max-height: 260px; animation: wmFloat1 22s ease-in-out infinite; }
.wm-edu-2 { bottom: 10%; left: 8%; opacity: 0.04; filter: grayscale(1) brightness(0.4) blur(1.5px); animation: wmFloat2 25s ease-in-out infinite; }

/* Certifications — floating cert badge images */
.wm-cert {
    width: 140px;
    max-height: 140px;
    opacity: 0.06;
}
.wm-cert:nth-child(2) { top: 8%;   left: 2%;    animation: wmFloat1 18s ease-in-out infinite; }
.wm-cert:nth-child(3) { top: 8%;   right: 2%;   animation: wmFloat2 22s ease-in-out infinite; }
.wm-cert:nth-child(4) { bottom: 8%; left: 2%;   animation: wmFloat3 20s ease-in-out infinite reverse; }
.wm-cert:nth-child(5) { bottom: 8%; right: 2%;  animation: wmFloat1 24s ease-in-out infinite reverse; }
.wm-cert:nth-child(6) { top: 8%;    right: 12%;  animation: wmFloat2 21s ease-in-out infinite; }

@keyframes wmFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(12px, -18px) rotate(3deg); }
    50% { transform: translate(-8px, -30px) rotate(-2deg); }
    75% { transform: translate(15px, -12px) rotate(2deg); }
}

@keyframes wmFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-15px, 20px) rotate(-3deg); }
    66% { transform: translate(10px, 10px) rotate(2deg); }
}

@keyframes wmFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(18px, -15px) rotate(4deg); }
}

.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.edu-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}

.edu-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.edu-card.visible:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.edu-logo {
    width: 130px;
    height: 130px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
}

.edu-card.visible .edu-logo {
    opacity: 1;
    transform: scale(1);
}

.edu-logo-sm {
    width: 70px;
    height: 70px;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #7b93cf);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.15s;
}

.edu-card.visible::before {
    transform: scaleX(1);
}

.edu-degree {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.edu-school {
    font-size: 0.92rem;
    color: var(--text-light);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.cert-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(20px) scale(0.97);
}

.cert-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cert-card.visible:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.cert-badge {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    transform: scale(0);
    transition: transform 0.4s ease;
}

.cert-card.visible .cert-badge {
    transform: scale(1);
}

.cert-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
}

#contact { background: var(--primary); color: white; position: relative; overflow: hidden; }
#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99,102,241,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(123,147,207,0.12) 0%, transparent 50%),
        radial-gradient(circle at 60% 80%, rgba(99,102,241,0.08) 0%, transparent 50%);
}
#contact .section-header h2 { color: white; }
#contact .section-header p { color: rgba(255,255,255,0.7); }

#contact .section-divider {
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
    background-size: 200% 100%;
    animation: dividerShimmer 3s ease-in-out infinite;
}

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

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(20px);
    backdrop-filter: blur(10px);
}

/* LinkedIn */
.contact-link:nth-child(1) {
    background: linear-gradient(135deg, rgba(10,102,194,0.3), rgba(40,150,255,0.15));
    border: 1px solid rgba(10,102,194,0.45);
}

/* Email */
.contact-link:nth-child(2) {
    background: linear-gradient(135deg, rgba(234,67,53,0.25), rgba(251,188,4,0.15));
    border: 1px solid rgba(234,67,53,0.4);
}

/* GitHub */
.contact-link:nth-child(3) {
    background: linear-gradient(135deg, rgba(130,80,223,0.25), rgba(200,130,255,0.15));
    border: 1px solid rgba(130,80,223,0.4);
}

.contact-link.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-link.visible:hover {
    transform: translateY(-2px);
}

.contact-link:nth-child(1).visible:hover {
    background: linear-gradient(135deg, rgba(10,102,194,0.45), rgba(40,150,255,0.25));
    border-color: rgba(10,102,194,0.65);
    box-shadow: 0 8px 25px rgba(10,102,194,0.2);
}

.contact-link:nth-child(2).visible:hover {
    background: linear-gradient(135deg, rgba(234,67,53,0.4), rgba(251,188,4,0.25));
    border-color: rgba(234,67,53,0.6);
    box-shadow: 0 8px 25px rgba(234,67,53,0.2);
}

.contact-link:nth-child(3).visible:hover {
    background: linear-gradient(135deg, rgba(130,80,223,0.4), rgba(200,130,255,0.25));
    border-color: rgba(130,80,223,0.6);
    box-shadow: 0 8px 25px rgba(130,80,223,0.2);
}

.contact-link svg {
    width: 20px;
    height: 20px;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.contact-link.visible:hover svg {
    transform: scale(1.2);
}

footer {
    background: #080e1e;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    padding: 2rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(15,23,42,0.98);
        padding: 1rem 2rem;
        gap: 1rem;
    }
    .nav-toggle { display: block; }
    .edu-grid { grid-template-columns: 1fr; }
    .section { padding: 4rem 1.5rem; }
    .hero h1 { letter-spacing: -1px; }
    .hero-description { font-size: 1rem; }
    .section-header { margin-bottom: 2.5rem; }
    .timeline { padding-left: 1.2rem; padding-top: 0; padding-bottom: 0; }
    .timeline::before { left: 6px; top: 0; bottom: 0; }
    .timeline::after { left: 5px; }
    .timeline-continuation-top,
    .timeline-continuation-bottom { display: none; }
    .timeline-item { padding-left: 1.2rem; }
    .timeline-dot { left: -18px; }
    .timeline-date {
        position: static;
        display: block;
        width: auto;
        text-align: left;
        margin-bottom: 0.5rem;
    }
    .company-logo {
        position: static;
        display: block;
        width: 80px;
        height: 32px;
        margin-bottom: 0.5rem;
        object-position: left;
    }
    .company-logo-lg {
        height: 44px;
    }
    .timeline-title,
    .timeline-company {
        padding-right: 0;
    }
    .timeline-card {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }
    .timeline-card .company-logo {
        flex-shrink: 0;
        margin-bottom: 0;
        order: 2;
        margin-left: auto;
        object-position: right;
    }
    .timeline-card .timeline-title {
        flex: 1;
        min-width: 0;
        order: 1;
    }
    .timeline-card .timeline-company {
        width: 100%;
        order: 3;
    }
    .timeline-card ul,
    .timeline-card .timeline-tech {
        width: 100%;
        order: 4;
    }
    .timeline-card {
        padding: 1.2rem;
    }
    .skills-container {
        grid-template-columns: 1fr;
    }
    .cert-grid {
        grid-template-columns: 1fr;
    }
    .cert-card {
        padding: 1rem;
    }
    .watermark-bg {
        display: none;
    }
    .edu-card {
        padding: 1.2rem;
        gap: 1rem;
    }
    .edu-logo {
        width: 80px;
        height: 80px;
    }
    .edu-logo-sm {
        width: 56px;
        height: 56px;
    }
    .contact-link {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .section { padding: 3rem 1rem; }
    .section-header { margin-bottom: 2rem; }
    .hero-content { padding: 1rem; }
    .hero-links a { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
    .timeline { padding-left: 1rem; }
    .timeline::before { left: 4px; }
    .timeline::after { left: 3px; }
    .timeline-item { padding-left: 1rem; }
    .timeline-dot { left: -16px; width: 10px; height: 10px; }
    .timeline-card { padding: 1rem; }
    .timeline-title { font-size: 1rem; }
    .timeline-card li { font-size: 0.85rem; }
    .skill-category { padding: 1.2rem; }
    .edu-card { padding: 1rem; gap: 0.8rem; }
    .edu-logo { width: 60px; height: 60px; }
    .edu-logo-sm { width: 48px; height: 48px; }
    .edu-degree { font-size: 1rem; }
    .section-header h2 { font-size: 1.6rem; }
}

@media print {
    nav, .scroll-indicator, #contact, footer, .section-canvas, .watermark-bg { display: none !important; }
    .hero { min-height: auto; padding: 2rem; }
    .section { padding: 1.5rem 0; }
    .fade-in,
    .timeline-item,
    .skill-category,
    .cert-card,
    .edu-card,
    .contact-link,
    .skill-tag,
    .timeline-tech span,
    .edu-logo,
    .skill-category h3 .icon,
    .cert-badge { opacity: 1 !important; transform: none !important; }
}
