* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0b0f1a;
  color: #e5e7eb;
  line-height: 1.7;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.narrow {
  max-width: 700px;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 26, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f2937;
  z-index: 10;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #38bdf8;
}

.logo span {
  color: #ffffff;
}

nav a {
  margin-left: 24px;
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

.hero {
  padding: 110px 0;
}

.hero-text h1 {
  font-size: 42px;
  margin-bottom: 10px;
}

.hero-text h2 {
  font-size: 26px;
  font-weight: 400;
  color: #9ca3af;
}

.hero-text h2 span {
  color: #38bdf8;
}

.hero-text p {
  margin-top: 20px;
  max-width: 520px;
  color: #9ca3af;
}

.cta {
  margin-top: 30px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.quick-links {
  margin-top: 18px;
}

.quick-links a {
  margin-right: 20px;
  color: #38bdf8;
  text-decoration: none;
  font-size: 14px;
}

.section {
  padding: 90px 0;
}

.section h3 {
  font-size: 28px;
  margin-bottom: 20px;
}

.light {
  background: #111827;
}

.security-list {
  list-style: none;
  margin-top: 15px;
}

.security-list li {
  padding: 12px 0;
  border-bottom: 1px solid #1f2937;
  color: #d1d5db;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.skill {
  background: #020617;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

/* ===== Portfolio Cards ===== */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  background: #020617;
  border-radius: 18px;
  padding: 22px;
  text-align: center;
  border: 1px solid #1f2937;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.portfolio-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}

.portfolio-card h4 {
  font-size: 20px;
  margin-bottom: 10px;
}

.portfolio-card p {
  font-size: 15px;
  color: #9ca3af;
  margin-bottom: 18px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-box a {
  color: #38bdf8;
  text-decoration: none;
}

.footer {
  text-align: center;
  padding: 30px;
  border-top: 1px solid #1f2937;
  font-size: 14px;
  color: #9ca3af;
}

/* ===== Buttons ===== */

.btn {
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
}

.primary {
  background: #38bdf8;
  color: #020617;
}

.secondary {
  background: #1f2937;
  color: #ffffff;
}

.outline {
  border: 1px solid #38bdf8;
  color: #38bdf8;
}

.small {
  padding: 8px 14px;
}

/* ===== Animations ===== */

.animate-fade,
.animate-slide {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 34px;
  }

  .hero-text h2 {
    font-size: 22px;
  }
}

/* ===== Featured Project ===== */
.featured-project {
  background: #020617;
  padding: 28px;
  border-radius: 18px;
  border: 1px solid #1f2937;
}

/* ===== Incident Card ===== */
.incident-card {
  background: #020617;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid #1f2937;
}

.incident-card ul {
  margin: 15px 0;
  padding-left: 18px;
}

.incident-card li {
  margin-bottom: 8px;
  color: #d1d5db;
}

.incident-card .tools {
  margin-top: 10px;
  font-size: 14px;
  color: #38bdf8;
}

/* ===== Timeline ===== */
.timeline {
  border-left: 2px solid #1f2937;
  padding-left: 20px;
}

.timeline-item {
  margin-bottom: 20px;
}

.timeline-item span {
  display: inline-block;
  font-weight: 600;
  color: #38bdf8;
  margin-bottom: 6px;
}

/* ===== Learning List ===== */
.learning-list {
  list-style: none;
}

.learning-list li {
  padding: 10px 0;
  border-bottom: 1px solid #1f2937;
  color: #d1d5db;
}

/* ===== Hero with Image ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-visual img {
  max-width: 100%;
  border-radius: 18px;
  opacity: 0.95;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

/* Mobile optimization */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }
}
