/* --- 1. MODERN VARIABLES (Theme Engine) --- */
:root {
  --bg-deep: #030712;
  /* Deepest Navy/Black */
  --bg-card: rgba(255, 255, 255, 0.03);
  --primary: #6366f1;
  /* Indigo Glow */
  --accent: #f59e0b;
  /* Amber/Orange */
  --text-main: #f3f4f6;
  /* White-ish */
  --text-muted: #9ca3af;
  /* Grey */
  --text-body: #d1d5db;
  /* Light Grey for paragraphs */
  --glass-border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- 2. RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.1) 0%, transparent 40%);
}

a {
  text-decoration: none;
}

/* --- 3. HEADER & LOGO --- */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 12px 30px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.text-logo {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  transition: 0.3s;
}

.text-logo .highlight {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-button {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.3s;
}

.nav-button:hover,
.nav-button.active {
  color: var(--text-main);
}

.contact-us-btn {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.contact-us-btn:hover {
  background: #4f46e5;
  transform: scale(1.05);
}

.menu-icon {
  display: none;
}

/* --- 4. HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 8%;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(90deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-button {
  display: inline-block;
  background: black;
  color: white;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  transition: 0.3s;
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

/* --- 5. HEADERS & TITLES --- */
.text-header {
  text-align: center;
  margin: 100px 0 50px;
}

.text-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

.underline {
  width: 60px;
  height: 4px;
  background: var(--accent);
  margin: 15px auto;
  border-radius: 10px;
}

/* --- 6. HOME PAGE: CARDS, STRIPS, SLIDER --- */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 8%;
  margin-bottom: 50px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: 24px;
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-align: center;
}

.card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  transform: translateY(-10px);
}

.card-img {
  height: 60px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.2));
}

.card-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tech-slider-container {
  padding: 50px 0;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.tech-slider {
  display: flex;
  gap: 70px;
  animation: scroll 30s linear infinite;
}

.tech-item img,
.tech-img {
  height: 120px;
  width: auto;
  filter: grayscale(1) invert(1);
  mix-blend-mode: screen;
  opacity: 0.7;
  transition: 0.3s;
}

.tech-item:hover img,
.tech-item:hover .tech-img {
  opacity: 1;
  transform: scale(1.15);
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.full-feature-strip {
  padding: 80px 0;
  margin-bottom: 80px;
  color: white;
  background: rgba(0, 0, 0, 0.2);
}

.feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.white-header h1 {
  color: white !important;
}

.feature-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.feature-minimal {
  flex: 1;
  min-width: 200px;
  text-align: center;
}

.icon-circle {
  width: 90px;
  height: 90px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.feature-minimal:hover .icon-circle {
  transform: scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.feat-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: white;
}

.feat-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.choose-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  padding: 0 8%;
  margin-bottom: 80px;
}

.feature-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: 0.3s;
}

.feature-item:hover {
  border-color: var(--accent);
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-main);
}

/* --- 7. ABOUT ME PAGE --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 50px;
  line-height: 1.8;
  text-align: left;
}

.personal-about-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.profile-image-container img {
  border-radius: 50%;
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.about-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text-main);
  text-align: center;
}

.sub-title {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary);
  font-weight: 700;
  border-left: 4px solid var(--accent);
  padding-left: 15px;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 15px;
}

.about-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.about-list li {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
}

.about-list li::before {
  content: "✔";
  color: var(--accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.highlight-box {
  background: rgba(15, 47, 99, 0.3);
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid var(--primary);
  font-weight: 500;
}

/* --- 8. SKILLS PAGE --- */
.skills-wrapper {
  max-width: 1000px;
  margin: 0 auto 80px auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 0 20px;
}

.skill-category {
  background-color: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.skill-category h2 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 25px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
  color: #fff;
}

.progress-bg {
  width: 100%;
  height: 10px;
  background-color: #333;
  border-radius: 5px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--primary);
  border-radius: 5px;
  width: 0%;
}

.soft-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.soft-skill-tag {
  background: rgba(0, 0, 0, 0.5);
  color: #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid var(--glass-border);
  transition: 0.3s;
}

.soft-skill-tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* --- 9. PORTFOLIO COLLAGE & MODAL --- */
.filter-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 2px solid var(--glass-border);
  color: #fff;
  padding: 10px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.portfolio-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  height: 280px;
  background: #2a2a2a;
  box-shadow: var(--shadow-sm);
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.2) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  transition: opacity 0.3s ease;
  color: white;
}

.portfolio-item:hover img {
  transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.overlay-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 5px;
}

.overlay-subtitle {
  font-size: 0.9rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 40px 20px;
}

.modal-content {
  background-color: #1e1e1e;
  margin: 0 auto;
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  position: relative;
  color: white;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalFadeIn 0.4s ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  color: white;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.2s;
}

.close-btn:hover {
  background: rgba(255, 0, 0, 0.8);
}

.modal-image-wrapper {
  width: 100%;
  height: 50vh;
  overflow-y: auto;
  background: #000;
}

.modal-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

.modal-image-wrapper::-webkit-scrollbar {
  width: 8px;
}

.modal-image-wrapper::-webkit-scrollbar-track {
  background: #111;
}

.modal-image-wrapper::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 4px;
}

.modal-details {
  padding: 40px;
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.modal-tech {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.modal-features {
  margin-bottom: 30px;
  padding-left: 20px;
}

.modal-features li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #ddd;
}

.modal-btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  transition: 0.3s;
}

.modal-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* --- 10. CONTACT ME PAGE --- */
.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 80px;
  display: flex;
  justify-content: center;
}

.contact-card-centered {
  background: var(--bg-card);
  padding: 60px 40px;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 600px;
  width: 100%;
}

.contact-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact-desc {
  color: var(--text-body);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-details-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.detail-box {
  padding: 15px 25px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
}

.detail-box:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
}

.detail-icon {
  font-size: 1.2rem;
}

.detail-box a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
}

.divider {
  height: 1px;
  background: var(--glass-border);
  width: 100%;
  margin: 30px 0;
}

.whatsapp-btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #25D366;
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: 0.3s;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn-large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* --- 11. FOOTER --- */
.footer {
  background: #000;
  border-top: 1px solid var(--glass-border);
  padding: 80px 8% 30px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 50px;
}

.footer h3 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.2rem;
}

.footer-link {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: 0.2s;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  color: #444;
  font-size: 0.9rem;
  border-top: 1px solid #111;
  padding-top: 30px;
}

/* --- 12. RESPONSIVE & MOBILE MENU --- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .header {
    width: 95%;
    padding: 10px 20px;
  }

  .hero-button {
    gap: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .skills-wrapper {
    grid-template-columns: 1fr;
  }

  .about-card {
    padding: 30px 20px;
  }

  .about-title {
    font-size: 1.6rem;
  }

  .tech-slider {
    gap: 40px;
  }

  .tech-item img,
  .tech-img {
    height: 100px;
  }

  .feature-row {
    flex-direction: column;
    align-items: center;
  }

  /* Mobile Menu */
  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
  }

  .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
  }

  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    margin-top: 15px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid white;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    gap: 20px;
    text-align: center;
    animation: slideDown 0.3s ease-out forwards;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .contact-us-btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .menu-icon.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-icon.open .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-icon.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

@media (max-width: 600px) {
  .contact-details-row {
    flex-direction: column;
    gap: 15px;
  }

  .whatsapp-btn-large {
    width: 100%;
  }

  .hero-button {
    margin-top: 10px;
  }
}