/* ===== CORPORATE IT - NovaTech Solutions ===== */
/* Modern tech palette: deep blue, purple, cyan, white */

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

:root {
  --primary: #1a1a3e;
  --primary-dark: #0d0d24;
  --accent: #6c63ff;
  --accent2: #00d4ff;
  --bg: #f8f9fc;
  --bg-alt: #eef0f7;
  --text: #2d2d44;
  --text-muted: #7a7a9a;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(108, 99, 255, 0.08);
  --shadow-lg: 0 8px 40px rgba(108, 99, 255, 0.15);
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 26, 62, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(108, 99, 255, 0.15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  color: var(--white);
}

.logo span {
  color: var(--accent);
}

.nav ul {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav a:hover {
  color: var(--accent2);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #2a1a6e 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(108, 99, 255, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.05;
  margin-bottom: 18px;
  color: var(--white);
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
  max-width: 540px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--accent);
  color: var(--white);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 12px;
}

.btn:hover {
  background: #5a52e0;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(108, 99, 255, 0.35);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--accent2);
  background: rgba(0, 212, 255, 0.1);
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.8rem;
  margin-right: 0;
}

/* Stats */
.stats {
  background: var(--white);
  padding: 50px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

/* Sections */
.section {
  padding: 90px 0;
}

.section-title {
  text-align: center;
  font-size: 2.3rem;
  margin-bottom: 12px;
  color: var(--primary);
}

.section-title-left {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.05rem;
}

/* About */
.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1.05rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.about-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}

.about-feature svg {
  color: var(--accent);
  flex-shrink: 0;
}

.about-img {
  height: 420px;
  border-radius: var(--radius);
}

/* Services */
.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(108, 99, 255, 0.06);
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(108, 99, 255, 0.15);
}

.service-icon {
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Portfolio */
.portfolio {
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img {
  height: 180px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.portfolio-img h3 {
  color: var(--white);
  font-size: 1.1rem;
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.portfolio-tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Team */
.team {
  background: var(--bg);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
}

.team-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.team-title {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.team-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Testimonials */
.testimonials {
  background: var(--primary);
}

.testimonials .section-title {
  color: var(--white);
}

.testimonials .section-subtitle {
  color: rgba(255,255,255,0.5);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(108, 99, 255, 0.2);
  border-radius: var(--radius);
  padding: 30px;
}

.testimonial-content p {
  font-style: italic;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.testimonial-author strong {
  display: block;
  color: var(--accent2);
  font-size: 0.9rem;
}

.testimonial-author span {
  color: rgba(255,255,255,0.5);
  font-size: 0.8rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
  align-items: start;
}

.contact-info p {
  margin-bottom: 14px;
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  border: 2px solid var(--bg-alt);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
}

/* Footer */
.footer {
  background: var(--primary-dark);
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--accent2);
}

.footer p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
}

.footer ul {
  list-style: none;
}

.footer li {
  margin-bottom: 10px;
}

.footer li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.footer li a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: var(--primary);
    border-bottom: 1px solid rgba(108, 99, 255, 0.15);
  }

  .nav.open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
  }

  .menu-toggle {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .stats-grid { grid-template-columns: 1fr; }

  .about-img {
    height: 280px;
  }

  .portfolio-img {
    height: 150px;
  }

  .btn {
    display: block;
    margin: 0 auto 12px;
    text-align: center;
  }
}
