/* Global Styles */
:root {
    --bg-color: #0c0c0c;
    --text-color: #f0f0f0;
    --accent-color: #ff4d00; /* Turuncu/Kırmızımsı referans görselden */
    --secondary-color: #1a1a1a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-logo-img{
  width: 500px;
  height: auto;
  animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}


/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 20px 50px;
  z-index: 1000;
  background: rgba(12, 12, 12, 0.8);
  backdrop-filter: blur(10px);
}

.logo{
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
}

.nav-logo{
  height: 75px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  gap: 40px;
}

.nav-list a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

.nav-list a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.nav-contact {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.1);
    transition: transform 1s ease; /* Slow zoom effect */
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: -1;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
    white-space: pre-line; /* Allows \n to work */
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.8;
}

.btn-primary {
    padding: 15px 40px;
    background-color: var(--accent-color);
    color: white;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: none;
    display: inline-block; /* Link olduğu için */
}

.btn-primary:hover {
    background-color: white;
    color: black;
}

/* Sections */
.section {
    padding: 100px 50px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.section-subtitle {
    margin-bottom: 60px;
    opacity: 0.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, black, transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-cat {
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 5px;
    display: block;
}

/* Lightbox (Resim Büyütme) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* Başlangıçta gizli */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    width: auto;
    height: auto;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: 0.3s;
    z-index: 2002;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

/* Lightbox Navigasyon */
.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: 0.3s;
    z-index: 2001;
    user-select: none;
}

.lightbox-btn:hover {
    color: var(--accent-color);
    background: rgba(0,0,0,0.5);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* About Stats */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    background: var(--secondary-color);
    padding: 30px;
    text-align: center;
    border: 1px solid #333;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

/* Founder / CV Section (Integrated) */
.founder-section {
    margin-top: 60px;
    background: var(--secondary-color);
    padding: 40px;
    border-left: 3px solid var(--accent-color);
    position: relative;
    overflow: hidden;
}

.founder-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 15px;
}

.founder-title::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.founder-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    text-align: justify;
}

.founder-content p:last-child {
    margin-bottom: 0;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border: 1px solid #333;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.service-icon {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 20px;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    color: var(--accent-color);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.service-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 0; /* Buton kalktığı için margin'e gerek yok */
    flex-grow: 1; 
}

/* Sticky WhatsApp Button */
.sticky-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.sticky-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: white;
    box-shadow: 2px 2px 15px rgba(0,0,0,0.5);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, 
.contact-form textarea {
    padding: 15px;
    background: var(--secondary-color);
    border: 1px solid #333;
    color: white;
    font-family: inherit;
}

/* WhatsApp Button */
.whatsapp-container {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: var(--secondary-color);
    border: 1px solid #333;
}

.whatsapp-container h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.whatsapp-container p {
    margin-bottom: 30px;
    opacity: 0.7;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50px;
    transition: 0.3s;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp i {
    font-size: 1.5rem;
}

.btn-outline {
    padding: 15px 40px;
    border: 2px solid white;
    background: transparent;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s;
}

.btn-outline:hover {
    background: white;
    color: black;
}

/* Footer */
footer {
    padding: 50px;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Project Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
    letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

/* Comparison Slider */
.transformation-section {
    background-color: #111;
}

.comparison-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 50px;
    border: 2px solid #333;
    overflow: hidden;
    user-select: none; /* Sürükleme sırasında seçim olmasın */
}

.comparison-image {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none; /* Resimlerin sürüklenmesini engelle */
}

/* Üstteki resim (After) - Clip Path ile kesilecek */
.img-comp-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Başlangıçta %50 olacak JS ile */
    height: 100%;
    overflow: hidden;
    z-index: 10;
    border-right: 2px solid white; /* Ayırıcı çizgi */
}

.img-comp-overlay img {
    width: 100%; /* Parent wrapper kadar genişlikte olmalı */
    max-width: none; /* Responsive kısıtlamayı kaldır */
    height: 100%;
    object-fit: cover;
}

/* Slider Handle (Tutma Çubuğu) */
.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%; /* JS ile güncellenecek */
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    border: 2px solid white;
    border-radius: 50%;
    z-index: 20;
    cursor: ew-resize; /* Yatay ok imleci */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider-handle i {
    color: white;
    font-size: 1rem;
}

.comparison-info {
    text-align: center;
    margin-bottom: 20px;
}

.comparison-labels {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 15;
    pointer-events: none;
}

.label-badge {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar { padding: 20px; }
    .menu-toggle { display: flex; }
    .nav-list {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: #0c0c0c;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        border-bottom: 1px solid #333;
    }
    .nav-list.active { display: flex; }
    
    .hero-content h1 { font-size: 3rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .portfolio-grid { grid-template-columns: 1fr; }
    
    .lightbox-btn {
        padding: 10px;
        font-size: 2rem;
    }
}
