/* ========================================
   KÜPÇÜOĞULLARI İNŞAAT - STYLE SYSTEM
   ======================================== */

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

/* ---- CSS Variables ---- */
:root {
  --color-bg: #1E1E1E;
  --color-bg-deep: #121212;
  --color-bg-card: #2A2A2A;
  --color-gray: #6E6E6E;
  --color-light: #F5F5F5;
  --color-accent: #C97B36;
  --color-accent-glow: rgba(201, 123, 54, 0.25);
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 8px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---- Section Base ---- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: var(--color-light);
  line-height: 1.15;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-gray);
  max-width: 600px;
  line-height: 1.8;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: #b56a28;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--color-accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-light);
  border: 2px solid rgba(245,245,245,0.3);
}
.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* ======== NAVBAR ======== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.navbar-logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-light);
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-logo span {
  color: var(--color-accent);
}
.navbar-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: var(--transition);
}
.navbar.scrolled .navbar-logo-img {
  height: 36px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-menu a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(245,245,245,0.7);
  transition: var(--transition);
  position: relative;
}
.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: var(--transition);
}
.navbar-menu a:hover { color: var(--color-light); }
.navbar-menu a:hover::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}
.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--color-light);
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

/* ======== HERO ======== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0% { transform: scale(1.05); }
  100% { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,18,18,0.5) 0%,
    rgba(18,18,18,0.6) 40%,
    rgba(30,30,30,0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--color-accent);
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--color-light);
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.5s forwards;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(245,245,245,0.65);
  max-width: 550px;
  margin-bottom: 40px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s 0.9s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.8s 1.2s forwards;
}
.hero-scroll span {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(245,245,245,0.4);
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50% { opacity: 1; transform: scaleY(1); }
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ======== ABOUT ======== */
.about { background: var(--color-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  transition: var(--transition);
}
.about-image:hover img { transform: scale(1.03); }

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--color-accent);
  border-radius: var(--radius);
  z-index: -1;
}

.about-text .section-desc { margin-bottom: 30px; }

.about-highlights {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.about-highlight {
  text-align: center;
}
.about-highlight .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-accent);
}
.about-highlight .label {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin-top: 4px;
}

/* ======== FOUNDER SECTION ======== */
.founder-section {
  margin-top: 80px;
}

.founder-divider {
  width: 80px;
  height: 2px;
  background: var(--color-accent);
  margin: 0 auto 60px;
}

.founder-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 50px;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.founder-photo-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 3px solid rgba(201,123,54,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  transition: var(--transition);
}
.founder-photo-placeholder:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 40px var(--color-accent-glow);
}

.founder-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-light);
  margin-bottom: 4px;
}

.founder-title {
  font-size: 0.95rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.founder-desc {
  font-size: 0.95rem;
  color: var(--color-gray);
  line-height: 1.8;
}

/* ======== SERVICES ======== */
.services { background: var(--color-bg-deep); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(245,245,245,0.05);
  border-radius: var(--radius);
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201,123,54,0.2);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,123,54,0.1);
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 1.5rem;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-light);
}
.service-card p {
  font-size: 0.92rem;
  color: var(--color-gray);
  line-height: 1.7;
}

/* ======== STATS ======== */
.stats {
  background: var(--color-bg);
  border-top: 1px solid rgba(245,245,245,0.05);
  border-bottom: 1px solid rgba(245,245,245,0.05);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 30px;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  color: var(--color-accent);
  line-height: 1;
}
.stat-suffix {
  font-size: 1.5rem;
  color: var(--color-accent);
}
.stat-label {
  font-size: 0.9rem;
  color: var(--color-gray);
  margin-top: 8px;
  font-weight: 500;
}

/* ======== PROJECTS ======== */
.projects { background: var(--color-bg-deep); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 420px;
  cursor: pointer;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-card:hover img { transform: scale(1.08); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.95) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  transition: var(--transition);
}
.project-card:hover .project-overlay {
  background: linear-gradient(to top, rgba(18,18,18,0.98) 0%, rgba(18,18,18,0.3) 100%);
}

.project-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-accent);
  margin-bottom: 8px;
}
.project-overlay h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.project-location {
  font-size: 0.88rem;
  color: var(--color-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ======== WHY US ======== */
.why-us { background: var(--color-bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.why-item {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(245,245,245,0.05);
  border-radius: var(--radius);
  transition: var(--transition);
}
.why-item:hover {
  border-color: rgba(201,123,54,0.3);
  transform: translateY(-4px);
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}
.why-item h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-light);
}

/* ======== GALLERY ======== */
.gallery { background: var(--color-bg-deep); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
  margin-top: 60px;
}
.gallery-grid .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 1;
}
.gallery-grid .gallery-item:nth-child(4) {
  grid-row: span 2;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,18,0.4);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay span {
  font-size: 2rem;
  color: #fff;
}

/* ======== CTA ======== */
.cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
}
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,18,18,0.88);
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--color-light);
  margin-bottom: 20px;
}
.cta-desc {
  font-size: 1.05rem;
  color: var(--color-gray);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* ======== FOOTER ======== */
.footer {
  background: var(--color-bg-deep);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(245,245,245,0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .navbar-logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.92rem;
  color: var(--color-gray);
  line-height: 1.8;
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-light);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 0.92rem;
  color: var(--color-gray);
  padding: 6px 0;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer-contact p {
  font-size: 0.92rem;
  color: var(--color-gray);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact .icon { color: var(--color-accent); min-width: 18px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245,245,245,0.05);
  border-radius: 50%;
  color: var(--color-gray);
  transition: var(--transition);
  font-size: 1.1rem;
}
.footer-social a:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(245,245,245,0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: 0.82rem;
  color: var(--color-gray);
}

/* ======== SCROLL ANIMATIONS ======== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ======== MOBILE MENU ======== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,18,18,0.98);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}
.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-overlay nav {
  text-align: center;
}
.mobile-menu-overlay nav a {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-light);
  padding: 16px 0;
  transition: var(--transition);
}
.mobile-menu-overlay nav a:hover { color: var(--color-accent); }

/* ======== LIGHTBOX ======== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  cursor: pointer;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2001;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .navbar-menu { display: none; }
  .hamburger { display: flex; }

  .hero { min-height: 100vh; }
  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-image img { height: 350px; }
  .about-image-accent { display: none; }
  .about-highlights { gap: 20px; }

  .founder-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }
  .founder-photo { display: flex; justify-content: center; }
  .founder-divider { margin-bottom: 40px; }

  .navbar-logo { font-size: 1rem; }
  .navbar-logo-img { height: 32px; }

  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { height: 320px; }

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

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-grid .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-grid .gallery-item:nth-child(4) { grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-grid .gallery-item:nth-child(1) { grid-column: span 1; }
}
