/* ===========================
   VARIABLES & RESET
   =========================== */

:root {
    --primary-color: #040913;
    --secondary-color: #0a1322;
    --accent-color: #37e5b3;
    --accent-dark: #00a67e;
    --accent-light: #57f0c6;
    --highlight-color: #6f7cff;
    --text-color: #e6eeff;
    --text-light: #94a6c8;
    --border-color: #19304b;
    --bg-gradient: radial-gradient(circle at 18% 15%, rgba(111, 124, 255, 0.16), transparent 35%), radial-gradient(circle at 78% 18%, rgba(55, 229, 179, 0.18), transparent 36%), linear-gradient(135deg, #02060e 0%, #081224 42%, #030814 100%);
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 12px 35px rgba(7, 14, 28, 0.45);
    --shadow-lg: 0 24px 65px rgba(3, 8, 18, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', 'Inter', 'Segoe UI', sans-serif;
}

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

/* ===========================
   NAVIGATION
   =========================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(140deg, rgba(7, 16, 31, 0.76), rgba(5, 11, 22, 0.72));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(111, 124, 255, 0.24);
    padding: 0.9rem 0;
    box-shadow: 0 14px 34px rgba(1, 6, 14, 0.42);
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(55, 229, 179, 0), rgba(55, 229, 179, 0.86), rgba(111, 124, 255, 0.85), rgba(55, 229, 179, 0));
    opacity: 0.75;
}

.navbar::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    pointer-events: none;
    border-image: linear-gradient(120deg, rgba(55, 229, 179, 0.22), rgba(111, 124, 255, 0.2), rgba(55, 229, 179, 0.18)) 1;
}

.navbar.scrolled {
    padding: 0.62rem 0;
    background: linear-gradient(140deg, rgba(7, 16, 31, 0.9), rgba(5, 11, 22, 0.88));
    border-bottom-color: rgba(55, 229, 179, 0.3);
    box-shadow: 0 16px 38px rgba(1, 6, 14, 0.56);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #021019;
    border-radius: 50%;
    font-size: 1.2rem;
    border: 1px solid rgba(230, 238, 255, 0.24);
    box-shadow: 0 0 0 1px rgba(55, 229, 179, 0.35), 0 8px 20px rgba(55, 229, 179, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo:hover .logo-text {
    transform: scale(1.08);
    box-shadow: 0 0 0 1px rgba(55, 229, 179, 0.5), 0 12px 26px rgba(55, 229, 179, 0.42), 0 0 24px rgba(111, 124, 255, 0.32);
}

.logo-text img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(2, 16, 25, 0.28));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    border-radius: 999px;
    transition: width 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -8px;
    right: -8px;
    top: -4px;
    bottom: -6px;
    border-radius: 8px;
    background: linear-gradient(120deg, rgba(55, 229, 179, 0.13), rgba(111, 124, 255, 0.12));
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

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

.nav-link:hover {
    color: transparent;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    -webkit-background-clip: text;
    background-clip: text;
    transform: translateY(-1px) scale(1.03);
}

.nav-link:hover::before,
.nav-link.active::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link.active {
    color: var(--accent-light);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color));
    margin: 4px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 16, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-gradient);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.22), transparent);
    border-radius: 50%;
    top: -50px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.2), transparent);
    border-radius: 50%;
    bottom: -50px;
    left: -100px;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.accent {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-container {
    height: 60px;
    margin: 1.5rem 0;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.typing-text {
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #021019;
    box-shadow: 0 8px 24px rgba(55, 229, 179, 0.28);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(55, 229, 179, 0.35);
}

.btn-secondary {
    background: rgba(111, 124, 255, 0.08);
    color: var(--accent-color);
    border: 1px solid rgba(55, 229, 179, 0.6);
}

.btn-secondary:hover {
    background: rgba(55, 229, 179, 0.18);
    color: var(--accent-light);
    box-shadow: 0 10px 25px rgba(55, 229, 179, 0.24);
}

.hero-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(111, 124, 255, 0.08);
    border: 1px solid rgba(55, 229, 179, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: rgba(55, 229, 179, 0.16);
    color: var(--accent-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(55, 229, 179, 0.25);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: slideInRight 0.8s ease;
}

.profile-image {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(55, 229, 179, 0.65);
    box-shadow: 0 26px 70px rgba(3, 8, 18, 0.75), 0 0 35px rgba(111, 124, 255, 0.18);
    animation: float 4s ease-in-out infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 8px;
    height: 12px;
    background: var(--accent-color);
    border-radius: 4px;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

/* ===========================
   SECTIONS GENERAL
   =========================== */

section {
    padding: 80px 0;
    position: relative;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about {
    background: linear-gradient(180deg, rgba(4, 9, 19, 0.92), rgba(4, 9, 19, 0.97));
}

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

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    background: rgba(8, 18, 36, 0.78);
    backdrop-filter: blur(14px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
}

.stat:hover {
    background: rgba(11, 25, 48, 0.9);
    transform: translateY(-5px);
    border-color: rgba(55, 229, 179, 0.58);
    box-shadow: 0 16px 34px rgba(4, 10, 22, 0.6);
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    margin: 0;
}

/* ===========================
   SKILLS SECTION
   =========================== */

.skills {
    background: linear-gradient(180deg, rgba(7, 14, 29, 0.92), rgba(7, 14, 29, 0.97));
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    left: -170px;
    top: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.2), transparent 70%);
    pointer-events: none;
    animation: skillsAuraFloat 14s ease-in-out infinite;
}

.skills::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.15), transparent 70%);
    pointer-events: none;
    animation: skillsAuraFloat 12s ease-in-out infinite reverse;
}

.skills .section-header {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.skills.active .section-header {
    opacity: 1;
    transform: translateY(0);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.skill-category {
    background: linear-gradient(150deg, rgba(13, 28, 52, 0.74), rgba(8, 18, 36, 0.68));
    backdrop-filter: blur(18px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(111, 124, 255, 0.28);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 14px 14px 30px rgba(3, 8, 18, 0.58), -10px -10px 24px rgba(17, 34, 64, 0.22), inset 0 1px 0 rgba(230, 238, 255, 0.06);
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(111, 124, 255, 0.2), rgba(55, 229, 179, 0.11), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(55, 229, 179, 0.95), rgba(111, 124, 255, 0.95), rgba(55, 229, 179, 0.95));
    opacity: 0.85;
    transform: scaleX(0.2);
    transform-origin: left center;
    transition: transform 0.35s ease;
}

.skill-category:hover {
    background: linear-gradient(150deg, rgba(16, 34, 61, 0.92), rgba(10, 22, 43, 0.9));
    border-color: var(--accent-color);
    box-shadow: 0 24px 44px rgba(4, 10, 22, 0.66), 0 0 30px rgba(55, 229, 179, 0.16), inset 0 0 0 1px rgba(111, 124, 255, 0.28);
    transform: translateY(-8px) scale(1.015);
}

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

.skill-category:hover::after {
    transform: scaleX(1);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.3rem;
    font-size: 1.18rem;
    letter-spacing: 0.25px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
    z-index: 1;
}

.skill-category-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.2), rgba(111, 124, 255, 0.25));
    border: 1px solid rgba(111, 124, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(230, 238, 255, 0.15);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.skill-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 9px 13px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.12), rgba(111, 124, 255, 0.13));
    border: 1px solid rgba(111, 124, 255, 0.38);
    color: var(--text-color);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    animation: skillPulse 3.4s ease-in-out infinite;
}

.skill-badge::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(230, 238, 255, 0.25), transparent);
    transform: translateX(-120%);
    transition: transform 0.5s ease;
}

.skill-badge:hover {
    transform: translateY(-3px) scale(1.03);
    border-color: rgba(55, 229, 179, 0.8);
    color: var(--accent-light);
    box-shadow: 0 10px 24px rgba(4, 10, 22, 0.55), 0 0 18px rgba(55, 229, 179, 0.2);
}

.skill-badge:hover::after {
    transform: translateX(120%);
}

.skill-badge-icon {
    width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(3, 10, 20, 0.42);
    border: 1px solid rgba(111, 124, 255, 0.28);
    font-size: 0.84rem;
}

.skill-badge-icon svg,
.skill-badge-icon img {
    width: 14px;
    height: 14px;
}

.skill-badge-icon svg {
    fill: currentColor;
}

.skill-badge-text {
    white-space: nowrap;
}

.skill-category:nth-child(1) .skill-badge:nth-child(odd) { animation-delay: 0.1s; }
.skill-category:nth-child(1) .skill-badge:nth-child(even) { animation-delay: 0.4s; }
.skill-category:nth-child(2) .skill-badge:nth-child(odd) { animation-delay: 0.2s; }
.skill-category:nth-child(2) .skill-badge:nth-child(even) { animation-delay: 0.5s; }
.skill-category:nth-child(3) .skill-badge:nth-child(3n) { animation-delay: 0.15s; }
.skill-category:nth-child(3) .skill-badge:nth-child(3n + 1) { animation-delay: 0.45s; }
.skill-category:nth-child(3) .skill-badge:nth-child(3n + 2) { animation-delay: 0.75s; }
.skill-category:nth-child(4) .skill-badge:nth-child(odd) { animation-delay: 0.25s; }
.skill-category:nth-child(4) .skill-badge:nth-child(even) { animation-delay: 0.55s; }

.skill-category:nth-child(3) .skill-badges {
    gap: 0.55rem;
}

.skill-category:nth-child(3) .skill-badge {
    padding: 7px 10px;
    font-size: 0.78rem;
}

/* ===========================
   PROJECTS SECTION
   =========================== */

.projects {
    background: linear-gradient(180deg, rgba(4, 9, 19, 0.95), rgba(5, 12, 24, 0.98));
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    right: -140px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    left: -130px;
    bottom: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.14), transparent 70%);
    pointer-events: none;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(345px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.project-card {
    background: rgba(8, 18, 36, 0.75);
    backdrop-filter: blur(16px);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    isolation: isolate;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(111, 124, 255, 0.2), rgba(55, 229, 179, 0.1) 35%, transparent 68%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
}

.project-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.5), rgba(111, 124, 255, 0.45), rgba(55, 229, 179, 0.32)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 2;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.012);
    border-color: var(--accent-color);
    box-shadow: 0 26px 50px rgba(4, 10, 22, 0.68), 0 0 26px rgba(55, 229, 179, 0.16);
}

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

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

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 7, 15, 0) 35%, rgba(2, 8, 18, 0.65) 100%);
    pointer-events: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
    filter: saturate(1.03) contrast(1.04);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
    filter: saturate(1.16) contrast(1.1);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.project-title {
    font-size: 1.35rem;
    color: var(--text-color);
    margin-bottom: 0.85rem;
    letter-spacing: 0.2px;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.tech-tag {
    background: rgba(55, 229, 179, 0.08);
    color: var(--accent-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25px;
    border: 1px solid rgba(55, 229, 179, 0.52);
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(55, 229, 179, 0.2);
    color: var(--accent-light);
    border-color: rgba(55, 229, 179, 0.8);
}

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

.project-link {
    color: var(--accent-light);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid rgba(111, 124, 255, 0.38);
    background: rgba(111, 124, 255, 0.09);
}

.project-link:hover {
    color: #031019;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(55, 229, 179, 0.28);
}

/* ===========================
   EXPERIENCE SECTION
   =========================== */

.experience {
    background: linear-gradient(180deg, rgba(7, 14, 29, 0.94), rgba(6, 12, 24, 0.98));
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color) 50%, transparent);
    transform: translateX(-50%);
}

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

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 6px var(--secondary-color), 0 0 0 8px var(--accent-color);
    z-index: 5;
}

.timeline-content {
    background: rgba(8, 18, 36, 0.76);
    backdrop-filter: blur(14px);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.experience-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    text-align: left;
}

.experience-header .experience-title {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.experience-header .experience-duration {
    margin-left: auto;
    margin-bottom: 0;
    text-align: right;
    white-space: nowrap;
}

.experience-company-inline {
    color: var(--text-color);
    font-weight: 600;
}

.timeline-content:hover {
    background: rgba(11, 24, 46, 0.9);
    border-color: var(--accent-color);
    box-shadow: 0 14px 30px rgba(4, 10, 22, 0.58);
}

.experience-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.experience-company {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.experience-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.experience-description {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 0.8rem;
    text-align: left;
}

/* ===========================
   CERTIFICATIONS SECTION
   =========================== */

.certifications {
    background: linear-gradient(180deg, rgba(4, 9, 19, 0.95), rgba(5, 12, 24, 0.98));
}

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

.certification-card {
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.08), rgba(111, 124, 255, 0.07));
    backdrop-filter: blur(14px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    cursor: pointer;
}

.cert-image {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid rgba(111, 124, 255, 0.35);
    background: radial-gradient(circle at 50% 0%, rgba(230, 238, 255, 0.12), transparent 60%);
}

.certification-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.45), rgba(111, 124, 255, 0.45), rgba(55, 229, 179, 0.35));
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.certification-card::after {
    content: '';
    position: absolute;
    top: -120%;
    left: -40%;
    width: 60%;
    height: 280%;
    background: linear-gradient(90deg, transparent, rgba(230, 238, 255, 0.24), transparent);
    transform: rotate(20deg);
    transition: left 0.55s ease;
    pointer-events: none;
}

.certification-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 24px 44px rgba(4, 10, 22, 0.64), 0 0 28px rgba(111, 124, 255, 0.2), inset 0 0 0 1px rgba(55, 229, 179, 0.2);
}

.certification-card:hover::before {
    opacity: 0.18;
}

.certification-card:hover::after {
    left: 130%;
}

.cert-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.certification-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-issuer {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.cert-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.certification-card:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* ===========================
   RESUME DOWNLOAD LOADING OVERLAY
   =========================== */

.resume-download-overlay {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.resume-download-overlay.open {
    display: flex;
}

.resume-download-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 5, 12, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.resume-download-panel {
    position: relative;
    z-index: 1;
    width: min(92vw, 400px);
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 18px;
    border: 1px solid rgba(111, 124, 255, 0.38);
    background: linear-gradient(155deg, rgba(10, 22, 44, 0.96), rgba(5, 12, 24, 0.98));
    box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 40px rgba(55, 229, 179, 0.12);
    text-align: center;
}

.resume-download-title {
    color: var(--text-color);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.resume-download-percent {
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.1rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.resume-download-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(111, 124, 255, 0.15);
    border: 1px solid rgba(111, 124, 255, 0.25);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.resume-download-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-color), var(--highlight-color), var(--accent-light));
    box-shadow: 0 0 18px rgba(55, 229, 179, 0.35);
    transition: width 0.05s linear;
}

.resume-download-hint {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-light);
}

/* ===========================
   CERTIFICATE MODAL
   =========================== */

.cert-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.cert-modal.open {
    display: block;
}

.cert-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(1, 5, 12, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cert-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(92vw, 820px);
    height: min(68vh, 620px);
    transform: translate(-50%, -50%);
    background: linear-gradient(155deg, rgba(8, 18, 36, 0.96), rgba(5, 12, 24, 0.98));
    border: 1px solid rgba(111, 124, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(55, 229, 179, 0.14);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.cert-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(111, 124, 255, 0.45);
    background: rgba(111, 124, 255, 0.15);
    color: #e6eeff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}

.cert-modal-close:hover {
    background: rgba(55, 229, 179, 0.22);
    border-color: rgba(55, 229, 179, 0.7);
    color: var(--accent-light);
}

.cert-modal-title {
    color: var(--accent-color);
    font-size: 1.05rem;
    margin: 0 0 0.75rem;
    padding-right: 2.5rem;
}

.cert-modal-image-wrap {
    flex: 1;
    min-height: 0;
    border-radius: 12px;
    border: 1px solid rgba(111, 124, 255, 0.28);
    background: rgba(2, 8, 16, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem;
}

.cert-modal-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* ===========================
   PRACTICE LABS SECTION
   =========================== */

.labs {
    background: linear-gradient(180deg, rgba(4, 9, 19, 0.96), rgba(5, 12, 24, 0.99));
    position: relative;
    overflow: hidden;
}

.labs::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -160px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.18), transparent 70%);
    pointer-events: none;
    animation: labsOrbFloat 14s ease-in-out infinite;
}

.labs::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    left: -140px;
    bottom: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.14), transparent 70%);
    pointer-events: none;
    animation: labsOrbFloat 12s ease-in-out infinite reverse;
}

.labs-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    perspective: 1100px;
}

.lab-card {
    background: linear-gradient(152deg, rgba(12, 28, 53, 0.82), rgba(7, 16, 32, 0.84));
    border-radius: 16px;
    padding: 1.6rem 1.7rem;
    border: 1px solid rgba(111, 124, 255, 0.3);
    box-shadow: 0 18px 38px rgba(4, 10, 22, 0.6), inset 0 1px 0 rgba(230, 238, 255, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    opacity: 0;
    transform: translateY(22px) scale(0.98);
}

.labs.active .lab-card {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.labs.active .lab-card:nth-child(1) { transition-delay: 0.05s; }
.labs.active .lab-card:nth-child(2) { transition-delay: 0.12s; }
.labs.active .lab-card:nth-child(3) { transition-delay: 0.19s; }
.labs.active .lab-card:nth-child(4) { transition-delay: 0.26s; }

.lab-card::before {
    content: '';
    position: absolute;
    inset: -120%;
    border-radius: 50%;
    background: conic-gradient(from 180deg, rgba(55, 229, 179, 0), rgba(55, 229, 179, 0.62), rgba(111, 124, 255, 0.58), rgba(55, 229, 179, 0));
    opacity: 0;
    animation: labsNeonOrbit 4.6s linear infinite;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.lab-card::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(55, 229, 179, 0.2), rgba(111, 124, 255, 0.22), transparent);
    transition: left 0.65s ease;
    pointer-events: none;
    z-index: 0;
}

.lab-card:hover {
    transform: translateY(-10px) rotateX(2deg) rotateY(-1deg);
    background: linear-gradient(152deg, rgba(15, 35, 65, 0.94), rgba(8, 19, 38, 0.92));
    border-color: rgba(55, 229, 179, 0.7);
    box-shadow: 0 28px 56px rgba(4, 10, 22, 0.72), 0 0 28px rgba(55, 229, 179, 0.26), 0 0 40px rgba(111, 124, 255, 0.12);
    animation: labsCardPulse 1.5s ease-in-out infinite;
}

.lab-card:hover::before {
    opacity: 0.26;
}

.lab-card:hover::after {
    left: 145%;
}

.lab-name {
    color: var(--accent-color);
    font-size: 1.08rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.2px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 0 rgba(55, 229, 179, 0);
    transition: text-shadow 0.3s ease;
}

.lab-card:hover .lab-name {
    animation: labsTextGlitch 0.85s steps(2, end) infinite;
    text-shadow: -1px 0 rgba(55, 229, 179, 0.75), 1px 0 rgba(111, 124, 255, 0.7);
}

.lab-description {
    color: var(--text-light);
    font-size: 0.96rem;
    margin-bottom: 0.6rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.lab-meta {
    color: #a7b9dd;
    font-size: 0.86rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

@keyframes labsOrbFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-16px) scale(1.04);
    }
}

@keyframes labsNeonOrbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes labsCardPulse {
    0%, 100% {
        box-shadow: 0 28px 56px rgba(4, 10, 22, 0.72), 0 0 22px rgba(55, 229, 179, 0.2), 0 0 32px rgba(111, 124, 255, 0.1);
    }
    50% {
        box-shadow: 0 30px 58px rgba(4, 10, 22, 0.74), 0 0 34px rgba(55, 229, 179, 0.3), 0 0 46px rgba(111, 124, 255, 0.17);
    }
}

@keyframes labsTextGlitch {
    0%, 100% {
        transform: translate(0, 0);
        text-shadow: -1px 0 rgba(55, 229, 179, 0.75), 1px 0 rgba(111, 124, 255, 0.7);
    }
    20% {
        transform: translate(-0.5px, 0.2px);
        text-shadow: -2px 0 rgba(55, 229, 179, 0.85), 2px 0 rgba(111, 124, 255, 0.78);
    }
    40% {
        transform: translate(0.6px, -0.2px);
        text-shadow: -1px 0 rgba(111, 124, 255, 0.7), 1px 0 rgba(55, 229, 179, 0.82);
    }
    60% {
        transform: translate(-0.4px, 0.3px);
        text-shadow: -2px 0 rgba(55, 229, 179, 0.7), 2px 0 rgba(111, 124, 255, 0.85);
    }
    80% {
        transform: translate(0.4px, -0.3px);
        text-shadow: -1px 0 rgba(55, 229, 179, 0.8), 1px 0 rgba(111, 124, 255, 0.7);
    }
}

/* ===========================
   EXTRA CERTIFICATES SECTION
   =========================== */

.extra-certificates {
    background: linear-gradient(180deg, rgba(7, 14, 29, 0.95), rgba(6, 12, 24, 0.98));
    position: relative;
    overflow: hidden;
}

.extra-certificates::before {
    content: '';
    position: absolute;
    width: 430px;
    height: 430px;
    right: -140px;
    top: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.extra-certificates::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    left: -130px;
    bottom: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.14), transparent 72%);
    pointer-events: none;
}

.extra-cert-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.4rem;
}

.extra-cert-card {
    background: linear-gradient(150deg, rgba(11, 25, 48, 0.8), rgba(7, 16, 32, 0.82));
    border: 1px solid rgba(111, 124, 255, 0.28);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: 0 16px 34px rgba(4, 10, 22, 0.58), inset 0 1px 0 rgba(230, 238, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.extra-cert-card:hover {
    transform: translateY(-6px);
    border-color: rgba(55, 229, 179, 0.58);
    box-shadow: 0 22px 42px rgba(4, 10, 22, 0.66), 0 0 22px rgba(55, 229, 179, 0.18);
}

.extra-cert-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.12rem;
    margin-bottom: 0.7rem;
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.24), rgba(111, 124, 255, 0.26));
    border: 1px solid rgba(111, 124, 255, 0.36);
}

.extra-cert-card h3 {
    color: var(--accent-color);
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
}

.extra-cert-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 0.7rem;
}

.extra-cert-hint {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #021019;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    border-radius: 999px;
    padding: 4px 10px;
}

/* ===========================
   EDUCATION SECTION
   =========================== */

.education {
    background: linear-gradient(180deg, rgba(7, 14, 29, 0.94), rgba(6, 12, 24, 0.98));
}

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

.education-card {
    background: rgba(8, 18, 36, 0.76);
    backdrop-filter: blur(14px);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.education-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(111, 124, 255, 0.18), rgba(55, 229, 179, 0.06) 45%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease, transform 0.35s ease;
    transform: translateY(10px);
    z-index: 0;
    pointer-events: none;
}

.education-card::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -70px;
    width: 170px;
    height: 170px;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.35), rgba(55, 229, 179, 0) 70%);
    transform: translateX(-50%) scale(0.5);
    transition: transform 0.45s ease, opacity 0.45s ease;
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

.education-card:hover {
    border-color: var(--accent-color);
    background: linear-gradient(180deg, rgba(12, 25, 48, 0.95), rgba(8, 19, 37, 0.92));
    transform: translateY(-8px);
    box-shadow: 0 26px 46px rgba(4, 10, 22, 0.68), 0 0 0 1px rgba(55, 229, 179, 0.2);
}

.education-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.education-card:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.education-level {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.education-school {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.education-university {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.education-info {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact {
    background: linear-gradient(180deg, rgba(4, 9, 19, 0.95), rgba(5, 12, 24, 0.98));
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(8, 18, 36, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    min-height: 100%;
    box-shadow: 0 18px 38px rgba(4, 10, 22, 0.55);
}

.contact-panel-header {
    padding: 0.3rem 0.2rem 0.8rem;
    border-bottom: 1px solid rgba(111, 124, 255, 0.24);
    margin-bottom: 0.3rem;
}

.contact-panel-header h3 {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.contact-panel-header p {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.6;
    margin: 0;
}

.contact-item {
    background: rgba(11, 24, 46, 0.68);
    padding: 1.1rem 1.2rem;
    border-radius: 10px;
    border: 1px solid rgba(111, 124, 255, 0.25);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(14, 31, 57, 0.92);
    border-color: rgba(55, 229, 179, 0.6);
    transform: translateY(-2px);
}

.contact-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

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

.social-link {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(55, 229, 179, 0.08);
    border: 1px solid rgba(55, 229, 179, 0.5);
    color: var(--accent-color);
    border-radius: 999px;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: rgba(55, 229, 179, 0.18);
    color: var(--accent-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(8, 18, 36, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    min-height: 100%;
    box-shadow: 0 18px 38px rgba(4, 10, 22, 0.55);
}

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

.form-input {
    padding: 13px 16px;
    background: rgba(8, 18, 36, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(11, 24, 46, 0.94);
    box-shadow: 0 0 0 3px rgba(55, 229, 179, 0.14);
}

.form-input.textarea {
    resize: vertical;
    font-family: inherit;
}

.contact-form .btn {
    margin-top: 0.35rem;
    width: 100%;
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: rgba(6, 12, 24, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 3.4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    margin-bottom: 2.2rem;
    align-items: start;
    justify-items: center;
}

.footer-section {
    background: rgba(8, 18, 36, 0.58);
    border: 1px solid rgba(111, 124, 255, 0.2);
    border-radius: 12px;
    padding: 1.25rem 1.3rem;
    min-height: 100%;
}

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

.footer-connect .footer-social {
    justify-content: center;
}

.footer-brand h3 {
    font-size: 1.28rem;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.94rem;
    line-height: 1.7;
    margin: 0;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer-social a {
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid rgba(55, 229, 179, 0.35);
    background: rgba(55, 229, 179, 0.08);
}

.footer-social a:hover {
    color: #031019;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
}

.footer-bottom {
    text-align: center;
    padding-top: 1.4rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.92rem;
}

/* ===========================
   SCROLL TO TOP BUTTON
   =========================== */

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: #021019;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
    box-shadow: 0 10px 26px rgba(55, 229, 179, 0.3);
}

.scroll-top.show {
    display: flex;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(55, 229, 179, 0.42);
}

/* ===========================
   ANIMATIONS
   =========================== */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skillPulse {
    0%, 100% {
        box-shadow: 0 0 0 rgba(55, 229, 179, 0);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(55, 229, 179, 0.08);
    }
}

@keyframes skillsAuraFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.04);
    }
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
    }

    .timeline-marker {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 12px;
        flex-direction: column;
        background: linear-gradient(155deg, rgba(8, 18, 36, 0.92), rgba(6, 14, 28, 0.9));
        width: min(82vw, 340px);
        border: 1px solid rgba(111, 124, 255, 0.34);
        border-radius: 16px;
        text-align: left;
        transition: right 0.3s ease;
        gap: 1rem;
        padding: 1.35rem;
        box-shadow: 0 24px 45px rgba(2, 8, 16, 0.72);
        backdrop-filter: blur(14px);
        z-index: 1001;
    }

    .nav-menu.active {
        right: 12px;
    }

    .hamburger {
        display: flex;
        padding: 0.35rem;
        border-radius: 8px;
        border: 1px solid rgba(111, 124, 255, 0.3);
        background: rgba(8, 18, 36, 0.65);
    }

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

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

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

    .nav-link {
        padding: 0.4rem 0.2rem;
        font-size: 0.96rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .typing-container {
        font-size: 1.4rem;
        height: 45px;
    }

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

    .profile-image {
        width: 250px;
        height: 250px;
    }

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

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

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

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

    .hero::before {
        width: 250px;
        height: 250px;
        right: -50px;
        top: 0;
    }

    .hero::after {
        width: 200px;
        height: 200px;
        bottom: 0;
        left: -50px;
    }
}

@media (max-width: 480px) {
    :root {
        --transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .container {
        padding: 0 15px;
    }

    .nav-menu {
        top: 10px;
        width: calc(100vw - 20px);
        right: -110%;
        padding: 1.1rem;
        gap: 0.7rem;
    }

    .nav-menu.active {
        right: 10px;
    }

    .nav-link {
        padding: 0.45rem 0.2rem;
    }

    .hero {
        padding-top: 70px;
        min-height: auto;
    }

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

    .typing-container {
        font-size: 1.1rem;
        height: auto;
        margin: 1rem 0;
    }

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

    .hero-buttons {
        flex-direction: column;
        justify-content: stretch;
    }

    .btn {
        width: 100%;
    }

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

    .profile-image {
        width: 200px;
        height: 200px;
    }

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

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

    .projects-grid {
        gap: 1.5rem;
    }

    .project-card {
        height: auto;
    }

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

    .timeline-marker {
        left: 20px;
        width: 16px;
        height: 16px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }

    .certification-card,
    .education-card,
    .contact-item {
        padding: 1.5rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }
}

/* ===========================
   REVEAL ON SCROLL
   =========================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ===========================
   PREMIUM ABOUT / CONTACT / FOOTER OVERRIDES
   =========================== */

.about {
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    right: -160px;
    top: -130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-glass {
    display: block;
    background: linear-gradient(145deg, rgba(9, 21, 40, 0.72), rgba(8, 18, 36, 0.62));
    border: 1px solid rgba(111, 124, 255, 0.25);
    border-radius: 24px;
    padding: 1.6rem;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 54px rgba(4, 10, 22, 0.6), inset 0 1px 0 rgba(230, 238, 255, 0.06);
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about.active .about-glass {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    font-size: 1.02rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.9;
}

.contact {
    background: linear-gradient(180deg, rgba(4, 9, 19, 0.96), rgba(5, 12, 24, 0.99));
}

.contact::after {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    left: -150px;
    bottom: -170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.14), transparent 70%);
    pointer-events: none;
}

.contact-content {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.contact.active .contact-content {
    opacity: 1;
    transform: translateY(0);
}

.contact-info,
.contact-form {
    border-radius: 18px;
    border: 1px solid rgba(111, 124, 255, 0.28);
    background: linear-gradient(150deg, rgba(10, 23, 43, 0.76), rgba(8, 18, 36, 0.72));
    box-shadow: 0 22px 48px rgba(4, 10, 22, 0.58), inset 0 1px 0 rgba(230, 238, 255, 0.07);
}

.contact-panel-header h3 {
    font-size: 1.26rem;
}

.contact-item {
    border-radius: 12px;
}

.contact-item h3 {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.contact-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(111, 124, 255, 0.18);
    border: 1px solid rgba(111, 124, 255, 0.3);
}

.social-link {
    border-radius: 10px;
    padding: 8px 12px;
}

.form-group {
    position: relative;
}

.form-input {
    padding: 18px 14px 10px;
    border-radius: 10px;
}

.form-label {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #8ea3c6;
    font-size: 0.92rem;
    pointer-events: none;
    transition: all 0.25s ease;
    background: transparent;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: 5px;
    font-size: 0.73rem;
    color: var(--accent-color);
}

.contact-form .btn {
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    border: 1px solid rgba(55, 229, 179, 0.3);
}

.contact-form .btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 30px rgba(55, 229, 179, 0.34);
}

.form-status {
    min-height: 20px;
    font-size: 0.86rem;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}

.form-status.show {
    opacity: 1;
    transform: translateY(0);
}

.form-status.success {
    color: #69f0cd;
}

.form-status.error {
    color: #ff8aa5;
}

footer {
    position: relative;
    background: linear-gradient(180deg, rgba(6, 12, 24, 0.96), rgba(4, 9, 19, 0.98));
}

footer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, rgba(55, 229, 179, 0), rgba(55, 229, 179, 0.9), rgba(111, 124, 255, 0.9), rgba(55, 229, 179, 0));
}

.footer-content {
    grid-template-columns: 1.5fr auto;
    align-items: center;
    justify-content: space-between;
}

.footer-section {
    border-radius: 14px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.footer-section:hover {
    transform: translateY(-4px);
    border-color: rgba(55, 229, 179, 0.45);
    box-shadow: 0 14px 30px rgba(4, 10, 22, 0.5);
}

.footer-section h3 {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(111, 124, 255, 0.22);
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.04rem;
}

.footer-top-link {
    margin-top: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-top-link:hover {
    color: var(--accent-light);
    transform: translateY(-2px);
}

.footer-connect {
    justify-self: end;
}

.footer-connect h3 {
    text-align: right;
}

.footer-connect .footer-social {
    justify-content: flex-end;
}

/* Center Connect box when it's the only footer section */
.footer-content:has(> .footer-connect:only-child) {
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
}

.footer-content:has(> .footer-connect:only-child) .footer-connect {
    justify-self: center;
    text-align: center;
}

.footer-content:has(> .footer-connect:only-child) .footer-connect h3 {
    text-align: center;
}

.footer-content:has(> .footer-connect:only-child) .footer-connect .footer-social {
    justify-content: center;
}

@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }
}

@media (max-width: 768px) {
    .about-glass {
        padding: 1.2rem;
        border-radius: 18px;
    }

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

    .footer-connect {
        justify-self: stretch;
    }

    .footer-connect h3 {
        text-align: left;
    }

    .footer-connect .footer-social {
        justify-content: flex-start;
    }
}

/* ===========================
   PREMIUM EDUCATION TIMELINE
   =========================== */

.education {
    position: relative;
    overflow: hidden;
}

.education::before {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    left: -150px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(111, 124, 255, 0.16), transparent 70%);
    pointer-events: none;
}

.education::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    bottom: -150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(55, 229, 179, 0.14), transparent 70%);
    pointer-events: none;
}

.education-grid {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 1;
}

.education-line {
    position: absolute;
    left: 50%;
    top: 18px;
    bottom: 18px;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(55, 229, 179, 0.2), rgba(111, 124, 255, 0.82), rgba(55, 229, 179, 0.2));
    border-radius: 999px;
    box-shadow: 0 0 14px rgba(111, 124, 255, 0.28);
}

.education-step {
    position: relative;
    display: flex;
    width: 50%;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(18px);
    animation: fadeInUp 0.55s ease forwards;
}

.education-step-left {
    align-self: flex-start;
    justify-content: flex-end;
    padding-right: 2rem;
}

.education-step-right {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 2rem;
}

.education-step:nth-of-type(2) { animation-delay: 0.08s; }
.education-step:nth-of-type(3) { animation-delay: 0.16s; }
.education-step:nth-of-type(4) { animation-delay: 0.24s; }

.education-node {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--highlight-color));
    border: 1px solid rgba(230, 238, 255, 0.4);
    box-shadow: 0 0 0 4px rgba(55, 229, 179, 0.14), 0 0 18px rgba(111, 124, 255, 0.42);
    transform: translateY(-50%);
    animation: eduNodePulse 2.4s ease-in-out infinite;
}

.education-step-left .education-node {
    right: -6px;
}

.education-step-right .education-node {
    left: -6px;
}

.education-card {
    width: min(100%, 440px);
    min-height: 180px;
    background: linear-gradient(145deg, rgba(12, 26, 49, 0.72), rgba(7, 16, 30, 0.7));
    border: 1px solid rgba(111, 124, 255, 0.28);
    border-radius: 22px;
    padding: 1.2rem 1.25rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 14px 30px rgba(3, 8, 18, 0.56), inset 0 1px 0 rgba(230, 238, 255, 0.06);
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.education-step:hover .education-card {
    transform: translateY(-5px);
    border-color: rgba(55, 229, 179, 0.45);
    box-shadow: 0 18px 36px rgba(3, 8, 18, 0.64), 0 0 18px rgba(111, 124, 255, 0.16);
}

.education-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.education-year {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.25px;
    border-radius: 999px;
    color: #d8faff;
    background: linear-gradient(135deg, rgba(55, 229, 179, 0.2), rgba(111, 124, 255, 0.2));
    border: 1px solid rgba(55, 229, 179, 0.38);
}

.education-badge {
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.25px;
    border-radius: 999px;
    color: #021019;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    box-shadow: 0 8px 18px rgba(55, 229, 179, 0.3);
}

.education-level {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--text-color);
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.education-level-icon {
    width: 28px;
    height: 28px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(111, 124, 255, 0.22);
    border: 1px solid rgba(111, 124, 255, 0.32);
}

.education-school {
    color: #cfe0ff;
    margin-bottom: 0.3rem;
}

.education-university {
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.education-info {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

@keyframes eduNodePulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(55, 229, 179, 0.14), 0 0 16px rgba(111, 124, 255, 0.35);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(55, 229, 179, 0.08), 0 0 20px rgba(111, 124, 255, 0.45);
    }
}

@media (max-width: 900px) {
    .education-line {
        left: 12px;
        transform: none;
    }

    .education-step,
    .education-step-left,
    .education-step-right {
        width: 100%;
        align-self: stretch;
        justify-content: flex-start;
        padding: 0 0 0 2rem;
    }

    .education-step-left .education-node,
    .education-step-right .education-node {
        left: 6px;
        right: auto;
    }

    .education-card {
        width: 100%;
        min-height: auto;
    }
}
