* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 143, 255, 0.18), transparent 20%),
    radial-gradient(circle at 85% 10%, rgba(117, 195, 255, 0.08), transparent 18%),
    #02030a;
  color: #e8f2ff;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

/* NAVBAR */
.navbar {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: rgba(244, 249, 255, 0.92);
  z-index: 10;
  background: rgba(2, 6, 24, 0.78);
  border-bottom: 1px solid rgba(79, 143, 255, 0.12);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(14px);
  flex-wrap: nowrap;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span {
  color: #54a8ff;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px 18px;
  white-space: nowrap;
}

nav a {
  margin: 0;
  color: rgba(244, 249, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.25s ease;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #9cc9ff;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
}

.quote-btn {
  background: linear-gradient(135deg, #1f6fff, #0d4ae2);
  padding: 10px 18px;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(31, 111, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.quote-btn:hover {
  background: linear-gradient(135deg, #0d4ae2, #154fbf);
  transform: translateY(-1px);
}

/* HERO */
.hero {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 10, 24, 0.58), rgba(4, 10, 24, 0.82)),
    url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(79, 143, 255, 0.24), transparent 18%),
    radial-gradient(circle at 80% 20%, rgba(35, 84, 255, 0.14), transparent 16%);
  pointer-events: none;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 20, 0.60);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 120px));
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.hero-content {
  position: relative;
  max-width: 600px;
  padding: 120px 0 80px;
  color: #f5fbff;
  transform: translateZ(0);
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  animation: slideUp 0.8s ease;
}

.hero-content .hero-subtitle {
  font-size: 18px;
  color: #b0d1ff;
  margin-bottom: 40px;
  animation: slideUp 1s ease;
}

.hero-content p {
  font-size: 16px;
  color: #c6d9ff;
  margin-bottom: 30px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0 70px;
}

.hero-photo-card {
  position: relative;
  width: min(420px, 78vw);
  aspect-ratio: 0.9;
  border-radius: 28px;
  background: rgba(11, 22, 39, 0.7);
  border: 1px solid rgba(121, 185, 255, 0.2);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 0 40px rgba(79, 143, 255, 0.18);
  transform: perspective(1200px) rotateY(-18deg) rotateX(8deg);
  animation: floatCard 5s ease-in-out infinite;
  padding: 18px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hero-photo-card:hover {
  transform: perspective(1200px) rotateY(-12deg) rotateX(10deg) translateY(-8px);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42), 0 0 50px rgba(79, 143, 255, 0.2);
}

.hero-photo-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}

.hero-photo {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: url('hero.jpg') center/cover no-repeat;
  box-shadow: inset 0 0 25px rgba(0,0,0,0.2);
}

.hero-photo::after {
  content: "Ashen Rashmika";
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(5, 12, 20, 0.62);
  border: 1px solid rgba(255,255,255,0.08);
  color: #edf7ff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  text-decoration: none;
  font-size: 14px;
  border-radius: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.btn.green {
  background: linear-gradient(135deg, #1f6fff, #0c4ad2);
  color: #fff;
}

.btn.green:hover {
  background: linear-gradient(135deg, #0b4ad1, #0a3cb7);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 71, 167, 0.35);
}

.btn.outline {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.btn.outline:hover {
  background: rgba(145, 197, 255, 0.12);
  color: #fff;
  transform: translateY(-2px);
}


.footer2::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #4d8cff, #0b3ea9);
}

.footer2 {
  background: #010209;
}

.footer2-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}

.f-col h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #79b9ff;
}

.f-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #79b9ff;
}

.f-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #a4caff;
}

.f-col a {
  display: block;
  font-size: 14px;
  color: #99c8ff;
  text-decoration: none;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.f-col a:hover {
  color: #c4e0ff;
  transform: translateX(4px);
}

.mini-socials {
  margin-top: 15px;
  display: flex;
  gap: 8px;
}

.mini-socials span {
  width: 10px;
  height: 10px;
  background: #1f6fff;
  border-radius: 50%;
  display: inline-block;
}

.footer2-bottom {
  text-align: center;
  padding: 15px;
  font-size: 13px;
  background: #010209;
  color: #79b9ff;
  border-top: 1px solid rgba(79, 143, 255, 0.12);
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(31, 111, 255, 0.14);
  color: #7fc0ff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #1f6fff;
  color: #fff;
  transform: translateY(-3px);
}

/* ===== About page styles ===== */
.about-hero {
  min-height: 620px;
  padding: 120px 0 60px;
  background:
    radial-gradient(circle at 18% 12%, rgba(84, 168, 255, 0.22), transparent 22%),
    radial-gradient(circle at 82% 16%, rgba(54, 111, 255, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(2, 9, 22, 0.58), rgba(7, 28, 69, 0.68));
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
  perspective: 1400px;
}

.profile-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(6, 13, 30, 0.94), rgba(10, 19, 40, 0.96));
  border-radius: 22px;
  padding: 32px;
  border: 1px solid rgba(145, 197, 255, 0.14);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.45);
  text-align: center;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg) translateZ(20px);
  transform-style: preserve-3d;
  animation: aboutCardFloat 6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover {
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(79, 143, 255, 0.16), transparent 38%),
              radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 22%);
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  margin: 0 auto 18px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  background-color: #0a1020;
  transform: translateZ(42px);
  animation: avatarFloat 4s ease-in-out infinite;
}

.profile-card h2 { font-size: 24px; margin-bottom: 8px; color: #f4fbff; }
.profile-card .role { color: #aac9ff; font-size: 14px; margin-bottom: 10px; }
.profile-card .loc { font-size: 13px; color: #92b6ff; margin-bottom: 16px; }
.profile-card .socials a { display: inline-block; margin: 6px 8px; color: #a4cbff; text-decoration: none; font-size: 13px; }

.bio-section {
  position: relative;
  transform: translateZ(12px);
}

.bio-section::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(79, 143, 255, 0.08);
  filter: blur(50px);
  z-index: -1;
}

.bio-section h1 { font-size: 36px; margin-bottom: 16px; color: #071827; text-shadow: 0 2px 12px rgba(255,255,255,0.28); }
.lead { font-size: 18px; color: #ffffff; margin-bottom: 18px; text-shadow: 0 2px 8px rgba(0,0,0,0.42); }
.bio-section > p:not(.lead) { color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.42); }
.profile-card h2,
.profile-card .role,
.profile-card .loc,
.profile-card .socials a,
.timeline-section h2,
.timeline-item h4,
.contact-cta h2 { color: #ffffff; }
.cta-row { margin: 22px 0; display: flex; gap: 12px; flex-wrap: wrap; }

.skills { margin-top: 22px; }
.skill { margin-bottom: 14px; }
.skill span { display: block; font-size: 14px; margin-bottom: 8px; color: #ffffff; text-shadow: 0 2px 8px rgba(0,0,0,0.42); }
.bar { height: 10px; background: rgba(255, 255, 255, 0.08); border-radius: 999px; overflow: hidden; }
.fill { height: 100%; background: linear-gradient(90deg, #4c88ff, #0b4ad1); border-radius: inherit; }

.timeline-section { padding: 60px 0; background: #020411; }
.timeline-section .container{ max-width: 1100px; margin: auto; padding: 0 60px; }
.timeline{ display: grid; gap: 18px; margin-top: 20px; }
.timeline-item{
  position: relative;
  background: rgba(6, 12, 28, 0.92);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(79, 143, 255, 0.10);
  transform: translateZ(8px);
}
.timeline-item::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(79, 143, 255, 0.12), transparent 55%);
  z-index: 0;
}
.timeline-item h4{ margin-bottom: 8px; color: #e8f3ff; position: relative; z-index: 1; }
.muted{ color: #8dabe4; font-size: 13px; margin-bottom: 10px; position: relative; z-index: 1; }
.timeline-item p { color: rgba(255, 255, 255, 0.78); position: relative; z-index: 1; }

@keyframes aboutCardFloat {
  0%, 100% { transform: perspective(1200px) rotateX(0deg) rotateY(-2deg) translateY(0) translateZ(20px); }
  50% { transform: perspective(1200px) rotateX(2deg) rotateY(2deg) translateY(-10px) translateZ(20px); }
}

@keyframes avatarFloat {
  0%, 100% { transform: translateZ(42px) rotateY(-4deg); }
  50% { transform: translateZ(42px) rotateY(4deg) translateY(-5px); }
}

.contact-cta {
  padding: 60px 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(79, 143, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #020815, #041a40);
  text-align: center;
}
.contact-cta .container{ max-width: 900px; margin: auto; padding: 0 60px; }
.contact-cta h2{ margin-bottom: 8px; color: #f3fbff; }
.contact-cta p{ color: #b7d5ff; margin-bottom: 18px; }

/* ===== NEW SECTIONS ===== */

/* Services Section */
.services-section {
  padding: 100px 0;
  background: #060c1b;
}

.section-title {
  font-size: 42px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: #e8f3ff;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: #a8c8ff;
  margin-bottom: 60px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  position: relative;
  background: linear-gradient(180deg, rgba(7, 20, 41, 0.96), rgba(10, 18, 40, 0.98));
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  transition: all 0.3s ease;
  text-align: center;
  border: 1px solid rgba(79, 143, 255, 0.08);
}

.service-card:hover {
  transform: translateY(-14px) rotateX(0.3deg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(79, 143, 255, 0.08), transparent 28%);
}

.service-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4a8cff 0%, #0d53e7 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: #fff;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #f4fbff;
}

.service-card p {
  color: #aacbff;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.service-link {
  color: #79b9ff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #c4e0ff;
}

/* Features Section */
.features-section {
  padding: 100px 0;
  background: #020413;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
}

.feature-item {
  position: relative;
  padding-left: 80px;
}

.feature-number {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 56px;
  font-weight: 700;
  color: #4b8bff;
  opacity: 0.18;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #eef5ff;
}

.feature-item p {
  border: 2px solid rgba(79, 143, 255, 0.16);
  background: rgba(8, 16, 32, 0.95);
  animation: fadeInUp 0.8s ease-out;
  animation-fill-mode: both;
  color: #a7c8ff;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.social-link:nth-child(1) {
  animation-delay: 0.5s;
}

.social-link:nth-child(2) {
  animation-delay: 0.6s;
}

.social-link:nth-child(3) {
  animation-delay: 0.7s;
}

.social-link:nth-child(4) {
  animation-delay: 0.8s;
}

.social-link:hover {
  background: #1f6fff;
  color: #fff;
  transform: translateY(-3px);
}

.cta-section {
  position: relative;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(135deg, #1f5fff 0%, #0b245d 100%);
  text-align: center;
  color: #fff;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 35px 100px rgba(31, 111, 255, 0.22);
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 24% 30%, rgba(79, 143, 255, 0.18), transparent 18%),
              radial-gradient(circle at 78% 65%, rgba(119, 209, 255, 0.10), transparent 18%);
}

.cta-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 35px;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.cta-button {
  display: inline-block;
  background: #fff;
  color: #1f6fff;
  padding: 16px 45px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background: radial-gradient(circle at top, rgba(79, 143, 255, 0.12), transparent 26%),
              #020413;
  border-top: 1px solid rgba(79, 143, 255, 0.12);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  text-align: center;
}

.stat-item {
  padding: 30px 20px;
  background: rgba(10, 18, 34, 0.9);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(79, 143, 255, 0.08);
}

.stat-item h3 {
  font-size: 42px;
  font-weight: 700;
  color: #7eb6ff;
  margin-bottom: 8px;
}

.stat-item p {
  font-size: 16px;
  color: #95bfff;
  font-weight: 500;
}

/* Social Icons in Footer */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(31, 111, 255, 0.14);
  color: #7fc0ff;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #1f6fff;
  color: #fff;
  transform: translateY(-3px);
}

/* Animations */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatCard {
  0%, 100% {
    transform: perspective(1200px) rotateY(-18deg) rotateX(8deg) translateY(0);
  }
  50% {
    transform: perspective(1200px) rotateY(-14deg) rotateX(10deg) translateY(-12px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1100px) {
  .navbar {
    justify-content: center;
    text-align: center;
  }

  .nav-right {
    width: auto;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .profile-card {
    order: -1;
    width: 100%;
  }

  .hero-content {
    padding: 120px 24px;
  }

  .navbar {
    padding: 14px 28px;
  }
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    width: min(100%, calc(100% - 32px));
    padding-top: 110px;
  }

  .hero-content {
    text-align: center;
    padding-top: 40px;
    max-width: 100%;
  }

  .buttons {
    justify-content: center;
  }

  .hero-visual {
    padding-top: 0;
    padding-bottom: 60px;
  }
}

@media (max-width: 768px) {
  .container,
  .about-container,
  .timeline-section .container,
  .contact-cta .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section-title {
    font-size: 32px;
  }

  .services-grid {
    gap: 20px;
  }

  .features-grid {
    gap: 30px;
  }

  .cta-section h2 {
    font-size: 36px;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  nav {
    width: auto;
    gap: 8px 12px;
    overflow: hidden;
  }

  nav a {
    font-size: 12px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .footer2-container {
    padding: 32px 20px;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 12px 16px;
  }

  .logo {
    font-size: 20px;
    width: 100%;
    text-align: center;
  }

  nav {
    gap: 8px 10px;
  }

  nav a {
    font-size: 11px;
  }

  .nav-right {
    width: 100%;
  }

  .quote-btn {
    width: 100%;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content .hero-subtitle {
    font-size: 16px;
  }

  .profile-card {
    padding: 24px 18px;
  }

  .bio-section h1 {
    font-size: 28px;
  }

  .cta-row {
    flex-direction: column;
  }
}

/* small aesthetic tweaks for active nav */
nav a.active { color: #79b9ff; font-weight: 600; }

  