/* ============================================
   ESLEM NUR | İLİM VE KOD - GLOBAL STYLES (v2.0)
   Tüm Diller İçin Ortak CSS - Optimize & Uyarlanmış
   ============================================ */

/* ============================================
   1. ROOT VARIABLES & COLOR PALETTE
   ============================================ */

:root {
    /* Primary Colors - Erişilebilirlik uyumlu (WCAG AA+) */
    --primary-color: #A06872;
    --primary-dark: #8E5A65;
    --primary-light: #CC8E98;
    
    /* Secondary & Neutral Colors */
    --secondary-color: #FDF5E6;
    --accent-color: #9E7F7F;
    --accent-warm: #E6C9C9;
    --accent-cool: #D8C3CD;
    
    /* Background Colors - Light Mode */
    --bg-color: #FFF9F9;
    --bg-secondary: #FFF0F5;
    --card-bg: #FFFFFF;
    --card-secondary: #FDF5F5;
    
    /* Text Colors - Light Mode */
    --text-primary: #4E342E;
    --text-secondary: #8D6E63;
    --text-muted: #A89080;
    
    /* Border & Divider Colors */
    --border-color: #F0E6E6;
    --border-focus: #A06872;
    --divider: #F5E8E8;
    
    /* Interactive Elements */
    --button-bg: #D4A5A5;
    --button-hover: #C58F8F;
    --button-active: #B77F7F;
    
    /* Special Purpose Colors */
    --note-bg: #FFF0F5;
    --error-bg: #FFE6E6;
    --error-color: #D32F2F;
    --success-bg: #E8F5E9;
    --success-color: #388E3C;
    
    /* Shadows - Subtle Depth */
    --shadow-sm: 0 2px 8px rgba(183, 110, 121, 0.1);
    --shadow-md: 0 4px 15px rgba(183, 110, 121, 0.15);
    --shadow-lg: 0 8px 25px rgba(183, 110, 121, 0.2);
    --shadow-xl: 0 12px 40px rgba(183, 110, 121, 0.25);
    
    /* Header & Overlay */
    --header-bg: rgba(255, 249, 249, 0.95);
    --backdrop-blur: blur(10px);
    --overlay-bg: rgba(0, 0, 0, 0.5);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
    
    /* Spacing Scale */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* Dark Mode Theme Variables */
[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #CC8E98;
    --primary-dark: #A06872;
    --primary-light: #E0A4AC;
    
    /* Background Colors */
    --bg-color: #0D0D0D;
    --bg-secondary: #141414;
    --card-bg: #1A1A1A;
    --card-secondary: #222222;
    
    /* Text Colors */
    --text-primary: #F5F5F0;
    --text-secondary: #B0B0B0;
    --text-muted: #808080;
    
    /* Border Colors */
    --border-color: #2A2A2A;
    --border-focus: #CC8E98;
    --divider: #333333;
    
    /* Interactive */
    --button-bg: #A07070;
    --button-hover: #805050;
    --button-active: #6D4A4A;
    
    /* Special Purpose */
    --note-bg: #252525;
    --error-bg: #4A1919;
    --success-bg: #1A3820;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 35px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 12px 50px rgba(0, 0, 0, 0.6);
    
    /* Header */
    --header-bg: rgba(13, 13, 13, 0.95);
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* ============================================
   2. BASE RESET & TYPOGRAPHY
   ============================================ */

/* Reset Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color var(--transition-base), 
                color var(--transition-base);
    min-height: 100vh;
}

/* Typography Scale - Responsive Clamp */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.8rem);
}

h5 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

h6 {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast), 
                background-color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
    margin-bottom: var(--spacing-md);
}

strong, b {
    font-weight: 700;
    color: var(--primary-color);
}

small {
    font-size: 0.875rem;
    color: var(--text-muted);
}

code, pre {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    background-color: var(--note-bg);
    border-radius: var(--radius-sm);
}

pre {
    padding: var(--spacing-md);
    overflow-x: auto;
}

blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: var(--spacing-md);
    margin: var(--spacing-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

hr {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: var(--spacing-xl) 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   3. ACCESSIBILITY & FOCUS STATES
   ============================================ */

/* Keyboard Focus Indicators */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    z-index: 9999;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 0;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000;
        --text-secondary: #000;
    }
    
    [data-theme="dark"] {
        --border-color: #FFF;
        --text-secondary: #FFF;
    }
}

/* ============================================
   4. CONTAINERS & LAYOUT
   ============================================ */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 40px);
}

.container-fluid {
    width: 100%;
    padding: 0 clamp(15px, 3vw, 40px);
}

/* Section Layout */
.section {
    padding: clamp(60px, 8vw, 100px) 0;
}

.section-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    margin-bottom: clamp(40px, 5vw, 60px);
    position: relative;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '✿';
    display: block;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 10px;
    -webkit-text-fill-color: var(--accent-color);
}

/* Grid Systems */
.grid {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   5. HEADER & NAVIGATION
   ============================================ */

header {
    background: var(--header-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: clamp(10px, 2vw, 15px) 0;
    transition: all var(--transition-base);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-md);
}

/* Logo Styling */
.logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    white-space: nowrap;
}

.logo span {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--accent-color);
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
    position: relative;
    padding: var(--spacing-xs) 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width var(--transition-base);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Nav Controls Container */
.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* Control Buttons (Theme, Lang) */
.theme-toggle, .lang-toggle {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    min-width: 48px;
    min-height: 48px;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition-base);
    padding: 0;
}

.theme-toggle:hover, .lang-toggle:hover {
    background: var(--note-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
    display: inline-block;
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 140px;
    z-index: 1001;
    margin-top: 8px;
    overflow: hidden;
    animation: fadeIn var(--transition-fast) ease;
}

.lang-dropdown.active .lang-dropdown-menu {
    display: block;
}

.lang-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.lang-dropdown-menu a:hover {
    background: var(--note-bg);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.lang-dropdown-menu a:first-child {
    border-bottom: 1px solid var(--border-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: var(--spacing-sm);
    margin-left: auto;
    background: none;
    border: none;
    min-width: 48px;
    min-height: 48px;
}

/* ============================================
   6. HERO SECTION
   ============================================ */

.hero {
    padding: clamp(80px, 15vw, 120px) 0;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--note-bg) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.basmala-hero {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
    direction: rtl;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.hero h1 span {
    color: var(--primary-color);
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-family: 'Inter', sans-serif !important;
    font-weight: 400 !important;
    letter-spacing: 0.3px !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    padding: 0 var(--spacing-sm);
    max-width: 100%;
}

.badge {
    background: var(--note-bg);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.badge:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    width: 100%;
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* ============================================
   7. BUTTONS
   ============================================ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 14px) clamp(25px, 4vw, 35px);
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1.5vw, 12px) clamp(20px, 3vw, 25px);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    text-decoration: none;
    cursor: pointer;
    min-height: 44px;
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: clamp(10px, 2vw, 14px) clamp(25px, 4vw, 35px);
    background-color: var(--button-bg);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-bounce);
    border: none;
    cursor: pointer;
    min-height: 48px;
}

.btn-secondary:hover {
    background-color: var(--button-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Button Group */
.btn-group {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    justify-content: center;
}

/* ============================================
   8. CARDS
   ============================================ */

.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    transition: all var(--transition-bounce);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Card with Image */
.card-with-image {
    overflow: hidden;
}

.card-image {
    height: 200px;
    background-color: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-body {
    padding: var(--spacing-md);
}

/* ============================================
   9. PROJECTS & SKILLS SECTION
   ============================================ */

.skills-container, .projects-grid, .shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* Skill Cards */
.skill-card {
    background: var(--card-bg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-bounce);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.skill-icon {
    font-size: 2rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--note-bg);
    border-radius: var(--radius-md);
}

.skill-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.skill-list li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
}

.skill-list li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    line-height: 1.3;
}

/* Project & Shop Cards */
.project-card, .shop-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all var(--transition-bounce);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover, .shop-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-img, .shop-img {
    height: 200px;
    background-color: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.project-img img, .shop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow) ease;
}

.project-card:hover .project-img img, 
.shop-card:hover .shop-img img {
    transform: scale(1.1);
}

.project-content, .shop-content {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title, .shop-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.project-desc, .shop-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    flex-grow: 1;
    line-height: 1.6;
}

.repo-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-sm);
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.repo-link:hover {
    color: var(--primary-color);
}

.repo-link i {
    font-size: 1rem;
}

/* Icon Colors for Tech Stack */
.repo-link .fa-python { color: #3776AB; }
.repo-link .fa-html5 { color: #E34F26; }
.repo-link .fa-css3-alt { color: #1572B6; }
.repo-link .fa-js { color: #F7DF1E; }
.repo-link .fa-file-pdf { color: #E53935; }
.repo-link .fa-book { color: #7B1FA2; }
.repo-link .fa-language { color: #E67E22; }
.repo-link .fa-layer-group { color: #000000; }

[data-theme="dark"] .repo-link .fa-layer-group {
    color: #FFFFFF;
}

/* ============================================
   10. TABS & SWITCHERS
   ============================================ */

.tab-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    min-height: 48px;
}

.tab-btn:hover:not(.active) {
    background: var(--note-bg);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

/* Tab Content Animation */
.skill-group, .project-group, .shop-group {
    animation: fadeIn var(--transition-base) ease;
    display: grid;
}

.skill-group.hidden, .project-group.hidden, .shop-group.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   11. ABOUT SECTION
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.about-text p {
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-visual {
    background: var(--card-bg);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
    position: relative;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px dashed var(--border-color);
    border-radius: calc(var(--radius-xl) - 10px);
    z-index: 0;
}

.icon-box {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    position: relative;
    z-index: 1;
}

.about-visual h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.about-visual p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   12. SHOP SECTION
   ============================================ */

.shop-info-box {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, rgba(183, 110, 121, 0.1), rgba(183, 110, 121, 0.05));
    border: 2px dashed var(--primary-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

.shop-info-box p {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

/* ============================================
   13. FOOTER
   ============================================ */

footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: clamp(40px, 6vw, 60px) 0 clamp(30px, 4vw, 40px);
    text-align: center;
    margin-top: var(--spacing-2xl);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-arabic {
    font-family: 'Scheherazade New', serif;
    font-size: clamp(1.5rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    direction: rtl;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
    align-items: center;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    background: var(--note-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.3rem;
    transition: all var(--transition-bounce);
    text-decoration: none;
    min-width: 48px;
    min-height: 48px;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px) rotate(5deg);
    box-shadow: var(--shadow-md);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: var(--spacing-md);
}

.trademark-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: var(--spacing-sm) 0;
}

.brand-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.separator {
    margin: 0 var(--spacing-xs);
    color: var(--text-muted);
}

.legal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: var(--spacing-xs) 0 0;
    opacity: 0.8;
}

/* ============================================
   14. FEEDBACK & RATING
   ============================================ */

.feedback-section {
    margin: var(--spacing-xl) auto;
    max-width: 500px;
    padding: var(--spacing-lg);
    background: var(--note-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.feedback-section h3 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.3rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    direction: ltr;
}

.star {
    font-size: 2.6rem;
    cursor: pointer;
    color: #E6D0D0;
    transition: all var(--transition-base);
    user-select: none;
    padding: 4px;
}

.star:hover {
    transform: scale(1.2);
    color: var(--primary-color);
}

.star.active {
    color: var(--primary-color);
}

.rating-text {
    text-align: center;
    margin-top: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    min-height: 1.5em;
}

/* ============================================
   15. LOADING STATES
   ============================================ */

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.card-skeleton {
    background: linear-gradient(90deg, 
        var(--card-bg) 25%, 
        var(--bg-secondary) 50%, 
        var(--card-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.loading-spinner {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.2; }
}

/* Fade In Animation */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, 
                transform 0.6s ease-out;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Animation Delay */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================
   16. ARABIC & RTL SUPPORT
   ============================================ */

[dir="rtl"] body {
    font-family: 'Amiri', 'Scheherazade New', 'Inter', sans-serif;
    line-height: 1.9;
}

[dir="rtl"] .logo {
    font-family: 'Amiri', 'Scheherazade New', serif;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 {
    font-family: 'Amiri', 'Playfair Display', serif;
}

[dir="rtl"] .hero-subtitle {
    font-family: 'Amiri', 'Inter', sans-serif !important;
}

[dir="rtl"] .section-title {
    font-family: 'Amiri', 'Playfair Display', serif;
}

[dir="rtl"] .skill-title,
[dir="rtl"] .project-title,
[dir="rtl"] .shop-title {
    font-family: 'Amiri', 'Playfair Display', serif;
}

[dir="rtl"] strong {
    font-family: 'Amiri', 'Inter', sans-serif;
}

[dir="rtl"] .star-rating {
    direction: rtl;
}

[dir="rtl"] .skill-list li {
    padding-right: 25px;
    padding-left: 0;
}

[dir="rtl"] .skill-list li::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .btn-outline i {
    margin-left: 8px;
    margin-right: 0;
}

[dir="rtl"] a[href*="logo-reference"] {
    direction: rtl;
    unicode-bidi: embed;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* ============================================
   17. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: clamp(60px, 12vw, 80px) 0;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    
    .skills-container, 
    .projects-grid, 
    .shop-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
    header {
        padding: var(--spacing-sm) 0;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .section {
        padding: clamp(40px, 8vw, 60px) 0;
    }
    
    .nav-links.active {
        display: flex !important;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--card-bg);
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-md) 0;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--border-color);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        overscroll-behavior: contain;
        animation: slideDown var(--transition-base) ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-links.active a {
        display: block;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-primary);
    }
    
    .nav-links.active a:last-child {
        border-bottom: none;
    }
    
    .nav-links.active a:hover {
        background: var(--note-bg);
        color: var(--primary-color);
    }
    
    .skills-container, 
    .projects-grid, 
    .shop-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .hero-badges {
        gap: var(--spacing-xs);
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        padding: 12px 20px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tab-btn {
        width: 100%;
    }
    
    .theme-toggle, .lang-toggle {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .star-rating {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .star {
        font-size: 2rem;
    }
    
    .feedback-section {
        padding: var(--spacing-md);
        margin: var(--spacing-lg) auto;
    }
    
    .shop-grid, .projects-grid {
        gap: var(--spacing-md);
    }
    
    .about-visual {
        padding: var(--spacing-lg);
    }
    
    .icon-box {
        font-size: 3rem;
    }
    
    .footer-content {
        padding: 0 var(--spacing-md);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: clamp(50px, 15vw, 70px) 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .card {
        padding: var(--spacing-md);
    }
    
    .skill-card, .project-card, .shop-card {
        padding: var(--spacing-md);
    }
    
    .project-img, .shop-img {
        height: 160px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        min-width: 42px;
        min-height: 42px;
        font-size: 1.1rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
    
    .logo span {
        font-size: 0.9rem;
    }
}

/* ============================================
   18. UTILITY CLASSES
   ============================================ */

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }

/* Spacing Utilities */
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }

/* Flex Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }
.gap-4 { gap: var(--spacing-lg); }

/* Visibility Utilities */
.hidden { display: none !important; }
.visible { visibility: visible !important; }

/* Gradient Text */
.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ============================================
   EMAIL COPY FUNCTIONALITY
   ============================================ */

.email-copy-wrapper {
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.email-button {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 45px;
    height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.email-address {
    margin-left: 10px;
    color: var(--primary-color);
    font-weight: 600;
    font-family: 'Lato', sans-serif;
}

.copy-feedback {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

/* RTL için özel düzenleme */
[dir="rtl"] .copy-feedback {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

/* ============================================
   SECTION DESCRIPTION TEXT (MERKEZLEŞTİRME)
   ============================================ */

.section-description {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
}

/* Mobile için */
@media (max-width: 768px) {
    .section-description {
        margin-bottom: 30px;
    }
}

/* ============================================
   19. FORM ELEMENTS
   ============================================ */

input, textarea, select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 48px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(183, 110, 121, 0.1);
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234E342E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

[data-theme="dark"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23F5F5F0' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* ============================================
   20. ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn var(--transition-base) ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp var(--transition-slow) ease forwards;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* Scroll Reveal */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, 
                transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Actions */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-md);
    width: 100%;
    margin: var(--spacing-md) auto;
}

/* Arabic Text Class */
.arabic-text {
    font-family: 'Scheherazade New', serif;
    font-size: 1.4rem;
    color: var(--primary-color);
    direction: rtl;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

/* Tab Hidden State */
.skill-group.hidden,
.project-group.hidden,
.shop-group.hidden {
    display: none !important;
}

/* Nav Controls Clean */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Project Image Clean */
.project-img, .shop-img {
    background: var(--bg-secondary);
    object-fit: cover;
}