@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;700;900&display=swap');

:root {
  --primary-color: #fc0c07;
  --secondary-color: #2b2a29;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-color: #2d3436;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --font-family: 'Inter', sans-serif;
  --heading-font: 'Outfit', sans-serif;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary-color);
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 5px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

header {
  background-color: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 65px;
}

.logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

nav ul {
  display: flex;
  gap: 40px;
}

nav ul li a {
  font-weight: 600;
  font-size: 14px;
  color: #4b5563;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition);
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 120px 0 100px;
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  opacity: 0.03;
  border-radius: 50%;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 72px;
  margin-bottom: 25px;
  letter-spacing: -2px;
}

.hero h1 span {
  color: var(--primary-color);
  display: block;
}

.hero p {
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 40px;
  color: #636e72;
}

/* Services Grid */
.services-preview h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,0,0,0.02);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card:hover::before {
  height: 100%;
}

.service-card h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.service-card .icon {
  font-size: 32px;
  margin-bottom: 25px;
  color: var(--primary-color);
  background: rgba(252, 12, 7, 0.05);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.service-card .link {
  display: inline-block;
  margin-top: 20px;
  font-weight: 700;
  color: var(--primary-color);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.service-card .link:hover {
  letter-spacing: 2px;
}

/* Footer Refined */
footer {
  background-color: #1a1a1a;
  color: #a0aec0;
  padding: 100px 0 30px;
  border-top: 5px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-col h4 {
  color: white;
  font-size: 18px;
  margin-bottom: 30px;
  position: relative;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--primary-color);
}

.footer-col p {
  line-height: 1.8;
  font-size: 15px;
}

.footer-col ul li {
  margin-bottom: 15px;
}

.footer-col ul li a {
  font-size: 15px;
  color: #a0aec0;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0.8;
  font-size: 14px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 35px;
  height: 35px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: white;
  font-weight: 700;
  font-size: 12px;
}

.social-icon:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
}
/* --- NEW HOMEPAGE COMPONENTS --- */

/* Clients Grid */
.clients-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}
.clients-grid:hover {
    opacity: 1;
    filter: grayscale(0%);
}
.client-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Stats Grid for Why Us */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}
.stat-box {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}
.stat-box h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 5px;
}
.stat-box p {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
}

/* Gallery / Works Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 300px;
    background: #444; /* Placeholder */
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img {
    transform: scale(1.1);
}
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}
.gallery-overlay h4 {
    font-size: 20px;
    margin-bottom: 5px;
}
.gallery-overlay p {
    font-size: 14px;
    color: #ffd700;
    font-weight: 500;
}


/* --- FLOATING CONTACT WIDGET --- */
.floating-contact {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 9999;
}
.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}
.float-btn:hover {
    transform: scale(1.15) translateY(-5px);
    color: white;
}
.float-btn.phone { background-color: var(--primary-color); }
.float-btn.email { background-color: #333; }
.float-btn.whatsapp { background-color: #25d366; }

/* --- MOBILE OPTIMIZATION & RESPONSIVENESS --- */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}
.menu-toggle:hover { color: var(--primary-color); }

/* Tablet Overrides */
@media (max-width: 992px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 48px; }
    .services-grid, .stats-grid, .clients-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .why-us .container { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

/* Mobile Overrides */
@media (max-width: 768px) {
    /* Header Hamburger */
    .menu-toggle { display: block; }
    nav {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 20px 0;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    nav.active { display: flex !important; }
    nav ul { flex-direction: column; gap: 15px; text-align: center; width: 100%; }
    
    /* Restored Teklif Al Button for Mobile */
    .header-inner { display: flex; align-items: center; flex-wrap: wrap; }
    .logo { margin-right: auto; height: 45px; order: 1; } 
    header .btn { display: inline-block; padding: 8px 14px; font-size: 13px; margin-right: 8px; order: 2; }
    .menu-toggle { order: 3; }
    
    /* Global Layout fixing overlaps */
    section { padding: 50px 0; }
    .hero { padding: 60px 0 40px; text-align: center; }
    .hero h1 { font-size: 34px; margin-bottom: 15px; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .hero-btns .btn { width: 100%; text-align: center; margin-bottom: 10px; }
    
    /* Complete 1-Column Grid for Mobile */
    .services-grid, .stats-grid, .clients-grid, .gallery-grid, .process-grid { grid-template-columns: 1fr; gap: 20px; }
    
    /* Footer Overflow Fix */
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .footer-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; padding-bottom: 80px; } /* Leave space for floating widget */
    
    /* Floating Widget resizing to prevent overlap with standard iOS/Android bottom bars */
    .floating-contact { right: 15px; bottom: 40px; transform: scale(0.9); transform-origin: bottom right; }
}


/* --- PORTFOLIO GALLERY STYLES --- */
.filter-btn {
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.filter-btn:hover {
    color: var(--primary-color);
    border-color: #cbd5e1;
    background: #f8fafc;
    transform: translateY(-2px);
}
.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    font-weight: 600;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    transition: all 0.3s ease;
}

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    background: #111;
    transition: all 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.portfolio-item:hover img {
    transform: scale(1.15);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}
.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}
.portfolio-overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
    color: white;
}
.portfolio-overlay p {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- LIGHTBOX (FULLSCREEN MODAL) --- */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10000;
    display: none; /* JS enables to 'flex' */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    object-fit: contain;
}
.lightbox-caption {
    color: white;
    margin-top: 20px;
    font-size: 18px;
    letter-spacing: 1px;
}
.close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}
.close-btn:hover {
    color: var(--primary-color);
}


/* --- PROCESS GRID --- */
.process-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}
.process-card {
    flex: 1 1 300px;
    max-width: 350px;
    background: var(--light-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.process-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--primary-color);
}
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}
.process-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}
.process-card:hover {
    transform: translateY(-5px);
}
.process-card .icon {
    font-size: 42px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: 0.3s;
}
.process-card:hover .icon {
    transform: scale(1.1);
}
.process-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 700;
}
.process-card p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}


/* RESPONSIVE BANNER SCALING */
@media (max-width: 768px) {
    .page-header {
        background-size: contain !important; /* On mobile, perfectly fit without stretching out of proportion */
        background-color: var(--secondary-color) !important; /* Fallback for empty spaces caused by contain */
        padding: 40px 0 !important; /* Reduce vertical padding to match the scaled down banner aspect ratio */
    }
}


/* LIGHTBOX ARROWS */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 16px;
    transition: 0.3s;
    z-index: 10001;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
.nav-arrow:hover {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}
.prev-arrow { left: 20px; }
.next-arrow { right: 20px; }
@media (max-width: 768px) {
    .nav-arrow { font-size: 30px; padding: 10px; }
    .prev-arrow { left: 5px; }
    .next-arrow { right: 5px; }
}


/* === Process Grid === */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    width: 100%;
}

.process-card {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    transition: box-shadow 0.3s, transform 0.3s;
}

.process-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateY(-4px);
}

.process-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0 auto 18px;
}

.process-card h3 {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.process-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* Tablet & Mobile: 3+2 düzeni */
@media (max-width: 900px) {
    .process-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .process-card {
        flex: 0 0 calc(33.33% - 12px);
        max-width: calc(33.33% - 12px);
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    .process-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* === Page Header Mobile Override === */
@media (max-width: 768px) {
    .page-header {
        background-position: center center !important;
        background-size: cover !important;
        background-color: var(--secondary-color);
        padding: 60px 0 !important;
    }
}
