/* 
    Hyle Danışmanlık - Premium Design System (Vanilla CSS)
    Aesthetic: Corporate Minimalism, Dark Mode Support, Glassmorphism
*/

:root {
  /* MY GLOBAL TRADE - Professional Navy Theme */
  --background: #ffffff;
  --foreground: #09090b;
  --primary: #1b296b; /* Exact Navy Blue from Logo */
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #eef2ff;
  --accent-foreground: #003366;
  --border: #e4e4e7;
  --radius: 0.75rem;
  
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --header-height: 5rem; /* Reduced slightly to look modern */
}

/* RTL Support */
[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

[dir="rtl"] .nav-links,
[dir="rtl"] .grid-3 {
  direction: rtl;
}

[dir="rtl"] .logo img {
  right: 0;
  left: auto;
}

[dir="rtl"] .whatsapp-fixed {
  left: 2rem;
  right: auto;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
  --background: #09090b;
  --foreground: #fafafa;
  --primary: #fafafa;
  --primary-foreground: #18181b;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --border: #27272a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.text-primary-gradient {
  background: linear-gradient(to right, var(--primary), var(--muted-foreground));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: uppercase;
  flex-shrink: 0;
}

.logo img {
  height: 8rem; /* Made slightly smaller for modern breathability */
  width: auto;
  display: flex;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .logo img {
    height: 5rem; /* Better fit for mobile */
    position: relative;
    top: auto;
    transform: none;
    max-width: 160px; /* Safe width to avoid covering icons */
    transition: all 0.3s ease;
  }
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: 0.3s;
  border: 1px solid transparent;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

/* --- Layout Sections --- */
.section {
  padding: 6rem 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.section-muted {
  background-color: var(--muted);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--header-height);
  background-color: rgba(var(--background), 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.logo {
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -1px;
  line-height: 1;
  text-transform: uppercase;
  flex-shrink: 0;
}

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

.nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
  gap: 2.5rem; /* slightly increased gap for better readability */
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links li a:hover {
  color: var(--muted-foreground);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding-top: calc(var(--header-height) + 6rem);
  padding-bottom: 8rem;
  text-align: center;
  overflow: hidden;
  background: var(--background);
}

.hero::before {
  content: '';
  position: absolute;
  top: -10rem;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(27, 41, 107, 0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

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

.hero h1 {
  font-size: 4.5rem; /* Large and bold but elegant */
  font-weight: 800; 
  margin-bottom: 1.5rem;
  color: var(--primary);
  line-height: 1.1;
}

.hero h1 span {
  font-weight: 300; 
  color: var(--foreground);
}

.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted-foreground);
  max-width: 850px;
  margin: 0 auto 2.5rem;
}

/* --- Animations --- */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-80px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-slide-left { opacity: 0; animation: slideInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-slide-right { opacity: 0; animation: slideInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-slide-up { opacity: 0; animation: slideInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.anim-slide-down { opacity: 0; animation: slideInDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

.hero-badge {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(27, 41, 107, 0.05);
  border: 1px solid rgba(27, 41, 107, 0.1);
  color: var(--primary);
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-weight: 600;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  font-size: 0.9rem;
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  box-shadow: 0 10px 20px -10px rgba(27, 41, 107, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px -10px rgba(27, 41, 107, 0.6);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--border);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--muted);
  transform: translateY(-2px);
}

/* --- Accordions (Services) --- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  overflow: hidden;
}

.accordion-header {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.25rem;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--muted);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 2rem;
}

.accordion-item.active .accordion-content {
  padding: 0 2rem 2rem 2rem;
}

.accordion-content-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

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

.accordion-content img {
  border-radius: 1rem;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* --- Cards (Services) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--background);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius);
  transition: 0.4s cubic-bezier(0.2, 0, 0, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

/* --- WhatsApp Button --- */
.whatsapp-fixed {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: 0.3s;
}

.whatsapp-fixed:hover {
  transform: scale(1.1);
}

/* --- Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 1s cubic-bezier(0.2, 0, 0, 1);
}

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

/* --- Footer --- */
.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  background-color: var(--background);
}

@media (max-width: 768px) {
  :root {
    --header-height: 4rem; /* Return to stable height on mobile */
  }

  .navbar .container {
    padding: 0 0.5rem;
    gap: 0.25rem;
    justify-content: flex-start;
  }

  .logo {
    flex: 0 1 auto;
    max-width: 50%;
  }

  .section {
    padding: 3rem 0;
  }

  .hero {
    padding-top: calc(var(--header-height) + 5rem); /* Extra space for the massive logo */
    padding-bottom: 3rem;
  }

  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }

  .logo { font-size: 1rem; }

  /* Hide the big CTA on very small screens to save space */
  .navbar .btn-primary {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--background);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--primary);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    display: none;
    z-index: 999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li a {
    padding: 0.8rem 1.5rem;
    font-size: 0.875rem;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem !important;
  }

  #menu-toggle {
    display: flex !important;
  }

  /* Giant numbers scaling */
  .stat-number {
    font-size: 3rem !important;
  }
}

#menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.25rem;
}

/* --- Innovations & Animations --- */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: var(--primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

.stat-number {
  transition: all 0.5s ease-out;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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