:root {
  --branding-color: #6c63ff;
  --secondary-color: #f9f7fe;
  --heading-font-family: "Playfair Display", serif;
  --default-font-family: "Poppins", sans-serif;
  --text-color: #272142;
  --background-color: #ffffff;
  --card-background: #f9f7fe;
  --muted-text: #6c757d;
}

/* DARK MODE */

[data-theme="dark"] {
  --text-color: #ffffff;
  --background-color: #1a1a1a;
  --card-background: #2d2d2d;
  --secondary-color: #2d2d2d;
  --muted-text: #cccccc;
}

/* GLOBAL */

* {
  transition: all 0.25s ease;
}

body {
  background: var(--background-color);
  color: var(--text-color);
  font-family: var(--default-font-family);
  animation: pageFade 0.6s ease;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1, h2, h3, h4, h5 {
  color: var(--text-color);
  font-family: var(--heading-font-family);
  font-weight: bold;
}

p {
  font-family: var(--default-font-family);
  color: var(--muted-text);
}

/* NAVIGATION */

nav {
  padding: 25px 0;
}

nav ul {
  padding: 0;
  margin: 0;
}

nav li {
  list-style: none;
  display: inline;
  margin-left: 22px;
}

nav a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

nav a:hover,
nav li.active a {
  color: var(--branding-color);
  transform: translateY(-1px);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -6px;
  left: 0;
  background-color: var(--branding-color);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav li.active a::after {
  width: 100%;
}


/* HERO SECTION */

.hero {
  padding: 140px 20px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.06),
    rgba(108, 99, 255, 0.02)
  );
}

.hero-greeting {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--branding-color);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h2 {
  font-size: 18px;
  font-weight: 400;
  color: var(--muted-text);
  max-width: 600px;
  margin: 0 auto 35px;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
/* HERO GLOW */

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.18),
    transparent 70%
  );
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  opacity: 0.7;
  animation: floatGlow 6s ease-in-out infinite;
}

@keyframes floatGlow {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-18px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* BUTTONS */

.btn-branding {
  background: var(--branding-color);
  color: white;
  border-radius: 24px;
  font-size: 13px;
  padding: 10px 22px;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-branding:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(108, 99, 255, 0.35);
}

.btn-branding::before {
  content: "";
  position: absolute;
  width: 120%;
  height: 120%;
  background: rgba(255,255,255,0.15);
  top: -110%;
  left: -10%;
  transform: rotate(8deg);
  transition: all 0.6s ease;
}

.btn-branding:hover::before {
  top: -10%;
}

.btn-branding-outline {
  background: transparent;
  color: var(--branding-color);
  border: 1px solid var(--branding-color);
  border-radius: 24px;
  font-size: 13px;
  padding: 10px 22px;
}

.btn-branding-outline:hover {
  background: var(--branding-color);
  color: white;
}

/* INTRO SECTION */

.intro-section {
  padding: 80px 20px;
  text-align: center;
}

.intro-section p {
  max-width: 650px;
  margin: auto;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted-text);
}


/* PROJECTS SECTION */

.projects-section {
  padding: 100px 20px;
}

.project-item {
  margin-bottom: 100px;
  align-items: center;
}

/* IMAGE */

.project-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.08);
  transition: transform 0.5s ease;
}

.project-image img {
  width: 100%;
  transition: transform 0.6s ease;
}

.project-item:hover .project-image img {
  transform: scale(1.06);
}

/* TEXT SIDE */

.project-content {
  padding: 20px 10px;
}

.project-content h3 {
  font-size: 30px;
  margin-bottom: 16px;
}

.project-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted-text);
  margin-bottom: 18px;
}

.project-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--branding-color);
  text-decoration: none;
}

.project-link:hover {
  text-decoration: underline;
}

/* DIVIDER SPACING */

.projects-section .row:last-child {
  margin-bottom: 0;
}

/* RESPONSIVE FIX */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 38px;
  }

  .project-item {
    text-align: center;
  }

  .project-content {
    margin-top: 25px;
  }
}

/* ABOUT SECTION */

.about-me {
  padding: 100px 20px;
}

.about-card {
  background: var(--card-background);
  padding: 45px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.about-card h1 {
  font-size: 38px;
  margin-bottom: 5px;
}

.about-card h2 {
  font-size: 18px;
  color: var(--muted-text);
  margin-bottom: 25px;
}

.about-card p {
  line-height: 1.7;
  color: var(--muted-text);
}

.about-card .intro {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-color);
}

/* HIGHLIGHTS */

.about-highlights {
  margin: 25px 0;
}

.about-highlights span {
  display: inline-block;
  background: rgba(108, 99, 255, 0.08);
  color: var(--branding-color);
  padding: 8px 18px;
  margin: 5px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* PROFILE IMAGE */

.profile-card {
  text-align: center;
}

.profile-card img {
  max-width: 85%;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}


.work-header {
  padding: 90px 30px 70px;
  margin-bottom: 80px;
  text-align: center;
  border-radius: 40px;
  position: relative;
  overflow: hidden;

  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.06),
    rgba(108, 99, 255, 0.02)
  );
}


/* Subtle glow depth */

.work-header::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(108, 99, 255, 0.12),
    transparent 70%
  );
  top: -200px;
  right: -200px;
  filter: blur(80px);
}

/* Content stays above glow */

.work-header > * {
  position: relative;
  z-index: 2;
}

.work-header h1 {
  font-size: 50px;
  margin-bottom: 18px;
}

.work-header p {
  max-width: 620px;
  margin: auto;
  font-size: 16px;
  color: var(--muted-text);
}

/* GRID */

.work-grid {
  row-gap: 35px;
}

/* WORK CARD */

.work-card {
  background: var(--card-background);
  border-radius: 26px;
  overflow: hidden;
  transition: all 0.45s ease;
  box-shadow: 0 20px 50px rgba(0,0,0,0.06);
  position: relative;
  height: 100%;
}

/* PREMIUM HOVER  */

.work-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 35px 80px rgba(0,0,0,0.12);
}

/* FEATURED CARD */

.featured-card {
  background: linear-gradient(
    145deg,
    rgba(108, 99, 255, 0.08),
    var(--card-background)
  );
  box-shadow: 0 30px 75px rgba(108, 99, 255, 0.18);
}

/* IMAGE */

.work-image {
  overflow: hidden;
}

.work-image img {
  transition: transform 0.5s ease;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.work-card:hover img {
  transform: scale(1.06);
}

/* CARD BODY */

.work-card-body {
  padding: 30px;
}

.work-card-body h3 {
  font-size: 21px;
  margin-bottom: 6px;
}

.work-card-body p {
  font-size: 14px;
  color: var(--muted-text);
  margin-bottom: 20px;
}

/* TAG */

.project-tag {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--branding-color),
    #8b85ff
  );
  color: white;
  font-size: 11px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.4px;
}

/* LINKS */

.work-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CONTACT */

.contact-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 22px;
  padding: 35px 25px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.06);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 35px 75px rgba(108, 99, 255, 0.18);
}

/* FOOTER */

footer {
  margin-top: 90px;
  padding-top: 45px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.contact-box {
  background: linear-gradient(
    135deg,
    rgba(108, 99, 255, 0.08),
    var(--secondary-color)
  );
  padding: 30px 40px;
  border-radius: 24px;
}

.email-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
}

.social-links a {
  margin: 0 12px;
  color: var(--branding-color);
  font-size: 18px;
}

/* REVEAL ANIMATION */

.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.9s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 38px;
  }

  .work-header h1 {
    font-size: 32px;
  }
}