/* ===================== ROOT VARIABLES ===================== */
:root {
  /* Light Mode Colors */
  --bg-main: #f3faf7;
  --bg-card: #ffffff;
  --bg-dark: #0e2f26;
  --text-dark: #0b2a1f;
  --text-muted: #557c6e;
  --accent: #1fa67a;
  --accent-dark: #158a65;
  --accent-soft: rgba(31, 166, 122, 0.15);
  --accent-gradient: linear-gradient(135deg, #1fa67a, #16a085);

  --radius: 18px;
  --shadow: 0 20px 40px rgba(0,0,0,0.08);
  --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
}

/* Dark Mode */
body.dark {
  --bg-main: #0b0f14;
  --bg-card: #111827;
  --text-dark: #f3f3f3;
  --text-muted: #cccccc;
  --accent-soft: rgba(31, 166, 122, 0.25);
}

/* ===================== GLOBAL ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-card);
  padding: 1.2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-soft);
  transition: background 0.3s;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
}

.navbar nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: var(--accent);
}

.btn-outline {
  border: 2px solid var(--accent);
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* ===================== HERO ===================== */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  padding: 6rem 4rem;
  align-items: center;
}

.intro {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
}

.hero h3 {
  margin: 0.6rem 0 1.2rem;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-desc {
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero-actions a {
  margin-right: 1rem;
}

/* Profile Image */
.profile-img-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-gradient);
}

.profile-img-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-main);
}

/* ===================== SOCIAL ICONS ===================== */
.social-icons {
  margin-top: 1.5rem;
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 50%;
  font-size: 20px;
  margin-right: 10px;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-4px);
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #fff;
}

/* ===================== SECTIONS ===================== */
.section {
  padding: 5.5rem 4rem;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 3rem;
}

.section-title span {
  color: var(--accent);
}

.center {
  text-align: center;
}

/* ===================== ABOUT ===================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 2rem 0;
}

.about-info div strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===================== STATS ===================== */
.stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.stats div {
  background: var(--bg-card);
  padding: 1.4rem 1.8rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: center;
  min-width: 120px;
}

.stats h3 {
  color: var(--accent);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.stats p {
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================== SKILLS CARDS - ANALYST STYLE ===================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.skill-card {
  background: var(--bg-card);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 0 10px var(--accent-soft);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Subtle diagonal gradient overlay for analyst feel */
.skill-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(135deg, rgba(31,166,122,0.05), rgba(31,166,122,0));
  transform: rotate(25deg);
  pointer-events: none;
}

/* Icon styling */
.skill-card i {
  font-size: 2.6rem;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

/* Skill title */
.skill-card h4 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

/* Skill list styling */
.skill-card ul {
  list-style: none;
  margin-top: 1rem;
  padding-left: 0;
}

.skill-card ul li {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding-left: 1.2rem;
}

/* Small analytical "dot" indicator */
.skill-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hover effect: floating + glow */
.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12), 0 0 20px var(--accent-soft);
  background: var(--bg-card);
}

/* Optional: small animated bar behind each skill for data vibe */
.skill-card ul li span {
  display: block;
  height: 4px;
  width: 0;
  background: var(--accent);
  border-radius: 4px;
  margin-top: 2px;
  animation: growBar 1s ease forwards;
}

@keyframes growBar {
  to { width: 60%; } /* You can vary this per skill if you add inline style width */
}


/* ===================== PROJECT CARDS ===================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  padding: 1.6rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-card h4 {
  margin-bottom: 0.5rem;
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.project-card .link-custom {
  font-weight: 600;
  position: relative;
  color: var(--accent);
  text-decoration: none;
  margin-left: 0.8rem;
}

.project-card .link-custom::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: 0.3s;
}

.project-card .link-custom:hover::after {
  width: 100%;
}

/* ===================== CONTACT ===================== */
.contact-box {
  max-width: 600px;
  margin: auto;
  background: var(--bg-card);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: var(--bg-main);
  color: var(--text-dark);
  transition: all 0.3s;
}

.contact-box input:focus,
.contact-box textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.contact-box button {
  width: 100%;
}

/* ===================== CONTACT SOCIAL ICONS ===================== */
.contact-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-dark);
  font-size: 20px;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: translateY(-4px);
}

/* Hide text in contact links (only icons) */
.contact-info a span {
  display: none;
}
/*===================== FOOTER ===================== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  background: var(--bg-card);
  margin-top: 2rem;
}

/* ===================== MEDIA QUERIES ===================== */
@media(max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-img-wrapper {
    margin: 2rem auto 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid, .projects-grid {
    grid-template-columns: 1fr;
  }
}


/* ===================== DARK/LIGHT TOGGLE ===================== */
#themeToggle {
  background: var(--bg-card);
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

#themeToggle:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1);
}

/* ===================== FLOATING PROFILE IMAGE ===================== */
@keyframes float {
  0% {
    transform: translate(0px, 0px) rotate(0deg);
  }
  25% {
    transform: translate(5px, -8px) rotate(-1deg);
  }
  50% {
    transform: translate(-5px, 10px) rotate(1deg);
  }
  75% {
    transform: translate(8px, -5px) rotate(-1deg);
  }
  100% {
    transform: translate(0px, 0px) rotate(0deg);
  }
}

/* Profile Image Floating + Glow */
.profile-img-wrapper {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: 0 0 40px var(--accent-soft);
  animation: float 6s ease-in-out infinite;
  transition: box-shadow 0.3s ease;
}

/* ===================== FLOATING SECTIONS ===================== */


/* Apply gentle floating and glow to cards */
.skill-card,
.project-card,
.contact-box,
.stats div {
  animation: float-card 8s ease-in-out infinite;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 0 15px var(--accent-soft);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.skill-card:hover,
.project-card:hover,
.contact-box:hover,
.stats div:hover {
  box-shadow: 0 0 30px var(--accent-soft), 0 10px 30px rgba(0,0,0,0.1);
}

/* ===================== HERO TEXT GLOW ===================== */
.hero h1, .hero h3, .hero-desc {
  transition: text-shadow 0.3s ease;
}

.hero h1:hover, .hero h3:hover, .hero-desc:hover {
  text-shadow: 0 0 12px var(--accent-soft);
}

.contact-wrapper {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
}

.contact-item i {
  font-size: 1.2rem;
  color: var(--accent);
}

.contact-item a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

.contact-item a:hover {
  color: var(--accent);
}
