/* Ensure all tool icons are the same size */
.tool-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}
/* ===================================
   DESIGN SYSTEM — Nicko R. Dalugdugan
   Premium Dark Portfolio
   =================================== */

/* ---------- Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    /* Colors - Using user's blue palette: #7BD5F5, #787FF6, #4ADEDE, #1CA7EC, #1F2F9B */
    --bg-primary: #0c1117;
    --bg-secondary: #141b24;
    --bg-card: rgba(20, 27, 36, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(255, 255, 255, 0.14);

    --accent-primary: #1CA7EC;
    --accent-secondary: #7BD5F5;
    --accent-gradient: linear-gradient(135deg, #1F2F9B 0%, #1CA7EC 50%, #4ADEDE 100%);
    --accent-gradient-hover: linear-gradient(135deg, #1CA7EC 0%, #4ADEDE 50%, #7BD5F5 100%);
    --accent-glow: rgba(28, 167, 236, 0.15);
    --hero-image-bg: linear-gradient(180deg, rgba(4, 8, 16, 0.99) 0%, rgba(10, 18, 30, 0.96) 100%);

    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --text-accent: #4ADEDE;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --gap-sm: 8px;
    --gap-md: 16px;
    --gap-lg: 24px;
    --gap-xl: 40px;
    --gap-2xl: 60px;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 50%;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Light Mode Variables ---------- */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(0, 0, 0, 0.02);
    --bg-glass-hover: rgba(0, 0, 0, 0.04);
    --border-glass: rgba(0, 0, 0, 0.08);
    --border-glass-hover: rgba(0, 0, 0, 0.12);

    --accent-glow: rgba(28, 167, 236, 0.12);
    --hero-image-bg: linear-gradient(180deg, rgba(243, 247, 252, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);

    --text-primary: #24292f;
    --text-secondary: #656d76;
    --text-muted: #8c959f;
    --text-accent: #1CA7EC;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-secondary);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Section Shared ---------- */
section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: var(--gap-2xl);
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-label::before,
.section-label::after {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--accent-primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 12px auto 0;
}

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

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

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ========== NAVIGATION ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 10px 0;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.9);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    object-fit: cover;
    object-position: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: right;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    position: relative;
    justify-content: right;
    align-items: right;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: var(--transition-base);
    border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    -webkit-text-fill-color: #fff !important;
}

.nav-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--accent-glow);
}

.nav-cv-btn::after {
    display: none !important;
}

.nav-cv-btn svg {
    width: 16px;
    height: 16px;
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

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

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

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

/* Theme Toggle Button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    cursor: pointer;
    transition: var(--transition-base);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: var(--transition-base);
}

/* Dark mode: show sun, hide moon */
.theme-toggle .icon-sun {
    display: block;
}

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

/* Light mode: show moon, hide sun */
[data-theme="light"] .theme-toggle .icon-sun {
    display: none;
}

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

/* ========== HERO SECTION ========== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(28, 167, 236, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 167, 236, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black 40%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
}

.hero-glow-1 {
    top: -200px;
    right: -100px;
    background: var(--accent-primary);
}

.hero-glow-2 {
    bottom: -200px;
    left: -100px;
    background: var(--accent-secondary);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
    backdrop-filter: blur(10px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

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

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.hero-greeting {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--gap-sm);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--gap-md);
}

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

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--gap-lg);
}

.hero-title .typed-text {
    color: var(--accent-primary);
}

.hero-title .cursor {
    display: inline-block;
    width: 3px;
    height: 1.2em;
    background: var(--accent-primary);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink-cursor 0.8s steps(1) infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--gap-xl);
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: var(--gap-md);
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: var(--transition-base);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px var(--accent-glow);
}

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

.btn-secondary:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-3px);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.hero-stats {
    display: flex;
    gap: var(--gap-xl);
    margin-top: var(--gap-xl);
    padding-top: var(--gap-xl);
    border-top: 1px solid var(--border-glass);
}

.stat-item h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform: translateY(-100px);
}

.hero-image-wrapper {
    position: relative;
    width: 320px;
    height: 380px;
}

.hero-image-frame {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 2px solid var(--border-glass);
    position: relative;
    background: var(--bg-glass);
    box-shadow: 0 4px 20px var(--accent-glow);
    backdrop-filter: blur(20px);
}

.hero-image-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-image-bg);
    transition: background var(--transition-base);
    pointer-events: none;
    z-index: 0;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    position: absolute;
    top: 10;
    left: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.hero-img-hover {
    opacity: 0;
}

.hero-image-frame:hover .hero-img-default {
    opacity: 0;
}

.hero-image-frame:hover .hero-img-hover {
    opacity: 1;
}


.hero-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
}

.hero-image-placeholder svg {
    width: 140px;
    height: 140px;
    color: var(--text-muted);
    opacity: 0.3;
}

.hero-float-card {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.hero-float-card:nth-child(2) {
    animation-delay: 0.5s;
}

.hero-float-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {

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

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

.float-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.float-icon.figma {
    background: rgba(168, 85, 247, 0.2);
}

.float-icon.design {
    background: rgba(59, 130, 246, 0.2);
}

.float-icon.web {
    background: rgba(34, 197, 94, 0.2);
}

.float-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.float-text p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hero-float-card:nth-child(2) {
    top: 15%;
    right: -30px;
}

.hero-float-card:nth-child(3) {
    bottom: 20%;
    left: -40px;
}

.hero-float-card:nth-child(4) {
    bottom: 5%;
    right: -20px;
}

/* ========== ABOUT SECTION ========== */
#about {
    background: var(--bg-secondary);
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
    align-items: start;
}

.about-text h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--gap-md);
}

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

.about-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
    margin-bottom: var(--gap-xl);
}

.about-info-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.about-info-item .label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.about-info-item .value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Skills */
.skills-section {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--gap-xl);
    backdrop-filter: blur(10px);
}

.skills-section h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--gap-lg);
}

.skill-item {
    margin-bottom: var(--gap-md);
}

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

.skill-header span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.skill-header .percentage {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tools */

.tools-section {
    margin-top: var(--gap-xl);
    text-align: center;
}

.tools-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    text-align: center;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap-sm);
    justify-content: center;
}

.tool-tag {
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.tool-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(59, 130, 246, 0.08);
}

/* ========== PROJECTS SECTION ========== */
#projects {
    position: relative;
}

.projects-tabs {
    display: flex;
    justify-content: center;
    gap: var(--gap-sm);
    margin-bottom: var(--gap-xl);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-xl);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-base);
}

.tab-btn:hover {
    border-color: var(--border-glass-hover);
    color: var(--text-primary);
    background: var(--bg-glass-hover);
}

.tab-btn.active {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--gap-lg);
}

.project-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-base);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glass-hover);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Featured Projects */
.featured-project {
    position: relative;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.featured-project .project-info::before {
    content: "";
    display: block;
    height: 3px;
    background: var(--accent-gradient);
    margin: 0 -16px 12px -16px;
}

.featured-project:hover {
    transform: translateY(-6px);
    border-color: var(--accent-primary);
    box-shadow: 0 16px 40px var(--accent-glow);
}

.project-category.featured {
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
}

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

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.project-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.project-placeholder.graphic {
    background: linear-gradient(135deg, #1e1b4b, #312e81, #3b0764);
}

.project-placeholder.uiux {
    background: linear-gradient(135deg, #0c1829, #172554, #1e3a5f);
}

.project-placeholder.webdesign {
    background: linear-gradient(135deg, #052e16, #14532d, #1a3a2a);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition-base);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-btn {
    padding: 10px 20px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(10px);
    transition: var(--transition-base);
}

.project-card:hover .project-overlay-btn {
    transform: translateY(0);
}

.project-info {
    padding: 20px;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 14px;
}

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

.project-tools span {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ========== EXPERIENCE SECTION ========== */
#experience {
    background: var(--bg-secondary);
    position: relative;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
}

.experience-col h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--gap-lg);
    display: flex;
    align-items: center;
    gap: 10px;
}

.experience-col h3 svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: var(--gap-xl);
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 2px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.timeline-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: var(--transition-base);
}

.timeline-card:hover {
    border-color: var(--border-glass-hover);
    transform: translateX(6px);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 6px;
}

.timeline-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-card .company {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.timeline-card p,
.timeline-card li {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.timeline-card ul {
    padding-left: 16px;
    list-style: disc;
}

.timeline-card ul li {
    margin-bottom: 4px;
}

/* ========== CONTACT SECTION ========== */
#contact {
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-2xl);
}

.contact-info-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--gap-xl);
    backdrop-filter: blur(10px);
}

.contact-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-info-card>p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--gap-xl);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: var(--gap-lg);
}

.contact-detail:last-of-type {
    margin-bottom: var(--gap-xl);
}

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
}

.contact-detail-text span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.contact-detail-text p {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
}

.contact-socials {
    display: flex;
    gap: var(--gap-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.social-link:hover svg {
    color: #fff;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap-md);
}

.form-submit {
    margin-top: var(--gap-sm);
}

/* ========== FOOTER ========== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-glass);
    padding: 30px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer a {
    color: var(--accent-primary);
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--text-primary);
}

/* ========== CHATBOT ========== */
.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--accent-glow);
    z-index: 999;
    transition: var(--transition-base);
    animation: chatbot-pulse 2s ease-in-out infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px var(--accent-glow);
}

.chatbot-toggle svg {
    width: 26px;
    height: 26px;
    color: #fff;
}

@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 4px 20px var(--accent-glow); }
    50% { box-shadow: 0 4px 30px var(--accent-glow), 0 0 0 8px rgba(28, 167, 236, 0.15); }
}

.chatbot-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 380px;
    max-height: 520px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    display: none;
    flex-direction: column;
    z-index: 999;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}

.chatbot-window.open {
    display: flex;
    animation: chatbot-slide-up 0.3s ease;
}

@keyframes chatbot-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--accent-primary), #1F2F9B);
    color: #fff;
    flex-shrink: 0;
}

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

.chatbot-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.chatbot-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.chatbot-status {
    font-size: 0.75rem;
    opacity: 0.85;
}

.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.chatbot-close:hover {
    opacity: 1;
}

.chatbot-close svg {
    width: 20px;
    height: 20px;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.5;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg p {
    margin: 0;
}

.chat-msg ul {
    margin: 6px 0 0 0;
    padding-left: 18px;
}

.chat-msg ul li {
    margin-bottom: 3px;
}

.chat-msg a {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.chat-msg.user a {
    color: #fff;
}

.chatbot-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.suggestion-btn {
    padding: 6px 12px;
    font-size: 0.78rem;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    background: var(--bg-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.suggestion-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.chatbot-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border-glass);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.chatbot-input input {
    flex: 1;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 10px 16px;
    color: var(--text-primary);
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition-fast);
}

.chatbot-input input:focus {
    border-color: var(--accent-primary);
}

.chatbot-input button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

.chatbot-input button svg {
    width: 18px;
    height: 18px;
}

.chatbot-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}

.chatbot-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-dot 1.4s ease-in-out infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

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

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

    .hero-text {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .hero-image-wrapper {
        width: 280px;
        height: 330px;
    }

    .hero-float-card {
        display: none;
    }

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

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 80px 32px 40px;
        transition: var(--transition-base);
        border-left: 1px solid var(--border-glass);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-sm);
        transition: var(--transition-fast);
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: var(--bg-glass);
    }

    .nav-links a::after {
        bottom: 8px;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-links a:hover::after,
    .nav-links a.active::after {
        width: 30px;
    }

    .nav-cv-btn {
        margin-top: 16px;
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 0.95rem;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .theme-toggle {
        margin-left: auto;
        margin-right: 12px;
    }

    .hero-name {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-image-wrapper {
        width: 220px;
        height: 260px;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--gap-md);
        align-items: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .chatbot-window {
        width: calc(100vw - 32px);
        right: 16px;
        bottom: 80px;
        max-height: 70vh;
    }

    .chatbot-toggle {
        bottom: 16px;
        right: 16px;
        width: 50px;
        height: 50px;
    }

    .chatbot-toggle svg {
        width: 22px;
        height: 22px;
    }
}

/* ========== UTILITY ANIMATIONS ========== */
@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }

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

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

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

/* ========== LIGHT MODE OVERRIDES ========== */
[data-theme="light"] .hero-float-card {
    background: rgba(255, 255, 255, 0.85);
}

[data-theme="light"] .hero-glow {
    opacity: 0.08;
}

[data-theme="light"] .hero-bg-grid {
    background-image:
        linear-gradient(rgba(28, 167, 236, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(28, 167, 236, 0.06) 1px, transparent 1px);
}

[data-theme="light"] .skill-bar {
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .project-placeholder.graphic {
    background: linear-gradient(135deg, #eff6ff, #dbeafe, #bfdbfe);
}

[data-theme="light"] .project-placeholder.uiux {
    background: linear-gradient(135deg, #ecfeff, #cffafe, #a5f3fc);
}

[data-theme="light"] .project-placeholder.webdesign {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe, #bae6fd);
}

[data-theme="light"] .project-placeholder span {
    color: var(--text-muted);
}

[data-theme="light"] .project-placeholder svg {
    color: var(--text-muted);
}

[data-theme="light"] .timeline-item::before {
    border-color: var(--bg-secondary);
}

@media (max-width: 768px) {
    [data-theme="light"] .nav-links {
        background: #f8fafc;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    }

    [data-theme="light"] .nav-toggle span {
        background: var(--text-primary);
    }
}

/* Smooth transition for theme changes */
body,
.navbar,
.hero-float-card,
section,
.skills-section,
.contact-info-card,
.timeline-card,
.project-card {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}