/* ========================================
   ARYAS AR-GE MÜHENDİSLİK - MAIN STYLESHEET
   Unique Corporate Design with Modern Elements
   ======================================== */

/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  /* Color Palette - Blue-Gray Industrial Theme */
  --primary-dark: #1A3A52;      /* Deep blue-gray (header, headings) */
  --primary-medium: #2E5C7F;    /* Medium blue */
  --primary-light: #5B8AAE;     /* Light blue */
  --accent-blue: #0066CC;       /* Accent blue (CTAs) */
  --neutral-dark: #37474F;      /* Dark gray (text) */
  --neutral-medium: #78909C;    /* Medium gray */
  --neutral-light: #CFD8DC;     /* Light gray (borders) */
  --neutral-bg: #F5F7FA;        /* Light blue-gray background */
  --bg-light: #E8EEF2;          /* Very light blue-gray */
  --text-dark: #212121;
  --text-medium: #616161;
  --text-light: #9E9E9E;
  --white: #FFFFFF;
  --accent-gradient: linear-gradient(135deg, #1A3A52 0%, #2E5C7F 50%, #5B8AAE 100%);
  --accent-gradient-reverse: linear-gradient(135deg, #5B8AAE 0%, #2E5C7F 50%, #1A3A52 100%);

  /* Glass effect colors */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(26, 58, 82, 0.1);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Typography */
  --font-heading: 'Poppins', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 30px;
}

/* ========== GLOBAL RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--primary-dark);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary-medium);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-medium);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

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

/* ========== UTILITY CLASSES ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-fluid {
  width: 100%;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

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

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========== HEADER & NAVIGATION ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--transition-medium);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(26, 58, 82, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  height: 50px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-medium);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-medium);
}

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

.nav-link:hover {
  color: var(--primary-medium);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 30px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 3px;
  transition: all var(--transition-medium);
}

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

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

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

/* ========== HERO SECTION (Unique Split Design) ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F5F7FA 0%, #E8EEF2 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: var(--accent-gradient);
  opacity: 0.05;
  border-radius: 50%;
  transform: rotate(-15deg);
  animation: float 20s ease-in-out infinite;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 2;
  margin-top: 80px;
}

.hero-text {
  padding: var(--spacing-md);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--text-medium);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
}

.hero-visual {
  position: relative;
  height: 500px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
}

/* Glass Cards Floating - Removed for cleaner design */

/* Hero text visibility fix - ensure headings are readable on light hero background */
.hero h1:not(.hero-slide-title):not(.brand-title) {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: var(--primary-dark);
  background-clip: unset;
  color: var(--primary-dark);
}

.hero .hero-subtitle {
  color: var(--neutral-dark);
}

/* Brand title in header - always dark for readability */
.brand-title {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--primary-dark) !important;
  background-clip: unset !important;
  color: var(--primary-dark) !important;
  font-size: 1.25rem !important;
  margin-bottom: 0 !important;
}

.brand-tagline {
  color: var(--primary-medium) !important;
  font-size: 0.85rem !important;
  margin-bottom: 0 !important;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  transition: all var(--transition-medium);
  border: none;
  font-size: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-gradient-reverse);
  z-index: -1;
  transition: opacity var(--transition-medium);
  opacity: 0;
}

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

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-medium);
  color: var(--primary-dark);
}

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

.btn-group {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

/* ========== FEATURE CARDS ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.feature-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--neutral-light);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transition: transform var(--transition-medium);
  transform-origin: left;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  border-color: var(--primary-light);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--spacing-sm);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-dark);
}

.feature-description {
  color: var(--text-medium);
  line-height: 1.8;
}

/* ========== STATS SECTION ========== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  padding: var(--spacing-xl) 0;
  background: var(--accent-gradient);
  color: var(--white);
  border-radius: var(--border-radius-lg);
  margin: var(--spacing-xl) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  font-family: var(--font-heading);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== PRODUCT/TECH CARDS ========== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid var(--neutral-light);
  transition: all var(--transition-medium);
  position: relative;
}

.product-card:hover {
  border-color: var(--primary-light);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-content {
  padding: var(--spacing-md);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--primary-dark);
}

.product-description {
  color: var(--text-medium);
  margin-bottom: var(--spacing-sm);
}

/* ========== FORM STYLES ========== */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid #E0E0E0;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-medium);
  background: var(--white);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-medium);
  background: var(--bg-light);
}

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

.form-error {
  color: #d32f2f;
  font-size: 0.875rem;
  margin-top: var(--spacing-xs);
  display: none;
}

.form-input.error,
.form-textarea.error {
  border-color: #d32f2f;
}

.form-input.error + .form-error,
.form-textarea.error + .form-error {
  display: block;
}

/* ========== CONTACT INFO ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.contact-info {
  background: var(--neutral-bg);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.contact-icon {
  width: 24px;
  height: 24px;
  fill: var(--primary-medium);
  flex-shrink: 0;
}

.contact-detail h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.contact-detail p,
.contact-detail a {
  color: var(--text-medium);
  font-size: 0.95rem;
}

.contact-detail a:hover {
  color: var(--primary-medium);
}

/* ========== MAP EMBED ========== */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--neutral-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ========== FOOTER ========== */
.footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
  margin-top: var(--spacing-2xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.footer-section p,
.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xs);
  display: block;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Decorative shapes removed for cleaner design */

/* ========== SCROLL TO TOP BUTTON ========== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
  z-index: 999;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  opacity: 0.9;
}
