/* ==========================
   ROOT VARIABLES
========================== */

:root {
    --bg-primary: #0b1020;
    --bg-secondary: #12182c;

    --text-primary: #ffffff;
    --text-secondary: #a6adc8;

    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);

    --accent: #6c63ff;
    --accent-secondary: #00d4ff;

    --shadow:
        0 8px 32px rgba(0, 0, 0, 0.25);
}

body.light-mode {
    --bg-primary: #f4f7ff;
    --bg-secondary: #ffffff;

    --text-primary: #121212;
    --text-secondary: #555;

    --glass-bg: rgba(255,255,255,.55);
    --glass-border: rgba(255,255,255,.7);
}

/* ==========================
   RESET
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ==========================
   SCROLLBAR
========================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        var(--accent),
        var(--accent-secondary)
    );
    border-radius: 20px;
}

/* ==========================
   BACKGROUND
========================== */

.background-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -10;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: .35;
    animation: floatOrb 18s infinite ease-in-out;
}

.orb-1 {
    width: 450px;
    height: 450px;

    background: #6c63ff;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;

    background: #00d4ff;
    right: -100px;
    top: 30%;
}

.orb-3 {
    width: 350px;
    height: 350px;

    background: #ff4fd8;
    bottom: -80px;
    left: 35%;
}

@keyframes floatOrb {

    0%,
    100% {
        transform:
            translateY(0px)
            translateX(0px);
    }

    50% {
        transform:
            translateY(-50px)
            translateX(30px);
    }
}

/* ==========================
   GLASS
========================== */

.glass {
    background: var(--glass-bg);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border: 1px solid var(--glass-border);

    box-shadow: var(--shadow);
}

/* ==========================
   NAVBAR
========================== */

.navbar {

    position: fixed;
    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    width: min(1200px, 95%);
    border-radius: 20px;

    padding: 16px 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    z-index: 999;
}

.logo {
    font-size: 1.3rem;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: .3s;
}

.nav-links a:hover {
    color: var(--accent-secondary);
}

.theme-toggle {

    width: 45px;
    height: 45px;

    border-radius: 50%;
    border: none;

    cursor: pointer;

    background: var(--glass-bg);
    color: var(--text-primary);
}

/* ==========================
   SECTIONS
========================== */

section {
    padding:
        120px
        8%
        100px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-secondary);
}

/* ==========================
   HERO
========================== */

.hero {

    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
}

.hero-content {
    max-width: 900px;
}

.hero-badge {

    display: inline-flex;
    align-items: center;
    gap: 10px;

    border-radius: 50px;
    padding: 10px 20px;

    margin-bottom: 30px;
}

.hero h1 {

    font-size: clamp(
        3rem,
        7vw,
        7rem
    );

    font-weight: 900;
    line-height: 1.05;
}

.hero h1 span {

    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-secondary)
        );

    -webkit-background-clip: text;
    color: transparent;
}

.hero p {

    margin: 30px auto;
    max-width: 700px;

    color: var(--text-secondary);
    font-size: 1.2rem;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons a {

    text-decoration: none;

    padding:
        14px
        24px;

    border-radius: 12px;
    transition: .35s;
}

.primary-btn {
    background: var(--accent);
    color: white;
}

.secondary-btn {
    border: 1px solid rgba(255,255,255,.15);
    color: white;
}

.hero-buttons a:hover {
    transform: translateY(-4px);
}

/* ==========================
   ABOUT
========================== */

.about-grid {

    display: grid;
    grid-template-columns:
        350px
        1fr;

    gap: 40px;

    align-items: center;
}

.about-photo {

    aspect-ratio: 1;
    border-radius: 30px;

    overflow: hidden;
}

.about-photo img {

    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {

    padding: 40px;
    border-radius: 30px;
}

.about-content h3 {
    margin-bottom: 20px;
}

.about-highlights {

    display: grid;
    gap: 14px;

    margin-top: 30px;
}

.about-highlights div {

    display: flex;
    gap: 12px;
    align-items: center;
}

/* ==========================
   METRICS
========================== */

.metrics-grid {

    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(220px,1fr)
        );

    gap: 25px;
}

.metric-card {

    border-radius: 24px;
    padding: 35px;

    text-align: center;
}

.metric-card h3 {

    font-size: 3rem;

    color: var(--accent-secondary);
}

/* ==========================
   PROJECTS
========================== */

.project-filters {

    display: flex;
    justify-content: center;

    gap: 12px;

    flex-wrap: wrap;

    margin-bottom: 40px;
}

.filter-btn {

    border: none;
    cursor: pointer;

    border-radius: 50px;

    padding:
        12px
        18px;

    background:
        rgba(255,255,255,.05);

    color: white;
}

.filter-btn.active {
    background: var(--accent);
}

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(340px,1fr)
        );

    gap: 30px;
}

.project-card {

    border-radius: 28px;
    overflow: hidden;

    transition: .4s;
}

.project-card:hover {

    transform:
        translateY(-8px)
        rotateX(3deg);
}

.project-image {

    height: 220px;

    background:
        linear-gradient(
            135deg,
            var(--accent),
            var(--accent-secondary)
        );
}

.project-content {
    padding: 24px;
}

.project-tags {

    margin-top: 20px;

    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-tags span {

    border-radius: 50px;

    padding:
        6px
        12px;

    background:
        rgba(255,255,255,.08);
}

/* ==========================
   TECH STACK
========================== */

.tech-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(130px,1fr)
        );

    gap: 25px;
}

.tech-card {

    text-align: center;

    border-radius: 20px;
    padding: 30px;

    transition: .35s;
}

.tech-card:hover {

    transform:
        translateY(-8px)
        scale(1.03);
}

.tech-card i {

    font-size: 3rem;
    margin-bottom: 14px;

    color: var(--accent-secondary);
}

/* ==========================
   TIMELINE
========================== */

.timeline {

    max-width: 900px;
    margin: auto;

    display: grid;
    gap: 24px;
}

.timeline-item {

    border-left:
        4px solid
        var(--accent);

    border-radius: 20px;

    padding: 25px;
}

.year {
    color: var(--accent-secondary);
}

/* ==========================
   TESTIMONIALS
========================== */

.testimonial-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(300px,1fr)
        );

    gap: 25px;
}

.testimonial-card {

    border-radius: 24px;
    padding: 30px;
}

.testimonial-card h4 {
    margin-top: 20px;
}

/* ==========================
   BLOG
========================== */

.blog-grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(320px,1fr)
        );

    gap: 25px;
}

/* ==========================
   CONTACT
========================== */

.contact-card {

    max-width: 900px;
    margin: auto;

    text-align: center;

    padding: 60px;

    border-radius: 30px;
}

.contact-links {

    display: flex;
    gap: 25px;

    justify-content: center;

    margin-top: 30px;
}

.contact-links a {

    font-size: 1.8rem;
    color: var(--text-primary);

    transition: .3s;
}

.contact-links a:hover {

    color: var(--accent-secondary);

    transform: translateY(-4px);
}

/* ==========================
   FOOTER
========================== */

footer {

    padding: 40px;
    text-align: center;

    color: var(--text-secondary);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px) {

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-photo {
        max-width: 350px;
        margin: auto;
    }
}

@media (max-width: 768px) {

    .navbar {
        padding: 14px;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        line-height: 1.15;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .contact-card {
        padding: 40px 25px;
    }
}