/* ===== Eclipse Hydro Machinery — Main Stylesheet ===== */

/* --- CSS Variables --- */
:root {
  --primary: #1a3a6b;
  --primary-light: #2a5298;
  --primary-dark: #0f2548;
  --accent: #f0b429;
  --accent-dark: #d49b1f;
  --blue-light: #4a90d9;
  --blue-pale: #e8f0fe;
  --water: #3bb8e0;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-500: #868e96;
  --gray-700: #495057;
  --gray-900: #212529;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

ul { list-style: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px;
  border: none; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--primary-dark); }
.btn-primary:hover { background: var(--accent-dark); color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-secondary { background: var(--white); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-danger { background: #e74c3c; color: white; }
.btn-danger:hover { background: #c0392b; }

/* --- Navigation --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.navbar.scrolled { background: var(--white); box-shadow: 0 2px 16px rgba(0,0,0,0.1); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); margin: 0 auto;
  padding: 8px 20px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 50px; width: auto; }
.nav-logo span {
  font-size: 1.1rem; font-weight: 700;
  color: var(--primary); line-height: 1.2;
}
.nav-logo small { display: block; font-size: 0.7rem; font-weight: 400; color: var(--gray-500); }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 0.95rem; font-weight: 500;
  color: var(--gray-700); position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--gray-700); transition: all var(--transition); }

.nav-links a i { display: none; }
.nav-sidebar-header { display: none; }
.nav-sidebar-footer { display: none; }
.nav-overlay { display: none; }

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  background: linear-gradient(160deg, #07112b 0%, #0d1f4b 25%, #1a3a6b 50%, #1e5fa0 75%, #2680c2 100%);
  overflow: hidden;
  padding-top: 70px;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(59,184,224,0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(240,180,41,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(74,144,217,0.08) 0%, transparent 70%);
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, rgba(255,255,255,0.06), transparent);
  z-index: 1;
}

/* Tagline badge */
.hero-tagline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 20px; border-radius: 30px;
  font-size: 0.85rem; color: rgba(255,255,255,0.9);
  margin-bottom: 20px; letter-spacing: 0.5px;
  animation: fadeSlideDown 0.8s ease forwards;
}
.hero-tagline i { color: var(--water); }

.hero-content {
  position: relative; z-index: 5;
  max-width: 650px; color: var(--white);
}
.hero-content h1 {
  font-size: 3.5rem; font-weight: 800;
  line-height: 1.12; margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  animation: fadeSlideUp 1s ease 0.2s both;
}
.hero-content h1 span {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(240,180,41,0.3);
}
.hero-content .slogan {
  font-size: 1.2rem; opacity: 0.85;
  margin-bottom: 36px; line-height: 1.6;
  animation: fadeSlideUp 1s ease 0.4s both;
}
.hero-buttons {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeSlideUp 1s ease 0.6s both;
}

/* Hero stats row */
.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeSlideUp 1s ease 0.8s both;
}
.hero-stat {
  text-align: center;
}
.hero-stat strong {
  display: block; font-size: 1.8rem; font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 20px rgba(240,180,41,0.4);
}
.hero-stat span {
  font-size: 0.8rem; color: rgba(255,255,255,0.7);
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Hero image with glow */
.hero-image {
  position: relative; z-index: 5;
  flex: 1; display: flex; justify-content: center; align-items: center;
}
.hero-image img {
  max-width: 440px; width: 100%;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
  animation: heroFloat 4s ease-in-out infinite, fadeScale 1s ease 0.5s both;
  border-radius: 20px;
}
.hero-image-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,184,224,0.2) 0%, rgba(240,180,41,0.1) 40%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 3s ease-in-out infinite;
  z-index: -1;
}
.hero .container {
  display: flex; align-items: center; gap: 60px;
  position: relative; z-index: 5;
}

/* Floating hero image animation */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}
@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Animated Water Waves --- */
.hero-wave {
  position: absolute; bottom: -5px; left: 0; width: 200%; height: 120px;
  z-index: 4;
  background-repeat: repeat-x;
  background-size: 50% 100%;
}
.hero-wave-1 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,0.08)' d='M0,60 C360,120 720,0 1080,60 C1260,90 1380,90 1440,60 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
  animation: waveSlide 8s linear infinite;
  opacity: 1;
}
.hero-wave-2 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(59,184,224,0.06)' d='M0,80 C240,20 480,100 720,60 C960,20 1200,100 1440,80 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
  animation: waveSlide 12s linear infinite reverse;
  bottom: 0; height: 100px;
  opacity: 0.8;
}
.hero-wave-3 {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='rgba(255,255,255,0.04)' d='M0,40 C180,100 360,0 540,50 C720,100 900,0 1080,50 C1260,100 1350,40 1440,40 L1440,120 L0,120 Z'/%3E%3C/svg%3E");
  animation: waveSlide 15s linear infinite;
  bottom: 0; height: 80px;
  opacity: 0.6;
}
@keyframes waveSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Floating Particles (snowfall / water drops) --- */
.particles {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute;
  width: 6px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  animation: particleFall linear infinite;
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}
.particle:nth-child(1)  { left: 3%;  width: 4px; height: 4px; animation-duration: 10s; animation-delay: 0s;   opacity: 0.7; }
.particle:nth-child(2)  { left: 8%;  width: 6px; height: 6px; animation-duration: 13s; animation-delay: 1s;   opacity: 0.5; }
.particle:nth-child(3)  { left: 15%; width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 0.5s; opacity: 0.8; }
.particle:nth-child(4)  { left: 22%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 2s;   opacity: 0.4; }
.particle:nth-child(5)  { left: 28%; width: 7px; height: 7px; animation-duration: 11s; animation-delay: 0s;   opacity: 0.6; background: rgba(240,180,41,0.4); box-shadow: 0 0 12px rgba(240,180,41,0.3); }
.particle:nth-child(6)  { left: 35%; width: 4px; height: 4px; animation-duration: 12s; animation-delay: 3s;   opacity: 0.5; }
.particle:nth-child(7)  { left: 42%; width: 5px; height: 5px; animation-duration: 8s;  animation-delay: 1.5s; opacity: 0.7; }
.particle:nth-child(8)  { left: 50%; width: 6px; height: 6px; animation-duration: 15s; animation-delay: 0.8s; opacity: 0.4; background: rgba(59,184,224,0.5); box-shadow: 0 0 10px rgba(59,184,224,0.4); }
.particle:nth-child(9)  { left: 57%; width: 3px; height: 3px; animation-duration: 10s; animation-delay: 2.5s; opacity: 0.6; }
.particle:nth-child(10) { left: 63%; width: 8px; height: 8px; animation-duration: 16s; animation-delay: 0s;   opacity: 0.35; background: rgba(240,180,41,0.35); box-shadow: 0 0 14px rgba(240,180,41,0.25); }
.particle:nth-child(11) { left: 70%; width: 4px; height: 4px; animation-duration: 9s;  animation-delay: 1.2s; opacity: 0.65; }
.particle:nth-child(12) { left: 75%; width: 5px; height: 5px; animation-duration: 13s; animation-delay: 3.5s; opacity: 0.5; }
.particle:nth-child(13) { left: 80%; width: 7px; height: 7px; animation-duration: 11s; animation-delay: 0.3s; opacity: 0.55; background: rgba(59,184,224,0.45); box-shadow: 0 0 10px rgba(59,184,224,0.3); }
.particle:nth-child(14) { left: 85%; width: 3px; height: 3px; animation-duration: 14s; animation-delay: 2s;   opacity: 0.7; }
.particle:nth-child(15) { left: 90%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 1s;   opacity: 0.45; }
.particle:nth-child(16) { left: 5%;  width: 5px; height: 5px; animation-duration: 12s; animation-delay: 4s;   opacity: 0.5; }
.particle:nth-child(17) { left: 38%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 0.7s; opacity: 0.6; background: rgba(240,180,41,0.3); }
.particle:nth-child(18) { left: 55%; width: 3px; height: 3px; animation-duration: 9s;  animation-delay: 3s;   opacity: 0.8; }
.particle:nth-child(19) { left: 95%; width: 5px; height: 5px; animation-duration: 14s; animation-delay: 1.8s; opacity: 0.4; }
.particle:nth-child(20) { left: 48%; width: 6px; height: 6px; animation-duration: 10s; animation-delay: 2.2s; opacity: 0.55; background: rgba(59,184,224,0.4); box-shadow: 0 0 8px rgba(59,184,224,0.3); }
@keyframes particleFall {
  0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh) translateX(40px) rotate(360deg); opacity: 0; }
}

/* --- Water Bubbles (rising) --- */
.water-bubbles {
  position: absolute; bottom: 0; left: 0; right: 0; height: 100%;
  overflow: hidden; z-index: 3; pointer-events: none;
}
.bubble {
  position: absolute; bottom: -40px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  animation: rise ease-in infinite;
}
.bubble:nth-child(1)  { left: 5%;  width: 22px; height: 22px; animation-duration: 7s;  animation-delay: 0s; }
.bubble:nth-child(2)  { left: 15%; width: 14px; height: 14px; animation-duration: 5s;  animation-delay: 1.5s; }
.bubble:nth-child(3)  { left: 25%; width: 28px; height: 28px; animation-duration: 9s;  animation-delay: 0.5s; }
.bubble:nth-child(4)  { left: 35%; width: 18px; height: 18px; animation-duration: 6s;  animation-delay: 3s; }
.bubble:nth-child(5)  { left: 48%; width: 32px; height: 32px; animation-duration: 8s;  animation-delay: 1s; }
.bubble:nth-child(6)  { left: 58%; width: 12px; height: 12px; animation-duration: 5.5s; animation-delay: 2.5s; }
.bubble:nth-child(7)  { left: 68%; width: 24px; height: 24px; animation-duration: 7.5s; animation-delay: 0.8s; }
.bubble:nth-child(8)  { left: 78%; width: 16px; height: 16px; animation-duration: 6.5s; animation-delay: 2s; }
.bubble:nth-child(9)  { left: 88%; width: 20px; height: 20px; animation-duration: 8.5s; animation-delay: 3.5s; }
.bubble:nth-child(10) { left: 95%; width: 10px; height: 10px; animation-duration: 5s;  animation-delay: 4s; }
@keyframes rise {
  0%   { transform: translateY(0) scale(1) translateX(0); opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { transform: translateY(-50vh) scale(1.1) translateX(20px); opacity: 0.5; }
  100% { transform: translateY(-110vh) scale(1.4) translateX(-10px); opacity: 0; }
}

/* --- Sections --- */
section { padding: 80px 0; }

.section-header {
  text-align: center; max-width: 650px;
  margin: 0 auto 50px;
}
.section-header h2 {
  font-size: 2.2rem; font-weight: 700;
  color: var(--primary); margin-bottom: 12px;
}
.section-header p { color: var(--gray-500); font-size: 1.05rem; }
.section-header .divider {
  width: 60px; height: 4px; background: var(--accent);
  margin: 16px auto 0; border-radius: 2px;
}

/* --- About Section --- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-text h3 { font-size: 1.5rem; color: var(--primary); margin-bottom: 12px; }
.about-text p { color: var(--gray-700); margin-bottom: 16px; }

.mission-vision {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 40px;
}
.mv-card {
  background: var(--blue-pale);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 4px solid var(--accent);
}
.mv-card h4 { color: var(--primary); font-size: 1.1rem; margin-bottom: 8px; }
.mv-card p { font-size: 0.95rem; color: var(--gray-700); }

/* --- Values Section --- */
.values-section { background: var(--gray-50); }
.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.value-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; text-align: center;
  box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.value-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--blue-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 16px;
}
.value-card h4 { color: var(--primary); margin-bottom: 6px; }
.value-card p { font-size: 0.85rem; color: var(--gray-500); }

/* --- Services/Products Section --- */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid transparent;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--accent);
}
.service-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--blue-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.2rem; color: var(--primary); margin-bottom: 12px; }
.service-card ul { padding-left: 0; }
.service-card li {
  padding: 6px 0; color: var(--gray-700); font-size: 0.95rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 8px;
}
.service-card li:last-child { border-bottom: none; }
.service-card li::before { content: '✓'; color: var(--water); font-weight: 700; }

/* --- History Section --- */
.history-section {
  background:
    linear-gradient(135deg, rgba(15,37,72,0.7), rgba(26,58,107,0.65)),
    url('/images/water-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.history-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(59,184,224,0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59,184,224,0.08) 0%, transparent 50%);
  pointer-events: none;
}
.history-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; width: 200%; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='rgba(255,255,255,0.05)' d='M0,30 C360,60 720,0 1080,30 C1260,45 1380,45 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 50% 100%;
  animation: waveSlide 10s linear infinite;
}
.history-section .section-header h2 { color: var(--white); }
.history-section .section-header p { color: rgba(255,255,255,0.7); }
.history-content {
  max-width: 800px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8;
}
.history-content p { margin-bottom: 20px; opacity: 0.92; }
.history-highlight {
  background: rgba(255,255,255,0.1);
  border-left: 4px solid var(--accent);
  padding: 20px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}

/* --- Blog Preview Section --- */
.blog-preview-section { background: var(--gray-50); }
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card-image {
  height: 200px; overflow: hidden;
  background: var(--blue-pale);
}
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 24px; }
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; color: var(--gray-500); margin-bottom: 10px;
}
.blog-card-meta .category {
  background: var(--blue-pale); color: var(--primary);
  padding: 2px 10px; border-radius: 12px; font-weight: 600;
  text-transform: uppercase; font-size: 0.7rem;
}
.blog-card h3 { font-size: 1.15rem; color: var(--gray-900); margin-bottom: 8px; }
.blog-card h3:hover { color: var(--primary); }
.blog-card p { font-size: 0.9rem; color: var(--gray-500); margin-bottom: 16px; }
.blog-card .read-more { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.blog-card .read-more:hover { color: var(--accent); }

/* --- Contact Section --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 20px; }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.contact-item .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue-pale); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.contact-item h4 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 0.9rem; color: var(--gray-500); }
.social-links { display: flex; gap: 12px; margin-top: 28px; }
.social-links a {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; transition: all var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--primary-dark); transform: translateY(-3px); }

.contact-map {
  margin-top: 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.contact-map iframe {
  display: block;
}

.contact-form { background: var(--gray-50); padding: 36px; border-radius: var(--radius-lg); }
.contact-form h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--gray-300); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* --- Footer --- */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.8);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand img { height: 48px; margin-bottom: 16px; filter: brightness(10); }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer h4 {
  color: var(--white); font-size: 1rem;
  margin-bottom: 18px; position: relative;
}
.footer h4::after {
  content: ''; display: block; width: 30px; height: 2px;
  background: var(--accent); margin-top: 8px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer ul a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center; font-size: 0.85rem;
}

/* --- Portfolio Section --- */
.portfolio-section { background: var(--white); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.portfolio-page { padding: 60px 0 80px; }

.portfolio-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.portfolio-item:hover img { transform: scale(1.08); }

.portfolio-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 37, 72, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.portfolio-overlay i {
  color: var(--white);
  font-size: 1.8rem;
  transform: scale(0.7);
  transition: transform 0.3s ease;
}
.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-item:hover .portfolio-overlay i {
  transform: scale(1);
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.4rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  transition: color var(--transition), transform var(--transition);
}
.lightbox-close:hover { color: var(--accent); transform: scale(1.2); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  z-index: 10;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

/* --- Blog Page Styles --- */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white); padding: 120px 0 60px;
  text-align: center;
}
.page-header h1 { font-size: 2.6rem; margin-bottom: 12px; }
.page-header p { opacity: 0.8; font-size: 1.1rem; }

.blog-page { padding: 60px 0; }
.blog-filter {
  display: flex; gap: 12px; justify-content: center;
  margin-bottom: 40px; flex-wrap: wrap;
}
.blog-filter button {
  padding: 8px 20px; border: 2px solid var(--gray-300);
  border-radius: 24px; background: var(--white);
  font-size: 0.9rem; cursor: pointer; transition: all var(--transition);
}
.blog-filter button.active, .blog-filter button:hover {
  border-color: var(--primary); background: var(--primary); color: var(--white);
}

/* --- Single Post Page --- */
.post-page { padding: 40px 0 80px; padding-top: 100px; }
.post-container { max-width: 800px; margin: 0 auto; }
.post-header { margin-bottom: 32px; }
.post-header .category-badge {
  display: inline-block;
  background: var(--blue-pale); color: var(--primary);
  padding: 4px 14px; border-radius: 12px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase;
  margin-bottom: 12px;
}
.post-header h1 { font-size: 2.4rem; line-height: 1.2; margin-bottom: 16px; color: var(--gray-900); }
.post-meta { display: flex; align-items: center; gap: 16px; color: var(--gray-500); font-size: 0.9rem; }
.post-featured-image {
  width: 100%; border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 36px;
}
.post-featured-image img { width: 100%; height: auto; }
.post-body { font-size: 1.05rem; line-height: 1.85; color: var(--gray-700); }
.post-body h2, .post-body h3 { color: var(--gray-900); margin: 28px 0 12px; }
.post-body p { margin-bottom: 18px; }
.post-body img { border-radius: var(--radius); margin: 20px 0; }
.post-body blockquote {
  border-left: 4px solid var(--accent); padding: 16px 24px;
  background: var(--gray-50); margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-700);
}

/* --- Admin Panel --- */
.admin-layout {
  display: flex; min-height: 100vh; padding-top: 66px;
}
.admin-sidebar {
  width: 250px; background: var(--primary-dark);
  color: var(--white); padding: 24px 0;
  position: fixed; top: 66px; bottom: 0;
  overflow-y: auto;
}
.admin-sidebar h3 {
  padding: 0 20px; margin-bottom: 24px;
  font-size: 1rem; color: var(--accent);
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; color: rgba(255,255,255,0.7);
  transition: all var(--transition); font-size: 0.95rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,0.1); color: var(--white);
}
.admin-main { flex: 1; margin-left: 250px; padding: 32px; background: var(--gray-50); }

.admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); margin-bottom: 24px;
}
.admin-card h2 { font-size: 1.4rem; color: var(--primary); margin-bottom: 20px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 12px 16px;
  background: var(--gray-50); font-size: 0.85rem;
  color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}
.admin-table td {
  padding: 14px 16px; border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}
.admin-table tr:hover { background: var(--gray-50); }

.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}
.status-badge.published { background: #d4edda; color: #155724; }
.status-badge.draft { background: #fff3cd; color: #856404; }

.editor-container { margin-bottom: 20px; }
.editor-toolbar {
  display: flex; flex-wrap: wrap; gap: 4px;
  padding: 10px; background: var(--gray-50);
  border: 1px solid var(--gray-300); border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
}
.editor-toolbar button {
  padding: 6px 12px; border: 1px solid var(--gray-300);
  border-radius: 4px; background: var(--white); cursor: pointer;
  font-size: 0.85rem; transition: all var(--transition);
}
.editor-toolbar button:hover { background: var(--primary); color: var(--white); }
.editor-content {
  min-height: 300px; padding: 20px;
  border: 1px solid var(--gray-300);
  border-radius: 0 0 var(--radius) var(--radius);
  outline: none; font-size: 1rem; line-height: 1.7;
}
.editor-content:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,107,0.1); }

/* --- Login Page --- */
.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding-top: 70px;
}
.login-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.login-card h2 { text-align: center; color: var(--primary); margin-bottom: 8px; }
.login-card p { text-align: center; color: var(--gray-500); margin-bottom: 28px; }
.login-card .logo-area { text-align: center; margin-bottom: 24px; }
.login-card .logo-area img { height: 60px; margin: 0 auto; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; }
.alert-danger { background: #fde8e8; color: #c0392b; }
.alert-success { background: #d4edda; color: #155724; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid, .portfolio-full-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  /* Sidebar overlay */
  .nav-overlay {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  .nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* Sidebar nav */
  .nav-links { 
    position: fixed;
    top: 0; right: -280px;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: -4px 0 24px rgba(0,0,0,0.15);
    z-index: 999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
  }
  .nav-links.open { right: 0; }

  /* Sidebar header with logo */
  .nav-sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  }
  .nav-sidebar-header img {
    height: 40px;
    width: auto;
    border-radius: 6px;
  }
  .nav-sidebar-header span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
  }
  .nav-sidebar-header small {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
  }

  /* Nav link items with icons */
  .nav-links a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all 0.2s ease;
  }
  .nav-links a:hover {
    background: var(--blue-pale);
    color: var(--primary);
    padding-left: 30px;
  }
  .nav-links a.active {
    background: var(--blue-pale);
    color: var(--primary);
    border-left: 3px solid var(--primary);
  }
  .nav-links a::after { display: none; }
  .nav-links a i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gray-50);
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .nav-links a:hover i,
  .nav-links a.active i {
    background: var(--primary);
    color: var(--white);
  }

  /* Sidebar footer */
  .nav-sidebar-footer {
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding: 16px 20px;
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
  }
  .nav-sidebar-footer a {
    font-size: 0.85rem;
    color: var(--gray-500);
    padding: 8px 4px;
    border-bottom: none;
    gap: 10px;
  }
  .nav-sidebar-footer a i {
    width: auto;
    height: auto;
    background: none;
    color: var(--primary);
    font-size: 0.85rem;
  }

  /* Hamburger to X animation */
  .nav-toggle { display: flex; z-index: 1001; }
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero .container { flex-direction: column; text-align: center; gap: 40px; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-buttons { justify-content: center; }
  .hero-image img { max-width: 280px; }
  .hero-stats { justify-content: center; gap: 20px; }
  .hero-stat strong { font-size: 1.4rem; }
  .hero-tagline { font-size: 0.75rem; }

  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .mission-vision { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .blog-grid { grid-template-columns: 1fr; }
  .portfolio-grid, .portfolio-full-grid { grid-template-columns: repeat(2, 1fr); }
  .post-header h1 { font-size: 1.8rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }

  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }

  section { padding: 50px 0; }
  .section-header h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
.loading { text-align: center; padding: 40px; color: var(--gray-500); }
.no-posts { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.no-posts h3 { color: var(--gray-700); margin-bottom: 8px; }

/* --- Scroll Animation --- */
.fade-in {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
