/* 
   DENETGÖZ 2026 - Main Stylesheet
   Theme: Industrial Modernism
*/

:root {
  /* Design System Colors */
  --primary-color: #002B5B;
  /* Deep Blue - Corporate, Trust (Approximate match for "Navy") */
  --primary-light: #1A4D80;
  --primary-dark: #001A38;

  --secondary-color: #FF6B00;
  /* Action Orange - Highlights, CTAs */
  --secondary-hover: #E65A00;

  --bg-color: #F8F9FA;
  /* Laboratuvar Beyazı */
  --text-color: #212529;
  /* Koyu Antrasit */
  --text-light: #6C757D;
  /* Muted text */
  --white: #FFFFFF;
  --border-color: #DEE2E6;

  /* Typography */
  --font-main: 'Inter', 'Roboto', 'Helvetica Neue', sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;

  /* Shadows & Radius */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-hover) 100%);
  color: var(--white);
  border: none;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 43, 91, 0.2);
}

.section {
  padding: var(--spacing-lg) 0;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-white {
  color: var(--white);
}

/* Header & Nav */
header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 10px;
  border-left: 1px solid var(--border-color);
  padding-left: 10px;
}

.nav-links {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary-color);
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  border-top: 3px solid var(--secondary-color);
  padding: var(--spacing-xs) 0;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background-color: var(--bg-color);
  color: var(--secondary-color);
}

/* Hero Section */
.hero {
  background-color: var(--primary-color);
  color: var(--white);
  padding: var(--spacing-xl) 0;
  position: relative;
  overflow: hidden;
}

/* Abstract Industrial Pattern Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(0, 43, 91, 0.7), rgba(0, 26, 56, 0.8)),
    url('../images/mainpage-header.webp');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  margin-bottom: var(--spacing-md);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
  line-height: 1.6;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Cards (Main Page) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background: var(--white);
  padding: var(--spacing-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-color);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-xs);
}

.service-card p {
  color: var(--text-light);
  flex-grow: 1;
  margin-bottom: var(--spacing-sm);
}

.service-link {
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-lg) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-brand h2 {
  color: var(--white);
  margin-bottom: var(--spacing-xs);
}

.footer-brand p {
  opacity: 0.7;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.1rem;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: var(--spacing-md) 0;
  text-align: center;
  opacity: 0.5;
  font-size: 0.9rem;
}

/* Responsive */
/* Responsive & Mobile Menu */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .navbar {
    height: auto;
    padding: 15px var(--spacing-sm);
    /* Keep side padding */
    flex-wrap: wrap;
    position: relative;
  }

  /* Hamburger Toggle */
  .mobile-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-left: auto;
    /* Push to right just in case */
  }

  .mobile-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
  }

  /* ... */

  /* Mobile Nav Links Container */
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    /* Ensure left alignment */
    background-color: var(--white);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    gap: 0;
    /* Removing gap, using padding on links instead */
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
  }

  /* ... */

  /* Fix for Direct Links */
  .nav-links>a {
    font-size: 1.1rem;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    width: 100%;
    text-align: left;
  }

  /* Fix for Dropdown Wrapper */
  .dropdown {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Fix for Link INSIDE Dropdown (The toggle) */
  .dropdown>a {
    font-size: 1.1rem;
    padding: 15px 0;
    width: 100%;
    display: block;
    text-align: left;
    border-bottom: none;
    /* Removed double border */
  }

  /* Dropdown Menu Items */
  .dropdown-menu a {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid #eaeaea;
    width: 100%;
    display: block;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Dropdown in Mobile */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--secondary-color);
    padding-left: 20px;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: #f9f9f9;
    width: 100%;
    box-sizing: border-box;
    /* Ensure padding doesn't overflow width */
  }

  /* For simplicity, let's just show them indented */
  .dropdown:hover .dropdown-menu {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .logo span {
    display: none;
  }
}

/* Hide toggle on desktop */
@media (min-width: 769px) {
  .mobile-toggle {
    display: none;
  }
}