/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║                    🎨 ACCENT COLOR (Change this to switch theme)       ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
:root {
    /* Current accent color - change to: #ED7547 (orange), #3498DB (blue), etc */
    --main-accent: #39CC9B;
    --accent-light: #f4b771;
}

/* ╔══════════════════════════════════════════════════════════════════════════╗
   ║              DO NOT EDIT BELOW THIS SECTION                    ║
   ╚══════════════════════════════════════════════════════════════════════════╝ */
:root {
    /* === BACKGROUND LAYERS (New Theme) === */
    --bg-darkest: #18191A;
    --bg-dark: #23282F;
    --bg-card: #23282F;

    /* === ACCENT / BRAND COLORS (Auto-generated from main-accent) === */
    --accent-primary: var(--main-accent);
    --accent-secondary: color-mix(in srgb, var(--main-accent), #fff 20%);
    --accent_light: color-mix(in srgb, var(--main-accent), #fff 40%);

    /* === TEXT COLORS === */
    --text-primary: #F0F2F4;
    --text-secondary: var(--accent_light);
    --text-muted: var(--accent-secondary);

    /* === INTERACTIVE STATES === */
    --btn-bg: var(--main-accent);
    --btn-hover: var(--accent-secondary);
    --btn-text: #E8F4F4;

    /* === BORDER & DIVIDER === */
    --border: #032F30;
    --border-accent: var(--main-accent);

    /* === SHADOW (uses main-accent color - auto adjusts) === */
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.4);

    /* === GRADIENT === */
    --gradient-hero: linear-gradient(135deg, #18191A 0%, #23282F 50%, #23282F 100%);
    --gradient-card: linear-gradient(145deg, #23282F, #23282F);
    --gradient-accent: linear-gradient(90deg, var(--main-accent), var(--accent-secondary));
    --gradient-accent-transparent: linear-gradient(90deg, var(--main-accent) 0%, transparent 100%);

    /* === ALIASES FOR CODE COMPATIBILITY === */
    --bg: var(--bg-darkest);
    --card: var(--bg-card);
    --surface: var(--bg-dark);
    --text: var(--text-primary);
    --text-muted: var(--text-secondary);
    --accent: var(--main-accent);
    --accent-hover: var(--accent-secondary);
    --white: var(--text-primary);
    --font-main: 'Afacad Flux', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

/* === NAVBAR SECTION === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(24, 25, 26, 0.30);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    transition: var(--transition);
}

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

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-menu a:hover {
    color: var(--accent);
}

.hamburger {
    display: none;
    width: 30px;
    height: 24px;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    padding: 0;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--text);
    transition: var(--transition);
    left: 50%;
    transform: translateX(-50%);
}

.hamburger span:nth-child(1) {
    top: 3px;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.hamburger span:nth-child(3) {
    bottom: 3px;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: linear-gradient(-45deg, #18191A, #0c2b21, #1a1c1e, #312c25);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

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

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

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(81, 163, 172, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(81, 163, 172, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(81, 163, 172, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: glowPulse 8s ease-in-out infinite;
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-name {
    font-family: 'Megrim', cursive;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 400;
    margin-bottom: 10px;
    color: var(--accent-primary);
    text-shadow: 0 0 40px rgba(81, 163, 172, 0.5);
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
    display: block;
    width: 100%;
}

.hero-name.visible {
    opacity: 1;
}

.hero-name .name-wrapper {
    display: inline;
}

.hero-name .nbr,
.hero-name .space,
.hero-name .revealed {
    display: inline;
    width: auto;
    text-align: left;
    font-family: 'Megrim', cursive;
    font-weight: 400;
    color: var(--accent-primary);
}

.hero-name .revealed {
    animation: letterReveal 0.3s ease forwards;
}

@keyframes letterReveal {
    0% {
        transform: scale(1.5);
        opacity: 0;
    }

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

.hero-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.typing-text {
    display: inline;
}

.cursor {
    display: inline-block;
    animation: blink 1s infinite;
    color: var(--accent-light);
    opacity: 0;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-tagline {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

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

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

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(120, 184, 166, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--text);
}

.btn-secondary:hover {
    background: var(--text);
    color: var(--bg);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
}

/* === SCROLL DOWN === */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    opacity: 0;
    animation: scrollMouse 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

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

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollMouse {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

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

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Fade in animation for sections */
.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    border: 3px solid var(--accent-primary);
    border-radius: 15px;
    z-index: -1;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
    text-align: justify;
}

.about-text .btn {
    margin-top: 10px;
}

/* === SKILLS SECTION === */
#skills {
    background: var(--bg-card);
    padding: 80px 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.skill-card {
    background: var(--bg-darkest);
    padding: 20px 22px;
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-primary);
    transform: scaleY(0);
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: bottom;
}

.skill-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
    border-color: transparent;
}

.skill-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.skill-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.skill-card h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
    opacity: 0.5;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    display: inline-block;
    padding: 5px 11px;
    background: transparent;
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    letter-spacing: 0.3px;
}

.tag:hover {
    background: var(--accent-light);
    color: var(--bg-darkest);
    /* border-color: var(--main-accent); */
    transform: scale(1.08);
}

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

#experience::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 112, 117, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

/* .timeline::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
    box-shadow: 0 0 15px rgba(10, 112, 117, 0.4);
} */

.timeline-item {
    position: relative;
    padding: 20px 0 20px 55px;
    margin-bottom: 25px;
}

.timeline-item.visible {
    pointer-events: auto;
}

.timeline-item:nth-child(2) {
    transition-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    transition-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    transition-delay: 0.3s;
}

.timeline-item:nth-child(5) {
    transition-delay: 0.4s;
}

.timeline-item:nth-child(6) {
    transition-delay: 0.5s;
}

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

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 28px;
    width: 18px;
    height: 18px;
    background: var(--accent-secondary);
    border-radius: 50%;
    border: 3px solid var(--bg-darkest);
    box-shadow: 0 0 0 3px var(--accent-primary), 0 0 20px rgba(12, 150, 156, 0.5);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-dot::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--bg-darkest);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

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

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.5;
    }
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 3px var(--accent-primary), 0 0 30px rgba(12, 150, 156, 0.8);
}

.timeline-content {
    background: var(--bg-card);
    padding: 28px;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent-transparent);
    transition: width 0.4s ease;
}

.timeline-content:hover {
    transform: translateX(12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(10, 112, 117, 0.2);
    border-color: var(--accent-primary);
}

.timeline-content:hover::before {
    width: 100%;
    opacity: 0.1;
}

.timeline-year {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--text-primary);
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(10, 112, 117, 0.3);
}

.timeline-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.timeline-content:hover h3 {
    color: var(--accent-secondary);
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.93rem;
    line-height: 1.7;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.timeline-header h3 {
    margin-bottom: 0;
}

.timeline-header i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.timeline-description {
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.timeline-toggle {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 12px;
    position: relative;
    z-index: 10;
}

.timeline-toggle:hover {
    background: var(--accent-primary);
    color: var(--bg-darkest);
}

.timeline-details {
    display: none;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.timeline-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.timeline-details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.timeline-item.expanded .timeline-details {
    display: block;
    animation: fadeIn 0.3s ease;
}

.timeline-item.expanded .timeline-toggle {
    background: var(--accent-primary);
    color: var(--bg-darkest);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* === PROJECTS SECTION === */
#projects {
    background: var(--bg-card);
    overflow: hidden;
}

.projects-wrapper {
    position: relative;
    padding: 30px 0;
}

.projects-scroll-container {
    position: relative;
}

/* === PROJECT TABS === */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.project-tab {
    padding: 10px 24px;
    border-radius: 25px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.project-tab:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.project-tab.active {
    background: var(--accent-primary);
    color: var(--bg-darkest);
    border-color: var(--accent-primary);
}

.projects-scroll {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 25px 10px 40px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-scroll::-webkit-scrollbar {
    display: none;
}

.projects-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -10px;
    margin-bottom: 25px;
}

.projects-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-nav-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.1);
}

.projects-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.projects-nav-btn:disabled:hover {
    background: var(--bg-dark);
    border-color: var(--border);
    transform: none;
}

.project-card {
    flex: 0 0 320px;
    background: var(--bg-dark);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    scroll-snap-align: start;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(10, 112, 117, 0.25);
    border-color: var(--accent-primary);
}

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

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

.project-image {
    height: 170px;
    overflow: hidden;
    position: relative;
    background: var(--surface);
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(3, 23, 22, 0.9), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-overlay .project-link-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.3s ease 0.1s;
}

.project-card:hover .project-overlay .project-link-btn {
    transform: scale(1);
}

.project-link-btn svg {
    width: 22px;
    height: 22px;
    color: var(--text-primary);
}

.project-number {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: var(--accent-primary);
    color: var(--bg-darkest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    z-index: 2;
}

.project-content {
    padding: 22px 24px 26px;
}

.project-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: var(--accent-secondary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags .tag {
    padding: 5px 12px;
    font-size: 0.75rem;
    background: var(--accent-light);
    color: var(--bg-darkest);
    border: none;
    border-radius: 15px;
}

.project-tags .tag:hover {
    background: var(--accent-secondary);
}

/* === CONTACT SECTION === */
#contact {
    background: var(--bg-darkest);
    text-align: center;
}

#contact .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

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

.contact-intro p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.contact-intro .highlight {
    color: var(--accent-light);
    font-weight: 600;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.contact-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-primary);
}

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.contact-card:hover .contact-card-icon {
    background: var(--accent-secondary);
    transform: scale(1.1);
}

.contact-card-icon svg,
.contact-card-icon i {
    display: block;
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: var(--text-primary);
    flex-shrink: 0;
    line-height: 40px;
    text-align: center;
}

.contact-card-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-card-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    text-align: center;
}

.contact-cta {
    margin-top: 20px;
    padding: 25px 40px;
    background: var(--gradient-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 15px;
}

.contact-cta-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-cta-icon svg {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
}

.contact-cta-text {
    text-align: left;
}

.contact-cta-text span {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.contact-cta-text strong {
    color: var(--text-primary);
    font-size: 1.1rem;
}

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

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
    border: 1px solid var(--border);
    font-size: 20px;
}

.social-links i {
    line-height: 1;
}

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

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        justify-content: center;
        display: flex;
    }

    .about-image img {
        margin: 0 auto;
    }

    .about-image::before {
        display: none;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        text-align: left;
        margin-left: 0;
    }

    .timeline-item:nth-child(odd) {
        padding-right: 0;
        text-align: left;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 12px;
        right: auto;
    }

    .timeline-content:hover {
        transform: translateX(6px) scale(1.01);
    }

    #experience::before {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        /* background: var(--gradient-hero); */
        /* blur bg */
        background: rgba(24, 25, 26, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 25px;
        transition: var(--transition);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

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

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

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

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

    .project-card {
        flex: 0 0 300px;
    }

    .contact-cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-card {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 1.7rem;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .section {
        padding: 60px 0;
    }

    .skill-card {
        padding: 20px;
    }

    .project-card {
        flex: 0 0 280px;
    }

    .timeline-content {
        padding: 20px;
    }
}

/* === PROJECT MODAL === */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
}

.project-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.project-modal-content {
    background: var(--bg-dark);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

.project-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-modal-close:hover {
    background: var(--accent-primary);
    color: var(--bg-darkest);
    border-color: var(--accent-primary);
}

.project-modal-body {
    display: grid;
    grid-template-columns: 1fr;
}

.project-modal-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--surface);
}

.project-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-info {
    padding: 30px;
}

.project-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.project-modal-category {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.project-modal-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    max-height: 150px;
    overflow-y: auto;
    padding-right: 8px;
}

.project-modal-description::-webkit-scrollbar {
    width: 4px;
}

.project-modal-description::-webkit-scrollbar-track {
    background: var(--surface);
    border-radius: 2px;
}

.project-modal-description::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.project-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-modal-tags .tag {
    padding: 6px 14px;
    background: var(--accent-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--bg-dark);
}

.project-modal-links {
    display: flex;
    gap: 12px;
}

.project-modal-links .btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.project-modal-links .btn-primary {
    background: var(--accent-primary);
    color: var(--bg-darkest);
}

.project-modal-links .btn-primary:hover {
    background: var(--accent-hover);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@media (min-width: 768px) {
    .project-modal-body {
        grid-template-columns: 1.2fr 1fr;
    }

    .project-modal-image {
        height: 100%;
        min-height: 350px;
    }

    .project-modal-info {
        padding: 40px;
    }

    .project-modal-title {
        font-size: 1.8rem;
    }
}

/* === GO TO TOP BUTTON === */
.go-to-top {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: none;
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 8px;
    font-size: 1.5rem;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 15px rgba(81, 163, 172, 0.4); */
}

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

.go-to-top:active {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(81, 163, 172, 0.6);
}

.go-to-top .flame-container {
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 1;
}

.go-to-top .flame {
    width: 10px;
    height: 16px;
    background: linear-gradient(to top, #b700cb, #ff8c00, #ffd700);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flicker 0.3s infinite alternate;
    box-shadow: 0 0 10px #ff4500, 0 0 20px #ff8c00;
}

.go-to-top .flame:nth-child(1) {
    width: 6px;
    height: 20px;
    animation-delay: 0s;
}

.go-to-top .flame:nth-child(2) {
    width: 12px;
    height: 15px;
    margin-top: -10px;
    animation-delay: 0.1s;
}

.go-to-top .flame:nth-child(3) {
    width: 18px;
    height: 5px;
    margin-top: -7px;
    animation-delay: 0.2s;
}

@keyframes flicker {
    0% {
        transform: scaleY(1) scaleX(1) translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: scaleY(1.3) scaleX(0.8) translateY(-2px);
        opacity: 1;
    }

    100% {
        transform: scaleY(1.1) scaleX(0.9) translateY(-1px);
        opacity: 0.9;
    }
}

/* === EXPERIENCE - LinkedIn Style === */
.exp-company {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.exp-company-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    /* padding-bottom: 16px; */
    border-bottom: 1px solid var(--border);
}

.exp-company-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--bg-darkest);
    margin-top: 4px;
}

.exp-company-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.exp-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.exp-positions {
    position: relative;
    padding-left: 0;
    margin-left: 6px;
    border-left: 2px solid var(--accent);
    padding-top: 4px;
    font-size: 1.1rem;
}

.exp-position {
    position: relative;
    padding-left: 20px;
    padding-bottom: 20px;
}

.exp-position::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 6px;
    width: 12px;
    height: 12px;
    background: var(--accent-light);
    border-radius: 50%;
    border: 3px solid var(--surface);
}

.exp-role {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.exp-role h4 {
    font-size: 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.exp-type {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(81, 163, 172, 0.15);
    padding: 2px 8px;
    border-radius: 4px;
}

.exp-meta {
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: var(--accent-light);

}

.exp-location-inline {
    display: inline;
}

.exp-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.exp-toggle-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px 0;
    margin-top: 2px;
}

.exp-toggle-btn:hover {
    text-decoration: underline;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exp-company {
        padding: 16px;
    }

    .exp-company-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .exp-company-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }

    .exp-position {
        padding-left: 24px;
    }

    .exp-position::before {
        left: -6px;
        width: 10px;
        height: 10px;
    }

    .exp-positions {
        margin-left: 0;
    }

    .exp-role {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .exp-type {
        font-size: 0.75rem;
        color: var(--accent-light);
        background: rgba(244, 183, 113, 0.15);
        padding: 2px 8px;
        border-radius: 4px;
    }

    .exp-location-inline {
        display: none;
    }
}

/* === EDUCATION SECTION === */
.edu-item {
    display: flex;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.edu-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darkest);
}

.edu-icon i {
    font-size: 1.4rem;
}

.edu-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.edu-degree {
    font-size: 0.9rem;
    color: var(--accent-light);
    margin: 0 0 2px 0;
}

.edu-field {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0 0 4px 0;
}

.edu-period {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 8px 0;
}

.edu-description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* === CERTIFICATES SECTION === */
#certificatesGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.cert-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--accent-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-darkest);
}

.cert-icon i {
    font-size: 1.2rem;
}

.cert-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}

.cert-provider {
    font-size: 0.85rem;
    color: var(--accent-light);
    margin: 0 0 2px 0;
}

.cert-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    font-family: monospace;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .edu-item {
        flex-direction: column;
        gap: 12px;
    }

    .edu-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1.2rem;
    }

    #certificatesGrid {
        grid-template-columns: 1fr;
    }
}

/* === END === */