:root {
    --bg: #0b1020;
    --bg-soft: #121931;
    --surface: rgba(255, 255, 255, 0.08);
    --surface-strong: #ffffff;
    --text: #ebefff;
    --text-dark: #1a2340;
    --muted: #a7b1cf;
    --line: rgba(255, 255, 255, 0.12);
    --brand: #f6b63b;
    --brand-dark: #dd9b19;
    --brand-soft: rgba(246, 182, 59, 0.16);
    --accent: #72d8ff;
    --shadow: 0 18px 40px rgba(5, 10, 25, 0.25);
    --radius: 24px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Ubuntu", sans-serif;
    background: radial-gradient(circle at top left, #192347 0%, var(--bg) 38%, #080d1b 100%);
    color: var(--text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: "Special Gothic Expanded One", sans-serif;
    font-weight: 400;
}

p {
    color: var(--muted);
    line-height: 1.8;
}

a {
    text-decoration: none;
}

.page-glow {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
}

.glow-1 {
    top: 80px;
    left: -80px;
    background: rgba(114, 216, 255, 0.28);
}

.glow-2 {
    right: -100px;
    bottom: 10%;
    background: rgba(246, 182, 59, 0.22);
}

.navbar {
    padding: 1rem 0;
    transition: 0.3s ease;
    z-index: 10;
}

.navbar.scrolled {
    background: rgba(7, 12, 26, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.navbar-brand {
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.nav-link {
    color: rgba(255, 255, 255, 0.82) !important;
    font-weight: 500;
    margin-left: 0.6rem;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width 0.25s ease;
}

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

.nav-cta,
.btn-brand,
.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), #ffcf6a);
    color: #151515;
    font-weight: 700;
    border: none;
    box-shadow: 0 12px 24px rgba(246, 182, 59, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.nav-cta:hover,
.btn-brand:hover,
.project-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(246, 182, 59, 0.28);
    color: #151515;
}

.btn-soft {
    border-radius: 999px;
    padding: 0.9rem 1.35rem;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 7.5rem 0 4.5rem;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--line);
    color: #dce4ff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-size: clamp(2.5rem, 4vw, 4.6rem);
    line-height: 1.12;
    margin-bottom: 1rem;
}

.hero-lead {
    max-width: 640px;
    font-size: 1.08rem;
    margin-bottom: 1.5rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.hero-tags span,
.strength-tags span {
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #eef3ff;
    font-size: 0.95rem;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.1rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.stat-card strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.stat-card span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
}

.hero-image-wrap {
    position: relative;
    max-width: 460px;
    margin-left: auto;
}

.hero-image-wrap::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 32px;
    background: linear-gradient(140deg, rgba(114, 216, 255, 0.5), rgba(246, 182, 59, 0.35));
    z-index: 0;
    opacity: 0.7;
}

.hero-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 28px;
    z-index: 1;
    box-shadow: var(--shadow);
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    background: rgba(8, 13, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 2;
    max-width: 250px;
}

.floating-card i {
    font-size: 1.3rem;
    color: var(--brand);
}

.floating-card strong {
    display: block;
    font-size: 0.92rem;
}

.floating-card span {
    color: var(--muted);
    font-size: 0.84rem;
}

.floating-card-top {
    top: 8%;
    left: -14%;
}

.floating-card-bottom {
    right: -10%;
    bottom: 10%;
}

.section-block {
    position: relative;
    padding: 6rem 0;
    z-index: 1;
}

.section-light {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 2.2rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 0.9rem;
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    align-items: start;
}

.about-panel,
.contact-panel,
.contact-form-card,
.info-card,
.skill-card,
.project-card {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.about-text {
    padding-right: 1rem;
}

.info-card,
.contact-panel,
.contact-form-card {
    padding: 1.5rem;
}

.info-card + .info-card {
    margin-top: 1.25rem;
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.info-card-header i {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 1.1rem;
}

.timeline-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.timeline-list li {
    padding: 0.95rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.timeline-list li:first-child {
    border-top: none;
    padding-top: 0;
}

.timeline-list strong {
    display: block;
    margin-bottom: 0.3rem;
}

.timeline-list span {
    color: var(--muted);
}

.strength-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-card,
.project-card {
    height: 100%;
    padding: 1.6rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover,
.project-card:hover {
    transform: translateY(-8px);
    border-color: rgba(246, 182, 59, 0.3);
    box-shadow: 0 24px 40px rgba(4, 10, 24, 0.3);
}

.skill-card .icon {
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(246, 182, 59, 0.2), rgba(114, 216, 255, 0.15));
    color: var(--brand);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.skill-card h3,
.project-card h5,
.contact-panel h3 {
    margin-bottom: 0.9rem;
}

.skill-card h5 {
    margin-top: 1rem;
    margin-bottom: 0.7rem;
    color: #fff;
    font-size: 1rem;
}

.skill-card ul {
    padding-left: 1rem;
    margin-bottom: 0;
}

.skill-card li {
    color: var(--muted);
    margin-bottom: 0.45rem;
}

.card-link {
    color: inherit;
    display: block;
    height: 100%;
}

.project-card .card-img-top {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,0.08);
}

.project-card .card-body {
    padding: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.badge-mobile {
    background: rgba(114, 216, 255, 0.15);
    color: #9be5ff;
}

.badge-ui {
    background: rgba(246, 182, 59, 0.16);
    color: #ffd67f;
}

.badge-web {
    background: rgba(169, 123, 255, 0.15);
    color: #d4bfff;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.55rem;
    color: #fff;
    font-weight: 700;
}

.project-button {
    margin-top: 0.7rem;
}

.project-links-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.project-link-text {
    text-decoration: none;
    font-weight: 600;
    color: inherit;
}

.project-link-text:hover {
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: inherit;
    transition: all 0.25s ease;
}

.github-link:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
    opacity: 0.9;
}

.project-image-link {
    display: block;
}

.contact-links {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.3rem;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #eef3ff;
    padding: 0.95rem 1rem;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    transition: 0.2s ease;
}

.contact-links a:hover {
    transform: translateX(4px);
    border-color: rgba(246,182,59,0.25);
}

.form-control {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 0.95rem 1rem;
    border-radius: 16px;
}

.form-control:focus {
    background: rgba(255,255,255,0.1);
    border-color: rgba(246,182,59,0.5);
    box-shadow: 0 0 0 0.2rem rgba(246, 182, 59, 0.15);
    color: #fff;
}

.form-label {
    color: #e7ecff;
    margin-bottom: 0.55rem;
}

.site-footer {
    padding: 2rem 0 2.8rem;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
    background: rgba(5, 8, 18, 0.35);
}

.footer-icons {
    margin-top: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.9rem;
}

.footer-icons a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.footer-icons a:hover {
    transform: translateY(-2px);
    background: rgba(246,182,59,0.18);
}

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #ffd67f);
    color: #111;
    box-shadow: 0 16px 28px rgba(246,182,59,0.24);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.25s ease;
    z-index: 20;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.delay-1 {
    transition-delay: 0.08s;
}

.delay-2 {
    transition-delay: 0.16s;
}

@media (max-width: 991px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-image-wrap {
        margin: 0 auto;
    }

    .floating-card-top {
        left: 0;
    }

    .floating-card-bottom {
        right: 0;
    }

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

@media (max-width: 767px) {
    .navbar {
        background: rgba(7, 12, 26, 0.82);
        backdrop-filter: blur(16px);
    }

    .hero-section {
        padding-top: 7rem;
    }

    .hero-copy h1 {
        font-size: 2.3rem;
    }

    .section-block {
        padding: 4.5rem 0;
    }

    .floating-card {
        position: static;
        margin-top: 1rem;
        max-width: 100%;
    }

    .hero-image-wrap::before {
        inset: -8px;
    }
}
