/* --- Global Styles --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  line-height: 1.6;
  color: #333;
  background: #f9f9f9;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 30px;
  background-color: #333; /* initial dark background */
  color: #fff;            /* initial text color */
  transition: background-color 0.3s, color 0.3s;
  z-index: 1000;
}

header a {
  color: inherit;
  text-decoration: none;
  margin: 0 15px;
  transition: color 0.3s;
}

/* Active (scrolled) state */
header.scrolled {
  background-color: #fff; /* changes to white on scroll */
  color: #451b2f;         /* text changes to brand color */
}

header.scrolled a {
  color: #451b2f;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Make all nav links align properly */
nav ul {
  display: flex;
  align-items: center;   /* vertically centers items */
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;             /* spacing between items */
}

nav ul li a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  padding: 8px 12px;
  font-weight: 500;
  transition: color 0.3s;
  line-height: 1;        /* ensures links are vertically centered */
  vertical-align: middle;
}

/* Resume button overrides */
.resume-btn {
  border: 2px solid #ef5ea2;
  border-radius: 12px;
  color: #ef5ea2;
  padding: 8px 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.resume-btn:hover {
  background-color: #ef5ea2;
  color: #fff;
}


.logo {
  color: #fff;          /* initial color */
  font-weight: 600;
  transition: color 0.3s; /* smooth transition */
}

.logo span { 
  color: #ef5ea2;       /* initial pink accent */
  transition: color 0.3s;
}

/* When header is scrolled */
header.scrolled .logo {
  color: #451b2f;       /* main text color on scroll */
}

header.scrolled .logo span {
  color: #ef5ea2;       /* keep your pink accent (or change if desired) */
}


.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #111, #444);
  color: #fff;
  text-align: center;
  padding: 0 20px;
}

.hero .highlight {
  color: #ef5ea2;
}

.hero .btn {
  margin-top: 20px;
  background: #ef5ea2;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

section {
  padding: 5rem 2rem;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Project Name */
.project-name {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ef5ea2; /* Neon Pink */
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.project-name:hover {
  color: #451b2f; /* Aqua hover */
}

/* Flip Card */
.project-card {
  perspective: 1000px; /* Needed for 3D flip */
}

.card-inner {
  position: relative;
  width: 100%;
  padding-top: 100%; /* Makes square tiles */
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.project-card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front and Back Faces */
.card-front, .card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

/* Front (image) */
.card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back (description) */
.card-back {
  background: #333; /* Dark background */
  color: #EAEAEA;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  transform: rotateY(180deg);
  text-align: center;
  font-size: 0.95rem;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;              /* spacing between image and text */
  max-width: 1000px;
  margin: 0 auto;          /* center container */
  padding: 4rem 2rem;
  flex-wrap: wrap;         /* allows responsive stacking on small screens */
}

.about-pic {
  width: 250px;            /* image width */
  height: 250px;           /* image height */
  border-radius: 20px;     /* smooth corners */
  object-fit: cover;
  border: 4px solid #fff; /* pink accent */
}

.about-text {
  flex: 1;                 /* text takes remaining space */
  color: #451b2f;             /* text color on dark background */
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;   /* stack image above text on small screens */
    text-align: center;
  }

  .about-pic {
    margin-bottom: 1.5rem;
  }
}

/*BLOG*/
/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Blog Title */
.blog-title {
  display: block;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #ef5ea2; /* Neon Pink */
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.blog-title:hover {
  color: #451b2f; /* Aqua hover */
}

/* Flip Card */
.blog-card {
  perspective: 1000px;
}

.blog-inner {
  position: relative;
  width: 100%;
  padding-top: 100%; /* makes square tiles */
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.blog-card:hover .blog-inner {
  transform: rotateY(180deg);
}

/* Front and Back Faces */
.blog-front, .blog-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
  backface-visibility: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.6);
}

/* Front (image) */
.blog-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Back (description) */
.blog-back {
  background: #1C1C1E; /* dark background */
  color: #EAEAEA;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  transform: rotateY(180deg);
  text-align: center;
  font-size: 0.95rem;
}

#contact {
  text-align: center;
  padding: 3rem 1rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.contact-icon {
  font-size: 2.5rem;
  color: #ef5ea2; /* Pink by default */
  transition: color 0.3s, transform 0.3s;
}

.contact-icon:hover {
  color: #08D9D6; /* Aqua hover */
  transform: scale(1.2);
}

/* --- Project Section Styling --- */
section.container {
  padding: 3rem 2rem;       /* tighter vertical spacing */
  max-width: 900px;          /* optional: constrain width for better readability */
  margin: 0 auto;            /* center sections horizontally */
  text-align: center;        /* center general text */
}

/* Headings in project sections */
section.container h1.highlight {
  margin-bottom: 1.5rem;
}

/* Paragraphs */
section.container p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Lists inside project sections */
section.container ol,
section.container ul {
  text-align: left;          /* align bullets/numbers properly */
  display: inline-block;     /* center the list block horizontally */
  margin: 1rem auto;         /* vertical spacing + horizontal centering */
  padding-left: 1.5rem;      /* proper indentation for bullets/numbers */
  line-height: 1.6;
}

/* Images inside project sections */
section.container img.project-img {
  max-width: 80%;           /* scale images nicely */
  height: auto;
  margin-top: 1.5rem;
  border-radius: 15px;
}

/* Optional: reduce spacing below last element of section */
section.container:last-child {
  margin-bottom: 2rem;
}

/* Horizontal scroll carousel */
.carousel-container {
  overflow-x: auto;        /* enable horizontal scroll */
  scroll-behavior: smooth; /* smooth scrolling */
  -webkit-overflow-scrolling: touch;
  padding: 1rem 0;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;             /* spacing between images */
}

.carousel-track img {
  flex: 0 0 auto;          /* prevent images from shrinking */
  width: 300px;             /* fixed width for all images */
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.carousel-track img:hover {
  transform: scale(1.05);   /* subtle zoom on hover */
}

