/* ===================================
   RESET
=================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden;
}

/* ===================================
   ROOT VARIABLES
=================================== */

:root {
  --bg: #0f172a;
  --bg-secondary: #1e293b;

  --card-bg: rgba(30, 41, 59, 0.75);

  --orange: #f97316;
  --cyan: #06b6d4;

  --white: #ffffff;

  --text-secondary: #94a3b8;

  --border: rgba(255, 255, 255, 0.08);

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ===================================
   BODY
=================================== */

body {
  font-family: "Poppins", sans-serif;

  background: var(--bg);

  color: var(--white);

  overflow-x: hidden;
}

/* ===================================
   GLOBAL
=================================== */

section {
  padding: 100px 10%;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  display: block;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;

  position: relative;

  display: inline-block;
}

.section-title h2::after {
  content: "";

  position: absolute;

  width: 60%;

  height: 4px;

  background: var(--orange);

  left: 50%;

  transform: translateX(-50%);

  bottom: -12px;

  border-radius: 50px;
}

/* ===================================
   NAVBAR
=================================== */

.navbar {
  position: fixed;

  top: 0;
  left: 0;

  width: 100%;

  padding: 20px 10%;

  display: flex;

  justify-content: space-between;

  align-items: center;

  z-index: 999;

  background: rgba(15, 23, 42, 0.85);

  backdrop-filter: blur(15px);

  border-bottom: 1px solid var(--border);
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
}

.logo span {
  color: var(--orange);
}

.nav-links {
  display: flex;

  list-style: none;

  gap: 30px;
}

.nav-links a {
  color: var(--white);

  transition: 0.3s ease;
}

.nav-links a:hover {
  color: var(--orange);
}

.resume-btn {
  background: var(--orange);

  color: white;

  padding: 12px 22px;

  border-radius: 12px;

  font-weight: 600;

  transition: 0.3s ease;
}

.resume-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.35);
}

/* ===================================
   HERO
=================================== */

.hero {
  min-height: 100vh;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 60px;

  position: relative;

  padding-top: 115px;
}

.hero::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  background: var(--orange);

  border-radius: 50%;

  filter: blur(200px);

  opacity: 0.12;

  top: -100px;
  right: -100px;
}

.hero-content {
  flex: 1;
}

.hero-subtitle {
  color: var(--cyan);

  font-weight: 600;

  margin-bottom: 15px;
}

.hero h1 {
  font-size: 4rem;

  font-weight: 800;

  line-height: 1.1;

  margin-bottom: 10px;
}

.hero h2 {
  color: var(--orange);

  margin-bottom: 25px;

  font-weight: 600;
}

.hero-description {
  color: var(--text-secondary);

  max-width: 650px;

  line-height: 1.8;

  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;

  gap: 20px;

  flex-wrap: wrap;
}

.primary-btn {
  background: var(--orange);

  color: white;

  padding: 15px 28px;

  border-radius: 14px;

  font-weight: 600;

  transition: 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-4px);

  box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
}

.secondary-btn {
  border: 1px solid var(--cyan);

  color: var(--cyan);

  padding: 15px 28px;

  border-radius: 14px;

  font-weight: 600;

  transition: 0.3s ease;
}

.secondary-btn:hover {
  background: var(--cyan);

  color: var(--bg);
}

.hero-image {
  flex: 1;

  display: flex;

  justify-content: center;
}

.hero-image img {
  width: 380px;
  height: 380px;

  object-fit: cover;

  border-radius: 50%;

  border: 4px solid var(--orange);

  box-shadow:
    0 0 30px rgba(249, 115, 22, 0.25),
    0 0 80px rgba(249, 115, 22, 0.12);

  transform: translateX(70px);
}

/* ===================================
   STATS
=================================== */

.stats {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 25px;
}

.stat-card {
  background: var(--card-bg);

  backdrop-filter: blur(15px);

  border: 1px solid var(--border);

  border-radius: 20px;

  padding: 35px;

  text-align: center;

  transition: 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);

  border-color: var(--orange);
}

.stat-card h3 {
  font-size: 2.3rem;

  color: var(--orange);

  margin-bottom: 10px;
}

.stat-card p {
  color: var(--text-secondary);
}

/* ===================================
   ABOUT
=================================== */

.about-content {
  max-width: 900px;

  margin: auto;

  text-align: center;
}

.about-content p {
  color: var(--text-secondary);

  line-height: 1.9;

  font-size: 1.05rem;
}

/* ===================================
   EXPERIENCE
=================================== */

.experience-card {
  max-width: 900px;

  margin: auto;

  background: var(--card-bg);

  backdrop-filter: blur(15px);

  border: 1px solid var(--border);

  border-radius: 24px;

  padding: 40px;

  transition: 0.3s ease;
}

.experience-card:hover {
  transform: translateY(-8px);

  border-color: var(--orange);
}

.experience-card h3 {
  font-size: 1.7rem;

  margin-bottom: 10px;
}

.experience-card span {
  color: var(--orange);

  display: block;

  margin-bottom: 20px;

  font-weight: 600;
}

.experience-card p {
  color: var(--text-secondary);

  line-height: 1.8;
}

/* ===================================
   EDUCATION
=================================== */

.education-card {
  max-width: 800px;

  margin: auto;

  background: var(--card-bg);

  backdrop-filter: blur(15px);

  border: 1px solid var(--border);

  border-radius: 24px;

  padding: 40px;

  text-align: center;

  transition: 0.3s ease;
}

.education-card:hover {
  transform: translateY(-8px);

  border-color: var(--cyan);
}

.education-card h3 {
  font-size: 2rem;

  margin-bottom: 15px;
}

.education-card span {
  color: var(--orange);

  display: block;

  margin-bottom: 10px;

  font-weight: 600;
}

.education-card p {
  color: var(--text-secondary);

  margin-top: 8px;
}

/* ===================================
   SERVICES
=================================== */

.services-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

  gap: 25px;
}

.service-card {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 20px;

  padding: 35px;

  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);

  border-color: var(--orange);
}

.service-card h3 {
  margin-bottom: 15px;

  color: var(--orange);
}

.service-card p {
  color: var(--text-secondary);

  line-height: 1.8;
}

/* ===================================
   FEATURED TECHNOLOGIES
=================================== */

.tech-grid {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 15px;
}

.tech-grid span {
  background: rgba(249, 115, 22, 0.12);

  border: 1px solid rgba(249, 115, 22, 0.25);

  color: var(--orange);

  padding: 12px 20px;

  border-radius: 999px;

  font-weight: 600;

  transition: 0.3s ease;
}

.tech-grid span:hover {
  transform: translateY(-4px);

  background: var(--orange);

  color: white;
}

/* ===================================
   PROJECTS
=================================== */

.project-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));

  gap: 30px;
}

.project-card {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 24px;

  overflow: hidden;

  transition: 0.4s ease;
}

.project-card:hover {
  transform: translateY(-10px);

  border-color: var(--orange);

  box-shadow: var(--shadow);
}

.project-card img {
  width: 100%;

  height: 220px;

  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 1.3rem;

  margin-bottom: 15px;
}

.project-content p {
  color: var(--text-secondary);

  line-height: 1.8;

  margin-bottom: 20px;
}

/* ===================================
   PROJECT TECH
=================================== */

.project-tech {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 25px;
}

.project-tech span {
  background: rgba(6, 182, 212, 0.12);

  border: 1px solid rgba(6, 182, 212, 0.25);

  color: var(--cyan);

  padding: 8px 14px;

  border-radius: 999px;

  font-size: 0.85rem;

  font-weight: 600;
}

/* ===================================
   PROJECT BUTTONS
=================================== */

.project-buttons {
  display: flex;

  gap: 15px;

  flex-wrap: wrap;
}

.project-buttons a {
  flex: 1;

  text-align: center;

  padding: 12px 18px;

  border-radius: 12px;

  font-weight: 600;

  transition: 0.3s ease;
}

.project-buttons a:first-child {
  background: var(--orange);

  color: white;
}

.project-buttons a:last-child {
  border: 1px solid var(--cyan);

  color: var(--cyan);
}

.project-buttons a:hover {
  transform: translateY(-3px);
}

/* ===================================
   SKILLS
=================================== */

.skills-container {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));

  gap: 25px;
}

.skill-box {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 24px;

  padding: 30px;

  transition: 0.3s ease;
}

.skill-box:hover {
  transform: translateY(-8px);

  border-color: var(--orange);
}

.skill-box h3 {
  color: var(--orange);

  margin-bottom: 20px;
}

.skill-box ul {
  list-style: none;
}

.skill-box ul li {
  color: var(--text-secondary);

  margin-bottom: 12px;

  position: relative;

  padding-left: 18px;
}

.skill-box ul li::before {
  content: "▹";

  position: absolute;

  left: 0;

  color: var(--cyan);
}

/* ===================================
   CURRENT FOCUS
=================================== */

.focus-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 20px;
}

.focus-card {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 20px;

  min-height: 180px;

  display: flex;

  justify-content: center;

  align-items: center;

  text-align: center;

  transition: 0.3s ease;
}

.focus-card h3 {
  margin: 0;
}

.focus-card:hover {
  transform: translateY(-8px);

  border-color: var(--cyan);
}

.focus-card h3 {
  color: var(--cyan);

  font-size: 1.1rem;
}

/* ===================================
   CERTIFICATES
=================================== */

.certificate-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 25px;
}

.certificate-card {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 24px;

  padding: 30px;

  transition: 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-8px);

  border-color: var(--orange);
}

.certificate-card h3 {
  margin-bottom: 10px;

  color: var(--orange);
}

.issuer {
  display: block;

  color: var(--cyan);

  font-size: 0.9rem;

  margin-bottom: 15px;
}

.certificate-card p {
  color: var(--text-secondary);

  line-height: 1.8;

  margin-bottom: 20px;
}

.certificate-card a {
  display: inline-block;

  padding: 10px 18px;

  background: var(--orange);

  color: white;

  border-radius: 12px;

  font-weight: 600;

  transition: 0.3s ease;
}

.certificate-card a:hover {
  transform: translateY(-3px);
}

/* ===================================
   ACHIEVEMENTS
=================================== */

.achievement-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));

  gap: 25px;
}

.achievement-card {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 20px;

  text-align: center;

  padding: 35px;

  transition: 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-8px);

  border-color: var(--orange);
}

.achievement-card h3 {
  color: var(--orange);

  font-size: 2rem;

  margin-bottom: 10px;
}

.achievement-card p {
  color: var(--text-secondary);
}

/* ===================================
   PROFILES
=================================== */

.profiles-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));

  gap: 30px;
}

.profile-card {
  background: var(--card-bg);

  border: 1px solid var(--border);

  backdrop-filter: blur(15px);

  border-radius: 24px;

  padding: 35px;

  text-align: center;

  transition: 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-8px);

  border-color: var(--cyan);
}

.profile-card h3 {
  margin-bottom: 15px;

  color: var(--cyan);
}

.profile-card p {
  color: var(--text-secondary);

  line-height: 1.8;

  margin-bottom: 20px;
}

.profile-card a {
  display: inline-block;

  padding: 12px 20px;

  border: 1px solid var(--cyan);

  color: var(--cyan);

  border-radius: 12px;

  transition: 0.3s ease;
}

.profile-card a:hover {
  background: var(--cyan);

  color: var(--bg);
}

/* ===================================
   CONTACT
=================================== */

.contact-wrapper {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 50px;

  margin-top: 50px;
}

.contact-info {
  background: var(--card-bg);

  padding: 35px;

  border-radius: 20px;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-info h3 {
  font-size: 1.8rem;

  margin-bottom: 15px;

  color: var(--orange);
}

.contact-info p {
  color: var(--text-secondary);

  line-height: 1.8;

  margin-bottom: 30px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-item strong {
  display: block;

  margin-bottom: 5px;

  color: var(--orange);
}

.contact-item a {
  color: var(--cyan);

  text-decoration: none;
}

.contact-form {
  background: var(--card-bg);

  padding: 35px;

  border-radius: 20px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 15px;

  border: none;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.05);

  color: var(--white);

  font-family: "Poppins", sans-serif;
}

.contact-form button {
  padding: 15px;

  border: none;

  border-radius: 12px;

  background: var(--orange);

  color: white;

  font-weight: 600;

  cursor: pointer;

  transition: 0.3s;
}

.contact-form button:hover {
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ===================================
   FOOTER
=================================== */

footer {
  padding: 40px 10%;

  border-top: 1px solid var(--border);

  text-align: center;
}

footer p {
  color: var(--text-secondary);
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 992px) {
  .hero {
    flex-direction: column;

    text-align: center;

    padding-top: 120px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    width: 300px;
    height: 300px;
  }

  .navbar {
    flex-direction: column;

    gap: 15px;

    padding: 20px;
  }

  .nav-links {
    flex-wrap: wrap;

    justify-content: center;

    gap: 15px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 80px 7%;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero h2 {
    font-size: 1.3rem;
  }

  .project-grid,
  .certificate-grid,
  .profiles-grid,
  .services-grid,
  .skills-container,
  .focus-grid,
  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .project-buttons {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-image img {
    width: 240px;
    height: 240px;
  }

  .logo {
    font-size: 1.5rem;
  }
}

.nav-links a.active {
  color: var(--orange);
}

.project-card,
.skill-box,
.service-card,
.certificate-card,
.achievement-card,
.profile-card,
.focus-card {
  opacity: 0;
  transform: translateY(40px);
}

.project-card.show,
.skill-box.show,
.service-card.show,
.certificate-card.show,
.achievement-card.show,
.profile-card.show,
.focus-card.show {
  opacity: 1;
  transform: translateY(0);

  transition: all 0.8s ease;
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.95);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

#topBtn {
  position: fixed;

  bottom: 30px;
  right: 30px;

  width: 50px;
  height: 50px;

  border: none;

  border-radius: 50%;

  background: var(--orange);

  color: white;

  cursor: pointer;

  display: none;

  z-index: 999;
}

#typing-text {
  color: var(--orange);

  min-height: 45px;
}

#progress-bar {
  position: fixed;

  top: 0;
  left: 0;

  height: 4px;

  width: 0%;

  background: var(--orange);

  z-index: 9999;
}

.certificate-image {
  width: 100%;

  height: auto;

  object-fit: contain;

  border-radius: 16px;

  margin-bottom: 20px;

  border: 1px solid var(--border);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

#theme-toggle {
  width: 50px;
  height: 50px;

  border: none;

  border-radius: 12px;

  cursor: pointer;

  font-size: 1.2rem;

  background: var(--card-bg);

  color: white;

  border: 1px solid var(--border);

  transition: 0.3s;
}

#theme-toggle:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
}

body.light-mode {
  --bg: #f8fafc;

  --bg-secondary: #ffffff;

  --card-bg: rgba(255, 255, 255, 0.95);

  --white: #0f172a;

  --text-secondary: #475569;

  --border: rgba(15, 23, 42, 0.1);
}

/* LIGHT MODE OVERRIDE */

body.light-mode .navbar {
  background: rgba(255, 255, 255, 0.95);
}

body.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode .logo {
  color: #0f172a;
}

body.light-mode #theme-toggle {
  color: #0f172a;
}

body.light-mode .nav-links a {
  color: #0f172a;
}

body.light-mode .contact-container a {
  color: #0f172a;
}
