/* =====================================================
   style.css - EAGM GROUP LTD
   ===================================================== */

/* COLOR & BASE VARIABLES */
:root {
  --primary-color: #f25e18;
  --primary-color-hover: #d04e16;
  --secondary-color: #292d53;
  --secondary-color-hover: #181c40;
  --bg-color: #f7f7f7;
  --text-color: #333;
  --light-text: #555;
  --dark-bg: #212121;
  --white: #fff;
}

/* GLOBAL RESET & BASIC SETTINGS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* LINKS & CONTAINER */
a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* HEADER & NAVBAR */
header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  position: relative; /* Mobile menu will be positioned relative to nav */
}

/* LOGO - Desktop: 331x50, mobile scales automatically */
nav .logo img {
  width: 331px;
  height: 50px;
  max-width: 100%;
  cursor: pointer;
}

/* Hamburger menu toggle */
.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
  display: none; /* Shown only in media query */
}

/* Main navigation list */
nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* MOBILE MENU STYLES */
@media (max-width: 992px) {
  .menu-toggle {
    display: block; /* Show the hamburger icon */
  }
  nav ul {
    position: absolute;
    top: 60px;
    right: 10px;
    left: auto;
    margin-left: auto;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    width: 80vw;
    max-width: 300px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: none; /* Hidden until toggled */
  }
  nav ul.show {
    display: flex; /* Display on toggle */
  }
}

/* GENERAL NAVIGATION LINK STYLE */
nav ul li a {
  padding: 8px 12px;
  transition: color 0.3s;
  white-space: nowrap;
}

nav ul li a:hover {
  color: var(--primary-color);
}

/* PAYMENT BUTTON */
nav ul li.payment {
  background-color: var(--secondary-color);
  border-radius: 8px;
}

nav ul li.payment a {
  display: block;
  padding: 12px 20px;
  color: var(--white);
  font-weight: bold;
  text-align: center;
  transition: box-shadow 0.3s;
}

nav ul li.payment a:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* HERO SECTION */
.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  color: var(--white);
  padding: 0 20px;
  margin-bottom: 40px;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.87);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* BUTTONS */
.btn,
.blue-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

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

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

.blue-btn {
  background-color: var(--secondary-color);
  color: var(--white);
}

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

/* SECTION TITLES */
.section-title {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2rem;
  color: #222;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 10px auto 0;
  border-radius: 5px;
}

/* CONTACT SECTION */
.contact {
  background-color: var(--white);
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 40px 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
}

.contact h2 {
  margin-bottom: 20px;
}

.contact .info-item {
  margin-bottom: 15px;
  font-size: 1rem;
}

.contact a {
  color: var(--primary-color);
  text-decoration: underline;
}

.contact .payment a {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--secondary-color);
  color: var(--white);
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  transition: box-shadow 0.3s;
  text-decoration: none;
}

.contact .payment a:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* ABOUT US SECTION */
.about {
  background-color: var(--white);
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.about p {
  font-size: 1rem;
  color: var(--light-text);
  margin-bottom: 10px;
}

/* OUR WORKS SECTION */
.eagm-works .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.card {
  background-color: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.card p {
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--light-text);
}

/* DAVINCI SAAS SECTION */
.davinci {
  background-color: var(--dark-bg);
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  color: #e0e0e0;
}

.davinci-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.davinci-text {
  flex: 1;
  min-width: 300px;
}

.davinci-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #ccc;
}

.davinci-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.davinci-image img {
  max-width: 80%;
  border-radius: 8px;
  padding: 10px;
}

/* POLICY WRAPPER & SIDEBAR */


.policy-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.policy-container {
  flex-grow: 1;
  max-width: calc(100% - 280px); /* Sidebar genişliğini de göz önünde bulundur */
  padding-left: 20px;
}


/* Enhanced Policy Sidebar */
.policy-sidebar {
  flex: 0 0 250px;              /* Fixed width */
  background-color: #f8f8f8;      /* Slightly darker background */
  border-radius: 12px;            /* Rounded corners */
  padding: 20px;
  position: fixed;              /* Fixed position on desktop */
  left: 20px;
  top: 100px;
  height: calc(100vh - 120px);    /* Full height minus top/bottom margins */
  overflow-y: auto;             /* Vertical scroll if content overflows */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Emphasis shadow */
  transition: all 0.3s ease-in-out;
}

.policy-sidebar ul {
  list-style: none;
  padding: 0;
}

.policy-sidebar ul li {
  margin-bottom: 12px;
}

.policy-sidebar ul li a {
  display: block;
  color: #333;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.3s ease-in-out;
  font-size: 16px;   /* Readable font size */
  font-weight: 500;
}

.policy-sidebar ul li a:hover {
  background: #e95c00;
  color: white;
  font-weight: 600;
}

/* Active menu highlight */
.policy-sidebar ul li a.active {
  background: #e95c00;
  color: white;
  font-weight: bold;
}

/* MOBILE: Hide sidebar */
@media (max-width: 1024px) {
  .policy-sidebar {
    display: none;
  }
  .policy-container {
    max-width: 100%;
    padding-left: 0;
  }
}

/* FOOTER */
footer {
  background-color: var(--white);
  padding: 20px 0;
  text-align: center;
  color: var(--light-text);
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  padding-top: 30px;
}

.social-icons {
  margin-top: 10px;
  text-align: center;
}

.social-icons a {
  margin: 0 10px;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--primary-color);
}

/* SCROLL TOP BUTTON */
.scroll-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.scroll-top:hover {
  background-color: var(--primary-color-hover);
}

/* RESPONSIVE SETTINGS */

/* For Logo and Policy Wrapper */
@media (max-width: 992px) {
  .policy-wrapper {
    flex-direction: column;
  }
}

/* For screens below 768px */
@media (max-width: 768px) {
  nav .logo img {
    width: 280px;
    height: auto;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .davinci-content {
    flex-direction: column;
  }
}

/* For screens below 480px */
@media (max-width: 480px) {
  nav .logo img {
    width: 320px;
    height: auto;
  }
  .hero {
    min-height: 60vh;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .container {
    padding: 15px;
  }
}
