:root {
  --bg-color: #0f172a;
  --card-color: #111827;
  --text-color: #e5e7eb;
  --muted-text: #9ca3af;
  --accent: #38bdf8;
}

/* Glass Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  padding: 16px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Logo */
.navbar h1 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #38bdf8;
}

/* Nav Links */
.navbar nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover */
.navbar nav a:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

/* Active link */
.navbar nav a.active {
  background: rgba(245, 248, 249, 0.916);
  color: #38bdf8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .navbar nav a {
    margin-left: 10px;
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar */
header {
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 600;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

/* Hero Section */
.hero {
  padding: 80px 10%;
  max-width: 900px;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

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

.hero p {
  color: var(--muted-text);
  max-width: 700px;
  font-size: 1.05rem;
}

/* Buttons */
.buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--accent);
  color: #020617;
}

.btn-primary:hover {
  opacity: 0.85;
}

.btn-secondary {
  border: 1px solid var(--accent);
  color: var(--accent);
}

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

/* Section */
.section {
  padding: 60px 10%;
}

.section h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--accent);
}

/* Cards */
/* Skill Cards Grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* Individual Card */
.card {
  background: rgba(17, 24, 39, 0.9);      /* dark card */
  padding: 32px 25px;
  border-radius: 14px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Icon */
.card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.6rem;
}

/* Text */
.card h4 {
  margin-bottom: 10px;
}

.card p {
  color: var(--muted-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Footer */
/* /* Footer */
.footer {
  background: linear-gradient(135deg, #020617, #0f172a);
  color: #e5e7eb;
  padding: 60px 10% 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-about h3 {
  color: #38bdf8;
  margin-bottom: 12px;
}

.footer-about p {
  color: #9ca3af;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #38bdf8;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icons a {
  width: 38px;
  height: 38px;
  background-color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #38bdf8;
  color: #020617;
}

.footer-bottom {
  border-top: 1px solid #1f2933;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #9ca3af;
}
/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  .hero h2 {
    font-size: 2.2rem;
  }
}
/* =====================
   ABOUT PAGE STYLES
===================== */

/* =====================
   ABOUT PAGE STYLES
===================== */

/* Hero */
.about-hero {
  padding: 100px 10% 60px;
  display: flex;
  justify-content: center;
}

.about-hero-content {
  max-width: 900px;
}

.about-hero-content h2 {
  font-size: 2.7rem;
  margin-bottom: 15px;
}

.about-hero-content span {
  color: #38bdf8;
}

.about-hero-content p {
  max-width: 750px;
  color: #9ca3af;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Main Grid Layout */
.about-container {
  padding: 50px 10% 90px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
}

/* LEFT COLUMN */
.about-left {
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  border-radius: 18px;
}

.about-left h3 {
  color: #38bdf8;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.about-left p {
  color: #9ca3af;
  line-height: 1.75;
  margin-bottom: 35px;
  font-size: 0.96rem;
}

/* RIGHT COLUMN */
.about-right {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 18px;
}

.about-right h3 {
  color: #38bdf8;
  margin-bottom: 25px;
  font-size: 1.25rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
}

.skill-card {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 10px;
  text-align: center;
  border-radius: 14px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-6px);
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
}

/* Responsive */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-left,
  .about-right {
    padding: 30px;
  }
}

/* =====================
   PROJECTS PAGE
===================== */

.projects-hero {
  padding: 100px 10% 60px;
  max-width: 900px;
}

.projects-hero h2 {
  font-size: 2.7rem;
  margin-bottom: 15px;
}

.projects-hero span {
  color: #38bdf8;
}

.projects-hero p {
  color: #9ca3af;
  font-size: 1.05rem;
  max-width: 700px;
  line-height: 1.7;
}

/* Projects Grid */
.projects-container {
  padding: 40px 10% 90px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.project-card {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 32px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  background: rgba(56, 189, 248, 0.12);
}

.project-card h3 {
  color: #38bdf8;
  margin-bottom: 12px;
}

.project-card p {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-card a {
  align-self: flex-start;
  text-decoration: none;
  color: #38bdf8;
  font-size: 0.9rem;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.project-card a:hover {
  opacity: 0.8;
}
/* Project Images */
.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 18px;
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

.project-card:hover img {
  filter: brightness(1);
}
/* =====================
   CONTACT PAGE
===================== */

.contact-container {
  padding: 110px 10% 90px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}

/* LEFT */
.contact-info h2 {
  font-size: 2.6rem;
  margin-bottom: 15px;
}

.contact-info span {
  color: #38bdf8;
}

.contact-info p {
  color: #9ca3af;
  max-width: 420px;
  margin-bottom: 35px;
  line-height: 1.7;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.info-item i {
  width: 48px;
  height: 48px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.1rem;
}

.info-item h4 {
  margin-bottom: 2px;
}

.info-item p {
  color: #9ca3af;
  font-size: 0.9rem;
}

.follow-title {
  margin-top: 30px;
  margin-bottom: 12px;
}

.contact-social {
  display: flex;
  gap: 14px;
}

.contact-social a {
  width: 40px;
  height: 40px;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #e5e7eb;
  transition: all 0.3s ease;
}

.contact-social a:hover {
  background: #38bdf8;
  color: #020617;
}

/* RIGHT FORM */
.contact-form {
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px;
  border-radius: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #e5e7eb;
}

.form-group input,
.form-group textarea {
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  font-size: 0.9rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #6b7280;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #38bdf8;
}

/* Submit Button */
.btn-submit {
  margin-top: 10px;
  padding: 14px;
  background: #38bdf8;
  color: #020617;
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.btn-submit:hover {
  opacity: 0.85;
}
.form-group small {
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 4px;
  visibility: hidden;
}

.form-group.error input,
.form-group.error textarea {
  border-color: #f87171;
}

.form-group.success input,
.form-group.success textarea {
  border-color: #22c55e;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .projects-hero {
    padding-top: 80px;
  }
}
/* =====================
   HERO CIRCLE STYLE (FIXED)
===================== */

.hero-flex {
  display: flex;
  align-items: center;
  width: 100%;
}

/* Badge (unchanged) */
.badge {
  display: inline-block;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-bottom: 15px;
}

/* OUTER PERFECT CIRCLE */
.hero-circle {
  position: absolute;               /* 🔥 detach from layout */
  right: 10%;                        /* 🔥 push to viewport right */
  top: 40%;
  transform: translateY(-50%);

  width: 340px;
  height: 340px;
  aspect-ratio: 1 / 1;              /* 🔥 guarantees circle */
  border-radius: 50%;

  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* INNER PHOTO */
.hero-photo {
  width: 240px;
  height: 240px;
  aspect-ratio: 1 / 1;              /* 🔥 guarantees circle */
  border-radius: 50%;
  background: #020617;
  padding: 6px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;   /* 🔥 full face visible */
}

/* Mobile */
@media (max-width: 900px) {
  .hero-circle {
    position: static;
    transform: none;
    margin: 40px auto 0;
    width: 300px;
    height: 300px;
  }

  .hero-photo {
    width: 180px;
    height: 180px;
  }

  .hero-flex {
    flex-direction: column;
    text-align: center;
  }
}