* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: #0f0f1a;
  color: #f3f3f3;
}

header {
  position: fixed;
  width: 100%;
  top: 0;
  background: linear-gradient(90deg, #1a1a40, #3a0ca3, #b5179e);
  z-index: 1000;
}

#navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 2rem;
  height: 75.5px;
  width: auto;
}

#navbar .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
}

#navbar .nav-links {
  display: flex;
  list-style: none;
}

#navbar .nav-links li {
  margin-left: 1.5rem;
}

#navbar .nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

#navbar .nav-links a:hover {
  color: #1060e2;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  #navbar .nav-links {
    flex-direction: column;
    position: absolute;
    top: 74.5px;
    right: 0;
    width: 100%;
    background-color: rgba(26, 26, 64, 0.24);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s ease-in-out;
    gap: 1.5rem;
    padding: 0;
  }

  #navbar .nav-links.active {
    max-height: 500px;
    top: 75px;
    padding: 1rem 0;
  }

  #navbar .nav-links li {
    margin: 5px 0;
    text-align: center;

  }

  #navbar .nav-links a {
    font-size: 1.2rem;
  }
}

/* Welcome Section Animation */

#welcome-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
  background: linear-gradient(135deg, #3a0ca3, #7209b7, #b5179e, #f72585);
  color: #fff;
  padding: 2rem;
}

.welcome-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* Rotating text wrapper */
.rotating-text {
  display: flex;
  flex-direction: column;
  align-items: center;   /* horizontal centering */
  justify-content: center; /* vertical centering if parent allows */
  text-align: center;
  width: auto;
  height: auto;
  margin: 0 auto 0 auto;
}

.rotating-text p {
  font-size: 2.2rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Each word inside */
.rotating-text .word {
  position: absolute;
  opacity: 0;
  white-space: nowrap;
  text-align: center;
  left: 50%;
  transform: translateX(-50%); /* keeps it centered horizontally */
}

/* Active word */
.rotating-text .word.active {
  opacity: 1;
  position: relative;
}

/* Letter animation */
.letter {
  display: inline-block;
  position: relative;
  transform: translateZ(25px);
  transform-origin: 50% 50% 25px;
}
.letter.out {
  transform: rotateX(90deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.letter.behind {
  transform: rotateX(-90deg);
}
.letter.in {
  transform: rotateX(0deg);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}

/* color palette */
.alizarin { color: #e74c3c; }
.wisteria { color: #ff2ef1; }
.peter-river { color: #3498db; }
.emerald { color: #2ecc71; }
.sun-flower { color: #f1c40f; }

/* small-screen adjustments (keeps layout intact) */
@media (max-width: 768px) {
  .rotating-text {
    font-size: 1.2rem;
  }
}


.btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, #ff6b6b 20%, #bb03f8);
  color: #fff;
  text-decoration: none;
  transition: 0.4s ease-in-out;
}

.btn:hover {
  background: #b5179e;
}

section {
  padding: 5rem 2rem;
}

.container {
  max-width: 1000px;
  margin: auto;
}

h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #40afff;
}

.skills ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  list-style: none;
  align-items: center;
}

.skills li {
  background: #1a1a40;
  padding: 1rem;
  border-radius: 10px;
}

.skills li i {
  font-size: 2rem;
  color: #ffffff;
}

.skills li p {
  text-align: left;
  font-size: 1.1rem;
  color: #ccc;
  margin-top: 1rem;
}

.skills h3 {

  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-align: center;
  padding: 30px 0 10px 0;
}

#projects {
  margin: -60px 0 0 0;
}

.project-tile {
  background: #1a1a40;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 12px;
}

.project-tile h3 {
  margin-bottom: 0.8rem;
  color: #f72585;
}

.project-tile p {
  margin-bottom: 1rem;
}

#artwork {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #1a1a2e, #2e1a47);
  color: #fff;
  text-align: center;
  width: 100%;
}

#artwork h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #9a8cff;
}

#artwork p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
}

.art-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.art-tile {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.art-tile:hover {
  transform: translateY(-10px);
}

.art-tile img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.art-tile h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ff4f81;
}

.contact-links {
  text-align: center;
  margin-top: 2rem;
}

.contact-links a {
  display: inline-block;
  margin: 0.5rem 1rem;
  font-size: 1.2rem;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.contact-links a:hover {
  color: #ffd60a;
}


footer {
  background: #1a1a40;
  text-align: center;
  padding: 1rem;
  color: #ccc;
}


@media (max-width: 600px) {
  .skills ul {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .project-tile {
    padding: 1rem;
  }

  .project-tile h3 {
    font-size: 1.5rem;
  }

  .project-tile p {
    font-size: 0.9rem;
  }

  .art-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  #navbar .logo {
    font-size: 1.2rem;
  }

  .welcome-content h1 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  section {
    padding: 3rem 1rem;
  }
}

.certificates-gallery {
  display: flex;
  flex-direction: column;
  /* stack certificates vertically */
  align-items: center;
  /* center them horizontally */
  gap: 2rem;
  /* space between certificates */
  margin-top: 2rem;
}


.certificates p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #ccc;
}

/* Certificate container styling */
.certificate-item {
  background: rgba(255, 255, 255, 0.05);
  /* subtle background */
  border: 3px solid #40afff;
  /* border box */
  border-radius: 1rem;
  /* rounded corners */
  padding: 1.5rem;
  box-sizing: border-box;
  /* include padding/border in width */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  margin: 2rem auto;
  /* center in container */

  /* Flex centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
  transition: transform 0.3s ease;
}

.certificate-item:hover {
  transform: translateY(-10px);
}

/* Certificate image */
.certificate-item img {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 3px solid #00d5ff;
}

/* Certificate link styling */
.certificate-item a {
  color: #40afff;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}

.certificate-item a:hover {
  text-decoration: underline;
}

/* Optional: description text inside certificate */
.certificate-item p {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 0.5rem;
}


.mockup-gallery {
  padding: 4rem 2rem;
  color: #fff;
  text-align: center;
}


.mockup-gallery h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #9a8cff;
}


.mockup-tile {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.mockup-img {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  text-align: center;
}

.mockup-img:hover {
  transform: translateY(-10px);
}

.mockup-img img {
  width: 100%;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.mockup-img h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #ff4f81;
}

.mockup-tile p {
  font-size: 1.3rem;
  line-height: 1.6;
}


.proj-sub-heading {
  font-size: 1.7rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
  font-family: 'Times New Roman', Times, serif;
}

svg {
  width: 2.5rem;
  vertical-align: middle;
  margin-right: 0.5rem;
}

figcaption h3 {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  text-align: center;
}

figcaption p {
  font-size: 1rem;
  color: #ccc;
  text-align: center;
  margin-top: 1rem;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #333;
  color: #fff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  display: none;
  z-index: 1000;
  transition: opacity 0.3s ease-in;
  opacity: 0.9;
}

.back-to-top.show {
  display: block;
}

.back-to-top {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

#about strong {
  color: #85c0eb;
}

#about p {
  font-size: 1rem;
  line-height: 1.8;
  margin: 1rem 0 1.8rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2rem;
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding-top: 3.5rem;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border: 4px solid #00d5ff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  margin: auto;
}

.art-gallery img,
.mockup-gallery img,
.certificates-gallery img {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.art-gallery img:hover,
.mockup-gallery img:hover,
.certificates-gallery img:hover {
  transform: scale(1.02);
}

/* Initial hidden state */
.scroll-fade,
.scroll-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* When in view */
.scroll-fade.visible,
.scroll-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}

.scroll-fade.visible {
  opacity: 1;
}

/* Smooth fade-in for sections */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Button Css */

.btn-primary,
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #f06595);
  color: #fff;
  border: none;
}

.btn-outline {
  background: transparent;
  color: #ff6b6b;
  border: 2px solid #ff6b6b;
}

.btn-primary:hover,
.btn-outline:hover,
.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ripple effect */
.btn-primary::after,
.btn-outline::after,
.btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
}

.btn-primary:hover::after,
.btn-outline:hover::after {
  width: 300%;
  height: 300%;
}

/* Button Group */
.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin: 32px 0;
  flex-direction: row-reverse;
}

.scroll-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.scroll-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.pdf-container {
  justify-content: center;
  align-items: center;
  margin: 2rem;
}

.pdf-container h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ff4f81;
}

.pdf-container p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #ccc;
}

.pdf-iframe {
  width: 100%;
  max-width: 800px;       /* limit size on desktop */
  aspect-ratio: 1 / 1.414; /* A4 page ratio */
  border: 2px solid #2c4a60;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto; /* center on page */
}

.pdf-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 850px; /* keeps it from being huge on desktop */
  padding: 1.5rem;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); /* subtle translucent card */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* soft shadow for depth */
}

@media (max-width: 768px) {
  .pdf-iframe {
    height: 400px;
  }
}

.container, section, header, footer {
  max-width: 100%;
  overflow-x: clip; /* layout fix */
}