/* Modern Design System - Hakan Sabuniş Portfolio */
:root {
    /* Color Palette - Premium Dark */
    --bg-dark: #0a0f1c;
    --bg-card: rgba(255, 255, 255, 0.05);
    --primary: #3b82f6;
    /* Electric Blue */
    --accent: #f59e0b;
    /* Gold/Amber */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);

    /* Typography */
    --font-heading: 'inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-gap: 6rem;
    --container-width: 1200px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.05em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-gap) 0;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 15, 28, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    /* Fixed typo (was 900vh) - Fits in viewport */
    display: flex;
    align-items: center;
    padding: 40px 0;
    /* Reduced padding */
    overflow: hidden;
    /* Prevent scrollbars */
}

/* Flex Container for Hero Content */
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 10;
    /* Ensure text is on top */
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* Image Wrapper - Now Flex Item, not Absolute */
.hero-image-wrapper {
    flex: 0 0 40%;
    /* Take up 40% of width */
    max-width: 450px;
    /* Limit max width */
    height: auto;
    display: flex;
    justify-content: flex-end;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    /* Limit height */
    object-fit: contain;
    /* Don't crop */
    border-radius: 24px;
    box-shadow: -20px 20px 60px rgba(0, 0, 0, 0.5);
    opacity: 1;
    /* Fully visible */
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.experience-item {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.experience-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 10px;
    margin-right: 2rem;
    z-index: 2;
    border: 4px solid var(--bg-dark);
}

.experience-content {
    flex: 1;
}

.date-badge {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.4em 0.8em;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
}

/* Footer & Contact */
.contact-section {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-icon:hover {
    transform: translateY(-5px);
    color: var(--primary);
}

footer {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-image-wrapper {
        display: none;
    }

    .timeline::before {
        left: 20px;
    }

    .experience-logo {
        width: 40px;
        height: 40px;
        margin-right: 1rem;
    }

    .nav-links {
        display: none;
    }

    /* Simplified for now */
}

/* Lightbox Styles */
#lightbox {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    font-weight: bold;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}