/* Design System & Variables */
:root {
    --primary: #FFCC00;
    --primary-dark: #ccaa00;
    --bg-dark: #0A0A0A;
    --bg-darker: #050505;
    --text-light: #FFFFFF;
    --text-dim: #A0A0A0;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container.narrow {
    max-width: 800px;
}

.section {
    padding: 8rem 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

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

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.highlight {
    color: var(--primary);
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--text-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 204, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: var(--primary);
}

.full-width { width: 100%; }

/* Navigation */
#main-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

#main-nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.05); /* Subtle glass circle */
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    padding: 15px; /* Space for the logo image within the circle */
}

.logo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.spin-animation {
    animation: spin360 1s ease-in-out;
}

@keyframes spin360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
    max-width: 700px;
    padding: 0 2rem;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hero Logo — büyük, ortada */
.hero-logo {
    width: 320px;
    height: 320px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    padding: 45px;
    margin-bottom: 2.5rem;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
}

.hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-logo:hover {
    transform: scale(1.08) rotate(5deg);
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(255, 204, 0, 0.15);
}

/* Logo scrollda küçülüp kaybolma efekti */
.hero-logo.shrink {
    width: 80px;
    height: 80px;
    padding: 12px;
    opacity: 0;
    transform: scale(0.3) translateY(-100px);
}

/* Nav logo gizle/göster */
.logo.logo-hidden {
    opacity: 0;
    transform: scale(0.5);
    pointer-events: none;
}

.logo {
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-subtitle {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

.hero-yt-icon {
    color: #FF0000;
    font-size: 1.8rem;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Hero Background Video */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    opacity: 0.25; /* Low opacity as requested */
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-bg.hide-bg {
    opacity: 0;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.bg-video.active-video {
    opacity: 1;
}

/* Ensure video covers the area (aspect ratio trick) */
@media (min-aspect-ratio: 16/9) {
  .video-foreground { height: 300%; top: -100%; }
}
@media (max-aspect-ratio: 16/9) {
  .video-foreground { width: 300%; left: -100%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-dark) 100%);
    z-index: 2;
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--text-dim);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 3rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 204, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
    opacity: 0.8;
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-light);
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.stat-label {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.video-card {
    background: var(--glass);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary);
}

.video-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumb img {
    transform: scale(1.1);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    opacity: 0;
    transition: var(--transition);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-content {
    padding: 2rem;
}

.video-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.video-content p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.link-btn {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-btn:hover i {
    transform: translateX(5px);
    transition: 0.3s;
}

.video-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* About Section Revamp */
#about {
    transition: background-color 0.8s ease, color 0.8s ease;
    position: relative;
    overflow: hidden;
}

.about-theme-personal {
    background-color: #0a0a0a;
    color: #ffffff;
}

.about-theme-channel {
    background-color: #f0f0f0; /* Contrast light background */
    color: #0a0a0a;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* Section-level theme switching */
#about {
    transition: background-color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-theme-personal {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.about-theme-channel {
    background-color: #ffd700 !important; /* Brand yellow */
    color: #111 !important; /* Dark text for readability on yellow */
}

.about-theme-channel .section-title,
.about-theme-channel p {
    color: #000 !important;
}

.about-theme-channel .profile-card::after {
    border-color: #111;
}

.about-text {
    position: relative;
    min-height: 320px;
}

.about-text h2 { 
    margin-bottom: 2rem; 
    font-family: var(--font-heading);
    font-weight: 900;
}

.about-text p { 
    margin-bottom: 1.5rem; 
    font-size: 1.1rem; 
    line-height: 1.8;
}

/* Crumbling effect for text removal */
.text-fall {
    animation: fallAndFade 0.8s forwards;
}

@keyframes fallAndFade {
    0% { transform: translateY(0) rotate(0); opacity: 1; }
    100% { transform: translateY(120px) rotate(10deg); opacity: 0; }
}

/* Stacked Profile Cards */
.about-image {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-stack {
    position: relative;
    width: 320px;
    height: 320px;
}

.profile-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    background: var(--primary);
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Kontrast için ince kenarlık */
}

.profile-card.active-card {
    pointer-events: none; /* Only allow clicking the background card */
}

.profile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Specific Card Styles */
.card-personal {
    z-index: 2;
    transform: translate(0, 0) scale(1);
}

.card-channel {
    z-index: 1;
    transform: translate(40px, 40px) scale(0.9);
    filter: brightness(0.6) grayscale(0.5); /* Biraz daha parlak */
    background: #000;
    border-color: rgba(255, 255, 255, 0.05);
}

.card-channel .avatar-img {
    background: #000;
    padding: 15%; /* Logo style */
}

/* Active State Styles */
.about-theme-channel .card-personal {
    z-index: 1;
    transform: translate(40px, 40px) scale(0.9);
    filter: brightness(0.6) grayscale(0.5);
    border-color: rgba(0, 0, 0, 0.2); /* Sarı temada siyah kenarlık */
}

.about-theme-channel .card-channel {
    z-index: 2;
    transform: translate(0, 0) scale(1);
    filter: brightness(1) grayscale(0);
}

/* Beckon animation for background card */
.profile-card:not(.active-card):hover {
    animation: bounceBeckon 0.6s infinite alternate;
}

@keyframes bounceBeckon {
    from { transform: translate(40px, 40px) scale(0.9); }
    to { transform: translate(50px, 50px) scale(0.92); }
}

.profile-card::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: 50%;
    z-index: -1;
    transition: 0.6s;
}

.about-theme-channel .profile-card::after {
    border-color: #111;
}

/* Contact Form */
.contact-form {
    background: var(--glass);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p { color: var(--text-dim); font-size: 0.9rem; }

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

.social-links a {
    color: var(--text-dim);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 4rem; }
    .about-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; }
    .section-title { font-size: 2.25rem; }
}
