/* ==================== ROOT VARIABLES ==================== */
:root {
    /* Blue Color Palette - Light Mode */
    --primary-blue: #1e40af;
    --primary-blue-light: #3b82f6;
    --primary-blue-dark: #1e3a8a;
    --secondary-blue: #60a5fa;
    --accent-blue: #0ea5e9;
    --light-blue: #dbeafe;
    --very-light-blue: #eff6ff;
    
    /* Neutral Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-tertiary: #6b7280;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Gray Scale */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-blue: 0 10px 40px -10px rgba(30, 64, 175, 0.3);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
}

/* ==================== DARK MODE VARIABLES ==================== */
[data-theme="dark"] {
    /* Dark Mode Colors */
    --primary-blue: #60a5fa;
    --primary-blue-light: #93c5fd;
    --primary-blue-dark: #3b82f6;
    --secondary-blue: #3b82f6;
    --accent-blue: #38bdf8;
    --light-blue: #1e3a8a;
    --very-light-blue: #1e293b;
    
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.5);
    
    /* Adjusted Shadows for Dark Mode */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-blue: 0 10px 40px -10px rgba(96, 165, 250, 0.3);
}

/* Sistem tercihine göre otomatik dark mode */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --primary-blue: #60a5fa;
        --primary-blue-light: #93c5fd;
        --primary-blue-dark: #3b82f6;
        --secondary-blue: #3b82f6;
        --accent-blue: #38bdf8;
        --light-blue: #1e3a8a;
        --very-light-blue: #1e293b;
        
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --bg-tertiary: #334155;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --text-tertiary: #94a3b8;
        --border-color: #334155;
        --shadow-color: rgba(0, 0, 0, 0.5);
        
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
        --shadow-blue: 0 10px 40px -10px rgba(96, 165, 250, 0.3);
    }
}

/* ==================== RESET & BASE STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    transition: background-color var(--transition-base), color var(--transition-base);

    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

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

ul {
    list-style: none;
}

/* ==================== DARK MODE TOGGLE BUTTON ==================== */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-blue);
    color: var(--bg-primary);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 20px 40px -10px var(--shadow-color);
}

.theme-toggle i {
    transition: transform var(--transition-base);
}

.theme-toggle:active i {
    transform: scale(0.9);
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-light));
    color: var(--bg-primary);
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 45px -10px rgba(30, 64, 175, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-small {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(var(--bg-primary-rgb, 255, 255, 255), 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: all var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.95);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .navbar {
        background: rgba(15, 23, 42, 0.95);
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-blue);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--very-light-blue) 0%, var(--bg-primary) 100%);
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 0.8s ease-out;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    animation: fadeInRight 0.8s ease-out;
}

.profile-card {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.profile-card img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.profile-card-overlay {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: var(--radius-2xl);
    z-index: 1;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-blue);
    animation: bounce 2s infinite;
}

/* ==================== STATS SECTION ==================== */
.stats {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
}

.stat-item {
    text-align: center;
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    background: var(--very-light-blue);
    transition: all var(--transition-base);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 1rem;
}

/* ==================== SKILLS SECTION ==================== */
.skills-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-tertiary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.skill-card {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
    border-radius: var(--radius-full);
    animation: fillBar 1.5s ease-out;
}

/* ==================== FEATURED PROJECTS ==================== */
.featured-projects {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-xl);
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    padding: var(--spacing-lg);
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.project-info p {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.project-tags span {
    padding: 0.375rem 0.75rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #ffffff;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
}

.cta-section .btn-primary {
    background: var(--bg-primary);
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background: var(--bg-secondary);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    padding: 8rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, var(--very-light-blue), var(--bg-primary));
}

.page-header h1 {
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-tertiary);
}

/* ==================== ABOUT PAGE ==================== */
.about-content {
    padding: var(--spacing-3xl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    z-index: 2;
}

.image-decoration {
    position: absolute;
    top: 20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    border-radius: var(--radius-2xl);
    z-index: 1;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
}

.about-text p {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--very-light-blue);
    border-radius: var(--radius-lg);
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-top: 2px;
}

.info-item strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.info-item span {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

/* ==================== TIMELINE ==================== */
.timeline-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-blue);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-2xl);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: calc(50% + 2rem);
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    margin-left: calc(50% + 2rem);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-blue);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: var(--shadow-md);
}

.timeline-content {
    background: var(--bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.timeline-content h3 {
    color: var(--primary-blue);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.timeline-content p {
    color: var(--text-tertiary);
}

/* ==================== EXPERTISE ==================== */
.expertise-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-primary);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-xl);
}

.expertise-card {
    background: var(--bg-secondary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-blue);
    transition: all var(--transition-base);
}

.expertise-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: var(--spacing-md);
}

.expertise-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.expertise-card p {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.expertise-card ul {
    list-style: none;
}

.expertise-card li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    padding-left: var(--spacing-md);
    position: relative;
}

.expertise-card li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ==================== PORTFOLIO PAGE ==================== */
.portfolio-section {
    padding: var(--spacing-3xl) 0;
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

.portfolio-grid {
    display: grid;
    gap: var(--spacing-xl);
}

.portfolio-item {
    transition: opacity var(--transition-base), transform var(--transition-base);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.portfolio-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    box-shadow: var(--shadow-xl);
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-content h3 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.portfolio-content > p {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.portfolio-details {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-tertiary);
}

.detail-item i {
    color: var(--primary-blue);
}

.detail-item a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-lg);
}

.portfolio-tags span {
    padding: 0.375rem 0.875rem;
    background: var(--light-blue);
    color: var(--primary-blue);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.portfolio-features {
    background: var(--bg-secondary);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.portfolio-features h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.portfolio-features ul {
    list-style: none;
}

.portfolio-features li {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.portfolio-features i {
    color: var(--primary-blue);
}

.portfolio-links {
    display: flex;
    gap: var(--spacing-md);
}

.portfolio-link {
    width: 50px;
    height: 50px;
    background: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--primary-blue);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
}

.portfolio-link:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: scale(1.1);
}

.portfolio-info-overlay {
    text-align: center;
    color: #ffffff;
}

.portfolio-info-overlay i {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.portfolio-info-overlay p {
    font-size: 1.25rem;
}

/* ==================== TECHNOLOGIES ==================== */
.technologies-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.technologies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-lg);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-blue);
}

.tech-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==================== CONTACT PAGE ==================== */
.contact-section {
    padding: var(--spacing-3xl) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--spacing-3xl);
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.contact-intro {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.contact-item {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--very-light-blue);
    border-radius: var(--radius-lg);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.contact-details a,
.contact-details p {
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-details a:hover {
    color: var(--primary-blue);
}

.status-available {
    color: var(--primary-blue);
    font-weight: 600;
}

.social-links-large {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border-color);
}

.social-links-large h4 {
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.social-icons {
    display: flex;
    gap: var(--spacing-md);
}

.social-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition-base);
}

.social-icon:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
}

/* ==================== CONTACT FORM ==================== */
.contact-form-container {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.contact-form-container h2 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xl);
}

.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: var(--spacing-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    display: none;
}

.form-message.success {
    display: block;
    background: #d1fae5;
    color: #065f46;
}

[data-theme="dark"] .form-message.success {
    background: #064e3b;
    color: #6ee7b7;
}

.form-message.error {
    display: block;
    background: #fee2e2;
    color: #991b1b;
}

[data-theme="dark"] .form-message.error {
    background: #7f1d1d;
    color: #fca5a5;
}

/* ==================== SERVICES OVERVIEW ==================== */
.services-overview {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--bg-primary);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto var(--spacing-md);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--text-tertiary);
}

/* ==================== ERROR PAGE ==================== */
.error-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--very-light-blue), var(--bg-primary));
}

.error-content {
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-md);
}

.error-content h1 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

.error-content p {
    font-size: 1.125rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-xl);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: var(--spacing-3xl);
    margin-bottom: var(--spacing-xl);

    -webkit-touch-callout: text; /* iOS Safari */
    -webkit-user-select: text; /* Safari */
     -khtml-user-select: text; /* Konqueror HTML */
       -moz-user-select: text; /* Old versions of Firefox */
        -ms-user-select: text; /* Internet Explorer/Edge */
            user-select: text; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */

}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.footer-section h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
}

.footer-section p {
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
}

.footer-section ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-section ul li a {
    color: var(--text-tertiary);
    transition: color var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--primary-blue-light);
}

.footer-section ul li i {
    margin-right: var(--spacing-xs);
    color: var(--primary-blue-light);
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.social-links a:hover {
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-3px);
}

.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-tertiary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .technologies-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .theme-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image .image-wrapper {
        margin: 0 auto;
    }
    
    .personal-info {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-dot {
        left: 0;
        transform: translateX(0);
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 2rem;
        margin-right: 0;
        text-align: left;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .portfolio-filters {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .technologies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-buttons {
        flex-direction: column;
    }
}
 
  
/* ==================== NAVBAR MOBILE FIX ==================== */  
.nav-right {  
    display: flex;  
    align-items: center;  
    gap: 2rem;  
}  
  
@media (max-width: 768px) {  
    .nav-right {  
        position: relative;  
    }  
  
    .nav-toggle {  
        display: flex !important;  
        z-index: 1001;  
        position: relative;  
    }  
} 
