/* ==================== GOOGLE FONTS ==================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* ==================== VARIABLES CSS ==================== */
:root {
  --header-height: 3rem;

  /* ========== Colors ========== */
  /* HSL Color Mode - DARK & VIBRANT THEME */
  --hue-color: 215;
  /* Deep Blue */
  --first-color: hsl(var(--hue-color), 85%, 55%);
  --first-color-second: hsl(var(--hue-color), 69%, 61%);
  --first-color-alt: hsl(var(--hue-color), 57%, 50%);
  --first-color-lighter: hsl(var(--hue-color), 92%, 85%);

  --title-color: hsl(var(--hue-color), 80%, 96%);
  /* Light White */
  --text-color: hsl(var(--hue-color), 20%, 75%);
  /* Light Gray */
  --text-color-light: hsl(var(--hue-color), 8%, 65%);

  --input-color: hsl(var(--hue-color), 29%, 16%);
  --body-color: hsl(var(--hue-color), 28%, 12%);
  /* Dark Background */
  --container-color: hsl(var(--hue-color), 29%, 16%);
  /* Slightly lighter than body */

  --scroll-bar-color: hsl(var(--hue-color), 12%, 48%);
  --scroll-thumb-color: hsl(var(--hue-color), 12%, 36%);

  --accent-glow: 0 0 15px rgba(59, 130, 246, 0.5);
  /* Neon glow effect */
  --card-hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  /* ========== Font and Typography ========== */
  --body-font: 'Poppins', sans-serif;

  --big-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: .875rem;
  --smaller-font-size: .813rem;

  /* ========== Font Weight ========== */
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /* ========== Margins Bottom ========== */
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

  /* ========== Z Index ========== */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

@media screen and (min-width: 968px) {
  :root {
    --big-font-size: 3.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1.125rem;
    --small-font-size: 1rem;
    --smaller-font-size: .875rem;
  }
}

/* ==================== BASE ==================== */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 0 var(--header-height) 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
}

h1,
h2,
h3,
h4 {
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .3s;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==================== REUSABLE CSS CLASSES ==================== */
.section {
  padding: 4rem 0 2rem;
}

.section-title {
  font-size: var(--h1-font-size);
  color: var(--title-color);
  text-align: center;
  margin-bottom: var(--mb-3);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--first-color);
  margin: .5rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  display: block;
  font-size: var(--small-font-size);
  margin-bottom: var(--mb-3);
  text-align: center;
  color: var(--text-color-light);
}

.highlight {
  color: var(--first-color);
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1024px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

.grid {
  display: grid;
  gap: 1.5rem;
}

/* ==================== HEADER (Floating Glassmorphism) ==================== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: transparent;
  padding-top: 1rem;
  transition: .4s;
}

/* Floating Header */
#header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1024px;
  background-color: rgba(23, 23, 33, 0.2);
  /* Very subtle initially */
  z-index: var(--z-fixed);
  transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1.5rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.02);
  padding: 0.5rem 0;
  /* Add padding to wrapper */
}

/* Scrolled State: Compact Glass Pill */
#header.scroll-header {
  top: 1rem;
  width: calc(100% - 4rem);
  /* Shrink width slightly */
  background-color: rgba(11, 17, 32, 0.85);
  /* Darker */
  backdrop-filter: blur(16px);
  /* Strong blur */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Interactive Hover Effect */
#header:hover {
  background-color: rgba(23, 23, 33, 0.95);
  border-color: var(--first-color);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  transform: translateX(-50%) scale(1.02);
  /* Subtle scale up */
}

/* ==================== NAV ==================== */
.navbar {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFF;
  font-weight: var(--font-bold);
  font-size: 1.25rem;
  letter-spacing: 0.5px;
  transition: .3s;
}

.logo:hover {
  text-shadow: 0 0 15px rgba(59, 130, 246, 0.8);
  transform: scale(1.05);
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--first-color);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

.nav-menu {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: rgba(23, 23, 33, 0.98);
  padding: 2rem 1.5rem 4rem;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, .15);
  border-radius: 1.5rem 1.5rem 0 0;
  transition: .3s;
  z-index: var(--z-fixed);
  backdrop-filter: blur(10px);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

/* Logo Item in List */
.nav-logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: var(--small-font-size);
  color: var(--text-color);
  font-weight: var(--font-medium);
  transition: .3s;
}

.nav-link:hover {
  color: var(--first-color);
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.nav-close {
  position: absolute;
  right: 1.3rem;
  bottom: .5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--first-color);
}

.nav-toggle {
  font-size: 1.5rem;
  color: #FFF;
  cursor: pointer;
}

.show-menu {
  bottom: 0;
}

.active-link {
  color: var(--first-color);
  position: relative;
}

.active-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  width: 20px;
  height: 2px;
  background-color: var(--first-color);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--first-color);
}

/* ==================== HERO ==================== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* Black background to fuse with image shadow */
  background-color: #000;
  background-image: radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 40%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 4rem;
}

.hero-text .greeting {
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: var(--mb-0-5);
  font-weight: var(--font-bold);
}

.hero-text h1 {
  font-size: var(--big-font-size);
  margin-bottom: var(--mb-0-5);
  line-height: 1.1;
  color: #FFF;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}

.typing-container {
  height: 40px;
  margin-bottom: var(--mb-1);
}

.typing-container .typing {
  color: var(--first-color);
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: var(--accent-glow);
}

.hero-text .description {
  margin-bottom: var(--mb-2);
  font-size: var(--normal-font-size);
  color: var(--text-color);
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.75rem;
  /* Larger buttons */
  border-radius: .75rem;
  font-weight: var(--font-semi-bold);
  transition: .3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--first-color);
  color: #FFF;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.6);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}

.btn-outline:hover {
  background-color: var(--first-color);
  color: #FFF;
  box-shadow: var(--accent-glow);
}

.hero-social {
  display: flex;
  gap: 1.5rem;
  margin-top: var(--mb-2);
}

/* Hero Image with Fade Effect */
.hero-img {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-img img {
  width: 280px;
  /* Mobile base start */
  max-width: 100%;
  border-radius: 20px;
  /* Fade Effect: Soft fade into background */
  mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 90%);
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.2)) grayscale(10%);
  animation: floatImg 5s ease-in-out infinite;
}

@keyframes floatImg {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.social-icon {
  font-size: 1.75rem;
  color: var(--text-color);
  transition: .3s;
}

.social-icon:hover {
  color: var(--first-color);
  transform: translateY(-5px);
  text-shadow: var(--accent-glow);
}

.hero-scroll {
  display: none;
}

/* ==================== ABOUT ==================== */
.about-img-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--mb-2);
}

.about-img {
  width: 250px;
  height: 250px;
  border-radius: 2rem;
  /* Soft square */
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-hover-shadow);
  border: 2px solid var(--first-color);
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .5s;
}

.about-img:hover img {
  transform: scale(1.1);
}

.about-data {
  text-align: center;
}

.about-description {
  margin-bottom: var(--mb-2-5);
  line-height: 1.6;
}

.about-buttons {
  display: flex;
  justify-content: center;
}

/* ==================== EDUCATION (Modern Cards) ==================== */
.education-card {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  /* Subtle border */
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  transition: .4s;
  position: relative;
  overflow: hidden;
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-hover-shadow);
  border-color: var(--first-color);
}

/* Decoration for cards */
.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--first-color);
}

.edu-icon {
  font-size: 3rem;
  color: var(--first-color);
  background: rgba(59, 130, 246, 0.1);
  padding: 1.25rem;
  border-radius: 1rem;
}

.edu-content h3 {
  margin-bottom: .5rem;
  color: #FFF;
}

.edu-degree {
  font-size: var(--normal-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.edu-status {
  color: var(--text-color-light);
  margin-bottom: 1.5rem;
}

.edu-achievements ul {
  list-style: none;
  padding: 0;
}

.edu-achievements li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: .5rem;
  color: var(--text-color);
}

.edu-achievements li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--first-color);
}

/* ==================== SKILLS (Tech Grid) ==================== */
.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* Slightly wider cards */
  gap: 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.03);
  /* Semi-transparent */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-category:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--first-color);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
  /* Blue glow */
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cat-header i {
  font-size: 2rem;
  color: var(--first-color);
  filter: drop-shadow(0 0 5px rgba(59, 130, 246, 0.5));
}

.cat-header h3 {
  color: #FFF;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
}

.cat-list li {
  padding: .6rem 0;
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-color-light);
  /* Lighter text for readability */
  font-size: var(--normal-font-size);
}

.cat-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--first-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--first-color);
  /* Glowing dot */
}

/* Soft Skills & Tools */
.bottom-skills-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.soft-skills,
.software-tools {
  background-color: var(--container-color);
  padding: 2rem;
  border-radius: 1.5rem;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.tag-pill {
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--first-color);
  padding: .5rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid rgba(59, 130, 246, 0.2);
  font-size: var(--small-font-size);
  transition: .3s;
}

.tag-pill:hover {
  background-color: var(--first-color);
  color: #FFF;
  box-shadow: var(--accent-glow);
}

.tools-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.tool-item {
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: .3s;
  cursor: default;
  color: var(--text-color);
}

.tool-item:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--first-color);
  transform: translateY(-5px) rotate(3deg);
  color: #FFF;
}

/* ==================== ACADEMIC TRAYECTORIA ==================== */
.trajectory-section {
  position: relative;
  padding-bottom: 6rem;
}

.academic-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.semester-card {
  background: rgba(23, 23, 33, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1.5rem;
  padding: 1.75rem;
  transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.semester-card:hover {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--first-color);
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.semester-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.semester-header h4 {
  color: var(--first-color);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.semester-badge {
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: #FFF;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
  font-size: 0.9rem;
}

.subjects-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.subject-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  transition: .3s;
  border: 1px solid transparent;
}

.subject-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.subject-item.pending {
  opacity: 0.6;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.sub-info {
  display: flex;
  flex-direction: column;
}

.sub-code {
  font-size: 0.65rem;
  color: var(--text-color-light);
  margin-bottom: 2px;
  opacity: 0.7;
}

.sub-name {
  font-size: 0.85rem;
  color: #e2e8f0;
  font-weight: 500;
  line-height: 1.3;
}

.sub-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 60px;
}

.sub-credits {
  font-size: 0.7rem;
  color: var(--text-color-light);
  margin-bottom: 2px;
}

.sub-grade {
  font-weight: bold;
  font-size: 0.95rem;
  color: var(--text-color);
}

.grade-high {
  color: #34d399;
  /* Emerald Green */
  text-shadow: 0 0 8px rgba(52, 211, 153, 0.25);
}

.grade-pending {
  color: var(--text-color-light);
  font-style: italic;
  font-size: 0.75rem;
}

/* ==================== ANIMATIONS & SCROLL ==================== */

/* Hide Header on Scroll Down */
/* Hide Header on Scroll Down */
#header.hide-nav {
  transform: translateY(-100%);
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== PROJECTS (Improved Images) ==================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.project-card {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: .4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(59, 130, 246, 0.4);
}

.project-img-wrapper {
  position: relative;
  height: 240px;
  overflow: hidden;
  width: 100%;
  background-color: #0b0f19;
  /* Very dark background for padded images */
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Back to cover first, but with centered position */
  object-position: center top;
  /* Focus on top part usually important for websites */
  transition: transform .6s ease;
}

/* Option: If user really wants 'contain', use this class modification or JS toggle. 
   For now, 'cover' + 'center top' is usually what 'looks bad' means (cropping headers). 
   Let's ensure images look good. */

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-links {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: .3s;
}

.project-card:hover .project-links {
  opacity: 1;
}

.project-link-btn {
  width: 55px;
  height: 55px;
  background-color: var(--first-color);
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
  transform: scale(0.8);
  transition: .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover .project-link-btn {
  transform: scale(1);
}

.project-link-btn:hover {
  background-color: #FFF;
  color: var(--first-color);
  transform: scale(1.1);
}

.project-data {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.35rem;
  margin-bottom: .5rem;
  color: #FFF;
  line-height: 1.3;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.25rem;
}

.tag {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: .35rem .85rem;
  border-radius: 2rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--first-color-lighter);
  font-weight: 600;
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.project-description {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* ==================== CONTACT ==================== */
/* ==================== CONTACT ==================== */
.contact-container {
  background-color: var(--container-color);
  padding: 3rem;
  /* Smaller padding on mobile */
  border-radius: 2rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 0;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: .3s;
}

/* Form Styling */
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form h3 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-form .form-group {
  margin-bottom: 1.5rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 1rem;
  background-color: rgba(11, 17, 32, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  color: #FFF;
  font-size: 1rem;
  transition: .3s;
}

.contact-card:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transform: translateY(-5px);
  border-color: var(--first-color);
}

.contact-card i {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 1rem;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #FFF;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--first-color);
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}

.btn-full {
  width: 100%;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: #0b1120;
  /* Very dark blue */
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
  margin-top: 4rem;
}

/* ==================== DETAILED PROJECTS PAGE ==================== */
.main-projects {
  padding-top: 6rem;
}

.project-detail-card {
  background-color: var(--container-color);
  border-radius: 1.5rem;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-detail-img {
  position: relative;
  height: 300px;
}

.detail-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: .4s;
}

.project-detail-img:hover .detail-overlay {
  opacity: 1;
}

.detail-tags {
  margin-bottom: 1.5rem;
  display: flex;
  gap: .75rem;
}

.project-features {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 1rem;
  margin-top: 2rem;
}

.project-features h4 {
  margin-bottom: 1rem;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.project-features li {
  padding: .5rem 0;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

/* ==================== RESPONSIVE ==================== */
@media screen and (min-width: 768px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .nav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }

  .nav-logo-item {
    margin-bottom: 0;
    margin-right: auto;
  }

  .nav-menu {
    border-radius: 0;
    width: 100%;
    left: auto;
    right: auto;
    transform: none;
    bottom: initial;
    padding: 0;
    top: auto;
    background: transparent;
    box-shadow: none;
    height: 100%;
    display: flex;
    align-items: center;
    position: static;
    /* Force static to move with parent #header */
  }

  .nav-toggle,
  .nav-close {
    display: none;
  }

  .hero-content {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .hero-img {
    order: -1;
    /* Move Image to Left */
    justify-content: center;
  }

  .hero-img img {
    width: 500px;
    /* Slightly larger for better blend range */
    /* Desktop Fade: Stronger fusion with background */
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
    filter: grayscale(15%) contrast(1.1) brightness(0.95);
    /* Tone matching */
    object-fit: cover;
  }

  .hero-scroll {
    display: block;
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
  }

  .about-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .about-data,
  .about-description {
    text-align: left;
  }

  .about-buttons {
    justify-content: flex-start;
  }

  .contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }

  .project-detail-card {
    grid-template-columns: 1fr 1fr;
  }

  .project-detail-img {
    height: 100%;
    min-height: 400px;
  }
}