/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #f8fafc;
    --secondary-bg: #eef2f7;
    --card-bg: rgba(255, 255, 255, 0.92);
    --navy-blue: #0f172a;
    --bright-blue: #2563eb;
    --accent-blue: #1d4ed8;
    --accent-light: #60a5fa;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --gradient-1: linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #2563eb 100%);
    --gradient-2: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
    --gradient-3: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
    --shadow-soft: rgba(15, 23, 42, 0.08);
    --shadow-medium: rgba(15, 23, 42, 0.14);
    --border-color: rgba(148, 163, 184, 0.28);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 32rem),
        linear-gradient(180deg, #ffffff 0%, var(--primary-bg) 42%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4,
.nav-logo,
.hero-title,
.section-title,
.category-title,
.timeline-title,
.education-degree,
.education-year,
.stat-number,
.stat-label,
.btn {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    letter-spacing: 0.02em;
}

p, li, .about-text, .timeline-description, .education-description, .contact-intro, .contact-text p {
    font-size: 0.98rem;
    line-height: 1.8;
}

body.loading {
    overflow: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.22), transparent 34%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 32%),
        linear-gradient(135deg, #f8fafc 0%, #eef4fb 48%, #e2e8f0 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.preloader-inner {
    width: min(420px, calc(100vw - 48px));
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(30, 41, 59, 0.14);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.preloader-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-2);
}

.loader-eyebrow {
    margin-top: 0.4rem;
    margin-bottom: 0.35rem;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.loader-title {
    color: var(--text-primary);
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.loader-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.96rem;
}

#progress-value {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.9rem;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-2);
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.5);
    transition: width 0.12s ease-out;
}

.preloader-hide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.82);
    backdrop-filter: blur(18px);
    z-index: 1000;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.nav-logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    justify-self: start;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.35rem;
    justify-content: center;
    justify-self: center;
    padding: 0.35rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    transition: color 0.3s ease, background 0.3s ease;
    position: relative;
}

.nav-link::after {
    display: none;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(37, 99, 235, 0.08);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    justify-self: end;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 110px 0 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.42;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.55) 0%, rgba(96, 165, 250, 0.36) 52%, transparent 72%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.22) 0%, rgba(59, 130, 246, 0.2) 58%, transparent 75%);
    bottom: -150px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(219, 234, 254, 0.9) 0%, rgba(191, 219, 254, 0.45) 100%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 860px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 32px;
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(18px);
}

.hero-image-container {
    margin-bottom: 2rem;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    width: 184px;
    height: 184px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: linear-gradient(135deg, #ffffff, #dbeafe);
    padding: 4px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: contrast(1.1) brightness(1.02);
}

.image-border {
    display: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.08;
}

.title-line {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.title-name {
    display: block;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.95rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-block;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.btn-primary {
    background: var(--gradient-2);
    color: #ffffff;
    border-color: var(--accent-blue);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-blue);
    border-color: rgba(37, 99, 235, 0.28);
}

.btn-secondary:hover {
    background: rgba(239, 246, 255, 0.95);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--accent-blue);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Sections */
.section {
    padding: 6.5rem 0;
    position: relative;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 999px;
}

.section-intro {
    max-width: 760px;
    margin: -2rem auto 3rem;
    color: var(--text-secondary);
    text-align: center;
}

/* About Section */
.about-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, var(--secondary-bg) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px;
    filter: contrast(1.05) brightness(1.02);
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: 0 24px 70px var(--shadow-medium);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.about-intro {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 28px var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 18px 42px var(--shadow-medium);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Experience Section */
.experience-section {
    background: var(--secondary-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-2);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    border: 4px solid var(--primary-bg);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 32px var(--shadow-soft);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 20px 48px var(--shadow-medium);
}

.timeline-date {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-company {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
}

.timeline-skills li {
    padding: 0.4rem 0.8rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.4);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

/* Projects Section */
.projects-section {
    background: linear-gradient(180deg, var(--secondary-bg) 0%, #ffffff 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 22px;
    box-shadow: 0 12px 34px var(--shadow-soft);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-blue);
    box-shadow: 0 24px 56px var(--shadow-medium);
}

.project-header {
    margin-bottom: 1rem;
}

.project-type {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.35rem 0.75rem;
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.project-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    line-height: 1.35;
}

.project-description {
    flex: 1;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tech span {
    padding: 0.35rem 0.7rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.project-link {
    margin-top: auto;
    color: var(--accent-blue);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link:hover {
    color: var(--bright-blue);
    text-decoration: underline;
}

.projects-footer {
    margin-top: 3rem;
    text-align: center;
}

.projects-toggle {
    cursor: pointer;
}

.all-projects-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: max-height 0.7s ease, opacity 0.4s ease, transform 0.4s ease;
}

.all-projects-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 3rem;
}

.all-projects-header {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.all-projects-header h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.all-projects-header p {
    color: var(--text-secondary);
}

.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.repo-card {
    display: block;
    padding: 1.35rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: 0 10px 26px var(--shadow-soft);
    color: inherit;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.repo-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
    box-shadow: 0 18px 42px var(--shadow-medium);
}

.repo-language {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--accent-blue);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.repo-card h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.repo-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Education Section */
.education-section {
    background: var(--primary-bg);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.education-card {
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 34px var(--shadow-soft);
    text-align: center;
    transition: all 0.3s ease;
}

.education-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 24px 56px var(--shadow-medium);
}

.education-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.education-icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.education-year {
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.education-degree {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.education-university {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Skills Section */
.skills-section {
    background: var(--secondary-bg);
}

.skills-container {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 12px 34px var(--shadow-soft);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--text-primary);
    text-align: left;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 100%;
    padding: 1.2rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-item:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 14px 30px var(--shadow-soft);
}

.skill-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.skill-name {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1rem;
}

.skill-level {
    flex: 0 0 auto;
    padding: 0.25rem 0.65rem;
    background: rgba(37, 99, 235, 0.09);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    color: var(--accent-blue);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.skill-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(180deg, #ffffff 0%, var(--secondary-bg) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 26px var(--shadow-soft);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(8px);
    border-color: var(--accent-blue);
    box-shadow: 0 18px 42px var(--shadow-medium);
}

.contact-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-image {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.contact-text h4 {
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-text a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-text a:hover {
    color: var(--bright-blue);
    text-decoration: underline;
}

.contact-form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 48px var(--shadow-soft);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.form-status.success,
.form-status.is-success {
    color: #16a34a;
}

.form-status.error,
.form-status.is-error {
    color: #dc2626;
}

.form-status.is-info {
    color: var(--accent-blue);
}

/* Footer */
.footer {
    background: #e2e8f0;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-container {
        grid-template-columns: 1fr auto;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 1.5rem 1rem;
        border-top: 1px solid var(--border-color);
        border-radius: 0 0 24px 24px;
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
        justify-self: stretch;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-content {
        margin: 0 1rem;
        padding: 2rem;
        border-radius: 24px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-img {
        height: 400px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 3rem;
    }

    .timeline-marker {
        left: 20px;
    }

    .timeline-content {
        width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 568px) {
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    .hero {
        padding-top: 95px;
    }

    .hero-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .title-line {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .education-grid {
        grid-template-columns: 1fr;
    }
}
