/* Custom styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    scroll-behavior: smooth;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    position: relative;
}

/* Performans İyileştirmeleri */
img {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

/* Animasyonlar */
@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
    will-change: opacity, transform;
}

.scale-in {
    opacity: 0;
    animation: scaleIn 0.8s ease-out forwards;
    will-change: opacity, transform;
}

.slide-in {
    opacity: 0;
    animation: slideIn 0.8s ease-out forwards;
    will-change: opacity, transform;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn-primary {
    background-color: #fff;
    color: #000;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.125rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-out, background-color 0.3s ease-out;
    will-change: transform, background-color;
}

.btn-primary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1.125rem;
    transition: transform 0.3s ease-out, background-color 0.3s ease-out, color 0.3s ease-out;
    will-change: transform, background-color, color;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #000;
    transform: translateY(-2px);
}

/* Cards */
.card-hover {
    transition: transform 0.3s ease-out, background-color 0.3s ease-out, border-color 0.3s ease-out;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    will-change: transform, background-color, border-color;
}

.card-hover:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.2s ease-out;
    will-change: transform, opacity;
}

.custom-cursor.active {
    transform: scale(1.5);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    will-change: background-position;
}

/* Layout */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    left: 0;
    right: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-size: 3rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 4.5rem;
    }
}

h2 {
    font-size: 2.25rem;
}

@media (min-width: 768px) {
    h2 {
        font-size: 3.75rem;
    }
}

h3 {
    font-size: 1.875rem;
}

@media (min-width: 768px) {
    h3 {
        font-size: 3rem;
    }
}

/* Spacing */
.section-spacing {
    padding: 6rem 0;
}

@media (min-width: 768px) {
    .section-spacing {
        padding: 8rem 0;
    }
}

/* Grid */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-spacing {
        padding: 4rem 0;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    @media (min-width: 768px) {
        h1 {
            font-size: 3.75rem;
        }
    }
    
    h2 {
        font-size: 1.875rem;
    }
    
    @media (min-width: 768px) {
        h2 {
            font-size: 3rem;
        }
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    @media (min-width: 768px) {
        h3 {
            font-size: 2.25rem;
        }
    }
    
    .grid-layout, .card-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

/* Reset margin and padding for main content */
main {
    padding-top: 100px; /* Header yüksekliği + extra boşluk */
    width: 100%;
    overflow-x: hidden;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Header yüksekliği kadar padding */
}

/* Header Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Styles */
.site-header {
    animation: slideDown 0.8s ease-out;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 80px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease-in-out;
    will-change: transform, background-color, backdrop-filter;
}

.site-header.hidden {
    transform: translateY(-100%);
}

.site-header.visible {
    transform: translateY(0);
}

.site-header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    margin: 0 2rem;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    font-weight: 400;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active::after {
    width: 100%;
}

.menu-item {
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.2s; }
.menu-item:nth-child(3) { animation-delay: 0.3s; }
.menu-item:nth-child(4) { animation-delay: 0.4s; }
.menu-item:nth-child(5) { animation-delay: 0.5s; }
.menu-item:nth-child(6) { animation-delay: 0.6s; }

/* Mobile Menu */
.mobile-menu {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transform-origin: top;
    transition: all 0.3s ease-in-out;
}

.mobile-menu.hidden {
    opacity: 0;
    transform: scaleY(0);
}

.mobile-menu:not(.hidden) {
    opacity: 1;
    transform: scaleY(1);
}

.mobile-link {
    opacity: 0;
    transform: translateX(-20px);
    animation: fadeIn 0.5s ease-out forwards;
}

.mobile-menu:not(.hidden) .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu:not(.hidden) .mobile-link:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu:not(.hidden) .mobile-link:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu:not(.hidden) .mobile-link:nth-child(4) { animation-delay: 0.4s; }
.mobile-menu:not(.hidden) .mobile-link:nth-child(5) { animation-delay: 0.5s; }
.mobile-menu:not(.hidden) .mobile-link:nth-child(6) { animation-delay: 0.6s; }

/* Desktop Menu Container */
.desktop-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Section Spacing */
.section {
    padding: 6rem 0;
    margin-top: -100px; /* Header yüksekliği kadar negatif margin */
    padding-top: 100px; /* Header yüksekliği kadar padding */
}

/* Anchor Links */
.anchor-offset {
    display: block;
    position: relative;
    top: -100px; /* Header yüksekliği kadar offset */
    visibility: hidden;
}

/* Loader Screen */
.loader-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    position: relative;
    animation: pulseLoader 2s infinite;
}

.loader-logo i {
    font-size: 2rem;
    color: #fff;
    animation: fadeInOut 2s infinite;
}

.loader-text {
    font-size: 1.25rem;
    color: #fff;
    letter-spacing: 0.2em;
    font-weight: 300;
    opacity: 0.8;
    margin-top: 1rem;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem auto;
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: #fff;
    animation: loadingBar 1.5s ease-in-out infinite;
}

@keyframes pulseLoader {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 20px rgba(255, 255, 255, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

@keyframes loadingBar {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

body.loading {
    overflow: hidden;
}

/* Remove logo styles */
.logo-text,
.loader-logo,
.loader-logo i {
    display: none;
}

/* Update loader styles */
.loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 