:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #e5e7eb;
    --text-color: #cbd5e1;
    --text-light: #94a3b8;
    --border-color: rgba(148, 163, 184, 0.18);
    --bg-color: #0b1120;
    --bg-soft: #111827;
    --panel-color: #0f172a;
    --panel-alt: #131c31;
    --white: #ffffff;
    --success: #22c55e;
    --error: #ef4444;
    --shadow-sm: 0 10px 25px rgba(0, 0, 0, 0.28);
    --shadow-md: 0 20px 45px rgba(0, 0, 0, 0.35);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
    --font-body: "Inter", sans-serif;
    --max-width: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 28%),
        linear-gradient(180deg, #0b1120 0%, #0a0f1c 100%);
    line-height: 1.65;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
}

.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    border-bottom-color: rgba(148, 163, 184, 0.14);
    background: rgba(11, 17, 32, 0.94);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 0.97rem;
    font-weight: 600;
    color: #dbeafe;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

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

.hamburger {
    display: none;
    border: none;
    background: transparent;
    cursor: pointer;
}

.bar {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    border-radius: 999px;
    background: #f8fafc;
    transition: var(--transition);
}

.hero {
    padding: 150px 0 90px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(17, 24, 39, 0.55) 0%, rgba(11, 17, 32, 0) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.hero-text h1 {
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    line-height: 1.02;
    color: #f8fafc;
    letter-spacing: -0.05em;
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 720px;
}

.hero-description {
    max-width: 640px;
    font-size: 1.05rem;
    margin-bottom: 34px;
    color: var(--text-color);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.hero-highlights li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.hero-highlights i {
    color: var(--primary-color);
}

.hero-image {
    display: flex;
    justify-content: center;
    opacity: 0.8;
}

.profile-card {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1.08;
    overflow: hidden;
    border-radius: 28px;
    background: #172554;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

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

.section {
    padding: 100px 0;
}

.section-alt {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(148, 163, 184, 0.06);
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.section-heading {
    margin-bottom: 50px;
    text-align: center;
}

.section-label {
    color: #93c5fd;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-heading h2 {
    color: #f8fafc;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.about-card,
.service-card,
.skill-card,
.project-card,
.timeline-content,
.contact-info,
.contact-form {
    background: linear-gradient(180deg, rgba(19, 28, 49, 0.92) 0%, rgba(15, 23, 42, 0.96) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.about-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px;
    border-radius: var(--radius-lg);
}

.about-card p + p {
    margin-top: 18px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.22);
}

.service-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.service-card h3 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    padding: 30px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.22);
}

.skill-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.skill-card h3 {
    color: #f8fafc;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(59, 130, 246, 0.22);
}

.project-image {
    height: 240px;
    background: #1e293b;
}

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

.project-body {
    padding: 26px;
}

.project-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid rgba(59, 130, 246, 0.18);
}

.project-body h3 {
    font-size: 1.25rem;
    color: #f8fafc;
    margin-bottom: 10px;
}

.project-body p {
    color: var(--text-light);
}

.project-points {
    margin-top: 16px;
    padding-left: 18px;
    list-style: disc;
    color: var(--text-color);
}

.project-points li + li {
    margin-top: 8px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: #93c5fd;
    font-weight: 700;
}

.project-link:hover {
    gap: 12px;
    color: #bfdbfe;
}

.timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 2px;
    height: calc(100% - 8px);
    background: rgba(148, 163, 184, 0.24);
}

.timeline-item {
    position: relative;
    padding-left: 12px;
    margin-bottom: 40px;
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    top: 4px;
    left: -36px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.14);
}

.timeline-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: #93c5fd;
    margin-bottom: 8px;
}

.timeline-content {
    border-radius: var(--radius-md);
    padding: 24px;
}

.timeline-content h3 {
    color: #f8fafc;
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.timeline-content h4 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 12px;
}

.timeline-list {
    list-style: disc;
    padding-left: 18px;
}

.timeline-list li + li {
    margin-top: 8px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: start;
}

.contact-info,
.contact-form {
    border-radius: var(--radius-lg);
    padding: 34px;
}

.contact-info h3 {
    font-size: 1.35rem;
    color: #f8fafc;
    margin-bottom: 14px;
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    color: var(--text-color);
}

.contact-item i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
}

.contact-item a:hover {
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #e2e8f0;
    font-weight: 600;
    margin-bottom: 8px;
}

input,
textarea {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.88);
    transition: var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

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

input:focus,
textarea:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.form-feedback {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-feedback.success {
    color: var(--success);
}

.form-feedback.error {
    color: var(--error);
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
}

.btn-secondary:hover {
    border-color: rgba(59, 130, 246, 0.45);
    color: #ffffff;
    background: rgba(59, 130, 246, 0.06);
}

.btn-full {
    width: 100%;
}

.footer {
    padding: 28px 0;
    background: #08101f;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
}

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

@media (max-width: 992px) {
    .hero-content,
    .contact-wrapper,
    .projects-grid,
    .skills-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 130px;
    }

    .hero-image {
        order: -1;
    }

    .profile-card {
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1100;
    }

    .navbar {
        position: fixed;
        top: 82px;
        right: -100%;
        width: min(82vw, 320px);
        height: calc(100vh - 82px);
        background: rgba(11, 17, 32, 0.98);
        backdrop-filter: blur(10px);
        border-left: 1px solid rgba(148, 163, 184, 0.14);
        transition: var(--transition);
        padding: 28px;
    }

    .navbar.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .section {
        padding: 80px 0;
    }

    .about-card,
    .contact-info,
    .contact-form,
    .timeline-content,
    .service-card,
    .skill-card {
        padding: 24px;
    }

    .timeline {
        padding-left: 24px;
    }

    .timeline-item::before {
        left: -30px;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .hero-text h2 {
        font-size: 1.1rem;
    }

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

    .hero-highlights {
        flex-direction: column;
        gap: 12px;
    }

    .project-image {
        height: 210px;
    }
}