/* ============================================
   CSS VARIABLES — Central theme control
============================================ */
:root {
  --bg-primary: #0a0e1a;
  --bg-secondary: #111827;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #06b6d4;
  --accent-2: #8b5cf6;
  --accent-3: #10b981;
  --gradient: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
  --gradient-2: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(15, 23, 42, 0.03);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ============================================
   RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.10) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; font-weight: 700; line-height: 1.2; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 2rem; position: relative; z-index: 1; }

/* ============================================
   PRELOADER
============================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }

.loader { text-align: center; }
.cube-loader {
  width: 60px; height: 60px;
  margin: 0 auto 1rem;
  background: var(--gradient);
  border-radius: 12px;
  animation: loaderSpin 1.5s infinite ease-in-out;
}
@keyframes loaderSpin {
  0%, 100% { transform: rotate(0) scale(1); }
  50%      { transform: rotate(180deg) scale(0.8); }
}
.loader p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================
   SCROLL PROGRESS BAR
============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s ease;
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: rgba(10, 14, 26, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
body.light .navbar { background: rgba(255, 255, 255, 0.7); }

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  cursor: pointer;
}
.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; gap: 1rem; align-items: center; }

.theme-toggle, .menu-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}
.theme-toggle:hover, .menu-toggle:hover {
  background: var(--gradient);
  transform: translateY(-2px);
}
.menu-toggle { display: none; }

/* ============================================
   BUTTONS
============================================ */
.btn {
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
}
.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(6, 182, 212, 0.5);
}
.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-3px);
}

/* ============================================
   HERO
============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: 0; }
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: float 20s infinite ease-in-out;
}
.shape-1 { width: 400px; height: 400px; background: var(--accent); top: -100px; left: -100px; }
.shape-2 { width: 500px; height: 500px; background: var(--accent-2); bottom: -150px; right: -150px; animation-delay: -7s; }
.shape-3 { width: 300px; height: 300px; background: var(--accent-3); top: 40%; left: 50%; animation-delay: -14s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(50px, -50px); }
  66%      { transform: translate(-30px, 30px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  background: var(--accent-3);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  50%      { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
}
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero-software-strip {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.strip-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.strip-icons {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
}
.strip-icons span {
  transition: var(--transition);
  cursor: pointer;
}
.strip-icons span:hover { transform: translateY(-5px) scale(1.2); }

/* Hero 3D Cube */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 400px;
}
.cube-wrapper { perspective: 1000px; width: 300px; height: 300px; }
.cube {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotateCube 20s infinite linear;
}
@keyframes rotateCube {
  from { transform: rotateX(0) rotateY(0); }
  to   { transform: rotateX(360deg) rotateY(360deg); }
}
.cube-face {
  position: absolute;
  width: 300px; height: 300px;
  background: linear-gradient(135deg, rgba(6,182,212,0.2), rgba(139,92,246,0.2));
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  backdrop-filter: blur(10px);
}
.cube-face:nth-child(1) { transform: translateZ(150px); }
.cube-face:nth-child(2) { transform: rotateY(180deg) translateZ(150px); }
.cube-face:nth-child(3) { transform: rotateY(90deg)  translateZ(150px); }
.cube-face:nth-child(4) { transform: rotateY(-90deg) translateZ(150px); }
.cube-face:nth-child(5) { transform: rotateX(90deg)  translateZ(150px); }
.cube-face:nth-child(6) { transform: rotateX(-90deg) translateZ(150px); }

/* ============================================
   SECTIONS
============================================ */
.section { padding: 6rem 0; position: relative; z-index: 1; }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .tag, .page-header .tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.section-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.page-header h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 1rem; }
.page-header p { color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* ============================================
   STATS
============================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 0.5rem; }

/* ============================================
   SERVICE CARDS
============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: block;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}
.service-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; }
.service-card p  { color: var(--text-secondary); font-size: 0.95rem; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.service-tags span {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
}

.center-cta { text-align: center; margin-top: 3rem; }

/* ============================================
   SOFTWARE SHOWCASE
============================================ */
.software-section { background: var(--bg-secondary); }

.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.software-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.software-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.sw-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.software-card h4 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.sw-category {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--gradient);
  color: white;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.software-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.sw-level {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.sw-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 1.5s ease;
}

/* ============================================
   PROCESS
============================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.process-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
}
.process-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.process-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  line-height: 1;
}
.process-card h4 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.process-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* ============================================
   TESTIMONIALS
============================================ */
.testimonials-section { background: var(--bg-secondary); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.testimonial:hover { transform: translateY(-5px); border-color: var(--accent); }
.stars { color: #fbbf24; margin-bottom: 1rem; font-size: 1.1rem; }
.testimonial p {
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.95rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text-secondary); }

/* ============================================
   CTA
============================================ */
.cta-box {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.2), transparent 60%);
}
.cta-box h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1rem; position: relative; }
.cta-box p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95; position: relative; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.cta-box .btn-primary { background: white; color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.cta-box .btn-secondary { background: rgba(255,255,255,0.15); color: white; border-color: rgba(255,255,255,0.3); }

/* ============================================
   ABOUT PAGE
============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}
.about-image-inner {
  background: var(--gradient);
  border-radius: var(--radius);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-text p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-buttons { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient);
}
.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}
.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 5px;
  width: 22px; height: 22px;
  background: var(--gradient);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: var(--transition);
}
.timeline-content:hover { border-color: var(--accent); transform: translateX(5px); }
.timeline-date {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.timeline-content h4 { margin-bottom: 0.5rem; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
}
.skill-bar {
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 100px;
  transition: width 1.5s ease;
}

/* Certifications */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
}
.cert-card:hover { transform: translateY(-5px); border-color: var(--accent); }
.cert-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.cert-card h4 { font-size: 1rem; margin-bottom: 0.5rem; }
.cert-card span { font-size: 0.85rem; color: var(--text-secondary); }

/* ============================================
   SERVICES DETAILED
============================================ */
.services-detailed {
  display: grid;
  gap: 2rem;
}
.service-detailed {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  transition: var(--transition);
}
.service-detailed:hover { border-color: var(--accent); transform: translateX(5px); }
.sd-icon {
  width: 80px; height: 80px;
  background: var(--gradient);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  flex-shrink: 0;
}
.sd-content h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.sd-content > p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.sd-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.sd-content li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.sd-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-3);
  font-weight: 700;
}

/* ============================================
   PORTFOLIO
============================================ */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 0.6rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.project-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }

.project-image {
  height: 220px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}
.project-content { padding: 1.5rem; }
.project-cat {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  background: var(--gradient);
  color: white;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.project-content h4 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.project-content > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1rem; }
.project-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* ============================================
   COMMUNITY
============================================ */
.community-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}
.forum-post {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: var(--transition);
}
.forum-post:hover { border-color: var(--accent); }
.post-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.post-meta { flex: 1; }
.post-meta h5 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.post-meta span { font-size: 0.8rem; color: var(--text-secondary); }
.tag-sm {
  background: var(--border);
  padding: 0.1rem 0.5rem;
  border-radius: 100px;
  font-size: 0.7rem;
}
.post-content { color: var(--text-secondary); margin-bottom: 1rem; line-height: 1.6; }
.post-actions {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.post-actions button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  transition: var(--transition);
}
.post-actions button:hover { color: var(--accent); }

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { margin-bottom: 1rem; font-size: 1.1rem; }
.sidebar-widget ul { list-style: none; }
.sidebar-widget li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}
.sidebar-widget li:hover { color: var(--accent); padding-left: 5px; }
.sidebar-widget li:last-child { border-bottom: none; }

/* ============================================
   FORMS
============================================ */
.form-container {
  max-width: 700px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem;
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rating-group {
  display: flex;
  gap: 0.5rem;
}
.rating-option {
  cursor: pointer;
  flex: 1;
}
.rating-option input { display: none; }
.rating-option span {
  display: block;
  padding: 0.8rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.rating-option input:checked + span {
  background: var(--gradient);
  border-color: var(--accent);
  transform: scale(1.1);
}

.form-message {
  padding: 1rem;
  border-radius: 10px;
  margin-top: 1rem;
  display: none;
  font-size: 0.9rem;
}
.form-message.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--accent-3);
  color: var(--accent-3);
  display: block;
}

/* Contact info cards */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
}
.contact-info-cards { display: grid; gap: 1rem; align-content: start; }
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}
.contact-card:hover { transform: translateX(5px); border-color: var(--accent); }
.contact-card-icon {
  width: 50px; height: 50px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.contact-card h5 { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.2rem; }
.contact-card p  { font-weight: 500; }

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}
.footer-col h5 { margin-bottom: 1rem; font-size: 1rem; }
.footer-col p, .footer-col a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-links a {
  width: 40px; height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.social-links a:hover { background: var(--gradient); color: white; transform: translateY(-3px); }

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* ============================================
   BACK TO TOP
============================================ */
.back-to-top {
  position: fixed;
  bottom: 30px; right: 30px;
  width: 50px; height: 50px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-5px); }

/* ============================================
   REVEAL ANIMATION
============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 968px) {
  .hero-grid, .about-grid, .contact-grid, .community-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .service-detailed { grid-template-columns: 1fr; }
  .sd-icon { width: 60px; height: 60px; font-size: 2rem; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 1rem; }
  .form-container { padding: 1.5rem; }
  .section { padding: 4rem 0; }
}

/* ============================================
   ABOUT PAGE — Personal Details
============================================ */
.about-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.detail-row:last-child { border-bottom: none; }
.detail-row span:first-child {
  color: var(--text-secondary);
}
.detail-row span:last-child {
  font-weight: 600;
}

.logo-crop-container {
  display: inline-block;
  vertical-align: middle;
  width: 100px;          /* Set your desired visible width */
  height: 0px;         /* Set your desired visible height */
  overflow: hidden;     /* Hides everything outside the width/height */
  border-radius: 4px;   /* Optional: adds rounded corners to your crop */
}

.logo-crop-container video {
  width: 8;
  height: 10;
  object-fit: cover;    /* Crops the video to fill the container perfectly */
  
  /* Optional: Adjust positioning if you want to crop from a specific side */
  /* object-position: center; -> Default (Crops edges equally) */
  /* object-position: top;    -> Keeps the top, crops the bottom */
}

.hero-logo-video {
  display: inline-block;    /* Forces it to sit inline with your text */
  vertical-align: middle;   /* Aligns it vertically with your words */
  width: 50px;              /* Keeps it small like a logo icon */
  height: 50px;             /* Matches the width for a perfect square */
  overflow: hidden;         /* Cuts off any video overflowing this box */
  margin: 0 10px;           /* Adds space on the left and right of the logo */
}

.hero-logo-video video {
  width: 100%;              /* Forces video to fill the 50px box */
  height: 100%;             /* Forces video to fill the 50px box */
  object-fit: cover;        /* Crops and scales the video inside the 50px box */
}
