/* ===========================
   ALCHEMY TECHSOL — Global CSS
   =========================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black: #0a0a0c;
  --dark: #0f0f14;
  --dark2: #13131a;
  --surface: #16161f;
  --surface2: #1c1c28;
  --border: rgba(255,255,255,0.08);
  --white: #ffffff;
  --white70: rgba(255,255,255,0.7);
  --white50: rgba(255,255,255,0.5);
  --white20: rgba(255,255,255,0.2);
  --accent: #00c8ff;
  --accent2: #0088dd;
  --accent-glow: rgba(0,200,255,0.15);
  --gold: #f0a500;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 16px;
  --transition: 0.3s ease;
}

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

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

/* ======= FONTS ======= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&family=Roboto+Mono:wght@400;500&display=swap');

/* ======= SCROLLBAR ======= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }

/* ======= SELECTION ======= */
::selection { background: var(--accent); color: var(--black); }

/* ======= LINKS ======= */
a { color: inherit; text-decoration: none; }

/* ======= IMAGES ======= */
img { max-width: 100%; height: auto; display: block; }

/* ======= UTILITY ======= */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 90px 0; }
.section--dark { background: var(--dark2); }
.section--surface { background: var(--surface); }

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--white70);
  font-size: 16px;
  max-width: 560px;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}
.btn-primary:hover { background: #33d4ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,255,0.3); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-glow); transform: translateY(-2px); }

/* ======= NAVBAR ======= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10,10,12,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10,10,12,0.97);
  box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--white70);
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-lang {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-lang a {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--white50);
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: var(--transition);
}
.nav-lang a:hover,
.nav-lang a.active {
  color: var(--accent);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ======= FOOTER ======= */
footer {
  background: #080810;
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img { height: 44px; margin-bottom: 16px; }

.footer-brand p {
  color: var(--white50);
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-emails a {
  display: block;
  color: var(--accent);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-bottom: 4px;
  transition: var(--transition);
}
.footer-emails a:hover { color: #fff; }

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white50);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--white70);
  font-size: 14px;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { color: var(--white50); font-size: 13px; }

/* ======= GRID CARDS ======= */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,200,255,0.1);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body { padding: 20px; }

.card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-text { color: var(--white70); font-size: 14px; line-height: 1.6; }

/* ======= PAGE HERO ======= */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, #0a0a0c 0%, #0f0f18 50%, #0a0a10 100%);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,200,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-hero p {
  color: var(--white70);
  font-size: 18px;
  max-width: 600px;
  line-height: 1.7;
}

/* ======= DIVIDER ======= */
.divider {
  width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin-bottom: 24px;
  border-radius: 2px;
}

/* ======= GLOW LINE ======= */
.glow-line {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
  margin: 0;
}

/* ======= ANIMATIONS ======= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,200,255,0); }
  50%       { box-shadow: 0 0 20px 4px rgba(0,200,255,0.2); }
}

.animate-up { animation: fadeInUp 0.7s ease both; }
.animate-up-delay1 { animation: fadeInUp 0.7s 0.1s ease both; }
.animate-up-delay2 { animation: fadeInUp 0.7s 0.2s ease both; }
.animate-up-delay3 { animation: fadeInUp 0.7s 0.3s ease both; }
.animate-up-delay4 { animation: fadeInUp 0.7s 0.4s ease both; }

/* ======= RESPONSIVE ======= */
@media (max-width: 920px) {
  .nav-links, .nav-lang { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,10,12,0.98);
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--border);
  }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 60px 0; }
}

@media (min-width: 921px) and (max-width: 1100px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
