/* ========================================
   PREMIUM MODERN DESIGN SYSTEM
   Küre Temizlik - Ultra Modern Agency Level
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Layout */
  --header-height: 80px;
  
  /* Colors - Modern Palette */
  --primary-50: #f0f9ff;
  --primary-100: #e0f2fe;
  --primary-200: #bae6fd;
  --primary-300: #7dd3fc;
  --primary-400: #38bdf8;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;

  --secondary-50: #f8fafc;
  --secondary-100: #f1f5f9;
  --secondary-200: #e2e8f0;
  --secondary-300: #cbd5e1;
  --secondary-400: #94a3b8;
  --secondary-500: #64748b;
  --secondary-600: #475569;
  --secondary-700: #334155;
  --secondary-800: #1e293b;
  --secondary-900: #0f172a;

  --accent-50: #fef7ff;
  --accent-100: #fce7ff;
  --accent-200: #f8d4fe;
  --accent-300: #f2b5fc;
  --accent-400: #e879f9;
  --accent-500: #d946ef;
  --accent-600: #c026d3;
  --accent-700: #a21caf;
  --accent-800: #86198f;
  --accent-900: #701a75;

  --success-50: #f0fdf4;
  --success-500: #22c55e;
  --success-600: #16a34a;

  --warning-50: #fffbeb;
  --warning-500: #f59e0b;
  --warning-600: #d97706;

  --error-50: #fef2f2;
  --error-500: #ef4444;
  --error-600: #dc2626;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Font Sizes - Fluid Typography */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
  --text-4xl: clamp(2.25rem, 1.8rem + 2.25vw, 3rem);
  --text-5xl: clamp(3rem, 2.4rem + 3vw, 4rem);
  --text-6xl: clamp(3.75rem, 3rem + 3.75vw, 5rem);

  /* Spacing - 8px Grid System */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-3xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 20px rgb(14 165 233 / 0.3);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* Z-Index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--secondary-800);
  background-color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========================================
   LAYOUT SYSTEM
   ======================================== */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 640px) {
  .container {
    padding: 0 var(--space-6);
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-8);
  }
}

/* ========================================
   HEADER - PREMIUM GLASSMORPHISM
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-lg);
}

.navbar {
  padding: var(--space-4) 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--primary-600);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav-logo:hover {
  color: var(--primary-700);
  transform: translateY(-1px);
}

.nav-logo img,
.nav-logo .logo-img {
  max-width: 58px;
  height: auto;
  display: block;
}

/* Match homepage gradient-like title styling without changing markup */
.nav-logo span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 45%, #88D1CC 55%, #5BB5B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-logo > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
}

.nav-menu {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex;
  }
}

/* Mobile menu: show when toggled via .active */
@media (max-width: 767px) {
  .nav-menu.active {
    display: flex !important;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: var(--space-6);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: #4e5d71;
  text-decoration: none;
  transition: all var(--transition-fast);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
}

.nav-link.portals-btn {
  background: linear-gradient(135deg, #667eea 0%, #5c83ff 100%);
  color: white !important;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown .nav-link::after {
  display: none;
}

.portals-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.portals-btn:hover::before {
  left: 100%;
}

.portals-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5c83ff 0%, #4a6cf7 100%);
}

.portals-btn:focus {
  outline: 2px solid rgba(102, 126, 234, 0.5);
  outline-offset: 2px;
}

.dropdown-icon {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover .dropdown-icon,
.nav-item-dropdown[aria-expanded="true"] .dropdown-icon {
  transform: rotate(180deg);
}

.portals-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 320px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  pointer-events: none;
}

.portals-dropdown::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-item-dropdown:hover .portals-dropdown,
.nav-item-dropdown[aria-expanded="true"] .portals-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: all;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--secondary-800);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(135deg, #667eea, #5c83ff);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(92, 131, 255, 0.05));
  transform: translateX(4px);
}

.dropdown-item:hover::before {
  transform: scaleY(1);
}

.dropdown-item-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(92, 131, 255, 0.1));
  color: #667eea;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.dropdown-item:hover .dropdown-item-icon {
  background: linear-gradient(135deg, #667eea, #5c83ff);
  color: white;
  transform: scale(1.1);
}

.dropdown-item-content {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary-900);
  margin-bottom: 2px;
}

.dropdown-item-desc {
  font-size: 0.8rem;
  color: var(--secondary-500);
  line-height: 1.3;
}

.dropdown-item-arrow {
  color: var(--secondary-400);
  font-size: 0.85rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.dropdown-item:hover .dropdown-item-arrow {
  color: #667eea;
  transform: translateX(4px);
}

.nav-link:hover {
  color: var(--primary-600);
  background: rgba(14, 165, 233, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-500));
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu nav-link styles */
@media (max-width: 767px) {
  .nav-menu.active .nav-link {
    display: block;
    padding: var(--space-4) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .nav-menu.active .nav-link:last-child {
    border-bottom: none;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-link.portals-btn {
    width: 100%;
    justify-content: space-between;
    padding: var(--space-4) 0;
    background: transparent;
    color: #4e5d71 !important;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-link.portals-btn::before {
    display: none;
  }

  .nav-link.portals-btn:hover {
    transform: none;
    background: rgba(14, 165, 233, 0.1);
  }

  .portals-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    margin-top: 8px;
    margin-left: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    pointer-events: all;
  }

  .portals-dropdown::before {
    display: none;
  }

  .nav-item-dropdown[aria-expanded="true"] .portals-dropdown {
    max-height: 500px;
    padding: 8px 0;
  }

  .dropdown-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transform: none;
  }

  .dropdown-item:last-child {
    border-bottom: none;
  }

  .dropdown-item:hover {
    background: rgba(14, 165, 233, 0.05);
  }

  .dropdown-item-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .dropdown-item-arrow {
    display: none;
  }
}

/* Mobile Menu Toggle */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: var(--space-2);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger:hover {
  background: rgba(14, 165, 233, 0.1);
}

.bar {
  width: 24px;
  height: 2px;
  background: var(--secondary-700);
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
}

.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   HERO SECTION - ULTRA MODERN
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, 
    var(--primary-50) 0%, 
    var(--accent-50) 50%, 
    var(--primary-100) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(217, 70, 239, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
  padding: var(--space-20) 0;
}

@media (min-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 1024px) {
  .hero-content {
    text-align: left;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero-badge i {
  color: var(--accent-500);
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--secondary-900);
  margin-bottom: var(--space-6);
  background: linear-gradient(135deg, var(--secondary-900) 0%, var(--primary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--secondary-600);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1024px) {
  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

/* ========================================
   BUTTONS - PREMIUM DESIGN SYSTEM
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  min-width: 160px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--secondary-700);
  border: 2px solid var(--secondary-200);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-300);
  color: var(--primary-700);
}

/* ========================================
   HERO VISUAL - MODERN ANIMATION
   ======================================== */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual {
  position: relative;
  width: 300px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  animation: float 6s ease-in-out infinite;
  /* Ensure inner media fills the frame and corners clip nicely */
  overflow: hidden;
  padding: 0 !important;       /* override any inline padding */
  min-height: unset !important;/* override any inline min-height */
}

@media (min-width: 640px) {
  .hero-visual {
    width: 400px;
    height: 400px;
  }
}

/* Make the image inside the animated frame fill it perfectly */
.hero-visual > img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: inherit !important;
}

/* Mobile-first responsiveness for the hero */
@media (max-width: 768px) {
  .hero-container {
    gap: var(--space-12);
    padding: var(--space-16) 0;
  }
}

/* Make the visual expand on all small devices up to tablet width */
@media (max-width: 640px) {
  .hero-image { width: 100%; }
  .hero-visual {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 480px) {
  /* Make the visual full-width on mobile while keeping it perfectly square */
  .hero-image { width: 100%; }
  .hero-visual {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  /* Improve text readability on small screens */
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
  }
  .hero-subtitle {
    font-size: clamp(1rem, 4.5vw, 1.125rem);
  }

  /* Stack buttons nicely on narrow devices */
  .hero-buttons {
    gap: var(--space-3);
  }
}

.hero-visual i {
  font-size: 6rem;
  color: var(--primary-500);
  animation: pulse 2s ease-in-out infinite;
}

@media (min-width: 640px) {
  .hero-visual i {
    font-size: 8rem;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ========================================
   SECTIONS - MODERN SPACING
   ======================================== */
section {
  padding: var(--space-20) 0;
}

.about {
  background: linear-gradient(135deg, 
    var(--secondary-50) 0%, 
    var(--primary-50) 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: var(--space-20);
  }
}

.about-text {
  order: 1;
}

@media (min-width: 1024px) {
  .about-text {
    order: 1;
  }
}

.about-features {
  order: 2;
}

@media (min-width: 1024px) {
  .about-features {
    order: 2;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
  }
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
  background: linear-gradient(135deg, 
    var(--primary-50) 0%, 
    var(--secondary-50) 100%);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
  }
}

.service-card {
  text-align: center;
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.service-card .service-icon {
  margin: 0 auto var(--space-6);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

/* ========================================
   REFERENCES SECTION
   ======================================== */
.references {
  background: linear-gradient(135deg, 
    var(--secondary-50) 0%, 
    var(--primary-50) 100%);
}

.references-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .references-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .references-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

.reference-card {
  text-align: center;
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.reference-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.reference-card .reference-image {
  margin: 0 auto var(--space-6);
  transition: all var(--transition-normal);
}

.reference-card:hover .reference-image {
  transform: scale(1.1) rotate(-5deg);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
  background: linear-gradient(135deg, 
    var(--primary-50) 0%, 
    var(--accent-50) 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-16);
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
  }
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 640px) {
  .contact-info {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (min-width: 1024px) {
  .contact-info {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.contact-item {
  text-align: center;
  padding: var(--space-8);
  transition: all var(--transition-normal);
}

.contact-item:hover {
  transform: translateY(-8px) scale(1.02);
}

.contact-item .contact-icon {
  margin: 0 auto var(--space-6);
  transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-form {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--secondary-900);
  margin-bottom: var(--space-6);
  text-align: center;
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--space-4);
  border: 2px solid var(--secondary-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.9);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

/* Form input focus effects for inline styles */
input:focus,
textarea:focus {
  outline: none !important;
  border-color: var(--primary-500) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
  background: rgba(255, 255, 255, 1) !important;
  transform: translateY(-1px) !important;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  width: 100%;
  padding: var(--space-4) var(--space-8);
  background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

/* Submit button hover effects for inline styles */
button[type="submit"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-xl), var(--shadow-glow) !important;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%) !important;
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.footer {
  background: linear-gradient(135deg, 
    var(--secondary-900) 0%, 
    var(--secondary-800) 100%);
  color: white;
  padding: var(--space-20) 0 var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-12);
  }
}

.footer-section {
  text-align: center;
}

@media (min-width: 1024px) {
  .footer-section:first-child {
    text-align: left;
  }
}

.footer-section h4 {
  margin-bottom: var(--space-4);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

/* Footer Brand Styles */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  transform: translateY(-2px);
}

.footer-logo-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: none;
  position: relative;
}

.footer-logo-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../logoheader.png') center/contain no-repeat;
  opacity: 1;
  z-index: 2;
}

.footer-logo-icon svg {
  display: none;
}

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-main {
  font-size: 1.75rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-logo-sub {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.125rem;
}

.footer-description {
  font-size: 1.1rem;
  color: var(--secondary-300);
  line-height: 1.7;
  max-width: 28rem;
  margin-top: 1rem;
}

/* Villa Showcase Responsive */
.villa-showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0;
}

@media (max-width: 768px) {
  .villa-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .villa-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer-section ul li {
  margin-bottom: var(--space-2);
}

.footer-section a {
  color: var(--secondary-300);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-400);
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.footer-social {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  margin-top: var(--space-6);
}

@media (min-width: 1024px) {
  .footer-social {
    justify-content: flex-start;
  }
}

.social-link {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.social-link:hover {
  transform: translateY(-2px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-700);
  padding-top: var(--space-8);
  margin-top: var(--space-12);
  text-align: center;
}

.footer-bottom p {
  color: var(--secondary-400);
  font-size: var(--text-sm);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--accent-100) 100%);
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  border: 1px solid var(--primary-200);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--secondary-900);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.section-description {
  font-size: var(--text-lg);
  color: var(--secondary-600);
  line-height: 1.7;
}

/* ========================================
   CARDS - GLASSMORPHISM DESIGN
   ======================================== */
.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2xl);
  border-color: rgba(14, 165, 233, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 767px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
  
  .section-title {
    font-size: var(--text-3xl);
  }
  
  .hero-visual {
    width: 250px;
    height: 250px;
  }
  
  .hero-visual i {
    font-size: 4rem;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }

/* ========================================
   LOADING ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   SCROLL ANIMATIONS (AOS Alternative)
   ======================================== */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-down"] {
  transform: translateY(-30px);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="zoom-in"] {
  transform: scale(0.9);
}

[data-aos="zoom-out"] {
  transform: scale(1.1);
}
