/* =============================================
   2025 TECH DESIGN SYSTEM
   Deep Space Theme with Glassmorphism
   Inspired by: Vercel, Linear, Stripe
   ============================================= */

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =============================================
   CSS VARIABLES - Design Tokens
   PROFESSIONAL THEME - Soft, Clear, Readable
   ============================================= */
:root {
    /* Light Professional Background Colors - Clean & Modern */
    --deep-space: #ffffff; /* Clean white background */
    --deep-space-800: #f8fafc; /* Slate 50 - Subtle accent */
    --deep-space-700: #f1f5f9; /* Slate 100 - Light sections */
    --deep-space-600: #e2e8f0; /* Slate 200 - Borders */

    /* Accent Colors - Vibrant on Light Background */
    --electric-blue: #3b82f6; /* Blue 500 - Primary brand */
    --electric-purple: #8b5cf6; /* Purple 500 - Accent */
    --electric-cyan: #06b6d4; /* Cyan 500 - Highlight */
    --electric-pink: #ec4899; /* Pink 500 - Alert */

    /* Gradients - Professional and Vibrant */
    --gradient-primary: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --gradient-electric: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    --gradient-cyber: linear-gradient(135deg, #22d3ee 0%, #60a5fa 100%);
    --gradient-text: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);

    /* Glass Effect - More Visible */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
    --glass-blur: blur(16px);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --letter-spacing-tight: -0.02em;
    --letter-spacing-normal: -0.01em;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Animation */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   GLOBAL RESETS & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--deep-space);
    color: #334155; /* Dark slate for readability on light background */
    line-height: 1.6;
    letter-spacing: var(--letter-spacing-normal);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Subtle Background Pattern - Professional Light Theme */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.03) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: backgroundPulse 20s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-5%, -5%) scale(1.05); }
}

/* =============================================
   TYPOGRAPHY SYSTEM
   ============================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.2;
    color: #0f172a; /* Dark slate for strong contrast on light background */
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 2rem);
}

p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #475569; /* Medium slate for readability on light background */
}

.text-gradient {
    background: var(--gradient-electric);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-glow {
    text-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

/* =============================================
   GLASSMORPHISM COMPONENTS
   ============================================= */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glass);
}

.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15);
}

/* =============================================
   FLOATING NAVIGATION
   ============================================= */
.nav-floating {
    position: fixed;
    top: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    width: calc(100% - 2rem);
    max-width: 1200px;
}

.nav-glass {
    background: rgba(255, 255, 255, 0.9); /* White with transparency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a; /* Dark for light background */
    text-decoration: none;
    letter-spacing: var(--letter-spacing-tight);
    transition: all var(--transition-fast);
}

.nav-logo:hover {
    color: var(--electric-blue);
    text-shadow: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-link {
    color: #475569; /* Medium slate for light background */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: var(--gradient-electric);
    transition: transform var(--transition-base);
    border-radius: 2px;
}

.nav-link:hover {
    color: #0f172a; /* Darker on hover */
    background: rgba(59, 130, 246, 0.08);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: #0f172a; /* Darker for active state */
    background: rgba(59, 130, 246, 0.12);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #0f172a; /* Dark for light background */
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--electric-blue);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-description {
    font-size: 1.25rem;
    color: #64748b; /* Medium slate for readability on light */
    margin-bottom: var(--space-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-cta {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   MODERN BUTTONS
   ============================================= */
.btn-tech {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-primary);
}

.btn-tech-primary {
    background: var(--gradient-electric);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.btn-tech-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.btn-tech-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-tech-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-tech-outline {
    background: transparent;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-tech-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--electric-blue);
    color: var(--electric-blue);
    transform: translateY(-2px);
}

/* =============================================
   BENTO GRID LAYOUT
   ============================================= */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--space-md);
    padding: var(--space-xl) 0;
}

.bento-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(59, 130, 246, 0.15);
}

/* Bento Grid Layouts */
.bento-large {
    grid-column: span 6;
    min-height: 400px;
}

.bento-medium {
    grid-column: span 6;
    min-height: 400px;
}

.bento-small {
    grid-column: span 6;
    min-height: 400px;
}

.bento-wide {
    grid-column: span 12;
    min-height: 200px;
}

/* Bento Clickable Links */
.bento-clickable {
    text-decoration: none;
    cursor: pointer;
}

.bento-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--space-md);
}

.bento-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bento-icon {
    font-size: 2.5rem;
}

.bento-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.bento-badge-flagship {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.bento-badge-live {
    background: rgba(34, 211, 238, 0.15);
    color: #06b6d4;
}

.bento-title {
    font-size: 1.5rem !important;
    font-weight: 700;
    color: #0f172a !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

.bento-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

/* =============================================
   CONTAINER SYSTEM
   ============================================= */
.container-tech {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-narrow {
    max-width: 900px;
}

.section-tech {
    padding: var(--space-3xl) 0;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 991px) {
    .nav-floating {
        width: calc(100% - 1.5rem);
    }

    .nav-glass {
        padding: 0.75rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 5rem;
        left: 0.75rem;
        right: 0.75rem;
        background: rgba(255, 255, 255, 0.95); /* White - Clean & Professional */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: var(--radius-lg);
        padding: var(--space-md);
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: all var(--transition-base);
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        text-align: left;
    }

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 12;
    }

    .hero-section {
        padding: var(--space-2xl) var(--space-md);
    }
}

@media (max-width: 640px) {
    :root {
        font-size: 14px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-tech {
        width: 100%;
        justify-content: center;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.hidden { display: none; }
.visible { display: block; }

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    * {
        max-width: 100%;
    }
}
/* Alt sayfalardaki (About vs.) başlık ve yazı renklerini kurtaralım */
.about-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important; /* Koyu, teknolojik lacivert */
    padding: 100px 0 60px 0 !important;
    color: #ffffff !important;
}

    .about-hero h1 {
        color: #ffffff !important;
        font-weight: 800 !important;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .about-hero p.lead {
        color: rgba(255, 255, 255, 0.8) !important; /* Okunabilir grimsi beyaz */
    }

/* =============================================
   MOBILE MENU & SPACING REPAIR
   ============================================= */

@media (max-width: 991px) {
    /* 1. Menünün üstündeki devasa boşluğu kapat */
    .nav-links {
        top: 4.5rem !important; /* Logoya daha yakın olmasını sağlar */
        margin-top: 0 !important;
        padding: 1.5rem !important;
    }

    /* 2. Hero alanındaki gereksiz üst boşluğu daralt */
    .hero-section {
        padding-top: 6rem !important; /* Mobilde yukarıya yapışık durmaması ama boş kalmaması için */
        min-height: auto !important; /* Mobilde çok uzun ekranları önler */
    }

    /* 3. About sayfası gibi alt sayfalardaki özel boşlukları düzelt */
    .about-hero {
        padding-top: 100px !important; /* Mobilde çok aşağıda kalmasını engeller */
        padding-bottom: 40px !important;
    }

    /* 4. Logonun ve toggle butonun hizalamasını sabitle */
    .nav-floating {
        top: 1rem !important;
    }

    .nav-glass {
        padding: 0.6rem 1.2rem !important;
    }
}

/* 5. Dropdown (Projects) menüsü açıksa içindeki boşluğu yönet */
.nav-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

    .nav-dropdown-menu.active {
        max-height: 500px;
    }