/* ============================================
   ADAM GURSKI — PORTFOLIO SITE STYLES
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #111118;
    --bg-card: #16161f;
    --bg-card-hover: #1c1c28;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --accent-subtle: rgba(99, 102, 241, 0.08);
    --text-primary: #e8e8ed;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(99, 102, 241, 0.3);
    --gradient-hero: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    --bubble-rainbow: linear-gradient(120deg, #67e8f9 0%, #7ef7a1 9%, #f8f08a 17%, #ffb86a 25%, #ff84d6 33%, #a78bfa 41%, #67e8f9 50%, #7ef7a1 59%, #f8f08a 67%, #ffb86a 75%, #ff84d6 83%, #a78bfa 91%, #67e8f9 100%);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: "Segoe UI Variable Text", "Aptos", "Inter", "Segoe UI", sans-serif;
    --font-mono: "Cascadia Code", "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    --max-width: 1200px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #a5b4fc;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    z-index: 10000;
    font-weight: 600;
    font-size: 14px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    color: white;
}

/* Focus outline for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- UTILITY ---------- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    color: transparent;
    background: var(--bubble-rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bubbleGradientShift 14s linear infinite;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #67e8f9, #f9a8d4, #a78bfa);
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.gradient-text {
    background: var(--bubble-rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bubbleGradientShift 12s linear infinite;
}

@keyframes bubbleGradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gradient-text {
        animation: none;
        background-size: 100% auto;
    }

    .section-label {
        animation: none;
        background-size: 100% auto;
    }
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ---------- NAVIGATION ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent) !important;
    color: white !important;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600 !important;
    font-size: 13px !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.nav-cta::after {
    display: none !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;

    min-height: 48px;
    min-width: 48px;
    justify-content: center;
    align-items: center;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

.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 ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* Particle canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: white;
}

.hero-description {
    font-size: 19px;
    line-height: 1.7;
    color: #c7d2fe;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;

    min-height: 48px;
    min-width: 48px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-light);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 16px;
}

.hero-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-secondary);
    font-size: 20px;
    transition: all var(--transition);
}

.hero-social a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    transform: translateY(-2px);
}

/* ---------- STATS BAR ---------- */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item .stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 16px;
    line-height: 1.7;
}

.about-summary-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.about-summary-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-summary-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.7;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.highlight-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all var(--transition);
}

.highlight-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.highlight-card .highlight-icon {
    font-size: 28px;
    margin-bottom: 10px;
}

.highlight-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.highlight-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ---------- EXPERIENCE ---------- */
.experience-timeline {
    position: relative;
    padding-left: 40px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -29px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 6px;
}

.timeline-role {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-org {
    font-size: 14px;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 12px;
}

.timeline-list {
    list-style: none;
    padding: 0;
}

.timeline-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.6;
}

/* ---------- PROJECTS ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projects-grid-2x2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.projects-grid-2x2 .project-card {
    height: auto;
    display: block;
}

.projects-grid-2x2 .project-card-body {
    height: auto;
    display: block;
}

.projects-grid-2x2 .project-expand-btn {
    margin-top: 8px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card-visual {
    height: clamp(180px, 19vw, 220px);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-preview-shell {
    isolation: isolate;
}

.project-preview-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
}

.project-preview-meta {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    display: grid;
    gap: 4px;
}

.project-preview-meta span:first-child {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.project-preview-meta span:last-child {
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.88);
    max-width: 28ch;
}

.project-card-visual .project-icon {
    font-size: 48px;
    z-index: 2;
}

.project-card-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.7) 0%, rgba(10, 10, 15, 0.35) 26%, transparent 58%);
    z-index: 1;
    pointer-events: none;
}

/* Interactive canvas embeds */
.project-card-visual .demo-label {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 5;
    font-family: var(--font-mono);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

.project-card-visual .demo-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 5;
    background: rgba(99, 102, 241, 0.8);
    color: white;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    pointer-events: none;
}

.project-card-body {
    padding: 18px 18px 16px;
}

.project-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-card-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.project-tech-tags span {
    background: var(--accent-subtle);
    color: var(--accent-light);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-mono);
}

.project-expand-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-light);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: gap var(--transition);
}

.project-expand-btn:hover {
    gap: 10px;
}

/* (case study modal CSS removed — HTML and JS removed) */

/* ---------- SKILLS ---------- */
.skills-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
}

.skill-group:hover {
    border-color: var(--border-hover);
}

.skill-group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.skill-group-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.skill-group-header h3 {
    font-size: 16px;
    font-weight: 700;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-light);
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid transparent;
    font-family: var(--font-mono);
}

.skill-tag:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ---------- VIDEO PORTFOLIO ---------- */
.video-section {
    background: var(--bg-secondary);
}

.video-gallery-horizontal {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    /* Hide scrollbar for a cleaner look */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.video-gallery-horizontal::-webkit-scrollbar {
    height: 6px;
}

.video-gallery-horizontal::-webkit-scrollbar-track {
    background: transparent;
}

.video-gallery-horizontal::-webkit-scrollbar-thumb {
    background-color: var(--border);
    border-radius: 10px;
}

.video-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    aspect-ratio: 9 / 16;
    cursor: pointer;
    flex: 0 0 auto;
    width: calc(33.333% - 14px);
    min-width: 220px;
    max-width: 300px;
    scroll-snap-align: start;
}

.video-card:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(99, 102, 241, 0.15);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card .video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    transition: opacity var(--transition);
    pointer-events: none;
}

.video-overlay-text {
    color: white;
    font-size: 13px;
    font-weight: 600;
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    backdrop-filter: blur(4px);
}

.video-card:hover .video-play-btn {
    background: rgba(99, 102, 241, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.4);
}

.video-hint {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.6);
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 500;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
    pointer-events: none;
    transition: opacity var(--transition);
}

.video-card:hover .video-hint {
    opacity: 0;
}

/* ---------- CONTACT FORM INPUTS ---------- */
#contact-form input,
#contact-form textarea {
    outline: none;
}

#contact-form input:focus,
#contact-form textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ---------- CONTACT ---------- */
.contact-section {
    background: var(--bg-secondary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.contact-info h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-details {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-details .contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--accent-light);
    flex-shrink: 0;
}

.contact-details .contact-text h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.contact-details .contact-text p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
}

/* (unused .form-group, .btn-submit, .footer-* class styles removed — no HTML uses them) */

/* ---------- SCROLL TO TOP ---------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--accent-light);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 30px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 24px;
        border-left: 1px solid var(--border);
        transition: right var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hamburger {
        display: flex;
        min-height: 48px;
        min-width: 48px;
        justify-content: center;
        align-items: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        width: 85vw;
        max-width: 320px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 16px;
    }
}

/* ---------- PRINT ---------- */
@media print {

    .navbar,
    .scroll-top,
    .video-section,
    .contact-section,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: #1a1a2e;
    }

    .section {
        padding: 20px 0;
    }
}

/* ---------- FULLSCREEN VIDEO MODAL ---------- */
.video-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-overlay video {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    outline: none;
}

.video-modal-overlay.active video {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}



/* ====== ENHANCED INTERACTIVE VISUALS ====== */

/* --- Animated Gradient Border on Project Cards --- */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, transparent, transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: background 0.5s ease;
    z-index: 1;
}

.project-card:hover::before {
    background: linear-gradient(135deg, var(--accent), #a78bfa, #06b6d4, var(--accent));
    background-size: 300% 300%;
    animation: borderGlow 3s ease infinite;
}

@keyframes borderGlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- Stat Number Glow --- */
.stat-item:hover .stat-number {
    filter: brightness(1.3) drop-shadow(0 0 12px rgba(99, 102, 241, 0.5));
    transition: filter 0.3s ease;
}

/* --- Skill Tag Stagger Animation --- */
.skill-tag {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.skill-group.visible .skill-tag {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* --- Enhanced Highlight Cards --- */
.highlight-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.highlight-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

/* --- Section Divider Glow --- */
.section+.section {
    border-top: 1px solid transparent;
    background-clip: padding-box;
}

/* --- Hero Enhancement --- */
.hero h1 {
    transition: letter-spacing 0.4s ease;
}

.hero:hover h1 {
    letter-spacing: 0.5px;
}

/* --- Button Micro-Interactions --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::after {
    width: 300px;
    height: 300px;
}

/* --- Smooth Scroll Indicator --- */
@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(6px);
    }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-family: var(--font-mono);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 5;
}

.hero-scroll-hint .scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent-light);
    border-bottom: 2px solid var(--accent-light);
    transform: rotate(45deg);
    animation: scrollPulse 2s ease-in-out infinite;
    opacity: 0.6;
}

/* --- Timeline Connector Glow --- */
.timeline-item {
    position: relative;
    transition: border-color 0.3s ease;
}

.timeline-item:hover {
    border-color: var(--accent) !important;
}

/* --- Contact Icon Hover --- */
.contact-details .contact-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-details li:hover .contact-icon {
    transform: scale(1.15) rotate(-5deg);
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* --- Navbar Logo Hover --- */
.nav-logo {
    transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 20px var(--accent-glow);
}

/* Rainbow numeric accents */
.stat-number {
    background: var(--bubble-rainbow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bubbleGradientShift 10s linear infinite;
}

/* --- Tilt Card Effect (JS-driven via style attribute) --- */
.tilt-card {
    transition: transform 0.15s ease-out;
    transform-style: preserve-3d;
    perspective: 800px;
}

/* --- Magnetic Hover Label --- */
.magnetic-target {
    transition: transform 0.2s ease-out;
}

/* Ensure hover effects don't stick on touch devices */
@media (hover: none) {

    .btn-primary:hover,
    .btn-secondary:hover,
    .project-card:hover,
    .video-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .video-play-btn {
        opacity: 0.8 !important;
    }

    .video-hint {
        display: none !important;
    }

    .highlight-card {
        animation: none !important;
    }

    .skill-tag {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ---------- VIDEO FILTER TABS ---------- */
.filter-tab {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-sans);
}

.filter-tab:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}

@media (prefers-reduced-motion: reduce) {
    .stat-number {
        animation: none;
        background-size: 100% auto;
    }
}

.filter-tab:focus-visible,
.project-expand-btn:focus-visible,
#chat-toggle:focus-visible,
#chat-send:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* ---------- CHATBOT WIDGET TRANSITIONS ---------- */
#chat-toggle:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5) !important;
}

#chat-send:hover {
    background: var(--accent-light, #818cf8) !important;
}

#chat-input:focus {
    border-color: var(--accent, #6366f1) !important;
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(99, 102, 241, 0.25)) !important;
}

/* Smooth chatbot animation */
@keyframes chatSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chat-window[style*="display: flex"] {
    animation: chatSlideUp 0.3s ease forwards;
}

