:root[data-theme="light"] {
    --bg-primary: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    --accent: #000000;
}

:root[data-theme="dark"] {
    --bg-primary: #000000;
    --text-primary: #ffffff;
    --text-secondary: #999999;
    --accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Clash Display', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

/* Loader */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.loader-text {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: var(--text-secondary);
    position: relative;
    overflow: hidden;
    opacity: 0;
}

.loader-progress::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--accent);
    transform-origin: left;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    padding: 2rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.theme-icon {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Tema durumuna göre icon görünürlüğü */
[data-theme="dark"] .sun-path {
    display: block;
}

[data-theme="dark"] .moon-path {
    display: none;
}

[data-theme="light"] .sun-path {
    display: none;
}

[data-theme="light"] .moon-path {
    display: block;
}

/* Hover efekti */
#theme-toggle:hover {
    transform: translateY(-2px);
}

/* Theme text stilini güncelle */
.theme-text {
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#theme-toggle:hover .theme-text {
    opacity: 1;
}

/* Moon ikonu için transform ekle */
[data-theme="light"] .moon-path {
    display: block;
    transform: rotate(180deg); /* Ay ikonunu düzelt */
    transform-origin: center;
}

/* Sun ikonu için düzeltme */
[data-theme="dark"] .sun-path {
    display: block;
    transform-origin: center;
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
}

#scene-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

h1 {
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 2rem;
}

.title {
    display: block;
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 0.5em;
    margin-bottom: 1rem;
}

.name {
    display: block;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

/* Typewriter stilini ekle */
.typewriter {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    margin: 2rem 0;
    min-height: 4em;
    line-height: 1.6;
}

/* Email link stilini özelleştir */
.social-links a[href^="mailto"] {
    color: var(--accent);
    font-weight: 600;
}

/* Ana içeriği başlangıçta gizle */
main {
    display: none;
} 