:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --card: rgba(255, 255, 255, 0.05);
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --white: #ffffff;
    --accent: #22d3ee;
    --accent-2: #2563eb;
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
            radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.12), transparent 18%),
            radial-gradient(circle at 90% 20%, rgba(37, 99, 235, 0.12), transparent 20%),
            radial-gradient(circle at 50% 100%, rgba(99, 102, 241, 0.08), transparent 18%),
            var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: min(100% - 2rem, var(--container));
    margin: 0 auto;
}

.section {
    padding: 90px 0;
}

.alt-bg {
    background: rgba(255, 255, 255, 0.02);
}

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(16px);
    background: rgba(2, 6, 23, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo,
.fallback-logo {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #020617;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 35px rgba(34, 211, 238, 0.25);
}

.brand-name {
    font-weight: 700;
    color: var(--white);
}

.brand-role {
    font-size: 0.9rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 1.6rem;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.nav-links a:hover,
.footer-links a:hover {
    color: var(--accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 16px;
    font-weight: 700;
    transition: 0.25s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #67e8f9);
    color: #020617;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hero-grid,
.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 1.08;
    color: var(--white);
    margin: 1.2rem 0;
}

.status-badge,
.section-tag,
.badge,
.badge-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.status-badge,
.section-tag {
    background: rgba(34, 211, 238, 0.12);
    color: #a5f3fc;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.hero-text,
.section-heading p,
.project-desc,
.muted,
.hero-meta {
    color: var(--muted);
}

.hero-text {
    max-width: 760px;
    font-size: 1.08rem;
}

.hero-actions,
.hero-meta,
.badge-wrap,
.project-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions {
    margin: 2rem 0;
}

.hero-meta {
    gap: 20px;
    font-size: 0.95rem;
}

.profile-card,
.card {
    border: 1px solid var(--card-border);
    background: var(--card);
    backdrop-filter: blur(12px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.profile-card {
    overflow: hidden;
    min-height: 620px;
}

.profile-image,
.profile-fallback {
    width: 100%;
    height: 100%;
    min-height: 620px;
}

.profile-image {
    object-fit: cover;
}

.profile-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.card-padding {
    padding: 2rem;
}

.section-heading {
    margin-bottom: 3rem;
}

.section-heading h2 {
    margin-top: 14px;
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--white);
}

.stats-grid,
.skills-grid,
.project-grid {
    display: grid;
    gap: 1.5rem;
}

.stats-grid {
    grid-template-columns: repeat(2, 1fr);
}

.skills-grid,
.project-grid {
    grid-template-columns: repeat(2, 1fr);
}

.stat-card h3,
.card h3,
.education-box h4 {
    color: var(--white);
}

.stat-card h3 {
    font-size: 2rem;
}

.stat-card p {
    margin-top: 8px;
    color: var(--muted);
}

.badge,
.badge-dark {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbeafe;
}

.highlight {
    color: #67e8f9;
    margin-top: 6px;
}

.row-between,
.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.points-list,
.achievement-list,
.contact-list,
.contact-form,
.stack-layout {
    display: flex;
    flex-direction: column;
}

.stack-layout,
.achievement-list,
.contact-list {
    gap: 1.5rem;
}

.points-list {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
    gap: 0.9rem;
    color: #cbd5e1;
}

.points-list li::marker {
    color: var(--accent);
}

.achievement-item,
.contact-item,
.education-box {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
}

.achievement-item,
.contact-item {
    display: flex;
    gap: 14px;
    padding: 1rem 1.1rem;
}

.achievement-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    margin-top: 8px;
    flex-shrink: 0;
}

.contact-item {
    flex-direction: column;
}

.contact-item strong {
    color: var(--white);
}

.contact-item span {
    color: var(--muted);
}

.contact-item:hover {
    border-color: rgba(34, 211, 238, 0.25);
}

.contact-form {
    gap: 1rem;
    margin-top: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--white);
    font: inherit;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.mt-16 {
    margin-top: 1rem;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 0;
    color: var(--muted);
}

@media (max-width: 1024px) {
    .hero-grid,
    .about-grid,
    .contact-grid,
    .skills-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        min-height: 520px;
    }

    .profile-image,
    .profile-fallback {
        min-height: 520px;
    }
}

@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .section {
        padding: 72px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .row-between,
    .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-meta {
        flex-direction: column;
        gap: 10px;
    }
    .success-box,
.error-box {
    padding: 12px 16px;
    border-radius: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

.success-box {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.error-box {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
}