/* ======================================
   CSS CUSTOM PROPERTIES
====================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafb;
    --bg-tertiary: #eef2f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f5f9ff;
    --text-primary: #0c1428;
    --text-secondary: #424f63;
    --text-muted: #8b96ac;
    --accent-primary: #0f766e;
    --accent-secondary: #14b8a6;
    --accent-gradient: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --accent-gradient-hover: linear-gradient(135deg, #086962 0%, #12a89c 100%);
    --border-color: #dfe5f0;
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.15);
    --shadow-accent: 0 6px 30px rgba(15, 118, 110, 0.20);
    --nav-bg: rgba(255, 255, 255, 0.97);
    --code-bg: #0c1428;
    --code-text: #e8ecf1;
    --modal-bg: #ffffff;
    --tag-bg: #eef9f8;
    --tag-text: #0f766e;
    --timeline-line: #dfe5f0;
    --transition: 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    --real-vh: 1vh;
}

[data-theme="dark"] {
    --bg-primary: #0c1428;
    --bg-secondary: #1a2742;
    --bg-tertiary: #253654;
    --bg-card: #1a2742;
    --bg-card-hover: #1e3250;
    --text-primary: #eef2f7;
    --text-secondary: #c1c9d6;
    --text-muted: #8b96ac;
    --accent-primary: #14b8a6;
    --accent-secondary: #0f766e;
    --accent-gradient: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%);
    --accent-gradient-hover: linear-gradient(135deg, #12a89c 0%, #086962 100%);
    --border-color: #253654;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent: 0 6px 30px rgba(20, 184, 166, 0.18);
    --nav-bg: rgba(12, 20, 40, 0.97);
    --code-bg: #0c1428;
    --modal-bg: #1a2742;
    --tag-bg: #0f4247;
    --tag-text: #4dd9cc;
    --timeline-line: #253654;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    transition: background-color 0.25s ease, color 0.25s ease;
    width: 100%;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "kern" 1;
}

::selection {
    background: var(--accent-primary);
    color: white;
    -webkit-text-fill-color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
    background-clip: padding-box;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.12s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.highlight {
    color: var(--accent-primary);
}

/* ======================================
   PRELOADER
====================================== */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
}

.loader-inner {
    position: absolute;
    inset: 0;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 15px rgba(15, 118, 110, 0.15);
}

.loader-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent-primary);
}

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

/* ======================================
   CUSTOM CURSOR
====================================== */
.custom-cursor,
.custom-cursor-follower {
    display: none;
}

@media (pointer: fine) {

    .custom-cursor,
    .custom-cursor-follower {
        display: block;
        position: fixed;
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        will-change: transform;
        backface-visibility: hidden;
    }

    .custom-cursor {
        width: 8px;
        height: 8px;
        background: var(--accent-primary);
    }

    .custom-cursor-follower {
        width: 35px;
        height: 35px;
        border: 1.5px solid var(--accent-primary);
        opacity: 0.5;
        transition: width 0.2s, height 0.2s, opacity 0.2s;
        will-change: width, height, opacity;
    }

    .custom-cursor-follower.hovered {
        width: 55px;
        height: 55px;
        opacity: 0.25;
    }
}

/* ======================================
   NAVBAR
====================================== */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    padding: 1rem 0;
    transition: all 0.15s ease;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

.navbar .container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    border-bottom-color: var(--border-color);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-bracket {
    color: var(--accent-primary);
    font-weight: 400;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.15s ease;
    letter-spacing: 0.2px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2.5px;
    background: var(--accent-gradient);
    transition: width 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0;
    outline: none !important;
    box-shadow: none !important;
}

.toggler-icon {
    display: flex;
    flex-direction: column;
    width: 28px;
    gap: 5px;
}

.toggler-icon span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.btn-theme-toggle {
    background: var(--bg-tertiary);
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.btn-theme-toggle:hover {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-primary);
    transform: rotate(35deg);
    box-shadow: 0 6px 16px rgba(15, 118, 110, 0.20);
}

/* ======================================
   BUTTONS
====================================== */
.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(15, 118, 110, 0.2);
}

.btn-primary-custom:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 118, 110, 0.25);
    color: white;
}

.btn-primary-custom i {
    transition: transform var(--transition);
}

.btn-primary-custom:hover i {
    transform: translateX(4px);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--accent-primary);
    border: 1.5px solid var(--accent-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.btn-outline-custom:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.25);
}

/* ======================================
   SECTION HEADERS
====================================== */
.section {
    padding: 100px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

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

.section-tag {
    font-family: 'Courier New', monospace;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 850;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.6px;
    line-height: 1.2;
}

.section-line {
    width: 70px;
    height: 5px;
    background: var(--accent-gradient);
    border-radius: 3px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
    transition: all 0.3s ease;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.skills-section,
.projects-section,
.contact-section {
    background-color: var(--bg-secondary);
}

/* ======================================
   HERO SECTION — FIXED FOR MOBILE
====================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
    /* Use JS-calculated height on mobile, fallback to 100vh on desktop */
    min-height: calc(var(--real-vh, 1vh) * 100);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.hero-row {
    /* NO min-vh-100 — controlled by padding instead */
    min-height: calc(var(--real-vh, 1vh) * 100);
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 6s infinite ease-in-out;
    will-change: transform, opacity;
    backface-visibility: hidden;
    box-shadow: 0 0 4px rgba(15, 118, 110, 0.4);
}

@keyframes floatParticle {

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

    50% {
        opacity: 0.15;
        transform: translateY(-60px) scale(1);
    }
}

/* Hero animations — pure CSS, NO AOS */
.hero-content {
    padding-top: 100px;
    padding-bottom: 40px;
    margin-top: 60px;
}

.hero-greeting,
.hero-title,
.hero-subtitle-wrapper,
.hero-description,
.hero-cta,
.hero-social {
    opacity: 0;
    transform: translateY(25px);
    animation: heroReveal 0.5s ease forwards;
}

.hero-greeting {
    animation-delay: 0.15s;
}

.hero-title {
    animation-delay: 0.25s;
}

.hero-subtitle-wrapper {
    animation-delay: 0.35s;
}

.hero-description {
    animation-delay: 0.45s;
}

.hero-cta {
    animation-delay: 0.55s;
}

.hero-social {
    animation-delay: 0.65s;
}

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

.hero-visual {
    position: relative;
    opacity: 0;
    animation: heroVisualReveal 0.6s ease 0.35s forwards;
}

@keyframes heroVisualReveal {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

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

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

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

.greeting-text {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.8px;
    -webkit-text-fill-color: var(--text-primary);
}

.hero-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.hero-subtitle-prefix {
    color: var(--accent-primary);
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
}

.typed-cursor {
    color: var(--accent-primary);
    animation: blink 0.8s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.8;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.hero-social {
    display: flex;
    gap: 1rem;
}

.hero-social a {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.12s ease;
    background: transparent;
}

.hero-social a:hover {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
}

/* Code Window */
.code-window {
    background: var(--code-bg);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: floatCode 7s ease-in-out infinite;
}

@keyframes floatCode {

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

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

.code-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red {
    background: #ff5f57;
}

.code-dot.yellow {
    background: #ffbd2e;
}

.code-dot.green {
    background: #28c840;
}

.code-title {
    margin-left: auto;
    color: #6c7086;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
}

.code-body {
    padding: 18px;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--code-text);
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
}

.code-keyword {
    color: #cba6f7;
}

.code-class {
    color: #f9e2af;
}

.code-variable {
    color: #89b4fa;
}

.code-string {
    color: #a6e3a1;
}

.code-function {
    color: #89dceb;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--transition);
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
    transition: border-color var(--transition);
}

.scroll-indicator:hover .mouse {
    border-color: var(--accent-primary);
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* ======================================
   ABOUT SECTION
====================================== */
.about-image-wrapper {
    text-align: center;
}

.about-image-card {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 2rem;
}

.about-avatar {
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    transform: rotate(-3deg);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.25);
}

.about-avatar:hover {
    transform: rotate(0deg) scale(1.05);
    box-shadow: 0 12px 35px rgba(15, 118, 110, 0.35);
}

.about-avatar i {
    font-size: 8rem;
    color: white;
    opacity: 0.9;
}

.about-image-decoration {
    position: absolute;
    inset: -8px;
    border: 2px dashed var(--accent-primary);
    border-radius: 20px;
    opacity: 0.3;
    transform: rotate(3deg);
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 850;
    color: var(--accent-primary);
    display: inline;
    text-shadow: 0 2px 4px rgba(15, 118, 110, 0.08);
}

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

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-item i {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

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

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

/* ======================================
   SKILLS SECTION
====================================== */
.skill-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.10);
    border-color: var(--accent-secondary);
    background: var(--bg-card-hover);
}

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

.skill-card-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
    transition: all 0.15s ease;
    position: relative;
}
}

.skill-card:hover .skill-card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.35);
}

.skill-card-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid transparent;
}

.skill-card:hover .skill-tag {
    background: var(--accent-gradient);
    color: white;
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.tools-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.tools-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tools-title i {
    color: var(--accent-primary);
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem;
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    border: 1px solid transparent;
}

.tool-item:hover {
    background: var(--tag-bg);
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.tool-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.tool-item span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-line);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-marker {
    position: absolute;
    left: -50px;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    z-index: 2;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.28);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.30);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.75rem;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

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

.timeline-content:hover {
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.12);
    border-color: var(--accent-secondary);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-header h4 {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
}

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

.timeline-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

/* ======================================
   PROJECTS
====================================== */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.8rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.2px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
    color: white;
    box-shadow: 0 6px 20px rgba(15, 118, 110, 0.25);
    transform: translateY(-2px);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.12s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    will-change: auto;
    backface-visibility: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 10;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 30px rgba(15, 118, 110, 0.12);
    border-color: var(--accent-secondary);
}

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

.project-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
    backface-visibility: hidden;
}

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

.project-card-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 1;
}

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

.project-card-overlay .btn-view {
    padding: 0.5rem 1.5rem;
    background: white;
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card-overlay .btn-view:hover {
    background: var(--accent-primary);
    color: white;
}

.project-card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-date {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-card-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-card-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.project-card-tech span {
    padding: 0.25rem 0.65rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.project-card-links {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-card-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.12s ease;
}

.project-card-links a:hover {
    color: var(--accent-primary);
}

.project-col {
    transition: all 0.4s ease;
}

/* ======================================
   PROJECT MODAL
====================================== */
.project-modal-content {
    background: var(--modal-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.modal-close-btn:hover {
    transform: rotate(90deg);
}

.project-modal-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.project-modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem;
    color: var(--text-primary);
}

.project-modal-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-modal-info h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-modal-features {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.project-modal-features li {
    padding: 0.3rem 0 0.3rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-modal-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
}

.project-modal-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-modal-tech span {
    padding: 0.35rem 0.85rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-modal-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.12s ease;
}

.project-modal-links .btn-demo {
    background: var(--accent-gradient);
    color: white;
}

.project-modal-links .btn-demo:hover {
    box-shadow: 0 8px 25px rgba(15, 118, 110, 0.30);
    transform: translateY(-3px);
    color: white;
}

.project-modal-links .btn-github-link {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.project-modal-links .btn-github-link:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* ======================================
   PROJECT MODAL GALLERY
====================================== */
.project-modal-gallery {
    width: 100%;
}

.project-gallery-container {
    position: relative;
    height: 400px;
    background: var(--bg-tertiary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.25s ease;
    will-change: opacity;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    z-index: 5;
    font-size: 1.5rem;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: var(--bg-secondary);
    overflow-x: auto;
    justify-content: flex-start;
}

.gallery-th-item {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 3px solid transparent;
    transition: all var(--transition);
    opacity: 0.7;
}

.gallery-th-item:hover {
    opacity: 1;
    transform: scale(1.05);
}

.gallery-th-item.active {
    border-color: var(--accent-primary);
    opacity: 1;
}

.gallery-th-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-counter {
    padding: 10px 15px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}

.project-modal-info {
    padding: 2rem;
}

/* ======================================
   EDUCATION
====================================== */
.education-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    transition: all var(--transition);
}

.education-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-primary);
}

.education-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: var(--accent-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.education-info h4 {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.education-info h5 {
    font-weight: 600;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.education-faculty {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-date {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.education-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.edu-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    background: var(--tag-bg);
    color: var(--tag-text);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.edu-badge.highlight-badge {
    background: var(--accent-gradient);
    color: white;
}

/* ======================================
   CONTACT
====================================== */
.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all var(--transition);
    text-decoration: none;
    height: 100%;
}

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

.contact-card-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.contact-card h5 {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.contact-socials {
    text-align: center;
    margin-top: 3rem;
}

.contact-socials h5 {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

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

/* ======================================
   FOOTER
====================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
}

.footer-content {
    text-align: center;
}

.footer-brand {
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
}

/* ======================================
   BACK TO TOP
====================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-accent);
}

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

.back-to-top:hover {
    transform: translateY(-3px);
}

/* ======================================
   RESPONSIVE — MOBILE HERO FIX
====================================== */
@media (max-width: 991.98px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-section {
        min-height: auto !important;
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    .hero-row {
        min-height: auto !important;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        padding-top: 90px;
        padding-bottom: 30px;
        text-align: center;
        width: 100%;
        margin-top: 40px;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-subtitle-wrapper {
        justify-content: center;
    }

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

    .scroll-indicator {
        display: none;
    }

    .navbar-collapse {
        background: var(--bg-card);
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.5rem;
        border: 1px solid var(--border-color);
    }

    .btn-theme-toggle {
        margin-top: 0.5rem;
    }
}

@media (max-width: 767.98px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .hero-content {
        padding-top: 80px;
        padding-bottom: 20px;
        width: 100%;
        margin-top: 35px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 70px 0;
        width: 100%;
        max-width: 100%;
    }

    .timeline {
        padding-left: 40px;
    }

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

    .timeline-marker {
        left: -40px;
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

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

    .education-details {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-content {
        padding-top: 75px;
        margin-top: 30px;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .project-card-image {
        height: 180px;
    }

    .project-gallery-container {
        height: 280px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .gallery-thumbnails {
        gap: 8px;
        padding: 10px;
    }

    .gallery-th-item {
        width: 55px;
        height: 55px;
    }

    .project-modal-info {
        padding: 1.5rem 1rem;
    }

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