/* 
=============================================
  Efdal Mühendislik - Premium Design
=============================================
*/

:root {
  /* High-end Color Palette (Logo Colors) */
  --primary: #0056b3;       /* Logo Blue */
  --primary-light: #f0f7ff; /* Very light blue for backgrounds */
  --accent-blue: #78BE20;   /* Logo Green for buttons/accents */
  --accent-orange: #78BE20; /* Replaced orange with green */
  --dark: #003a80;          /* Dark Blue */
  --light: #ffffff;         /* White */
  --white: #ffffff;
  --text-main: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  /* Typography */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --h1: clamp(2.5rem, 5vw, 4.5rem);
  --h2: clamp(2rem, 4vw, 3rem);
  --h3: clamp(1.25rem, 3vw, 1.75rem);
  
  /* Layout */
  --container-width: 1200px;
  --container-padding: 2rem;
  --section-padding: 6rem 0;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.025);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

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

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

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

ul {
  list-style: none;
}

/* Reusable Components */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.page-header {
  padding: 12rem 0 6rem;
  text-align: center;
  color: var(--white);
}

.page-header h1 {
  font-size: var(--h1);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.page-content-wrap {
  padding: var(--section-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: var(--h2);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 650px;
  margin: 0 auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--white) !important;
  box-shadow: 0 4px 14px 0 rgba(120, 190, 32, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #64a319; /* slightly darker green */
  box-shadow: 0 6px 20px rgba(120, 190, 32, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white) !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* =========================================
   Header & Navigation
========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition-normal);
  background: transparent;
}

.site-header.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.site-header.scrolled .nav-list li a {
  color: var(--primary);
}

.site-header.scrolled .nav-list li a:hover {
  color: var(--accent-blue);
}

.site-header.scrolled .hamburger::before,
.site-header.scrolled .hamburger::after,
.site-header.scrolled .hamburger {
  background-color: var(--primary);
}

.header-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img, .custom-logo {
  max-height: 65px !important;
  width: auto !important;
  object-fit: contain;
  transition: var(--transition-normal);
}

.site-header.scrolled .logo img {
  max-height: 55px !important;
}

.text-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.site-header.scrolled .text-logo {
  color: var(--primary);
}

.text-logo span {
  color: var(--accent-blue);
  font-weight: 400;
}

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

.nav-list li a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-fast);
}

.nav-list li a:hover {
  color: var(--accent-blue);
}

.nav-button {
  background: var(--accent-blue);
  color: var(--white) !important;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: 0 4px 14px 0 rgba(120, 190, 32, 0.4);
}

.nav-button:hover {
  background: #64a319;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(120, 190, 32, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--white);
  position: relative;
  transition: var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: inherit;
  left: 0;
  transition: var(--transition-fast);
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

/* =========================================
   Hero Section
========================================= */
.hero {
  padding: 15rem 0 10rem;
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--white);
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.slider-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.95) 0%, rgba(0, 58, 128, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  animation: fadeUp 1s ease-out forwards;
}

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

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: var(--h1);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--accent-blue);
}

.hero-desc {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  font-weight: 300;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

/* =========================================
   Services Grid
========================================= */
.services {
  padding: var(--section-padding);
  background-color: var(--white);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 400px;
  background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
  z-index: 0;
}

.services .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 3rem auto 0;
  max-width: 900px;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(120, 190, 32, 0.3);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(120, 190, 32, 0.1);
  color: var(--accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--accent-blue);
  color: var(--white);
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-card h3 {
  font-size: var(--h3);
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
}

.service-link svg {
  margin-left: 0.5rem;
  transition: var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--accent-blue);
}

.service-card:hover .service-link svg {
  transform: translateX(5px);
}

/* =========================================
   About CTA Section
========================================= */
.about-cta {
  padding: var(--section-padding);
  background: var(--primary);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.about-cta::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
  border-radius: 50%;
}

.about-cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about-cta h2 {
  font-size: var(--h2);
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 800;
}

.about-cta p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 4rem;
  font-weight: 300;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 4rem;
}

.stat-item h4 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-item p {
  font-size: 1.125rem;
  color: var(--white);
  font-weight: 500;
  margin: 0;
}

/* =========================================
   Footer
========================================= */
.site-footer {
  background-color: var(--primary-light);
  color: #94a3b8;
  padding: 4rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.footer-logo span {
  color: var(--accent-blue);
  font-weight: 400;
}

.about-widget p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(0, 86, 179, 0.08);
  color: var(--primary);
  transition: var(--transition-normal);
}

.social-links a:hover {
  background: var(--accent-blue);
  color: var(--white);
  transform: translateY(-3px);
}

.widget-title {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-widget ul li {
  margin-bottom: 0.75rem;
}

.footer-widget ul li a {
  color: #94a3b8;
  transition: var(--transition-fast);
}

.footer-widget ul li a:hover {
  color: var(--accent-blue);
  padding-left: 8px;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.contact-info li svg {
  color: var(--accent-blue);
  flex-shrink: 0;
  margin-top: 3px;
  width: 18px;
  height: 18px;
}


.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
}

.footer-legal a {
  color: #94a3b8;
  margin-left: 1.5rem;
}

.footer-legal a:hover {
  color: var(--white);
}

/* =========================================
   Standard Page specific
========================================= */
.page-header {
  padding: 12rem 0 6rem;
  background: var(--primary);
  background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: var(--h1);
  margin-bottom: 1rem;
  font-weight: 800;
}

.page-content-wrap {
  padding: var(--section-padding);
  background: var(--white);
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.125rem;
}

.page-content h2 { margin: 2.5rem 0 1.5rem; color: var(--primary); font-weight: 700; }
.page-content h3 { margin: 2rem 0 1rem; color: var(--primary); font-weight: 600; }
.page-content p { margin-bottom: 1.5rem; }
.page-content ul, .page-content ol { margin: 0 0 1.5rem 2rem; }
.page-content li { margin-bottom: 0.5rem; }

/* =========================================
   Responsive
========================================= */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }
  .site-header .hamburger, .site-header .hamburger::before, .site-header .hamburger::after {
    background-color: var(--primary);
  }
  
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: var(--transition-normal);
    gap: 1.5rem;
  }
  
  .nav-list.active {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  
  .nav-list li a { color: var(--primary); }
  
  .hero {
    padding: 10rem 0 6rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-legal a {
    margin: 0 0.5rem;
  }
}

/* =========================================
   References Page Specific
========================================= */
.references-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.ref-card {
  flex: 1 1 250px;
  max-width: 320px;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.ref-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

.ref-image-wrap {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.ref-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.ref-card:hover .ref-image-wrap img {
  transform: scale(1.05);
}

.ref-content {
  padding: 1.25rem;
  text-align: center;
  background: var(--light);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref-content h3 {
  font-size: 1.125rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
}

/* =========================================
   Products Page Specific
========================================= */
.products-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.product-card {
  flex: 1 1 320px;
  max-width: 380px;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

.product-image-wrap {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--white);
  border-bottom: 1px solid var(--border-color);
}

.product-image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: var(--transition-normal);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.08);
}

.product-content {
  padding: 2rem;
  background: var(--white);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content h3 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 1rem;
}

.product-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  align-self: flex-start;
}

/* =========================================
   About Us Page Specific
========================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text-content {
  padding-right: 2rem;
}

.about-image-wrap {
  position: relative;
  height: 500px;
}

.experience-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--accent-blue);
  color: var(--white);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.experience-badge .years {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.2;
}

.experience-badge .text {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  text-align: center;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.values-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  flex: 1 1 300px;
  max-width: 380px;
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 1px solid var(--border-color);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14, 165, 233, 0.3);
}

.value-icon {
  width: 72px;
  height: 72px;
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition-normal);
}

.value-card:hover .value-icon {
  background: var(--accent-blue);
  color: var(--white);
}

.value-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 800;
}

.value-card p {
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-text-content {
    padding-right: 0;
  }
}
