/* ============================================================
   SUDE KAZAN — Portfolio Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables — Dark (default) ── */
:root {
    --bg: #07091a;
    --bg2: #0d1129;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-hov: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.09);
    --accent1: #7c5cfc;
    --accent2: #4ecdc4;
    --accent-grad: linear-gradient(135deg, #7c5cfc 0%, #4ecdc4 100%);
    --text: #e8ecf4;
    --text-muted: #8891aa;
    --nav-h: 70px;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CSS Variables — Light ── */
[data-theme="light"] {
    --bg: #f4f6ff;
    --bg2: #eceffe;
    --surface: rgba(255, 255, 255, 0.75);
    --surface-hov: rgba(255, 255, 255, 0.95);
    --border: rgba(100, 100, 180, 0.15);
    --text: #1a1d2e;
    --text-muted: #5c6080;
    --shadow: 0 8px 32px rgba(100, 100, 200, 0.12);
}

[data-theme="light"] .navbar {
    background: rgba(244, 246, 255, 0.85);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(244, 246, 255, 0.97);
    box-shadow: 0 4px 24px rgba(100, 100, 200, 0.14);
}

[data-theme="light"] .nav-links {
    background: rgba(244, 246, 255, 0.97);
}

[data-theme="light"] body::before,
[data-theme="light"] body::after {
    opacity: 0.07;
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 16px 48px rgba(100, 100, 200, 0.18);
    border-color: rgba(124, 92, 252, 0.25);
}

[data-theme="light"] .skill-pill:hover {
    color: #6d28d9;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

/* ── Background Blobs ── */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.3s ease;
}

body::before {
    width: 500px;
    height: 500px;
    background: var(--accent1);
    top: -150px;
    left: -150px;
}

body::after {
    width: 400px;
    height: 400px;
    background: var(--accent2);
    bottom: -100px;
    right: -100px;
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(7, 9, 26, 0.8);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 5%;
    justify-content: space-between;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 26, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text);
    background: var(--surface-hov);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-grad);
    border-radius: 2px;
}

/* ── Navbar Controls (theme + lang) ── */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-ctrl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-ctrl-btn:hover {
    background: var(--surface-hov);
    border-color: var(--accent1);
}

.lang-btn {
    width: auto;
    border-radius: 50px;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    height: 32px;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Page Wrapper ── */
.page-wrapper {
    position: relative;
    z-index: 1;
    padding-top: var(--nav-h);
    min-height: 100vh;
}

/* ── Section Container ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── Section Header ── */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.section-subtitle {
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-size: 1.05rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Glass Card ── */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.glass-card:hover {
    background: var(--surface-hov);
    border-color: rgba(124, 92, 252, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

/* ── Gradient Text ── */
.grad-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-grad);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 92, 252, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 92, 252, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--surface-hov);
    border-color: var(--accent1);
    transform: translateY(-2px);
}

/* ── Badge/Tag ── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(124, 92, 252, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(124, 92, 252, 0.3);
}

.badge-teal {
    background: rgba(78, 205, 196, 0.15);
    color: #4ecdc4;
    border-color: rgba(78, 205, 196, 0.3);
}

/* ── Page Hero (inner pages) ── */
.page-hero {
    padding: 5rem 5% 4rem;
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ── Footer ── */
footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2.5rem 5%;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 4rem;
}

footer a {
    color: var(--accent2);
    transition: var(--transition);
}

footer a:hover {
    color: var(--accent1);
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

/* ── Scroll Animations ── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-up-delay-1 {
    transition-delay: 0.1s;
}

.fade-up-delay-2 {
    transition-delay: 0.2s;
}

.fade-up-delay-3 {
    transition-delay: 0.3s;
}

.fade-up-delay-4 {
    transition-delay: 0.4s;
}

/* ── Skill Pills ── */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-pill {
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}

.skill-pill:hover {
    background: rgba(124, 92, 252, 0.15);
    border-color: rgba(124, 92, 252, 0.4);
    color: #c4b5fd;
}

/* ── Stats Row ── */
.stats-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        backdrop-filter: blur(20px);
        padding: 1.5rem 5%;
        gap: 0.25rem;
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links a {
        padding: 0.75rem 1rem;
        border-radius: var(--radius-sm);
    }

    .hamburger {
        display: flex;
    }

    .nav-ctrl-btn {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-bottom: 2.5rem;
    }

    .stats-row {
        justify-content: center;
    }
}