* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #07111f, #0c1b2f, #111827);
  color: #f4f7fb;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

.hero {
  min-height: 100vh;
  padding: 20px 7%;
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(102, 126, 234, 0.18), transparent 30%),
    radial-gradient(circle at left center, rgba(56, 189, 248, 0.12), transparent 30%);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 30px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: #a5d8ff;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: #dbeafe;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #7dd3fc;
}

.hero-content {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.tag {
  color: #7dd3fc;
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-text h1 span {
  color: #93c5fd;
}

.hero-text p {
  font-size: 18px;
  color: #d1d5db;
  max-width: 650px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 28px;
}

.btn {
  padding: 14px 22px;
  border-radius: 12px;
  transition: 0.3s ease;
  font-weight: 700;
}

.primary {
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
}

.secondary {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
}

.btn:hover {
  transform: translateY(-3px);
}

.hero-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  transform-style: preserve-3d;
}

.hero-card img {
  width: 100%;
  border-radius: 22px;
  display: block;
}

.section {
  padding: 90px 7%;
}

.section-header {
  margin-bottom: 40px;
}

.mini-title {
  color: #7dd3fc;
  font-weight: 700;
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: 42px;
}

.story-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.glass,
.project-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.18);
}

.story-card h3,
.project-content h3 {
  margin-bottom: 14px;
  color: #dbeafe;
}

.story-card p,
.project-content p,
.contact-box p {
  color: #d1d5db;
  line-height: 1.7;
}

.timeline {
  position: relative;
  margin-top: 20px;
  padding-left: 30px;
  border-left: 2px solid rgba(125, 211, 252, 0.4);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: -40px;
  top: 20px;
  width: 16px;
  height: 16px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.7);
}

.timeline-content h3 {
  margin-bottom: 10px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.project-image-wrap {
  height: 220px;
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
}

.project-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.project-links a {
  background: rgba(59,130,246,0.16);
  color: #bfdbfe;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(147,197,253,0.25);
}

.tech {
  margin-top: 10px;
}

.contact-box {
  max-width: 700px;
}

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.floating {
  animation: floating 4s ease-in-out infinite;
}

@keyframes floating {
  0%,100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.empty-msg {
  color: #cbd5e1;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .hero-content,
  .story-grid,
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-text h1 {
    font-size: 46px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero-content,
  .story-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .hero {
    padding: 20px 5%;
  }

  .section {
    padding: 70px 5%;
  }
}