/* Main Stylesheet for Taskiran Beyaz Esya Tamiri */
:root {
  /* Colors */
  --primary-color: #0056b3;
  /* Professional Blue */
  --primary-dark: #004494;
  --secondary-color: #ffcc00;
  /* Attention/Call-to-action Yellow */
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --light-bg: #f8f9fa;
  --border-color: #e9ecef;
  --success-color: #28a745;

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;

  /* Transitions */
  --transition-fast: 0.3s ease;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  padding-top: var(--header-height);
  /* Space for fixed header */
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary-color);
}

h3 {
  font-size: 1.5rem;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.bg-light {
  background-color: var(--light-bg);
}

.text-center {
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.btn-secondary:hover {
  background-color: #e6b800;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 20px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-dark);
}

.nav-link:hover {
  color: var(--primary-color);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition-fast);
  border-radius: 4px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 15px;
  border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: var(--light-bg);
  color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.jpg') no-repeat center center/cover;
  color: var(--white);
  padding: 100px 0;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Service Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
  text-align: center;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Fixed Bottom Buttons */
.fixed-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  /* Aligned right for cleaner look */
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 2000;
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.float-btn:hover {
  transform: scale(1.1);
}

.whatsapp-float {
  background-color: #25D366;
}

.call-float {
  background-color: var(--primary-color);
}

/* Brands */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
  opacity: 0.7;
}

.brands-grid img {
  max-height: 50px;
  filter: grayscale(100%);
  transition: var(--transition-fast);
}

.brands-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
footer {
  background-color: #222;
  color: #ddd;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 20px;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
  display: inline-block;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a:hover {
  color: var(--secondary-color);
}

.copyright {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
  .logo {
    font-size: 1.1rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 30px 20px;
    gap: 15px;
    /* Increased gap for cards */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1001;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    opacity: 0;
    transform: translateX(-20px);
    transition: 0.3s ease;
  }

  .nav-menu.active .nav-item {
    opacity: 1;
    transform: translateX(0);
  }

  /* Staggered animation for menu items */
  .nav-menu.active .nav-item:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-menu.active .nav-item:nth-child(2) {
    transition-delay: 0.15s;
  }

  .nav-menu.active .nav-item:nth-child(3) {
    transition-delay: 0.2s;
  }

  .nav-menu.active .nav-item:nth-child(4) {
    transition-delay: 0.25s;
  }

  .nav-menu.active .nav-item:nth-child(5) {
    transition-delay: 0.3s;
  }

  .nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
  }

  .nav-link i {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1.2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .nav-link:active {
    transform: scale(0.98);
    background: #f0f0f0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 5px 0 5px 50px;
    margin-top: 5px;
    display: none;
  }

  .nav-item.active .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .dropdown-item {
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #efefef;
    font-size: 0.95rem;
    font-weight: 600;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 80%;
    /* Make buttons wide on mobile for easy tapping */
    margin: 0 !important;
    /* Reset margins */
  }

  .fixed-buttons {
    right: 15px;
    bottom: 15px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }
}