/* Dark Mode Variables */
:root {
  --bg-color: #000000;
  --text-color: #f5f5f5;
  --accent-color: #ff6ec4;
  --gradient: linear-gradient(135deg, #ff6ec4, #7873f5);
}

/* Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  scroll-behavior: smooth;
}

/* Global Font Styles */
body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  background-color: #000000;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

p,
a,
li,
span {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* Example: Hero Section */
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 3rem;
}

.hero p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
}

/* Example: Buttons */
.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}


/* Smooth scrolling for the whole page */
html {
  scroll-behavior: smooth;
}


/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: 0.3s;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  border-radius: 2px;
  transition: 0.3s;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-color);
  color: var(--text-color);
  padding: 0 20px;
  text-align: center;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.hero-illustration {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.hero-illustration img {
  max-width: 70%;
  height: auto;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
  }

  .hero-illustration {
    margin-top: 30px;
  }
}

/* Hero Buttons */
.hero-buttons {
  margin-top: 25px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary Button */
.btn {
  padding: 12px 30px;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
}

.btn:hover {
  transform: scale(1.05);
}

/* Secondary Button */
.btn.secondary {
  background: linear-gradient(135deg, #06beb6, #48b1bf);
  color: #fff;
  border: none;
}

.btn.secondary:hover {
  transform: scale(1.05);
}

/* Responsive Button Text */
@media (max-width: 768px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}


/* About Section */
.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-top: 40px;
}

/* Profile Image */
.about-image img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--accent-color);
  transition: transform 0.4s, box-shadow 0.4s;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 110, 196, 0.5);
}

/* About Text */
.about-text {
  max-width: 600px;
  text-align: left;
  color: var(--text-color);
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.about-text p span {
  color: var(--accent-color);
  font-weight: bold;
}

/* Highlights Cards */
.about-highlights {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.highlight-card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 12px;
  flex: 1 1 150px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  cursor: default;
}

.highlight-card i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  transition: transform 0.3s, color 0.3s;
}

.highlight-card p {
  margin: 0;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
}

.highlight-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 110, 196, 0.4);
}

.highlight-card:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #ff6ec4;
}

.highlight-card:hover p {
  color: #fff;
}

/* Resume Button */
.about-text .btn {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s;
}

.about-text .btn:hover {
  transform: scale(1.05);
  background: #ff6ec4;
}

/* Responsive */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-text {
    max-width: 100%;
  }

  .about-highlights {
    justify-content: center;
  }
}


/* Particles */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  pointer-events: none;
  animation: float 10s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  50% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* Sections */
.section {
  padding: 80px 10%;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--accent-color);
}

/* Skills Grid Layout */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 25px;
  justify-items: center;
  align-items: center;
}

/* Skill Card – Perfect Square */
.skill-card {
  background: #1e1e1e;
  width: 150px;
  /* Fixed width */
  height: 150px;
  /* Same as width for square */
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s, box-shadow 0.4s, background 0.3s;
  cursor: default;
}

/* Hover Effects */
.skill-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 0 20px rgba(255, 110, 196, 0.4);
  background: #2a2a2a;
}

/* Icon Styling */
.skill-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 12px;
  transition: transform 0.3s, color 0.3s;
}

.skill-card:hover i {
  transform: scale(1.2) rotate(10deg);
  color: #ff6ec4;
}

/* Text Styling */
.skill-card p {
  margin-top: 8px;
  font-weight: 500;
  color: var(--text-color);
  transition: color 0.3s;
}

.skill-card:hover p {
  color: #fff;
}

/* Scroll Animation */
.skills-grid .skill-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.skills-grid.show .skill-card {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Animation */
.skills-grid .skill-card:nth-child(1) {
  transition-delay: 0.1s;
}

.skills-grid .skill-card:nth-child(2) {
  transition-delay: 0.2s;
}

.skills-grid .skill-card:nth-child(3) {
  transition-delay: 0.3s;
}

.skills-grid .skill-card:nth-child(4) {
  transition-delay: 0.4s;
}

.skills-grid .skill-card:nth-child(5) {
  transition-delay: 0.5s;
}

.skills-grid .skill-card:nth-child(6) {
  transition-delay: 0.6s;
}



/* Project Grid Layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* Three cards per row */
  gap: 25px;
  justify-items: center;
  align-items: stretch;
  margin-top: 30px;
}

/* Make it responsive for smaller screens */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    /* Two per row on tablets */
  }
}

@media (max-width: 600px) {
  .project-grid {
    grid-template-columns: 1fr;
    /* One per row on mobile */
  }
}

/* Project Card Styling */
.project-card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 300px;             /* desktop default */
  height: 350px;            /* fixed height */
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s, background 0.3s;
  box-sizing: border-box;
}

/* Card Image */
.project-card img {
  width: 100%;
  height: 180px;            /* consistent image size */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.project-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.05);
  box-shadow: 0 0 25px rgba(255, 110, 196, 0.5);
  animation: pulseGlow 1.5s infinite alternate;
}

@keyframes pulseGlow {
  from { box-shadow: 0 0 15px rgba(255, 110, 196, 0.3); }
  to { box-shadow: 0 0 35px rgba(120, 115, 245, 0.6); }
}

/* Buttons inside card */
.project-links {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap; /* ensures wrapping on smaller screens */
}

.project-links .btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s, background 0.3s;

  /* 🔥 Fluid typography: adjusts automatically with screen size */
  font-size: clamp(0.8rem, 2.5vw, 1rem);
}

.project-links .btn:hover {
  transform: scale(1.05);
  background: #ff6ec4;
}

/* Grid layout */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
}

/* Tablet */
@media (max-width: 768px) {
  .project-card {
    width: 260px;
    height: 330px;
  }
  .project-card img {
    height: 160px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .project-card {
    width: 100%;
    max-width: 280px;
    height: 320px;
  }
  .project-card img {
    height: 150px;
  }
}

.social-icons {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-icons a {
  padding: 10px 15px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s;
}

.social-icons a:hover {
  background: var(--gradient);
  transform: scale(1.1);
}

/* Responsive */
@media(max-width: 900px) {
  .contact-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }
}

/* Footer */
.footer {
  background: #000000;
  color: #ccc;
  padding: 25px 10%;
  text-align: center;
  border-top: 2px solid var(--accent-color);
}

.footer .footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer .social-links {
  display: flex;
  gap: 20px;
}

.footer .social-links a {
  color: #ccc;
  font-size: 1.4rem;
  transition: transform 0.3s, color 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 600px) {
  .footer {
    padding: 20px 5%;
  }

  .footer .social-links a {
    font-size: 1.2rem;
    gap: 15px;
  }
}


/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.skills-grid .skill-card,
.project-grid .project-card {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.skills-grid.show .skill-card,
.project-grid.show .project-card {
  opacity: 1;
  transform: translateY(0);
}

.skills-grid .skill-card:nth-child(1),
.project-grid .project-card:nth-child(1) {
  transition-delay: 0.1s;
}

.skills-grid .skill-card:nth-child(2),
.project-grid .project-card:nth-child(2) {
  transition-delay: 0.2s;
}

.skills-grid .skill-card:nth-child(3),
.project-grid .project-card:nth-child(3) {
  transition-delay: 0.3s;
}

.skills-grid .skill-card:nth-child(4),
.project-grid .project-card:nth-child(4) {
  transition-delay: 0.4s;
}

.skills-grid .skill-card:nth-child(5),
.project-grid .project-card:nth-child(5) {
  transition-delay: 0.5s;
}

.skills-grid .skill-card:nth-child(6),
.project-grid .project-card:nth-child(6) {
  transition-delay: 0.6s;
}

/* Mobile */
@media(max-width:768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: black;
    width: 200px;
    padding: 20px;
    gap: 20px;
    transition: 0.3s;
    text-align: center;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active div:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active div:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active div:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* Design Portfolio Section */
.design-section {
  padding: 80px 20px;
  background: #000000;
  color: #fff;
  text-align: center;
}

/* Gradient Animated Heading */
.design-section h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 2.8rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.design-section p {
  margin-bottom: 50px;
  color: #ccc;
  font-size: 1rem;
}

/* Grid Layout */
.design-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  justify-content: center;
  margin: 0 auto;
  max-width: 1200px;
}

/* Design Card */
.design-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 5;     /* Keeps proportion same */
  max-width: 300px;        /* Equal to project card */
  width: 100%;             /* Responsive across devices */
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.design-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
  transition: transform 0.5s ease;
}

/* Hover Effect */
.design-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.design-card:hover img {
  transform: scale(1.08);
}

/* Overlay */
.design-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 15px;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.design-card:hover .design-overlay {
  transform: translateY(0);
}

.design-overlay h3 {
  margin: 0 0 5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.design-overlay p {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
}

/* Responsive */
@media(max-width: 600px) {
  .design-section h2 {
    font-size: 2rem;
  }
  .design-overlay {
    text-align: center;
    padding: 20px;
  }
}
