* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}


body {
  background: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e);
  width: 100%;
  height: 100%;
  font-family: Arial, sans-serif;
}



.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

header {
    background: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e);
  padding: 1rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  width: auto;
}





.home-section {
  padding: 120px 0;
}

.home-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.home-text {
  flex: 1;
  min-width: 280px;
  color: #fff;
}

.home-text h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.home-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home-text h1 span {
  color: #4facfe;
}

.home-text p {
  font-size: 1rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.contact-info p {
  margin: 0.3rem 0;
}

.home-buttons {
  margin-top: 1.5rem;
}

.home-buttons .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  margin-right: 1rem;
}

.btn.green {
  background-color: #28a745;
}

.btn.green:hover {
  background-color: #218838;
}

.btn.blue {
  background-color: #007bff;
}

.btn.blue:hover {
  background-color: #0056b3;
}

/* Right side - hexagon image */
.home-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.hexagon {
  width: 360px;
  height: 420px;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  overflow: hidden;
  border: 6px solid;
  border-image: linear-gradient(45deg, violet, #9d4edd) 1; /* gradient violet */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.hexagon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}






nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: #007bff;
}


.section {
  padding: 100px 0;
  color: white !important;
}

section h2 {
  align-self: aria;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white !important;
}
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skills-list li {
  background: #ab84b4;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

form input, form textarea {
  display: block;
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

form button {
  padding: 0.8rem 1.5rem;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background: #0056b3;
}

footer {
  text-align: center;
  padding: 1rem 0;
  background:  #302b63, #24243e;
  color: white !important;
}




.about-section {
  padding: 120px 0 80px 0;
  color: #fff;
  background: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.about-left {
  flex: 1;
  min-width: 280px;
}

.about-left h2 {
  font-size: 2rem;
  color: #a29bfe;
}

.subtitle {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: #b2bec3;
}

.about-left h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-left h1 span {
  color: #6c5ce7;
}

.about-text {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.about-buttons {
  margin-top: 1rem;
}

.about-buttons .btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  margin-right: 1rem;
  transition: all 0.3s ease;
}

.btn.purple {
  background-color: #6c5ce7;
  color: #fff;
}

.btn.purple:hover {
  background-color: #5a4dcf;
}

.btn.outline {
  border: 2px solid #6c5ce7;
  color: #6c5ce7;
  background: transparent;
}

.btn.outline:hover {
  background-color: #6c5ce7;
  color: #fff;
}

.about-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-circle {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid #6c5ce7;
  padding: 5px;
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.6);
}

.profile-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Stats Section */
.about-stats {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 50px;
  gap: 20px;
  max-width: 1200px; /* same as container width */
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

.stat-card {
  flex: 1 1 30%; /* allows 3 cards side by side */
  min-width: 250px; /* responsive minimum */
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px 30px; /* mas malaki padding */
  border-radius: 16px;
  text-align: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
}

.stat-card h3 {
  font-size: 3rem;
  color: #6c5ce7;
}

.stat-card p {
  margin-top: 12px;
  font-size: 1.1rem;
  color: #b2bec3;
}



/* Modal container fade-in */
@keyframes fadeInModal {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Image zoom effect */
@keyframes zoomImage {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  animation: fadeInModal 0.4s ease forwards;
  text-align: center;
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  border: 4px solid#332b91, #24243e;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.2);
  animation: zoomImage 0.4s ease forwards;
}

.close-button {
  position: absolute;
  top: 20px;
  left: 30px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: #333;
  padding: 8px 16px;
  border-radius: 8px;
  transition: background 0.3s;
}

.close-button:hover {
  background: #555;
}




.projects-section {
  padding: 120px 0;
  color: #fff;
  background: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e);
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5rem;
  color: #a29bfe;
}

.subtitle {
  font-size: 1rem;
  color: #b2bec3;
  margin-bottom: 2rem;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
}

.tab {
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: 2px solid #6c5ce7;
  background: transparent;
  color: #6c5ce7;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab.active,
.tab:hover {
  background-color: #6c5ce7;
  color: #fff;
}

.tabs-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tab-content {
  display: none;
  width: 100%;
  animation: fadeIn 0.5s ease forwards;
}

.tab-content.active {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  width: 280px;
  padding: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
}

.card h3 {
  font-size: 1.2rem;
  color: #fff;
}

.card p {
  font-size: 0.95rem;
  color: #b2bec3;
  margin-bottom: 1rem;
}

.card-buttons {
  display: flex;
  justify-content: space-between;
}

.btn.small {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: bold;
  background-color: #6c5ce7;
  color: #fff;
  transition: background-color 0.3s ease;
}

.btn.small:hover {
  background-color: #5a4dcf;
}

.btn.small.outline {
  border: 2px solid #6c5ce7;
  background: transparent;
  color: #6c5ce7;
}

.btn.small.outline:hover {
  background-color: #6c5ce7;
  color: #fff;
}

/* Tech stack icons steady display */
.tech-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
  background: transparent; /* so gradient ng parent ang visible */
}

.tech-icons img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  /* No hover scale para steady */
  transition: none;
}

/* Optional: if gusto mo may light glow pero steady */
.tech-icons img {
  box-shadow: 0 0 15px rgba(108, 92, 231, 0.5);
  border-radius: 12px;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.05);
}


.tech-icons img:hover {
  transform: scale(2);
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}






.contact-section {
  padding: 50px 20px; /* Added padding on mobile */
  display: flex;
  flex-direction: column; /* Center content vertically */
  align-items: center;
  background: linear-gradient(to bottom right, #0f0c29, #302b63, #24243e); /* same bg for consistency */
}

.form-container {
  background: linear-gradient(145deg, #1e1e2f, #2d2d44);
  padding: 40px 30px;
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  text-align: center;
}

.form-title {
  font-size: 28px;
  color: #b48df0;
  font-weight: bold;
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: 14px;
  margin-bottom: 25px;
  color: #ccc;
}

.contact-form {
  width: 100%;
}

.contact-form .input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #888;
  font-size: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px 12px 45px; /* space for icon */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 10px;
  color: #fff;
  outline: none;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #7f00ff;
}

.contact-form textarea {
  resize: vertical;
  height: 120px;
}

.submit-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(to right, #7f00ff, #e100ff);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: linear-gradient(to right, #6500cc, #c400cc);
}

.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  width: 100%;
}

.contact-image {
  flex: 1 1 400px;
  max-width: 500px;
}

.contact-image img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}


.social-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-icons a img {
  width: 30px; /* adjust size here */
  height: 30px;
  object-fit: contain;
  transition: transform 0.3s;
}

.social-icons a img:hover {
  transform: scale(1.2);
}




@media (max-width: 768px) {
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
  }

  .logo {
    order: 2;
    margin-left: auto;
  }

  .hamburger {
    order: 1;
  }

  nav {
    display: none;
    width: 100%;
    margin-top: 10px;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }



  nav ul {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 10px;
  }

  .home-container,
  .about-container,
  .contact-wrapper {
    flex-direction: column;
    padding: 0 20px;
  }

  .home-text h2,
  .home-text h1 {
    font-size: 2rem;
  }

  .home-text p,
  .about-text,
  .subtitle {
    font-size: 1rem;
  }

  .hexagon {
    width: 250px;
    height: 280px;
  }

  .about-left h1 {
    font-size: 2rem;
  }

  .profile-circle {
    width: 200px;
    height: 200px;
  }

  .about-stats {
    flex-direction: column;
    align-items: center;
  }

  .stat-card {
    width: 100%;
    max-width: 320px;
  }

  .tabs {
    flex-direction: column;
    gap: 10px;
  }

  .card {
    width: 100%;
    max-width: 300px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .contact-image {
    max-width: 100%;
  }

  .tech-icons img {
    width: 70px;
    height: 70px;
  }

}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  nav {
    display: none;
    width: 100%;
  }

  nav.active {
    display: block;
    margin-top: 10px;
  }

  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}







.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.modal-content-box {
  background: #1c1b29;
  color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.close-btn {
  display: inline-block;
  margin-bottom: 1rem;
  color: #ff5e5e;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
}

.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




.image-slider-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 60px;
  box-sizing: border-box;
}

.image-slider-modal .slider {
  position: relative;
  width: 90%;
  max-width: 900px;
  height: auto;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  cursor: pointer;
}

.image-slider-modal .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.image-slider-modal .slides img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: #000;
}

.image-slider-modal .prev,
.image-slider-modal .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.image-slider-modal .prev { left: 10px; }
.image-slider-modal .next { right: 10px; }

.image-slider-modal .close-button {
  position: absolute;
  top: 15px;
  left: 15px;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 12px;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .image-slider-modal .slider {
    width: 95%;
  }

  .image-slider-modal .prev,
  .image-slider-modal .next {
    font-size: 1.5rem;
    padding: 8px;
  }

  .image-slider-modal .close-button {
    font-size: 16px;
    padding: 5px 10px;
  }

  .image-slider-modal .slides img {
    max-height: 70vh;
  }
}






.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 15, 30, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal-content-box {
  background: #1c1b29;
  color: #fff;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
}

.close-btn {
  color: #ff5e5e;
  font-size: 1.2rem;
  cursor: pointer;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
}

.hidden {
  display: none;
}






.project-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.project-modal.hidden {
  display: none;
}





.image-slider-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
}



.slider {
  position: relative;
  width: 90%;
  max-width: 700px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease;
}

.slides img {
  width: 100%;
  border-radius: 10px;
}


.slider .prev {
  left: 10px;
}

.slider .next {
  right: 10px;
}



#typewriter-name {
  display: inline-block;
  border-right: 2px solid #af3a82;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Default layout for desktop (no change) */
.home-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
}

/* Responsive fix for small screens */
@media (max-width: 600px) {
  .home-buttons {
    flex-direction: column;
    align-items: center; /* center items horizontally */
    gap: 15px; /* spacing between stacked buttons */
  }

  .home-buttons .btn {
    width: 90%;      /* buttons expand nicely on small screens */
    text-align: center;
    max-width: 300px;
  }
}



#about-typewriter-name {
  display: inline-block;
  animation: blink 0.75s step-end infinite;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}


.about-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 20px;
  flex-wrap: wrap;
}

.about-buttons .btn {
  padding: 10px 20px;
  white-space: nowrap;
  text-align: center;
  flex: 1 1 auto;
  max-width: 200px;
}

/* Responsive behavior for small screens */
@media (max-width: 600px) {
  .about-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .about-buttons .btn {
    width: 90%;
    max-width: none;
  }
}


.stat-card img {
  display: block;
  margin: 0 auto 10px;
  border-radius: 50%;
}





.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

@keyframes border-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
  }
  50% {
    box-shadow: 0 0 12px 5px rgba(138, 43, 226, 0.7);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
  }
}

.service-card {
  background: linear-gradient(135deg, #302b63, #24243e);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, border 0.3s ease;
  outline: none;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card:active {
  border: 2px solid #8a2be2;
  animation: border-glow 0.8s ease-out;
}

.service-card:focus {
  border: 2px solid #8a2be2;
  box-shadow: 0 0 10px 2px rgba(138, 43, 226, 0.5);
}

.service-icon {
  width: 60px;
  margin-bottom: 1rem;
}








