/* Softcracy - Modern Animated Theme — Blue + Orange brand */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1626;
  --surface: #141d33;
  --surface-2: #1a2440;
  --border: rgba(255,255,255,0.08);
  --text: #f5f7fa;
  --text-dim: #a8b3c7;
  --text-muted: #6b7a96;
  --primary: #198fd9;       /* Softcracy blue */
  --primary-2: #2da6f0;
  --primary-dark: #1370b0;
  --accent: #f18e16;        /* Softcracy orange */
  --accent-2: #f5a23a;
  --pink: #ec4899;
  --green: #10b981;
  --yellow: #f59e0b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --glow: 0 0 40px rgba(25,143,217,0.4);
  --maxw: 1200px;
  --header-h: 72px;
}

/* Light theme */
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --border: rgba(15,30,60,0.1);
  --text: #0f1626;
  --text-dim: #475569;
  --text-muted: #94a3b8;
  --shadow: 0 10px 40px rgba(15,30,60,0.12);
  --glow: 0 0 40px rgba(25,143,217,0.25);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 110px 0; }
h1,h2,h3,h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.gradient-text {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-tag {
  display: inline-block; padding: 6px 14px; border-radius: 100px;
  background: rgba(25,143,217,0.12); border: 1px solid rgba(25,143,217,0.3);
  color: var(--primary); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}
:root[data-theme="light"] .section-tag { color: var(--primary-dark); }
.section-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); font-size: 17px; max-width: 640px; margin: 0 auto 56px; text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: all .25s ease; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: white; box-shadow: 0 8px 30px rgba(241,142,22,0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(241,142,22,0.55); }
.btn-blue {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: white; box-shadow: 0 8px 30px rgba(25,143,217,0.4);
}
.btn-blue:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(25,143,217,0.55); }
.btn-ghost {
  border: 1px solid var(--border); background: rgba(255,255,255,0.03);
  color: var(--text);
}
:root[data-theme="light"] .btn-ghost { background: rgba(15,30,60,0.03); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); transform: translateY(-2px); }
:root[data-theme="light"] .btn-ghost:hover { background: rgba(15,30,60,0.06); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: rgba(25,143,217,0.15); }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-danger { background: #ef4444; color: white; }
.btn-danger:hover { background: #dc2626; }

/* Header */
header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  z-index: 100; display: flex; align-items: center;
  transition: all .3s ease; backdrop-filter: blur(0);
}
header.scrolled {
  background: rgba(10,14,26,0.78); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] header.scrolled { background: rgba(255,255,255,0.82); }
/* On mobile the header always has a theme-matching background so the top bar
   matches the active dark/light theme instead of floating transparent. */
@media (max-width: 820px) {
  header {
    background: rgba(10,14,26,0.85); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
  }
  :root[data-theme="light"] header {
    background: rgba(255,255,255,0.9); backdrop-filter: blur(14px);
  }
}
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.logo img { height: 34px; width: auto; display: block; transition: opacity .2s; }
.logo:hover img { opacity: 0.85; }
.admin-sidebar .logo img { height: 30px; }
.login-box .logo img { height: 34px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-dim); font-size: 15px; font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none; font-size: 24px;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); align-items: center; justify-content: center;
  line-height: 1; flex-shrink: 0; z-index: 101;
}
.menu-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* Verify Certificate nav button */
.verify-cert-btn {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 100px;
  background: rgba(25,143,217,0.1); border: 1px solid rgba(25,143,217,0.25);
  color: var(--primary); font-size: 13px; font-weight: 600; transition: all .25s;
}
.verify-cert-btn:hover { background: rgba(25,143,217,0.18); border-color: var(--primary); color: var(--primary); }
.verify-cert-btn svg { color: var(--green); }
@media (max-width: 820px) { .verify-cert-btn { display: none; } }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all .25s; color: var(--text);
}
.theme-toggle:hover { border-color: var(--primary); transform: rotate(15deg); }

/* Hero */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: var(--header-h);
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(25,143,217,0.22), transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 30%, rgba(241,142,22,0.16), transparent 60%),
              radial-gradient(ellipse 50% 50% at 50% 90%, rgba(25,143,217,0.12), transparent 60%);
  overflow: hidden;
}

/* Internship top banner */
.internship-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  padding: 12px 22px; border-radius: 100px; margin-bottom: 32px;
  background: linear-gradient(120deg, rgba(241,142,22,0.12), rgba(25,143,217,0.12));
  border: 1px solid rgba(241,142,22,0.28);
  font-size: 14px; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto;
}
.internship-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%{box-shadow:0 0 0 0 rgba(52,211,153,0.6)} 70%{box-shadow:0 0 0 10px rgba(52,211,153,0)} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0)} }
.internship-text { color: var(--text); font-weight: 500; }
.internship-cta {
  color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 14px; border-radius: 100px; background: rgba(241,142,22,0.15); transition: all .2s;
}
.internship-cta:hover { background: var(--accent); color: white; }
.internship-cta .arr { transition: transform .2s; }
.internship-cta:hover .arr { transform: translateX(3px); }
:root[data-theme="light"] .hero {
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(25,143,217,0.12), transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 30%, rgba(241,142,22,0.10), transparent 60%),
              radial-gradient(ellipse 50% 50% at 50% 90%, rgba(25,143,217,0.06), transparent 60%);
}
.bg-glow {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(25,143,217,0.15), transparent 70%);
  filter: blur(80px); pointer-events: none; z-index: 0;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; position: relative; z-index: 1; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px;
  border-radius: 100px; background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3); color: var(--green);
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.hero h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 22px; font-weight: 800; letter-spacing: -0.03em; }
.hero h1 .line { display: block; }
.hero p { color: var(--text-dim); font-size: 17px; max-width: 540px; margin-bottom: 32px; line-height: 1.7; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
.hero-trust { display: flex; flex-direction: column; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.trust-item .check { color: var(--accent); font-weight: 700; }

/* Terminal */
.hero-visual { position: relative; }
.terminal {
  background: #060a14; border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  box-shadow: var(--shadow), 0 0 60px rgba(25,143,217,0.2); overflow: hidden;
  font-family: 'JetBrains Mono', 'SF Mono', Monaco, Consolas, monospace;
}
:root[data-theme="light"] .terminal { background: #0d1424; }
.terminal-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 12px; height: 12px; border-radius: 50; }
.term-dots span:nth-child(1) { background: #ff5f56; border-radius: 50%; }
.term-dots span:nth-child(2) { background: #ffbd2e; border-radius: 50%; }
.term-dots span:nth-child(3) { background: #27c93f; border-radius: 50%; }
.term-title { font-size: 12px; color: var(--text-muted); margin-left: 8px; }
.terminal-body { padding: 18px; font-size: 13px; line-height: 1.9; color: #e0e6f0; }
.t-line { display: flex; gap: 8px; }
.t-prompt { color: var(--accent); font-weight: 700; }
.t-cmd { color: #e0e6f0; }
.t-out { padding-left: 20px; font-size: 12.5px; }
.t-dim { color: #6b7a96; }
.t-ok { color: #34d399; }
.t-accent { color: var(--primary-2); }
.t-cursor { color: var(--primary-2); animation: blink 1s infinite; }
.t-bar { display: inline-block; width: 80px; height: 8px; background: rgba(25,143,217,0.2); border-radius: 4px; vertical-align: middle; overflow: hidden; margin-left: 6px; }
.t-bar span { display: block; height: 100%; background: var(--primary); animation: loadbar 1.5s ease forwards; }
@keyframes loadbar { from { width: 0; } to { width: 100%; } }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* Hero stats */
.hero-stats {
  display: flex; align-items: center; gap: 0; margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border); position: relative; z-index: 1;
}
.hero-stat { flex: 1; text-align: center; }
.hero-stat .num { font-size: 34px; font-weight: 800; color: var(--text); line-height: 1; margin-bottom: 6px; }
.hero-stat .num span { color: var(--accent); }
.hero-stat .label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 500; }
.hero-divider { width: 1px; height: 40px; background: var(--border); }

/* Tech strip */
.tech-strip { padding: 60px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tech-strip-head { margin-bottom: 36px; }
.micro-label { color: var(--accent); font-family: 'JetBrains Mono', monospace; font-size: 13px; display: block; margin-bottom: 8px; }
.tech-strip-head h3, .tech-strip-title { font-size: 18px; color: var(--text-dim); font-weight: 500; }
.tech-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.tech-item {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  font-size: 13px; color: var(--text-dim); font-weight: 500; transition: all .2s; cursor: default;
}
.tech-item:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); }
.tech-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* Section head */
.sec-head { text-align: center; margin-bottom: 60px; }
.sec-head .section-tag { font-family: 'JetBrains Mono', monospace; font-size: 13px; padding: 4px 12px; }

/* Alt section */
.alt-section { background: var(--bg-2); }

/* Service card updated */
.service-card { position: relative; }
.service-num {
  position: absolute; top: 24px; right: 28px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px; font-weight: 600;
  color: var(--text-muted); opacity: 0.5;
}

/* Process timeline */
.process-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { display: flex; flex-direction: column; gap: 20px; position: relative; }
.process-step::before {
  content: ''; position: absolute; top: 24px; left: calc(100% - 12px); width: calc(100% - 36px); height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent); opacity: 0.3;
}
.process-step:last-child::before { display: none; }
.step-marker {
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700; color: white;
  box-shadow: 0 8px 24px rgba(25,143,217,0.3);
}
.step-content h3 { font-size: 18px; margin-bottom: 8px; }
.step-content p { color: var(--text-dim); font-size: 14px; line-height: 1.7; }

/* Contact channels */
.contact-channel {
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.contact-channel:last-of-type { border-bottom: none; }
.ch-label { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--text-muted); text-transform: lowercase; margin-bottom: 4px; }
.ch-value { font-size: 16px; color: var(--text); font-weight: 500; }
.ch-value a { color: var(--primary); }
.contact-socials { display: flex; gap: 12px; margin-top: 24px; }
.contact-socials a {
  width: 42px; height: 42px; border-radius: 12px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); transition: all .2s;
}
.contact-socials a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* Footer status */
.footer-status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

/* Form labels lowercase engineering style */
.form-group label { text-transform: lowercase; font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* Responsive additions */
@media (max-width: 980px) {
  .tech-grid { grid-template-columns: repeat(4, 1fr); }
  .process-timeline { grid-template-columns: repeat(2, 1fr); }
  .process-step::before { display: none; }
}
@media (max-width: 680px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-timeline { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-divider { display: none; }
  .hero-stat { flex: 1 1 40%; }
}
.hero-visual { position: relative; }
.hero-card {
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 26px; backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  position: relative; z-index: 2;
}
:root[data-theme="light"] .hero-card { background: rgba(255,255,255,0.9); }
.hero-card h4 { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.code-block {
  background: #06060a; border-radius: 12px; padding: 20px;
  font-family: 'SF Mono', Monaco, Consolas, monospace; font-size: 13px;
  color: #d4d4e0; overflow: hidden; line-height: 1.8;
}
.code-block .k { color: #f5a23a; }
.code-block .s { color: #34d399; }
.code-block .c { color: #6b6b85; }
.code-block .f { color: #2da6f0; }
.floating-badge {
  position: absolute; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow); z-index: 3;
}
.floating-badge .ic { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.floating-badge .txt { font-size: 12px; }
.floating-badge .txt strong { font-size: 14px; display: block; }
.fb-1 { top: -20px; left: -20px; animation: floatY 6s ease-in-out infinite; }
.fb-2 { bottom: -20px; right: -10px; animation: floatY 6s ease-in-out infinite 3s; }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
  pointer-events: none;
}
:root[data-theme="light"] .bg-grid {
  background-image: linear-gradient(rgba(15,30,60,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,30,60,0.04) 1px, transparent 1px);
}

/* Marquee */
.marquee { padding: 30px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.marquee-track { display: flex; gap: 60px; animation: scrollX 30s linear infinite; }
.marquee-track span { color: var(--text-muted); font-weight: 700; font-size: 20px; white-space: nowrap; opacity: 0.5; }
@keyframes scrollX { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: all .3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at top left, rgba(25,143,217,0.12), transparent 60%);
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(25,143,217,0.4); box-shadow: 0 14px 40px rgba(25,143,217,0.18); }
.service-card:hover::before { opacity: 1; }
.service-ic {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px; position: relative; z-index: 1;
}
.ic-web { background: rgba(25,143,217,0.15); color: var(--primary-2); }
.ic-app { background: rgba(16,185,129,0.15); color: #34d399; }
.ic-ai { background: rgba(241,142,22,0.15); color: var(--accent-2); }
.ic-design { background: rgba(236,72,153,0.15); color: #f472b6; }
.ic-cloud { background: rgba(6,182,212,0.15); color: #22d3ee; }
.ic-consulting { background: rgba(245,158,11,0.15); color: #fbbf24; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; position: relative; z-index: 1; }
.service-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 18px; position: relative; z-index: 1; }
.service-features { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.service-features span {
  font-size: 12px; padding: 4px 10px; border-radius: 100px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-dim);
}
:root[data-theme="light"] .service-features span { background: rgba(15,30,60,0.04); }

/* Products */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; transition: all .3s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(241,142,22,0.4); box-shadow: 0 14px 40px rgba(241,142,22,0.18); }
.product-thumb {
  height: 140px; border-radius: 16px; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(25,143,217,0.3), rgba(241,142,22,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 44px; font-weight: 800; color: rgba(255,255,255,0.7);
  letter-spacing: -0.04em; position: relative; overflow: hidden;
}
.product-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.2), transparent 50%);
}
.by-softcracy {
  position: absolute; bottom: 10px; right: 12px; z-index: 2;
  font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.85);
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(0,0,0,0.35); padding: 4px 10px; border-radius: 100px;
  backdrop-filter: blur(6px);
}
.product-parent {
  display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border);
}
.parent-mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: 13px;
}
.product-parent > span:last-child {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
}
.product-parent .dot-sep { color: var(--accent); margin: 0 4px; }
.product-cat { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px; }
.product-card h3 { font-size: 22px; margin-bottom: 6px; }
.product-tagline { color: var(--accent); font-size: 14px; margin-bottom: 12px; font-weight: 500; }
.product-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; flex-grow: 1; }
.product-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border); }
.badge { font-size: 11px; padding: 4px 10px; border-radius: 100px; font-weight: 600; }
.badge-live { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-beta { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-archived { background: rgba(107,107,133,0.15); color: var(--text-muted); }
.tech-stack { font-size: 12px; color: var(--text-muted); }

/* Stats band */
.stats-band {
  background: linear-gradient(120deg, rgba(25,143,217,0.1), rgba(241,142,22,0.08));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
:root[data-theme="light"] .stats-band { background: linear-gradient(120deg, rgba(25,143,217,0.06), rgba(241,142,22,0.05)); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding: 60px 0; }
.stat-item { text-align: center; }
.stat-item .num { font-size: 44px; font-weight: 800; margin-bottom: 6px; }
.stat-item .lbl { color: var(--text-dim); font-size: 14px; }

/* Process */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step { position: relative; padding: 30px; }
.process-step .step-num {
  font-size: 56px; font-weight: 800; color: transparent;
  -webkit-text-stroke: 1.5px rgba(25,143,217,0.4); margin-bottom: 14px;
}
.process-step h3 { font-size: 18px; margin-bottom: 10px; }
.process-step p { color: var(--text-dim); font-size: 14px; }

/* Careers */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: all .25s; flex-wrap: wrap;
}
.job-card:hover { border-color: rgba(25,143,217,0.4); transform: translateX(4px); background: var(--surface-2); }
.job-info { flex: 1; min-width: 250px; }
.job-title { font-size: 20px; margin-bottom: 6px; }
.job-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; margin-bottom: 10px; }
.job-meta span { display: inline-flex; align-items: center; gap: 5px; }
.job-skills { display: flex; gap: 6px; flex-wrap: wrap; }
.job-skills span { font-size: 11px; padding: 3px 10px; border-radius: 100px; background: rgba(25,143,217,0.1); color: var(--primary); border: 1px solid rgba(25,143,217,0.2); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
}
.modal-header { padding: 24px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-header h3 { font-size: 20px; }
.modal-close { font-size: 24px; color: var(--text-muted); cursor: pointer; }
.modal-body { padding: 28px; }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; font-weight: 500; }
.form-group label .req { color: var(--accent); }
.form-control {
  width: 100%; padding: 12px 14px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px; color: var(--text);
  font-size: 14px; transition: all .2s; outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(25,143,217,0.2); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.form-help { font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.form-error { color: #f87171; font-size: 13px; margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-success {
  background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3);
  color: #34d399; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; display: none;
}
.form-success.show { display: block; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  background: rgba(25,143,217,0.12); color: var(--primary);
}
.contact-item .lbl { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.contact-item .val { font-size: 15px; color: var(--text); }
.contact-form-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
}

/* Footer */
footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-col h5, .footer-col h3 { font-size: 14px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); font-weight: 700; }
.footer-col a { color: var(--text-dim); font-size: 14px; display: block; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--primary); }
.footer-social { display: flex; gap: 12px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all .2s; }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; color: var(--text-dim); font-size: 13px; flex-wrap: wrap; gap: 10px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Toast */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 300;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  transform: translateX(120%); transition: transform .4s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }
.toast .ic { font-size: 18px; }

/* Admin */
.admin-body { background: var(--bg-2); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--surface); border-right: 1px solid var(--border);
  padding: 24px 0; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  display: flex; flex-direction: column;
}
.admin-sidebar .logo { padding: 0 24px; margin-bottom: 36px; font-size: 20px; }
.admin-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 14px; }
.admin-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px;
  color: var(--text-dim); font-size: 14px; font-weight: 500; transition: all .2s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.04); color: var(--text); }
:root[data-theme="light"] .admin-nav a:hover { background: rgba(15,30,60,0.05); }
.admin-nav a.active { background: rgba(25,143,217,0.15); color: var(--primary); }
.admin-nav a .ic { font-size: 18px; width: 20px; text-align: center; }
.admin-main { flex: 1; margin-left: 240px; padding: 30px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.admin-topbar h1 { font-size: 24px; }
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: white;
}

/* Admin cards */
.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
.admin-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; align-items: center; gap: 16px;
}
.admin-card .ic {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.admin-card .num { font-size: 24px; font-weight: 700; }
.admin-card .lbl { font-size: 13px; color: var(--text-muted); }
.ic-purple { background: rgba(25,143,217,0.15); color: var(--primary-2); }
.ic-cyan { background: rgba(6,182,212,0.15); color: #22d3ee; }
.ic-green { background: rgba(16,185,129,0.15); color: #34d399; }
.ic-pink { background: rgba(236,72,153,0.15); color: #f472b6; }
.ic-yellow { background: rgba(245,158,11,0.15); color: #fbbf24; }
.ic-orange { background: rgba(241,142,22,0.15); color: var(--accent-2); }
.ic-red { background: rgba(239,68,68,0.15); color: #f87171; }

/* Admin table */
.admin-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-panel-header {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
}
.admin-panel-header h2 { font-size: 18px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  text-align: left; padding: 14px 24px; font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.admin-table td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }
:root[data-theme="light"] .admin-table tr:hover td { background: rgba(15,30,60,0.02); }
.row-actions { display: flex; gap: 6px; }
.row-actions a, .row-actions button {
  width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); transition: all .2s;
}
:root[data-theme="light"] .row-actions a, :root[data-theme="light"] .row-actions button { background: rgba(15,30,60,0.04); }
.row-actions a:hover, .row-actions button:hover { background: rgba(25,143,217,0.2); }
.action-edit:hover { background: rgba(6,182,212,0.2) !important; }
.action-view:hover { background: rgba(16,185,129,0.2) !important; }
.action-delete:hover { background: rgba(239,68,68,0.2) !important; }

/* Status badges */
.status { font-size: 11px; padding: 4px 10px; border-radius: 100px; font-weight: 600; }
.status-active, .status-new { background: rgba(16,185,129,0.15); color: #34d399; }
.status-closed, .status-read { background: rgba(107,107,133,0.15); color: var(--text-muted); }
.status-paused { background: rgba(245,158,11,0.15); color: #fbbf24; }
.status-reviewed, .status-shortlisted { background: rgba(6,182,212,0.15); color: #22d3ee; }
.status-rejected { background: rgba(239,68,68,0.15); color: #f87171; }

/* Login */
.login-body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at top, rgba(25,143,217,0.18), transparent 60%),
              radial-gradient(ellipse at bottom, rgba(241,142,22,0.12), transparent 60%), var(--bg);
  padding: 20px;
}
.login-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow);
}
.login-box .logo { justify-content: center; margin-bottom: 28px; }
.login-box h2 { text-align: center; margin-bottom: 8px; }
.login-box .sub { text-align: center; color: var(--text-dim); margin-bottom: 28px; font-size: 14px; }
.login-error { color: #f87171; font-size: 14px; margin-bottom: 16px; text-align: center; display: none; }
.login-error.show { display: block; }
.login-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--text-muted); }
.login-footer a { color: var(--primary); }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; }
.filters select, .filters input {
  padding: 9px 14px; background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-size: 13px; outline: none;
}
.filters select:focus, .filters input:focus { border-color: var(--primary); }

/* Empty state */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .ic { font-size: 48px; margin-bottom: 14px; opacity: 0.4; }

/* Admin theme toggle in sidebar */
.admin-theme-toggle {
  margin: 14px 14px 0; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--border); cursor: pointer; color: var(--text-dim);
  font-size: 14px; transition: all .2s;
}
.admin-theme-toggle:hover { border-color: var(--primary); color: var(--text); }

/* Responsive */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .services-grid, .products-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-cta .btn-sm { display: none; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--surface); padding: 16px;
    border-bottom: 1px solid var(--border); gap: 10px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 10px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links li:last-child a { border-bottom: none; }
  .menu-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta { gap: 8px; }
  .logo img { height: 30px; }
  .theme-toggle { width: 36px; height: 36px; font-size: 16px; }
  .menu-toggle { font-size: 22px; width: 36px; height: 36px; }
  .container { padding: 0 16px; }
  section { padding: 60px 0; }
  .services-grid, .products-grid, .process-grid, .stats-grid, .footer-grid, .admin-cards { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; padding: 20px; }
  .admin-topbar h1 { font-size: 20px; }
  .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .contact-form-box { padding: 22px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .hero h1 { font-size: 30px; }
  .hero p { font-size: 15px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 15px; margin-bottom: 32px; }
  .hero-stats { gap: 16px; }
  .hero-stat .num { font-size: 26px; }
  .hero-stat .label { font-size: 10px; }
  .stat-item .num { font-size: 34px; }
  .btn { padding: 11px 20px; font-size: 14px; }
  .internship-banner { font-size: 12px; padding: 10px 14px; gap: 8px; }
  .internship-text { font-size: 12px; }
  .internship-cta { padding: 4px 10px; font-size: 12px; }
  .toast { right: 16px; left: 16px; bottom: 16px; }
}