/* =========================================================
   OĞUZ SAKA — PERSONAL PORTFOLIO
   GLOBAL STYLES
   FINAL VERSION
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --accent: #06b6d4;

    --text: #111827;
    --text-light: #6b7280;

    --bg: #f8fafc;
    --bg-secondary: #ffffff;
    --card: #ffffff;

    --border: #e5e7eb;

    --success: #16a34a;
    --warning: #d97706;

    --shadow-sm:
        0 4px 12px rgba(15, 23, 42, 0.06);

    --shadow:
        0 15px 40px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 25px 70px rgba(15, 23, 42, 0.14);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;

    --transition:
        all 0.3s ease;

    --max-width: 1180px;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {

    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --secondary: #a78bfa;
    --accent: #22d3ee;

    --text: #f1f5f9;
    --text-light: #94a3b8;

    --bg: #0b1120;
    --bg-secondary: #111827;
    --card: #172033;

    --border: #263449;

    --shadow-sm:
        0 4px 12px rgba(0, 0, 0, 0.20);

    --shadow:
        0 15px 40px rgba(0, 0, 0, 0.25);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, 0.35);
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Inter", sans-serif;

    background: var(--bg);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

body.no-scroll {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width:
        min(
            var(--max-width),
            calc(100% - 40px)
        );

    margin: 0 auto;
}


/* =========================================================
   NAVBAR
========================================================= */

.site-header {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background:
        color-mix(
            in srgb,
            var(--bg-secondary) 88%,
            transparent
        );

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    border-bottom:
        1px solid var(--border);

    transition: var(--transition);
}

.site-header.scrolled {

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);
}

.dark-mode .site-header.scrolled {

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {

    width:
        min(
            var(--max-width),
            calc(100% - 40px)
        );

    height: 78px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 1.15rem;

    font-weight: 800;

    white-space: nowrap;

    transition: var(--transition);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo span {

    width: 38px;
    height: 38px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.25);
}


/* =========================================================
   NAVIGATION
========================================================= */

.navbar {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;
}

.nav-link {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding: 9px 13px;

    border-radius: 10px;

    color: var(--text-light);

    font-size: 0.9rem;

    font-weight: 600;

    transition: var(--transition);
}

.nav-link i {
    font-size: 0.85rem;
}

.nav-link:hover {

    color: var(--primary);

    background:
        rgba(37, 99, 235, 0.08);

    transform:
        translateY(-1px);
}

.nav-link.active {

    color: var(--primary);

    background:
        rgba(37, 99, 235, 0.10);
}


/* =========================================================
   NAV ACTIONS
========================================================= */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 10px;
}

.theme-toggle,
.menu-toggle {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 12px;

    color: var(--text);

    background:
        var(--bg-secondary);

    transition: var(--transition);
}

.theme-toggle:hover,
.menu-toggle:hover {

    color: white;

    border-color:
        var(--primary);

    background:
        var(--primary);

    transform:
        translateY(-2px);
}

.menu-toggle {
    display: none;
}


/* =========================================================
   HERO
========================================================= */

.hero {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    overflow: hidden;

    padding:
        130px 0
        80px;
}

.hero-background {

    position: absolute;

    inset: 0;

    z-index: -2;

    background:

        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.15),
            transparent 32%
        ),

        radial-gradient(
            circle at 85% 70%,
            rgba(124, 58, 237, 0.14),
            transparent 32%
        );
}

.hero-background::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            transparent,
            rgba(255, 255, 255, 0.02)
        );
}

.hero-container {

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, 0.8fr);

    align-items: center;

    gap: 70px;
}


/* =========================================================
   HERO CONTENT
========================================================= */

.hero-content {

    animation:
        heroEnter 0.8s ease both;
}

@keyframes heroEnter {

    from {

        opacity: 0;

        transform:
            translateY(30px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}

.hero-badge {

    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 13px;

    margin-bottom: 22px;

    border:
        1px solid
        rgba(37, 99, 235, 0.18);

    border-radius: 50px;

    color: var(--primary);

    background:
        rgba(37, 99, 235, 0.08);

    font-size: 0.78rem;

    font-weight: 700;
}

.status-dot {

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 5px
        rgba(34, 197, 94, 0.12);
}

.hero-small-title {

    margin-bottom: 4px;

    color: var(--text-light);

    font-size: 0.85rem;

    font-weight: 800;

    letter-spacing: 3px;
}

.hero h1 {

    font-size:
        clamp(
            3.5rem,
            7vw,
            6.2rem
        );

    line-height: 1;

    letter-spacing: -4px;

    font-weight: 800;

    margin-bottom: 18px;
}

.hero h1 span {

    display: inline-block;

    color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    background-clip: text;

    -webkit-background-clip: text;
}

.hero h2 {

    max-width: 700px;

    margin-bottom: 20px;

    font-size:
        clamp(
            1.25rem,
            2.2vw,
            1.75rem
        );

    line-height: 1.4;

    font-weight: 700;
}

.hero-description {

    max-width: 650px;

    margin-bottom: 30px;

    color: var(--text-light);

    font-size: 1.05rem;
}


/* =========================================================
   BUTTONS
========================================================= */

.hero-buttons,
.cta-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding:
        0 20px;

    border:
        1px solid transparent;

    border-radius: 12px;

    font-size: 0.9rem;

    font-weight: 700;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease;
}

.btn:hover {

    transform:
        translateY(-3px);
}

.btn-primary {

    color: white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        0 12px 25px
        rgba(37, 99, 235, 0.22);
}

.btn-primary:hover {

    box-shadow:
        0 18px 35px
        rgba(37, 99, 235, 0.32);
}

.btn-secondary {

    color: var(--text);

    background:
        var(--bg-secondary);

    border-color:
        var(--border);
}

.btn-secondary:hover {

    border-color:
        var(--primary);

    color:
        var(--primary);
}


/* =========================================================
   SOCIAL LINKS
========================================================= */

.social-links {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 28px;
}

.social-links a {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--border);

    border-radius: 12px;

    color: var(--text-light);

    background:
        var(--bg-secondary);

    transition: var(--transition);
}

.social-links a:hover {

    color: white;

    background:
        var(--primary);

    border-color:
        var(--primary);

    transform:
        translateY(-4px);
}


/* =========================================================
   CODE CARD
========================================================= */

.hero-code-card {

    animation:
        codeFloat 5s ease-in-out infinite;
}

@keyframes codeFloat {

    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-12px);
    }
}

.code-window {

    overflow: hidden;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        #0f172a;

    box-shadow:
        0 30px 80px
        rgba(15, 23, 42, 0.25);
}

.code-header {

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 18px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

    background:
        #111827;
}

.window-buttons {

    display: flex;

    gap: 7px;
}

.window-buttons span {

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        #64748b;
}

.code-file {

    color:
        #94a3b8;

    font-size: 0.75rem;

    font-family:
        monospace;
}

.code-body {

    min-height: 330px;

    padding:
        28px;

    color:
        #e2e8f0;

    font-family:
        "Courier New",
        monospace;

    font-size:
        0.9rem;

    line-height: 2;
}

.code-body p {
    margin: 0;
}

.indent {
    padding-left: 28px;
}

.code-purple {
    color: #c084fc;
}

.code-blue {
    color: #60a5fa;
}

.code-green {
    color: #86efac;
}

.code-orange {
    color: #fdba74;
}

.code-comment {

    margin-top:
        18px !important;

    color:
        #64748b;
}


/* =========================================================
   SCROLL INDICATOR
========================================================= */

.scroll-indicator {

    position: absolute;

    bottom: 28px;

    left: 50%;

    transform:
        translateX(-50%);

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 6px;

    color: var(--text-light);

    opacity: 0.75;

    transition: var(--transition);
}

.scroll-indicator:hover {

    color:
        var(--primary);

    opacity: 1;
}

.scroll-indicator span {

    width: 22px;
    height: 34px;

    border:
        2px solid
        currentColor;

    border-radius: 20px;

    position: relative;
}

.scroll-indicator span::before {

    content: "";

    position: absolute;

    width: 4px;
    height: 7px;

    left: 50%;
    top: 6px;

    transform:
        translateX(-50%);

    border-radius: 5px;

    background:
        currentColor;

    animation:
        scrollDot 1.5s infinite;
}

@keyframes scrollDot {

    0% {

        opacity: 0;

        transform:
            translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {

        opacity: 0;

        transform:
            translate(-50%, 12px);
    }
}

.scroll-indicator small {
    font-size: 0.7rem;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {

    padding:
        110px 0;
}

.about-preview {

    background:
        var(--bg-secondary);
}

.section-heading {

    max-width: 720px;

    margin-bottom:
        55px;
}

.section-heading.center {

    margin-left: auto;

    margin-right: auto;

    text-align: center;
}

.section-label {

    display: inline-block;

    margin-bottom: 12px;

    color:
        var(--primary);

    font-size: 0.75rem;

    font-weight: 800;

    letter-spacing: 2px;
}

.section-heading h2 {

    margin-bottom: 14px;

    font-size:
        clamp(
            2rem,
            4vw,
            3rem
        );

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.section-heading h2 span {

    color: transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    background-clip: text;

    -webkit-background-clip: text;
}

.section-heading p {

    color:
        var(--text-light);

    font-size: 1rem;
}


/* =========================================================
   ABOUT GRID
========================================================= */

.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about-text h3 {

    margin-bottom: 18px;

    font-size: 1.7rem;
}

.about-text p {

    margin-bottom: 16px;

    color:
        var(--text-light);
}

.text-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 10px;

    color:
        var(--primary);

    font-weight: 700;

    transition: var(--transition);
}

.text-link:hover {

    gap: 13px;
}


/* =========================================================
   STATS
========================================================= */

.about-stats {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 16px;
}

.stat-card {

    padding: 25px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--card);

    box-shadow:
        var(--shadow-sm);

    transition: var(--transition);
}

.stat-card:hover {

    transform:
        translateY(-6px);

    box-shadow:
        var(--shadow);
}

.stat-icon {

    width: 42px;
    height: 42px;

    display: grid;

    place-items: center;

    margin-bottom: 15px;

    border-radius: 11px;

    color:
        var(--primary);

    background:
        rgba(37, 99, 235, 0.10);
}

.stat-card strong {

    display: block;

    margin-bottom: 3px;

    font-size: 1.65rem;
}

.stat-card span {

    color:
        var(--text-light);

    font-size: 0.82rem;
}


/* =========================================================
   TECHNOLOGIES
========================================================= */

.technology-grid {

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 14px;
}

.technology-card {

    min-height: 130px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding: 15px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        var(--card);

    box-shadow:
        var(--shadow-sm);

    color:
        var(--text);

    transition: var(--transition);
}

.technology-card:hover {

    color: white;

    border-color:
        var(--primary);

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow);
}

.technology-card i {

    font-size:
        1.8rem;
}

.technology-card span {

    font-size:
        0.8rem;

    font-weight:
        700;

    text-align:
        center;
}


/* =========================================================
   PROJECTS
========================================================= */

.projects-preview {

    background:
        var(--bg);
}

.featured-project-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.featured-project {

    position: relative;

    overflow: hidden;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--card);

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.featured-project:hover {

    transform:
        translateY(-8px);

    box-shadow:
        var(--shadow);

    border-color:
        rgba(37, 99, 235, 0.25);
}

.featured-project::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transform:
        scaleX(0);

    transform-origin:
        left;

    transition:
        transform 0.35s ease;
}

.featured-project:hover::before {

    transform:
        scaleX(1);
}

.featured-project::after {

    content: "";

    position: absolute;

    top: -100px;
    right: -100px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(37, 99, 235, 0.10),
            transparent 70%
        );

    pointer-events:
        none;

    transition:
        transform 0.5s ease;
}

.featured-project:hover::after {

    transform:
        scale(1.35);
}


/* =========================================================
   PROJECT ICON
========================================================= */

.featured-project .project-icon {

    position: relative;

    width: 56px;
    height: 56px;

    display: grid;

    place-items: center;

    margin-bottom: 18px;

    border-radius: 15px;

    color:
        var(--primary);

    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            rgba(124, 58, 237, 0.08)
        );

    border:
        1px solid
        rgba(37, 99, 235, 0.12);

    font-size:
        1.25rem;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.featured-project:hover .project-icon {

    transform:
        translateY(-3px)
        rotate(-3deg);

    box-shadow:
        0 10px 25px
        rgba(37, 99, 235, 0.14);
}


/* =========================================================
   PROJECT HEADER
========================================================= */

.project-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 22px;
}


/* =========================================================
   PROJECT TITLE
========================================================= */

.featured-project h3 {

    position: relative;

    margin-bottom: 12px;

    font-size:
        clamp(
            1.1rem,
            2vw,
            1.3rem
        );

    line-height:
        1.3;

    letter-spacing:
        -0.25px;
}


/* =========================================================
   PROJECT DESCRIPTION
========================================================= */

.featured-project > p {

    position: relative;

    min-height: 72px;

    margin-bottom: 20px;

    color:
        var(--text-light);

    font-size:
        0.86rem;

    line-height:
        1.7;
}


/* =========================================================
   PROJECT TAGS
========================================================= */

.project-tags {

    position: relative;

    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-top:
        auto;
}

.project-tags span {

    padding:
        6px 10px;

    border:
        1px solid var(--border);

    border-radius:
        8px;

    color:
        var(--text-light);

    background:
        var(--bg);

    font-size:
        0.7rem;

    font-weight:
        700;

    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.project-tags span:hover {

    color:
        var(--primary);

    border-color:
        rgba(37, 99, 235, 0.35);

    transform:
        translateY(-2px);
}


/* =========================================================
   PROJECT STATUS
========================================================= */

.project-status {

    position: relative;

    display: inline-flex;

    align-items: center;

    gap: 7px;

    width: fit-content;

    padding:
        7px 11px;

    border:
        1px solid transparent;

    border-radius:
        999px;

    font-size:
        0.68rem;

    font-weight:
        800;

    line-height:
        1;

    white-space:
        nowrap;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


/* =========================================================
   DEVELOPING
========================================================= */

.project-status.developing {

    color:
        #c76a00;

    background:
        linear-gradient(
            135deg,
            rgba(245, 158, 11, 0.14),
            rgba(249, 115, 22, 0.07)
        );

    border-color:
        rgba(245, 158, 11, 0.25);

    box-shadow:
        0 4px 14px
        rgba(245, 158, 11, 0.08);
}

.project-status.developing::before {

    content: "";

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius:
        50%;

    background:
        #f59e0b;

    animation:
        statusPulse 2s infinite;
}

.project-status.developing i {

    color:
        #f59e0b;

    animation:
        statusSpin 2s linear infinite;
}


/* =========================================================
   COMPLETED
========================================================= */

.project-status.completed {

    color:
        #059669;

    background:
        linear-gradient(
            135deg,
            rgba(16, 185, 129, 0.14),
            rgba(34, 197, 94, 0.07)
        );

    border-color:
        rgba(16, 185, 129, 0.24);

    box-shadow:
        0 4px 14px
        rgba(16, 185, 129, 0.08);
}

.project-status.completed::before {

    content: "";

    width: 6px;
    height: 6px;

    flex-shrink: 0;

    border-radius:
        50%;

    background:
        #10b981;

    box-shadow:
        0 0 8px
        rgba(16, 185, 129, 0.45);
}

.project-status.completed i {

    color:
        #10b981;
}


/* =========================================================
   STATUS HOVER
========================================================= */

.project-status:hover {

    transform:
        translateY(-2px);
}

.project-status.developing:hover {

    border-color:
        rgba(245, 158, 11, 0.40);

    box-shadow:
        0 7px 20px
        rgba(245, 158, 11, 0.14);
}

.project-status.completed:hover {

    border-color:
        rgba(16, 185, 129, 0.40);

    box-shadow:
        0 7px 20px
        rgba(16, 185, 129, 0.14);
}


/* =========================================================
   STATUS ANIMATIONS
========================================================= */

@keyframes statusPulse {

    0% {

        box-shadow:
            0 0 0 0
            rgba(245, 158, 11, 0.45);
    }

    70% {

        box-shadow:
            0 0 0 6px
            rgba(245, 158, 11, 0);
    }

    100% {

        box-shadow:
            0 0 0 0
            rgba(245, 158, 11, 0);
    }
}

@keyframes statusSpin {

    from {

        transform:
            rotate(0deg);
    }

    to {

        transform:
            rotate(360deg);
    }
}


/* =========================================================
   PROJECT DETAIL BUTTON
========================================================= */

.project-detail-btn {

    position: relative;

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 22px;

    padding:
        12px 15px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    color:
        var(--text);

    background:
        var(--bg);

    font-family:
        inherit;

    font-size:
        0.78rem;

    font-weight:
        800;

    cursor:
        pointer;

    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.project-detail-btn:hover {

    color:
        white;

    border-color:
        transparent;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(37, 99, 235, 0.18);
}

.project-detail-btn span {

    display: flex;

    align-items: center;

    gap: 8px;
}

.project-detail-btn i {

    transition:
        transform 0.3s ease;
}

.project-detail-btn:hover i {

    transform:
        translateX(5px);
}


/* =========================================================
   PROJECT MODAL
========================================================= */

.project-modal {

    position: fixed;

    inset: 0;

    z-index: 2000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.project-modal.active {

    opacity: 1;

    visibility: visible;
}

.project-modal-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(2, 6, 23, 0.72);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}

.project-modal-content {

    position: relative;

    width:
        min(
            650px,
            100%
        );

    max-height:
        min(
            760px,
            calc(100vh - 40px)
        );

    overflow-y:
        auto;

    padding:
        35px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--card);

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.35);

    transform:
        translateY(25px)
        scale(0.97);

    transition:
        transform 0.3s ease;
}

.project-modal.active
.project-modal-content {

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.project-modal-close {

    position: absolute;

    top: 18px;
    right: 18px;

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    color:
        var(--text-light);

    background:
        var(--bg);

    transition:
        var(--transition);
}

.project-modal-close:hover {

    color:
        white;

    border-color:
        var(--primary);

    background:
        var(--primary);

    transform:
        rotate(90deg);
}


/* =========================================================
   MODAL ICON
========================================================= */

.project-modal-icon {

    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    margin-bottom:
        20px;

    border-radius:
        15px;

    color:
        var(--primary);

    background:
        rgba(37, 99, 235, 0.10);

    font-size:
        1.35rem;
}


/* =========================================================
   MODAL TITLE
========================================================= */

.project-modal-content h2 {

    max-width:
        520px;

    margin:
        14px 0;

    padding-right:
        35px;

    font-size:
        clamp(
            1.6rem,
            4vw,
            2.2rem
        );

    line-height:
        1.2;
}

.project-modal-description {

    margin-bottom:
        28px;

    color:
        var(--text-light);

    font-size:
        0.95rem;
}


/* =========================================================
   MODAL SECTIONS
========================================================= */

.project-modal-section {

    padding-top:
        22px;

    margin-top:
        22px;

    border-top:
        1px solid var(--border);
}

.project-modal-section h3 {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom:
        10px;

    font-size:
        0.95rem;
}

.project-modal-section h3 i {

    color:
        var(--primary);
}

.project-modal-section p {

    color:
        var(--text-light);

    font-size:
        0.88rem;
}


/* =========================================================
   MODAL TAGS
========================================================= */

.project-modal-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

.project-modal-tags span {

    padding:
        7px 11px;

    border:
        1px solid var(--border);

    border-radius:
        8px;

    color:
        var(--text-light);

    background:
        var(--bg);

    font-size:
        0.75rem;

    font-weight:
        700;
}


/* =========================================================
   CONTACT CTA
========================================================= */

.contact-cta {

    position: relative;

    overflow: hidden;

    padding:
        100px 0;

    color:
        white;

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #6d28d9
        );
}

.contact-cta::before,
.contact-cta::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.07);

    pointer-events:
        none;
}

.contact-cta::before {

    top:
        -150px;

    left:
        -80px;
}

.contact-cta::after {

    bottom:
        -180px;

    right:
        -80px;
}

.cta-content {

    position: relative;

    z-index: 1;

    max-width:
        750px;

    margin:
        auto;

    text-align:
        center;
}

.cta-content .section-label {

    color:
        rgba(255, 255, 255, 0.75);
}

.cta-content h2 {

    margin-bottom:
        18px;

    font-size:
        clamp(
            2rem,
            5vw,
            3.5rem
        );

    line-height:
        1.15;
}

.cta-content h2 span {

    color:
        #bfdbfe;
}

.cta-content p {

    max-width:
        620px;

    margin:
        0 auto 30px;

    color:
        rgba(255, 255, 255, 0.80);
}

.cta-buttons {

    justify-content:
        center;
}

.btn-light {

    color:
        #1d4ed8;

    background:
        white;
}

.btn-light:hover {

    box-shadow:
        0 15px 35px
        rgba(0, 0, 0, 0.18);
}

.btn-outline-light {

    color:
        white;

    border-color:
        rgba(255, 255, 255, 0.35);

    background:
        rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {

    background:
        rgba(255, 255, 255, 0.15);

    border-color:
        rgba(255, 255, 255, 0.55);
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    background:
        #0b1120;

    color:
        white;
}

.footer-container {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr;

    gap:
        60px;

    padding:
        65px 0;
}

.footer-brand .logo {

    margin-bottom:
        18px;
}

.footer-brand p {

    max-width:
        400px;

    color:
        #94a3b8;

    font-size:
        0.88rem;
}

.footer-links {

    display: flex;

    flex-direction:
        column;

    gap:
        9px;
}

.footer-links h4 {

    margin-bottom:
        10px;

    font-size:
        0.95rem;
}

.footer-links a {

    width:
        fit-content;

    color:
        #94a3b8;

    font-size:
        0.85rem;

    transition:
        var(--transition);
}

.footer-links a:hover {

    color:
        white;

    transform:
        translateX(4px);
}

.footer-bottom {

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}

.footer-bottom .container {

    min-height:
        65px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;
}

.footer-bottom p {

    color:
        #64748b;

    font-size:
        0.75rem;
}


/* =========================================================
   SCROLL TOP
========================================================= */

.scroll-top {

    position: fixed;

    right:
        25px;

    bottom:
        25px;

    width:
        45px;

    height:
        45px;

    display:
        grid;

    place-items:
        center;

    border:
        none;

    border-radius:
        12px;

    color:
        white;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    box-shadow:
        var(--shadow);

    opacity:
        0;

    visibility:
        hidden;

    transform:
        translateY(15px);

    transition:
        var(--transition);

    z-index:
        900;
}

.scroll-top.visible {

    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);
}

.scroll-top:hover {

    transform:
        translateY(-4px);
}


/* =========================================================
   INNER PAGES
========================================================= */

.page-main {

    padding-top:
        110px;

    min-height:
        80vh;
}

.page-hero {

    padding:
        70px 0 45px;

    text-align:
        center;
}

.page-hero h1 {

    margin-bottom:
        12px;

    font-size:
        clamp(
            2.4rem,
            5vw,
            4rem
        );

    line-height:
        1.1;
}

.page-hero p {

    max-width:
        650px;

    margin:
        auto;

    color:
        var(--text-light);
}


/* =========================================================
   COMMON CARDS
========================================================= */

.content-card {

    padding:
        30px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--card);

    box-shadow:
        var(--shadow-sm);

    transition:
        var(--transition);
}

.content-card:hover {

    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow);
}

.content-card h2,
.content-card h3 {

    margin-bottom:
        15px;
}


/* =========================================================
   REVEAL ANIMATIONS
========================================================= */

.reveal {

    opacity:
        0;

    transform:
        translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal.visible {

    opacity:
        1;

    transform:
        translateY(0);
}


/* =========================================================
   PAGE LOADED
========================================================= */

body:not(.page-loaded) .site-header {

    opacity:
        0;
}

body.page-loaded .site-header {

    opacity:
        1;

    transition:
        opacity 0.4s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    color:
        white;

    background:
        var(--primary);
}


/* =========================================================
   SCROLLBAR
========================================================= */

::-webkit-scrollbar {

    width:
        9px;
}

::-webkit-scrollbar-track {

    background:
        var(--bg);
}

::-webkit-scrollbar-thumb {

    border-radius:
        20px;

    background:
        var(--primary-dark);
}

::-webkit-scrollbar-thumb:hover {

    background:
        var(--primary);
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero-container {

        grid-template-columns:
            1fr;

        gap:
            50px;
    }

    .hero-content {

        text-align:
            center;
    }

    .hero-badge {

        margin-left:
            auto;

        margin-right:
            auto;
    }

    .hero-description {

        margin-left:
            auto;

        margin-right:
            auto;
    }

    .hero-buttons,
    .social-links {

        justify-content:
            center;
    }

    .hero-code-card {

        width:
            min(
                600px,
                100%
            );

        margin:
            auto;
    }

    .technology-grid {

        grid-template-columns:
            repeat(3, 1fr);
    }

    .featured-project-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .about-grid {

        grid-template-columns:
            1fr;
    }

    .footer-container {

        grid-template-columns:
            1.5fr 1fr 1fr;
    }
}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 768px) {

    .container {

        width:
            min(
                calc(100% - 28px),
                var(--max-width)
            );
    }


    /* Navbar */

    .nav-container {

        height:
            70px;

        width:
            min(
                calc(100% - 28px),
                var(--max-width)
            );
    }

    .navbar {

        position:
            fixed;

        top:
            70px;

        left:
            14px;

        right:
            14px;

        display:
            flex;

        flex-direction:
            column;

        align-items:
            stretch;

        padding:
            12px;

        border:
            1px solid var(--border);

        border-radius:
            16px;

        background:
            var(--bg-secondary);

        box-shadow:
            var(--shadow);

        opacity:
            0;

        visibility:
            hidden;

        transform:
            translateY(-10px);

        transition:
            var(--transition);
    }

    .navbar.open {

        opacity:
            1;

        visibility:
            visible;

        transform:
            translateY(0);
    }

    .nav-link {

        padding:
            12px 14px;
    }

    .menu-toggle {

        display:
            grid;
    }


    /* Hero */

    .hero {

        min-height:
            auto;

        padding:
            125px 0 90px;
    }

    .hero h1 {

        font-size:
            clamp(
                3rem,
                16vw,
                4.5rem
            );

        letter-spacing:
            -2px;
    }

    .hero h2 {

        font-size:
            1.2rem;
    }

    .hero-description {

        font-size:
            0.92rem;
    }

    .hero-buttons {

        flex-direction:
            column;
    }

    .hero-buttons .btn {

        width:
            100%;
    }

    .hero-code-card {

        display:
            none;
    }

    .scroll-indicator {

        display:
            none;
    }


    /* Sections */

    .section {

        padding:
            75px 0;
    }

    .section-heading {

        margin-bottom:
            35px;
    }


    /* Stats */

    .about-stats {

        grid-template-columns:
            repeat(2, 1fr);
    }


    /* Technologies */

    .technology-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .technology-card {

        min-height:
            110px;
    }


    /* Projects */

    .featured-project-grid {

        grid-template-columns:
            1fr;
    }


    /* CTA */

    .contact-cta {

        padding:
            75px 0;
    }

    .cta-buttons {

        flex-direction:
            column;
    }

    .cta-buttons .btn {

        width:
            100%;
    }


    /* Footer */

    .footer-container {

        grid-template-columns:
            1fr 1fr;

        gap:
            35px;
    }

    .footer-brand {

        grid-column:
            1 / -1;
    }

    .footer-bottom .container {

        flex-direction:
            column;

        justify-content:
            center;

        padding:
            15px 0;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .logo {

        font-size:
            1rem;
    }

    .logo span {

        width:
            34px;

        height:
            34px;
    }

    .theme-toggle,
    .menu-toggle {

        width:
            38px;

        height:
            38px;
    }

    .hero {

        padding-top:
            115px;
    }

    .hero-badge {

        font-size:
            0.68rem;
    }

    .hero-small-title {

        font-size:
            0.7rem;

        letter-spacing:
            2px;
    }

    .hero h1 {

        font-size:
            3.1rem;
    }

    .about-stats {

        grid-template-columns:
            1fr;
    }

    .technology-grid {

        grid-template-columns:
            1fr 1fr;
    }

    .featured-project {

        padding:
            22px;
    }

    .featured-project > p {

        min-height:
            auto;
    }

    .project-status {

        font-size:
            0.64rem;

        padding:
            7px 10px;
    }

    .project-top {

        align-items:
            flex-start;
    }

    .footer-container {

        grid-template-columns:
            1fr;
    }

    .footer-brand {

        grid-column:
            auto;
    }

    .scroll-top {

        right:
            15px;

        bottom:
            15px;
    }

    .content-card {

        padding:
            22px;
    }
}


/* =========================================================
   MODAL MOBILE
========================================================= */

@media (max-width: 600px) {

    .project-modal {

        padding:
            12px;
    }

    .project-modal-content {

        padding:
            25px 20px;

        max-height:
            calc(100vh - 24px);

        border-radius:
            18px;
    }

    .project-modal-close {

        top:
            13px;

        right:
            13px;
    }

    .project-modal-icon {

        width:
            50px;

        height:
            50px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior:
            auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }
}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible {

    outline:
        3px solid
        var(--primary);

    outline-offset:
        3px;
}


/* =========================================================
   DARK MODE — CARDS
========================================================= */

.dark-mode .featured-project {

    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.28);
}

.dark-mode .project-status.developing {

    color:
        #fbbf24;

    background:
        linear-gradient(
            135deg,
            rgba(245, 158, 11, 0.16),
            rgba(249, 115, 22, 0.08)
        );

    border-color:
        rgba(245, 158, 11, 0.25);
}

.dark-mode .project-status.completed {

    color:
        #34d399;

    background:
        linear-gradient(
            135deg,
            rgba(16, 185, 129, 0.16),
            rgba(34, 197, 94, 0.08)
        );

    border-color:
        rgba(16, 185, 129, 0.25);
}