/* ============================================
   KRD IT Company - Global Design System
   Premium Dark Theme with Blue/Cyan Accents
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');


.nav{
    position: fixed;
    top:0;
    width:100%;
    z-index:1000;

    background:#0b0f1a;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

body{
    padding-top:80px;
}


* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --bg-primary: #080d1a;
  --bg-secondary: #0d1526;
  --bg-card: #111827;
  --bg-card-hover: #161f35;

  --accent-blue: #2563eb;
  --accent-blue-light: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-cyan-light: #22d3ee;
  --accent-purple: #7c3aed;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(37, 99, 235, 0.4);

  --gradient-hero: linear-gradient(135deg, #080d1a 0%, #0d1a3a 50%, #080d1a 100%);
  --gradient-card: linear-gradient(135deg, #111827, #1a2540);
  --gradient-blue: linear-gradient(135deg, #2563eb, #06b6d4);
  --gradient-text: linear-gradient(90deg, #3b82f6, #06b6d4, #7c3aed);

  --glow-blue: 0 0 40px rgba(37, 99, 235, 0.3);
  --glow-cyan: 0 0 40px rgba(6, 182, 212, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; }

/* ======== TYPOGRAPHY ======== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: var(--accent-cyan-light);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

/* ======== LAYOUT ======== */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* ======== BUTTONS ======== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gradient-blue);
  color: #fff;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.55);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  padding: 13px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

/* ======== CARDS ======== */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.5), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--glow-blue);
}

.card:hover::before {
  opacity: 1;
}

/* ======== GRID ======== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* ======== UTILS & ANIMATIONS ======== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* ======== NAVBAR ======== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
    background: rgba(8, 13, 26, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-link {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 100px;
    transition: all 0.25s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.nav-link:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #3b82f6;
    background: rgba(37, 99, 235, 0.1);
}

.nav .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    text-decoration: none;
}

.nav .logo-sub {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* Mobile Nav */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger .bar {
    display: block;
    width: 24px;
    height: 2px;
    background: #f1f5f9;
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 900px) {
    .hamburger { display: flex; }
    .nav-links {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        flex-direction: column;
        background: rgba(8, 13, 26, 0.98);
        backdrop-filter: blur(20px);
        padding: 100px 24px 40px;
        align-items: stretch;
    }
    .nav-links.open { display: flex; }
    .nav-link { justify-content: center; }
}

/* ======== HERO ======== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
    padding-top: 100px;
}

.hero-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(37, 99, 235, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 0.8s ease forwards;
}

.hero .headline {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #f1f5f9;
}

.hero .sub {
    max-width: 600px;
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.hero .actions {
    display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px;
}

.tech-stack {
    display: flex; flex-wrap: wrap; gap: 10px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s;
}

.tech-item:hover {
    color: #94a3b8;
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

/* ======== SERVICES ======== */
.service-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s;
    font-size: 1.6rem;
}

.card:hover .service-icon-wrap {
    background: rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.4);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.125rem; font-weight: 700; margin-bottom: 12px;
}

.service-desc {
    color: #64748b; font-size: 0.9rem; line-height: 1.7; margin-bottom: 20px;
}

/* ======== FOOTER ======== */
.footer {
    background: #060b17;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 72px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 64px;
}

@media (max-width: 1024px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .footer-inner { grid-template-columns: 1fr; gap: 36px; } }

.footer-bottom {
    display: flex; align-items: center; justify-content: space-between;
    padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569; font-size: 0.85rem;
}
