/* ==========================================================================
   Alican Sönmez - CSS Design System & Layout
   ========================================================================== */

/* 1. CSS VARIABLES & RESET */
:root {
  --font-primary: 'Inter', sans-serif;
  --font-title: 'Montserrat', sans-serif;
  
  /* Color Palette */
  --bg-primary: #F9F9F8;
  --bg-secondary: #FFFFFF;
  --bg-dark: #121211;
  --bg-dark-gray: #1C1C1A;
  
  --text-dark: #1C1C1A;
  --text-medium: #555552;
  --text-light: #8E8E8A;
  --text-white: #FFFFFF;
  
  --accent-color: #B3A387; /* Warm Sand/Taupe */
  --accent-hover: #9E8E72;
  --whatsapp-color: #25D366;
  
  --border-color: rgba(28, 28, 26, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
}

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

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

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

/* Common Layout Elements */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 2.25rem;
  letter-spacing: 0.15em;
  margin-bottom: 48px;
  position: relative;
  text-transform: uppercase;
}

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

.scroll-section {
  scroll-margin-top: 80px; /* Offset for sticky header */
}

/* ==========================================================================
   2. HEADER / NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 16px 24px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 40px;
}

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

.nav-link {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-color);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-color);
}

/* Disabled link styling for Tasarım page */
.disabled-link {
  color: var(--text-light) !important;
  cursor: not-allowed;
  opacity: 0.5;
}

.disabled-link::after {
  display: none;
}

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  border-left: 1px solid var(--border-color);
  padding-left: 24px;
}

.header-mail {
  font-size: 0.85rem;
  color: var(--text-medium);
}

.header-mail:hover {
  color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.social-icons a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   3. HERO SECTION
   ========================================================================== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-dark);
  color: var(--text-white);
  position: relative;
  text-align: center;
  padding: 0 24px;
}

.hero-content {
  z-index: 10;
  animation: fadeIn 1.2s ease-out;
}

.hero-title {
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 4rem;
  letter-spacing: 0.25em;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  color: var(--accent-color);
  margin-bottom: 60px;
}

.hero-scroll-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.hero-scroll-btn:hover {
  color: var(--text-white);
}

.hero-scroll-btn i {
  font-size: 1rem;
  animation: bounce 2s infinite;
}

/* ==========================================================================
   4. ABOUT SECTION
   ========================================================================== */
.about-section {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-top: 0;
}

.about-section .section-container {
  padding-top: 20px;
}

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

.about-text-column {
  padding-right: 32px;
}

.about-paragraph {
  font-size: 1rem;
  color: var(--text-medium);
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.about-paragraph p {
  margin-bottom: 24px;
  text-align: justify;
}

.about-image-column {
  display: flex;
  justify-content: flex-end;
}

.about-img-frame {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.about-img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   5. PROJECTS GRID SECTION
   ========================================================================== */
.projects-section {
  background-color: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  background-color: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-thumbnail-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 66.6%; /* 3:2 Aspect Ratio */
}

.project-thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.project-card:hover .project-thumbnail {
  transform: scale(1.08);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 18, 17, 0.7) 0%, rgba(18, 18, 17, 0.1) 70%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  transition: var(--transition-smooth);
  z-index: 2;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-overlay-title {
  color: var(--text-white);
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.project-card-info {
  padding: 20px;
}

.project-card-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.project-card-count {
  font-size: 0.75rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.loader-container {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

/* ==========================================================================
   6. CONTACT SECTION
   ========================================================================== */
.contact-section {
  position: relative;
  background-image: url('assets/iletisim/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 48px 24px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 17, 0.45); /* Soft premium dimming overlay */
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.96);
  padding: 56px 40px;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 32px;
}

.project-types {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.type-tag {
  border: 1px solid var(--text-light);
  padding: 6px 20px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-medium);
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: var(--bg-dark-gray);
  color: var(--text-white);
  padding: 16px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  width: 100%;
  max-width: 380px;
  margin-bottom: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: var(--transition-smooth);
  white-space: nowrap;
}

.whatsapp-btn i {
  font-size: 1.25rem;
}

.whatsapp-btn:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.contact-link-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-medium);
  font-weight: 500;
}

.contact-link-item i {
  color: var(--accent-color);
  font-size: 1.05rem;
}

.contact-link-item:hover {
  color: var(--accent-hover);
}

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-dark-gray);
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
}

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

.copyright {
  font-size: 0.8rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-bottom-links a:hover {
  color: var(--text-white);
}

/* ==========================================================================
   8. PROJECT SLIDER MODAL (HORIZONTAL SLIDER)
   ========================================================================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 17, 0.98);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.modal-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 40px 24px;
  justify-content: space-between;
}

.modal-project-title {
  color: var(--text-white);
  font-family: var(--font-title);
  font-weight: 300;
  font-size: 1.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  padding-top: 10px;
}

/* Horizontal Slider Wrapper */
.slider-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 32px 0;
  height: calc(100vh - 200px);
}

.slider-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.slider-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: grab;
}

.slider-track:active {
  cursor: grabbing;
}

.slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  user-select: none;
  position: relative;
}

.slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  pointer-events: none;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-white);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 2050;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.slider-arrow:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.arrow-prev {
  left: 24px;
}

.arrow-next {
  right: 24px;
}

.slider-info {
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-counter {
  color: var(--text-light);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   9. ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  /* Navigation mobile layout */
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 40px 24px;
    gap: 40px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
    overflow-y: auto;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-list {
    flex-direction: column;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.1rem;
  }
  
  .header-contact {
    border-left: none;
    padding-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
  }
  
  /* About Mobile Grid */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .about-text-column {
    padding-right: 0;
  }
  
  .about-image-column {
    justify-content: center;
  }
  
  /* Projects grid responsive gap */
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  /* Footer Mobile */
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  /* Modal Slider Arrows repositioning on mobile */
  .slider-arrow {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
  .arrow-prev {
    left: 10px;
  }
  .arrow-next {
    right: 10px;
  }
  .slide {
    padding: 0 10px;
  }
  
  .contact-card {
    padding: 40px 20px;
  }
  
  .contact-title {
    font-size: 1.5rem;
  }

  .whatsapp-btn {
    font-size: 0.85rem;
    padding: 14px 16px;
    max-width: 100%;
    gap: 8px;
  }
}

/* Language Switcher Button */
.lang-switch-btn {
  background: none;
  border: 1px solid var(--text-dark);
  color: var(--text-dark);
  padding: 4px 10px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  display: inline-block;
  margin-top: -2px;
}

.lang-switch-btn:hover {
  background-color: var(--text-dark);
  color: var(--bg-primary);
}

@media (max-width: 768px) {
  .lang-switch-btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.9rem;
    align-self: flex-start;
  }
}

/* Preloader Styles */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-secondary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: preloader-pulse 2s infinite ease-in-out;
}

.preloader-logo {
  max-width: 180px;
  height: auto;
  opacity: 0.95;
}

.preloader-bar {
  width: 120px;
  height: 2px;
  background-color: var(--border-color);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.preloader-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  animation: preloader-loading 1.5s infinite ease-in-out;
}

@keyframes preloader-loading {
  0% { left: -100%; }
  50% { left: 0; }
  100% { left: 100%; }
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(0.98); opacity: 0.9; }
  50% { transform: scale(1); opacity: 1; }
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}

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

/* Stagger delays for sequential reveal */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

