/* =========================
   VARIABLES & GLOBAL RESET
   ========================= */
:root {
  --bg-dark: #020617;
  --bg-light: #0f172a;
  --accent: #38bdf8;
  --accent-soft: #7dd3fc;
  --text-main: #f8fafc;
  --text-muted: #c0d6df; /* slightly lighter for About section */
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  background: var(--bg-dark);
  color: var(--text-main);
  opacity: 0;
  animation: fadeIn 1.5s ease forwards;
}

/* =========================
   FADE IN ANIMATION
   ========================= */
@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* =========================
   NAVBAR
   ========================= */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 18px 60px;
  background: rgba(2,6,23,0.7);
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
}

nav a:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* =========================
   SECTION COLORS + BASE
   ========================= */
section {
  min-height: 100vh;
  padding: 120px 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-margin-top: 80px;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

/* Section specific gradients */
#home {
  background: linear-gradient(135deg, #020617, #0f172a);
}

#about {
  background: linear-gradient(135deg, #0f766e, #14b8a6); /* slightly lighter, classy teal */
}

#contact {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
}

/* Reveal animation trigger */
section.reveal {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   HOME SECTION
   ========================= */
.home-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.home-text h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 15px rgba(56, 189, 248, 0.3);
}

.home-text h1 span {
  color: var(--accent);
}

.home-text p {
  font-size: 1.3rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 40px;
}

.home-buttons {
  display: flex;
  gap: 20px;
}

.home-buttons a {
  padding: 14px 36px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
}

.home-buttons a:first-child {
  background: var(--accent);
  color: var(--bg-dark);
  box-shadow: 0 5px 20px rgba(56, 189, 248, 0.4);
}

.home-buttons a:first-child:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 50px rgba(56, 189, 248, 0.6);
}

.home-buttons a:last-child {
  border: 2px solid var(--accent-soft);
  color: var(--accent-soft);
}

.home-buttons a:last-child:hover {
  background: var(--accent-soft);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(125, 211, 252, 0.4);
}

/* =========================
   HOME IMAGE EFFECT
   ========================= */
.home-image {
  display: flex;
  justify-content: center;
}

.home-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,0.06);
  box-shadow: 0 0 100px rgba(56, 189, 248, 0.3);
  transition: transform 0.6s ease, box-shadow 0.6s ease, filter 0.6s ease;
  will-change: transform;
}

/* FINAL IMAGE HOVER: slight rotation + subtle saturation */
.home-image img:hover {
  transform: rotateY(8deg) rotateX(5deg) scale(1.08);
  filter: saturate(1.15);
  box-shadow: 0 0 150px rgba(56, 189, 248, 0.5), 0 0 250px rgba(125, 211, 252, 0.3);
}

/* =========================
   ABOUT SECTION
   ========================= */
.about-container {
  max-width: 750px;
  text-align: center;
  padding: 40px 20px;
}

.about-container h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  color: #e0f7f4; /* slightly softer white for contrast */
}

.about-container p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #d0f0ed; /* readable yet soft */
  line-height: 1.8;
}

/* =========================
   ABOUT STATS - WHITE TEXT + COOL HOVER
   ========================= */
.about-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.about-stats .stat {
  padding: 25px 40px;
  border-radius: 20px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease, color 0.3s ease;
  backdrop-filter: blur(12px);
  cursor: default;
  color: #ffffff; /* TEXT WHITE */
}

/* STAT 1 - Power/Strength */
.about-stats .stat:nth-child(1) {
  background: linear-gradient(145deg, rgba(255, 182, 48, 0.15), rgba(255, 182, 48, 0.05));
}

/* STAT 2 - Skill/Experience */
.about-stats .stat:nth-child(2) {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.05));
}

/* STAT 3 - Precision/Focus */
.about-stats .stat:nth-child(3) {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.05));
}

/* STAT HOVER EFFECT */
.about-stats .stat:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 50px rgba(56,189,248,0.6);
  background: linear-gradient(145deg, rgba(255,255,255,0.12), rgba(255,255,255,0.07));
}

/* TEXT HOVER COLORS */
.about-stats .stat:nth-child(1):hover h3,
.about-stats .stat:nth-child(1):hover p {
  color: #facc15; /* Golden hover */
}

.about-stats .stat:nth-child(2):hover h3,
.about-stats .stat:nth-child(2):hover p {
  color: #f472b6; /* Pink hover */
}

.about-stats .stat:nth-child(3):hover h3,
.about-stats .stat:nth-child(3):hover p {
  color: #34d399; /* Mint hover */
}

/* STATS TEXT STYLING */
.about-stats .stat h3 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.about-stats .stat p {
  font-size: 1rem;
  letter-spacing: 0.5px;
}



/* =========================
   CONTACT SECTION
   ========================= */
.contact-container {
  max-width: 700px;
  text-align: center;
}

.contact-container h2 {
  font-size: 2.6rem;
  margin-bottom: 25px;
  text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.contact-container p {
  font-size: 1.15rem;
  color: #eef2ff;
  margin-bottom: 30px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}

.contact-form input,
.contact-form textarea {
  padding: 18px 24px;
  border-radius: 25px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: var(--text-main);
  font-size: 1.1rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(56,189,248,0.6);
  background: rgba(56,189,248,0.08);
}

.contact-form button {
  padding: 16px 0;
  border-radius: 25px;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 10px 35px rgba(56,189,248,0.5);
  transition: all 0.4s ease;
}

.contact-form button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 60px rgba(56,189,248,0.7);
}

.contact-extra {
  margin-top: 25px;
  font-size: 1rem;
  color: #eef2ff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-extra a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
}

.contact-extra a:hover {
  color: var(--accent);
  transform: scale(1.05);
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 900px) {
  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-buttons {
    justify-content: center;
  }

  .home-image img {
    width: 260px;
    height: 260px;
  }

  .about-stats {
    flex-direction: column;
    gap: 25px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 14px 18px;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 14px 0;
  }

  nav {
    padding: 15px 30px;
  }
}
