@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary: #0071e3; /* Apple Blue */
    --accent: #ff3b30;
    --background: #ffffff;
    --surface: #f5f5f7;
    --text: #1d1d1f;
    --text-muted: #86868b;
    --white: #ffffff;
    --black: #000000;
    
    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;
    
    /* Transitions */
    --transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="dark"] {
    --background: #000000;
    --surface: #1d1d1f;
    --text: #f5f5f7;
    --text-muted: #86868b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

header .container {
    width: 100%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none;
    color: var(--text);
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 38px;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
    transition: var(--transition);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    z-index: 1002;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        display: none !important;
    }
}

/* Full Screen Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 15, 18, 0.96);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 32px 48px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-menu-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 40px 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-nav-links a {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.mobile-nav-links a .link-num {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary, #0071e3);
    font-family: 'Inter', sans-serif;
}

.mobile-nav-links a:hover {
    color: var(--primary, #0071e3);
    transform: translateX(10px);
}

.mobile-menu-footer {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 64px;
    background: var(--background);
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    background: linear-gradient(180deg, var(--text) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.hero p {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 48px;
    text-align: center;
}

.btn {
    padding: 16px 32px;
    border-radius: 99px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #0077ed;
    transform: scale(1.02);
}

/* Section Styling */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 48px;
    margin-bottom: 60px;
    text-align: center;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 32px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 48px; }
    .section-padding { padding: 80px 0; }
}

/* Cards */
.card {
    background: var(--surface);
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Project Card */
.project-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #000;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 40px;
    width: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: white;
}

.project-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.project-info p {
    font-size: 16px;
    opacity: 0.8;
}

/* GSAP Reveal Animations */
/* Floating Showcase Section */
.showcase-section {
    height: 250vh; /* Daha uzun süre görünür kalsın */
    position: relative;
    background: var(--surface);
    overflow: hidden;
}

.showcase-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.device-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 140px;
}

.showcase-header {
    position: absolute;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 100;
    width: 100%;
    padding: 0 24px;
    max-width: 900px;
}

#showcase-title {
    font-size: clamp(32px, 4.5vw, 64px);
    margin-bottom: 12px;
    color: #1d1d1f;
    line-height: 1.1;
    letter-spacing: -2px;
    font-weight: 800;
}

#showcase-sub {
    font-size: clamp(15px, 1.6vw, 20px);
    color: #515154;
    margin: 0 auto;
    font-weight: 500;
    max-width: 650px;
    line-height: 1.45;
}

/* Home Showcase (3 Tablets) */
.home-showcase {
    background: var(--surface);
    padding: 120px 0;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.tablet-fan {
    position: relative;
    height: 650px;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 3000px;
    transform-style: preserve-3d;
}

.fan-tablet {
    position: absolute;
    width: 380px;
    height: 520px;
    background: #000;
    border: 8px solid #1a1a1a;
    border-radius: 24px;
    box-shadow: -20px 40px 80px rgba(0,0,0,0.4);
    overflow: hidden;
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fan-tablet img { width: 100%; height: 100%; object-fit: cover; }

/* Apple Style Diagonal Fan Position */
.tablet-1 { 
    transform: rotateY(35deg) rotateZ(-12deg) rotateX(10deg) translateX(-220px) translateZ(-150px); 
    z-index: 1; 
}
.tablet-2 { 
    transform: rotateY(25deg) rotateZ(-6deg) rotateX(5deg) translateX(-80px) translateZ(0); 
    z-index: 2; 
}
.tablet-3 { 
    transform: rotateY(-15deg) rotateZ(8deg) rotateX(5deg) translateX(120px) translateZ(150px); 
    z-index: 3; 
}

@media (max-width: 768px) {
    .hero { 
        height: auto; 
        min-height: 100vh; 
        padding-top: 100px; 
        padding-bottom: 60px;
        justify-content: flex-start;
    }
    .hero h1 { 
        font-size: clamp(32px, 7vw, 44px); 
        margin-bottom: 16px; 
        line-height: 1.15;
    }
    .hero p { 
        font-size: 16px; 
        line-height: 1.5;
        margin-bottom: 32px; 
        position: relative; 
        z-index: 10; 
        padding: 0 12px;
    }
    .hero-actions { 
        margin-top: 40px !important; 
    }
    .tablet-fan { 
        height: 300px; 
        margin-top: 30px; 
        margin-bottom: 20px; 
        z-index: 1;
    }
    .fan-tablet { 
        width: 180px; 
        height: 250px; 
        border-width: 5px; 
        border-radius: 16px; 
        box-shadow: -10px 20px 40px rgba(0,0,0,0.3); 
    }
    .tablet-1 { transform: rotateY(20deg) rotateZ(-6deg) translateX(-45px) translateZ(-40px); z-index: 1; }
    .tablet-2 { transform: rotateY(0deg) rotateZ(0deg) translateX(0) translateZ(40px); z-index: 3; }
    .tablet-3 { transform: rotateY(-15deg) rotateZ(6deg) translateX(45px) translateZ(-30px); z-index: 2; }

    /* Projects Showcase Header Mobile Rules */
    .showcase-header {
        top: 85px !important;
        padding: 0 16px !important;
    }
    #showcase-title {
        font-size: clamp(26px, 6vw, 36px) !important;
        margin-bottom: 10px !important;
        letter-spacing: -1px !important;
    }
    #showcase-sub {
        font-size: 14px !important;
        line-height: 1.4 !important;
        max-width: 320px !important;
    }
    .device-container {
        padding-top: 140px;
    }
}
