/* ============================================
   KHORRAMI ENTERPRISES — CUSTOM STYLES
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
}

::selection {
  background: #1B4332;
  color: #fefdf8;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(254, 253, 248, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(27, 67, 50, 0.08);
  transition: box-shadow 0.3s ease;
}

.nav-fixed.scrolled {
  box-shadow: 0 4px 30px rgba(27, 67, 50, 0.1);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #1B4332;
  transition: all 0.2s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: 400px;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  text-align: left;
}

/* ============================================
   GEOMETRIC DECORATIVE SHAPES
   ============================================ */
.fixed.inset-0 {
  pointer-events: none;
}

.geo-shape {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.geo-circle-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 67, 50, 0.06) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(231, 111, 81, 0.08) 0%, transparent 70%);
  bottom: 20%;
  left: -80px;
  animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-circle-3 {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 145, 108, 0.08) 0%, transparent 70%);
  top: 50%;
  right: 5%;
  animation: float-slow 18s ease-in-out infinite;
}

.geo-square-1 {
  width: 120px;
  height: 120px;
  background: rgba(27, 67, 50, 0.04);
  border-radius: 24px;
  top: 35%;
  left: 3%;
  transform: rotate(45deg);
  animation: float-slow 22s ease-in-out infinite;
}

.geo-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 104px solid rgba(231, 111, 81, 0.06);
  top: 60%;
  right: 8%;
  animation: float-slow 16s ease-in-out infinite reverse;
}

.geo-dots {
  width: 100px;
  height: 100px;
  background-image: radial-gradient(circle, rgba(27, 67, 50, 0.1) 1.5px, transparent 1.5px);
  background-size: 12px 12px;
  bottom: 15%;
  right: 15%;
  border-radius: 16px;
  transform: rotate(15deg);
  animation: float-slow 14s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-15px) rotate(2deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
  75% { transform: translateY(-20px) rotate(1deg); }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-content {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeIn 0.8s ease forwards;
}

.hero-card-main {
  opacity: 0;
  transform: scale(0.95);
  animation: heroCardIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards;
}

.hero-float {
  opacity: 0;
  animation: floatIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.stat-card-1 { animation-delay: 0.6s; }
.stat-card-2 { animation-delay: 0.8s; }
.stat-card-3 { animation-delay: 1s; }

@keyframes heroFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroCardIn {
  to { opacity: 1; transform: scale(1); }
}

@keyframes floatIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-float {
  transform: translateY(20px);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
  opacity: 0;
  transform: translateY(24px);
}

.service-card.visible {
  animation: cardReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #a8c5b0;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .scroll-reveal { opacity: 1; transform: none; }
  .service-card { opacity: 1; transform: none; }
  .hero-content, .hero-card-main { opacity: 1; transform: none; }
  .hero-float { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 767px) {
  .geo-circle-1 { width: 250px; height: 250px; }
  .geo-circle-2 { width: 180px; height: 180px; }
  .geo-circle-3 { width: 120px; height: 120px; }
  .geo-square-1 { width: 80px; height: 80px; }
  .geo-triangle-1 { border-left-width: 40px; border-right-width: 40px; border-bottom-width: 70px; }
  .geo-dots { width: 60px; height: 60px; }
}
