:root {
    --primary: #6c63ff;
    --primary-dark: #5148d8;
    --dark: #0b0d17;
    --dark-2: #111421;
    --text: #f5f5f7;
    --muted: #9da3b4;
    --border: rgba(255,255,255,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.text-primary {
    color: var(--primary) !important;
}

/* =========================
   NAVBAR
========================= */

.navbar {
    background: rgba(11, 13, 23, .88);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 5px 0;
}

.navbar-brand {
    color: #fff !important;
    font-size: 1.4rem;
    font-weight: 800;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: #b9becd !important;
    font-size: .95rem;
    font-weight: 500;
    margin-left: 20px;
    transition: .3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 8px;
    margin-left: 25px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

/* =========================
   HERO
========================= */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--primary);
    filter: blur(180px);
    opacity: .18;
    top: 5%;
    left: -150px;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    width: 450px;
    height: 450px;
    background: #00d4ff;
    filter: blur(180px);
    opacity: .10;
    bottom: -150px;
    right: -100px;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border: 1px solid rgba(108, 99, 255, .35);
    background: rgba(108, 99, 255, .08);
    color: #bcb8ff;
    border-radius: 50px;
    font-size: .85rem;
    margin-bottom: 25px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #36d399;
    border-radius: 50%;
}

.hero h1 {
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 25px;
}

.gradient-text {
    background: linear-gradient(90deg, #8d86ff, #6c63ff, #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 650px;
    color: var(--muted);
    font-size: 1.08rem;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: white;
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
}

.btn-outline-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #303445;
    color: #fff;
    padding: 13px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: .3s;
}

.btn-outline-custom:hover {
    background: #171a28;
    color: white;
    transform: translateY(-2px);
}

/* =========================
   CODE CARD
========================= */

.code-card {
    background: #10131f;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
    position: relative;
    z-index: 2;
}

.code-header {
    display: flex;
    gap: 7px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #444;
}

.code-body {
    padding: 25px;
    font-family: monospace;
    font-size: .88rem;
    color: #aeb5c7;
}

.code-line {
    margin-bottom: 8px;
}

.code-keyword {
    color: #c792ea;
}

.code-function {
    color: #82aaff;
}

.code-string {
    color: #c3e88d;
}

.code-comment {
    color: #5c6370;
}

/* =========================
   GENERAL REUSABLE SECTIONS
========================= */

.page-header {
    padding: 90px 0 60px;
}

.page-header-content {
    max-width: 760px;
}

.page-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    line-height: 1.1;
    letter-spacing: -2px;
    font-weight: 800;
    margin-bottom: 22px;
}

.page-description {
    font-size: 1.03rem;
    color: var(--muted);
    max-width: 680px;
}

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 40px;
}

.section-heading h2,
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.section-heading p,
.section-description {
    color: var(--muted);
}

.section-label {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.stats {
    padding: 30px 0 80px;
}

.stat-box {
    padding: 25px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    border-radius: 12px;
    height: 100%;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.stat-text {
    color: var(--muted);
    font-size: .9rem;
}

.service-card,
.about-card,
.profile-card,
.expertise-card,
.education-card,
.contact-form-wrapper,
.contact-info,
.skill-category,
.focus-card,
.tools-card,
.stack-box {
    background: var(--dark-2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
    height: 100%;
}

.service-card,
.expertise-card,
.focus-card,
.tools-card,
.skill-category {
    transition: .3s;
}

.service-card:hover,
.expertise-card:hover,
.focus-card:hover,
.tools-card:hover,
.skill-category:hover {
    transform: translateY(-7px);
    border-color: rgba(108,99,255,.45);
}

.service-icon,
.expertise-icon,
.profile-icon,
.category-icon,
.contact-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108,99,255,.1);
    color: var(--primary);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 22px;
}

.service-card h4,
.expertise-card h4,
.profile-card h3,
.about-card h2,
.contact-info h2,
.education-card h3,
.timeline-item h4 {
    margin-bottom: 12px;
}

.service-card p,
.expertise-card p,
.about-card p,
.profile-card p,
.contact-info p,
.education-card p,
.timeline-item p,
.contact-item p,
.info-list span,
.form-description {
    color: var(--muted);
}

.about-card {
    padding: 36px;
}

.about-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 18px;
}

.profile-card {
    padding: 30px 28px;
}

.profile-role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.info-list li:last-child {
    border-bottom: 0;
}

.info-list i {
    color: var(--primary);
}

.expertise-card {
    padding: 30px;
    height: 100%;
}

.timeline {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(108,99,255,.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 28px;
}

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 5px rgba(108,99,255,.15);
}

.timeline-date {
    color: var(--primary);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.company {
    color: #d5d9ea;
    font-weight: 600;
    margin-bottom: 8px;
}

.education-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px 30px;
}

.education-card i {
    font-size: 2rem;
    color: var(--primary);
}

.cta {
    padding: 90px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(108,99,255,.15), rgba(0,198,255,.06));
    border: 1px solid rgba(108,99,255,.25);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-box p {
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* =========================
   CONTACT PAGE
========================= */

.contact-section {
    padding: 20px 0 100px;
}

.contact-info {
    padding: 35px;
}

.contact-info h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 25px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
    margin-bottom: 0;
}

.contact-item h4 {
    font-size: .9rem;
    margin-bottom: 6px;
}

.social-title {
    color: #dfe4f3;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-links a {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    transition: .3s;
}

.social-links a:hover {
    color: white;
    border-color: var(--primary);
    background: rgba(108,99,255,.1);
}

.contact-form-wrapper {
    padding: 35px;
}

.contact-form-wrapper h3 {
    margin-bottom: 8px;
}

.form-label {
    color: #dde2f2;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    width: 100%;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    outline: none;
}

.form-control::placeholder {
    color: #7b8397;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(108,99,255,.7);
    box-shadow: 0 0 0 .25rem rgba(108,99,255,.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    border: 0;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 10px;
    padding: 13px 25px;
    transition: .3s;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

#formMessage {
    margin-bottom: 15px;
    color: #8d86ff;
    font-weight: 600;
}

/* =========================
   PROJECTS PAGE
========================= */

.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted);
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 600;
    transition: .3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: rgba(108,99,255,.12);
    color: white;
    border-color: rgba(108,99,255,.4);
}

.project-item {
    transition: .3s ease;
}

.project-hidden {
    display: none !important;
}

/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--muted);
    font-size: .9rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 991px) {
    .navbar-nav {
        padding-top: 15px;
    }

    .nav-link {
        margin-left: 0;
        padding: 10px 0 !important;
    }

    .btn-nav {
        display: inline-block;
        margin-left: 0;
        margin-top: 10px;
    }

    .hero {
        padding-top: 130px;
        padding-bottom: 70px;
    }

    .code-card {
        margin-top: 50px;
    }

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section,
    .page-header,
    .cta {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .code-body {
        font-size: .75rem;
        padding: 18px;
    }

    .education-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
