/*
Theme Name: Portfolio Theme
Description: Modern portfolio WordPress theme with glassmorphism design and responsive layout
Version: 1.0.0
Author: Alper Özer
Author URI: https://alperozer.com
Theme URI: https://alperozer.com
Text Domain: portfolio
Domain Path: /languages
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: portfolio, responsive, modern, glassmorphism, one-page, custom-post-types

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen Reader Only */
.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;
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Text Overflow Prevention */
.hero-title,
.hero-subtitle,
.hero-description,
.section-title,
.section-description,
p, h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Image Responsive Fixes */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container Text Overflow */
.container,
.nav-container,
.hero-container {
    overflow-wrap: break-word;
    word-break: break-word;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 50%, 100% 50%, 50% 50%, 0% 0%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 100% 25%, 0% 75%, 25% 75%, 25% 25%;
        filter: hue-rotate(15deg);
    }
    50% {
        background-position: 100% 50%, 0% 50%, 75% 25%, 100% 100%;
        filter: hue-rotate(30deg);
    }
    75% {
        background-position: 0% 75%, 100% 25%, 25% 75%, 75% 75%;
        filter: hue-rotate(15deg);
    }
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation - Advanced Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 50%, rgba(51, 65, 85, 0.85) 100%),
        radial-gradient(ellipse at top, rgba(0, 245, 255, 0.05) 0%, transparent 70%);
    backdrop-filter: blur(40px) saturate(200%) brightness(1.1);
    border-bottom: 1px solid rgba(0, 245, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(0, 245, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 245, 255, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0;
    margin: 0;
    width: 100%;
}

.navbar.scrolled {
    background: 
        linear-gradient(135deg, rgba(15, 23, 42, 0.98) 0%, rgba(30, 41, 59, 0.95) 50%, rgba(51, 65, 85, 0.92) 100%),
        radial-gradient(ellipse at top, rgba(0, 245, 255, 0.08) 0%, transparent 70%);
    backdrop-filter: blur(40px) saturate(200%);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(0, 245, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 245, 255, 0.15);
}

.navbar.scrolled .nav-link {
    color: #e2e8f0;
}

.navbar.scrolled .nav-logo a {
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar.scrolled .lang-btn {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
}

.navbar.scrolled .lang-btn.active {
    background: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
    color: #0a0a0a;
}

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

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    text-decoration: none;
    background: linear-gradient(135deg, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f5ff, #0066ff);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 8px;
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.5);
    transform: translateY(-2px);
    color: #ffffff;
}

.lang-btn.active {
    background: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
    color: #0a0a0a;
    border-color: transparent;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section - Minimal Design */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        radial-gradient(ellipse at top left, rgba(0, 245, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(0, 102, 255, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    background-attachment: fixed;
    animation: backgroundShift 20s ease-in-out infinite;
    color: #f8fafc;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 245, 255, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, rgba(0, 102, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
    animation: overlayShift 15s ease-in-out infinite;
}

@keyframes overlayShift {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #00f5ff;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 3;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 245, 255, 0.3), 0 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1;
    font-variant-ligatures: common-ligatures;
    animation: glow 2s ease-in-out infinite alternate;
}

.highlight {
    background: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 245, 255, 0.4));
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 1;
    color: #e2e8f0;
    font-weight: 600;
    text-shadow: 0 0 15px rgba(0, 245, 255, 0.2), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #cbd5e1;
    line-height: 1.7;
    max-width: 500px;
    text-shadow: 0 0 10px rgba(0, 245, 255, 0.1), 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 245, 255, 0.3));
}

.stat-label {
    font-size: 0.875rem;
    color: #e2e8f0;
    margin-top: 0.25rem;
    font-weight: 500;
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #00f5ff 0%, #0066ff 100%);
    color: #0a0a0a;
    box-shadow: 0 8px 32px rgba(0, 245, 255, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 245, 255, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Profile Photo Styles */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.profile-photo {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.2);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 8px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(15, 23, 42, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .profile-photo {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
}