/* --- KUZEY DENIZ REAL ESTATE PREMIUM STYLES --- */

/* 1. RESET & VARIABLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #0d2b45; /* Deep Navy */
  --secondary-color: #3aaeac; /* Vibrant Teal */
  --accent-color: #c49a45; /* Elegant Gold */
  --bg-color: #f8f9fa;
  --text-main: #333333;
  --text-muted: #6c757d;
  --white: #ffffff;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.9);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--primary-color);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

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

.section-padding {
  padding: 100px 0;
}

/* 2. HEADER & NAVIGATION */
.header-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 20px 0;
}

.header-area.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo img {
  height: 50px;
  transition: var(--transition);
}

.header-area.scrolled .logo img {
  height: 40px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.main-nav ul li a {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-color);
  position: relative;
  padding: 5px 0;
  cursor: pointer;
}

.main-nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--secondary-color);
  transition: var(--transition);
}

.main-nav ul li a:hover::after,
.main-nav ul li a.active::after {
  width: 100%;
}

.header-area:not(.scrolled) .main-nav ul li a {
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-switch img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.lang-switch img:hover {
  transform: translateY(-2px) scale(1.1);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--primary-color);
}
.header-area:not(.scrolled) .mobile-toggle {
  color: var(--white);
}

@media (max-width: 991px) {
  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  }
  .main-nav ul.active {
    display: flex;
  }
  .main-nav ul li a {
    color: var(--primary-color) !important;
    text-shadow: none !important;
  }
  .mobile-toggle {
    display: block;
  }
}

/* 3. HERO SECTION */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  background: linear-gradient(rgba(13, 43, 69, 0.6), rgba(13, 43, 69, 0.8)), url('../../img/ust.png') center/cover no-repeat;
  /* If the image doesn't exist, the background color will show */
  background-color: var(--primary-color);
}

.hero-content {
  max-width: 800px;
  animation: fadeInDown 1s ease-out;
}

.hero-content h2 {
  font-size: 3rem;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.hero-content h3 {
  font-size: 4rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 30px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 50px;
  border: 2px solid var(--white);
  border-radius: 15px;
  opacity: 0.8;
}

.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--white);
  border-radius: 50%;
  animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
  0% { transform: translate(-50%, 0); opacity: 1; }
  100% { transform: translate(-50%, 20px); opacity: 0; }
}

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

/* 4. ABOUT SECTION */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.about-img::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(45deg, rgba(58,174,172,0.2), transparent);
}

.about-img img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.about-img:hover img {
  transform: scale(1.05);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--secondary-color);
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.about-text p.lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary-color);
}

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

/* 5. SERVICES SECTION */
.services {
  background: var(--bg-color);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 15px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--secondary-color);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s ease-out;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:hover::before {
  transform: scaleY(1);
}

.service-card:hover h3, 
.service-card:hover p {
  color: var(--white);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-icon img {
  width: 30px;
}

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

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

/* 6. SECTORS SECTION */
.sectors {
  background: var(--white);
}

.sectors-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.sector-card {
  background: var(--bg-color);
  border-radius: 10px;
  padding: 30px;
  border-top: 4px solid var(--primary-color);
  transition: var(--transition);
}

.sector-card:hover {
  box-shadow: var(--box-shadow);
  border-top-color: var(--secondary-color);
  transform: translateY(-5px);
}

.sector-card h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-color);
}

.sector-card h3 span {
  font-size: 24px;
}

.sector-card ul {
  list-style: none;
}

.sector-card ul li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sector-card ul li::before {
  content: '▸';
  color: var(--secondary-color);
}

.sector-card ul li:last-child {
  border-bottom: none;
}

/* 7. CONTACT & FOOTER */
.contact {
  background: var(--primary-color);
  color: var(--white);
  padding: 80px 0 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 30px;
}

.contact-details p {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(255,255,255,0.8);
}

.contact-details i {
  color: var(--secondary-color);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.social-links {
  margin-top: 30px;
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}

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

.contracts h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

.contract-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contract-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  padding: 8px 12px;
  background: rgba(0,0,0,0.2);
  border-radius: 5px;
  transition: var(--transition);
}

.contract-item:hover {
  background: rgba(58,174,172,0.2);
  color: var(--white);
}

.contract-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--secondary-color);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer-bottom a {
  color: var(--secondary-color);
}

@media (max-width: 991px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* 8. BACK TO TOP BUTTON */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
  background: var(--primary-color);
}
