/* ========= GLOBAL ========= */
:root {
  --primary: #00b4ff;
  --secondary: #0077ff;
  --bg-dark: #0a0f1c;
  --bg-light: #10182f;
  --text-light: #e4e8ff;
  --text-muted: #9aa4d0;
  --glow: 0 0 15px rgba(0, 180, 255, 0.6);
  --gradient: linear-gradient(135deg, #0077ff, #00b4ff);
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========= HEADER ========= */
.header {
  background: rgba(16, 24, 47, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 8%;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}

.logo span {
  color: white;
}

.nav a {
  color: var(--text-muted);
  margin: 0 1rem;
  text-decoration: none;
  transition: 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
  text-shadow: var(--glow);
}

/* ========= HERO ========= */
.hero {
  background: radial-gradient(circle at top left, #0077ff33, #0a0f1c);
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, #00b4ff10 10%, transparent 80%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
  text-shadow: var(--glow);
}

.hero-subtitle {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.btn {
  background: var(--gradient);
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: var(--glow);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.8);
}

/* ========= SECTIONS ========= */
.section {
  padding: 5rem 8%;
}

.section h3, .section h2 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffffff;
}

.section p {
  color: var(--text-muted);
}

/* ========= GRID ========= */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0,180,255,0.3);
}

/* ========= CHARTS ========= */
.chart-box {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
}

.chart-box canvas {
  max-width: 100%;
  height: 280px;
}

.chart-box p {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

/* ========= PORTFOLIO ========= */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-card {
  background: var(--bg-light);
  border-radius: 12px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
}

.portfolio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(0,180,255,0.4);
}

.portfolio-card img {
  width: 100%;
  height: auto;
}

.portfolio-card h4 {
  color: var(--primary);
  margin: 1rem;
}

.portfolio-card p {
  color: var(--text-muted);
  margin: 0 1rem 1.5rem;
}

/* ========= CONTACT ========= */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  background: var(--bg-light);
  border: 1px solid #1b2b4a;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: white;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: var(--glow);
}

.contact-info li {
  list-style: none;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

/* ========= FOOTER ========= */
.footer {
  text-align: center;
  padding: 2rem;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .nav a { margin: 0 0.6rem; }
}
