/* ============================================
   Metin Dikbas CV — Glassmorphism Dark
   ============================================ */

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

:root {
    --bg: #07071a;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-hover: rgba(255, 255, 255, 0.07);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(139, 92, 246, 0.5);
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --text: #e8e8f8;
    --text-muted: #8888aa;
    --nav-height: 70px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ---- Background Orbs ---- */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.18;
    animation: floatOrb 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: #8b5cf6;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #06b6d4;
    bottom: -150px;
    right: -150px;
    animation-delay: -7s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -14s;
    opacity: 0.07;
}

@keyframes floatOrb {
    0%, 100% { transform: translateY(0) translateX(0); }
    33%       { transform: translateY(-40px) translateX(20px); }
    66%       { transform: translateY(20px) translateX(-30px); }
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    transition: background 0.3s ease, border-color 0.3s ease,
                box-shadow 0.3s ease, transform 0.3s ease;
}

.glass-card:hover {
    background: var(--glass-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

/* ---- Utility ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.accent {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    margin-bottom: 60px;
    letter-spacing: -0.5px;
}

/* ---- Navigation ---- */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    transition: background 0.3s ease, border-color 0.3s ease,
                backdrop-filter 0.3s ease;
}

#nav.scrolled {
    background: rgba(7, 7, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-cta {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 20px;
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    background: rgba(139, 92, 246, 0.1);
}

.nav-cta:hover {
    background: rgba(139, 92, 246, 0.2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    z-index: 99;
    background: rgba(7, 7, 26, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 28px 24px;
}

.mobile-menu.open {
    display: block;
}

.mobile-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: var(--accent-cyan);
}

/* ---- Hero ---- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    text-align: center;
    padding-top: var(--nav-height);
}

.hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-cyan);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-name {
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-subtitle {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 300;
    color: var(--text-muted);
    margin-bottom: 24px;
    min-height: 36px;
}

.typed-cursor {
    animation: blink 1s step-end infinite;
    color: var(--accent-purple);
    font-weight: 300;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-desc {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.btn-primary {
    padding: 14px 32px;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-ghost {
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 15px;
    border: 1px solid var(--glass-border);
    transition: border-color 0.3s ease, background 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.08);
}

.hero-social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.hero-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: color 0.3s ease, border-color 0.3s ease,
                background 0.3s ease, box-shadow 0.3s ease;
    background: var(--glass);
    backdrop-filter: blur(10px);
}

.hero-social a svg {
    width: 20px;
    height: 20px;
}

.hero-social a:hover {
    color: var(--text);
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent-purple), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}

/* ---- About ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.about-text {
    padding: 36px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.95;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.info-value {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

/* ---- About Quote ---- */
.about-quote {
    margin-top: 56px;
    text-align: center;
    padding: 40px 32px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.about-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gradient);
    border-radius: 0 0 4px 4px;
}

.about-quote-text {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 500;
    font-style: italic;
    color: var(--text);
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    line-height: 1.6;
}

.about-quote-text::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 1.4em;
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: 3px;
    vertical-align: -0.1em;
}

.about-quote-text::after {
    content: '\201D';
    font-family: Georgia, serif;
    font-size: 1.4em;
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 3px;
    vertical-align: -0.1em;
}

.about-quote-author {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 1px;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-purple), var(--accent-cyan), transparent);
    opacity: 0.35;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 26px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
    z-index: 1;
}

.timeline-card {
    padding: 28px 32px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.timeline-role {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.timeline-company {
    font-size: 13px;
    color: var(--accent-cyan);
    font-weight: 500;
}

.timeline-date {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    padding: 4px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass);
    flex-shrink: 0;
}

.timeline-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.85;
}

/* ---- Education ---- */
.edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.edu-card {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.edu-icon {
    font-size: 30px;
}

.edu-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.edu-degree {
    font-size: 13px;
    color: var(--accent-purple);
    font-weight: 500;
    margin-bottom: 6px;
}

.edu-detail {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.6;
}

.edu-date {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    background: var(--glass);
    display: inline-block;
}


/* ---- Footer ---- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

footer p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 24px;
}

.footer-social a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-social a:hover {
    color: var(--accent-purple);
}

/* ---- Scroll Reveal ---- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .edu-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 640px) {
    .about-info {
        grid-template-columns: 1fr 1fr;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 28px;
    }

    .timeline-dot {
        left: -26px;
        width: 12px;
        height: 12px;
        top: 28px;
    }

    .timeline-card {
        padding: 20px;
    }

    .quote-block {
        padding: 36px 24px;
    }

    .hero-name {
        letter-spacing: -1px;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
    }
}
