

/* Reset and base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #f0f4f8, #e0ecff);
  color: #1a1a1a;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem;
}

/* Header */
.header {
  background: #fffffff8;
  padding: 1rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #005e91;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.nav-links a:hover {
  background: #f0f0f0;
  color: #005b8c;
}

/* Mobile toggle */
.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    color: #005e91;
  }

  .nav-links {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
    background: #ffffff;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    width: 100%;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    flex: 1 0 30%;
    text-align: center;
  }
}



.hero-section {
  background: linear-gradient(135deg, #f0f4ff, #ecfaff);
  padding: 4rem 1rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 960px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-image img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 4px solid #0077b6;
  background: white;
  object-fit: cover;
  margin-bottom: 0.8rem;
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.15);
}

.hero-socials {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-socials a {
  font-size: 1.8rem;
  color: #0077b6;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-socials a:hover {
  transform: scale(1.25);
  color: #00b4d8;
}

.hero-text h1 {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
  color: #003554;
}

.hero-text h2 {
  font-size: 1.6rem;
  color: #0077b6;
  height: 2rem;
  margin-bottom: 1rem;
}

.typed-text {
  font-weight: 600;
}

.cursor {
  display: inline-block;
  width: 2px;
  background-color: #0077b6;
  animation: blink 0.5s steps(2, start) infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-text p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.hero-btn {
  background: #0077b6;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 500;
}

.hero-btn:hover {
  background: #005b8c;
  color: #e4e9ff;
}

/* Responsive */
@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    gap: 3rem;
    text-align: left;
    justify-content: center;
  }

  .hero-image {
    text-align: center;
  }

  .hero-image img {
    width: 240px;
    height: 240px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

/* Floating Bubbles Animation */
.background-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.background-animation li {
  position: absolute;
  list-style: none;
  display: block;
  width: 20px;
  height: 20px;
  background: rgba(0, 70, 182, 0.455);
  animation: float 20s linear infinite;
  bottom: -150px;
  border-radius: 50%;
}

.background-animation li:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.background-animation li:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.background-animation li:nth-child(3) { left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.background-animation li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.background-animation li:nth-child(5) { left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.background-animation li:nth-child(6) { left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.background-animation li:nth-child(7) { left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.background-animation li:nth-child(8) { left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.background-animation li:nth-child(9) { left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.background-animation li:nth-child(10) { left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes float {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  50%  { opacity: 0.4; }
  100% { transform: translateY(-1000px) rotate(360deg); opacity: 0; }
}


/* Sections */
.section {
  margin-bottom: 7%;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* Skills */
.skill-box-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.skill-box {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  width: 200px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s ease;
  overflow: visible;
}

.skill-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.preview-icons {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.preview-icons img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s;
}

.skills-popup {
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%) scaleY(0);
  transform-origin: bottom;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  z-index: 10;
}

.skill-box:hover .skills-popup {
  transform: translateX(-50%) scaleY(1);
  opacity: 1;
}

.skill-box:hover {
  background: #4e46e5ba;
  box-shadow: 0 12px 30px rgba(5, 79, 109, 0.825);

}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: #444;
}

.skill-item img {
  width: 32px;
  height: 32px;
  margin-bottom: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .skill-box {
    width: 90%;
  }

  .skills-popup {
    grid-template-columns: repeat(2, 1fr);
    width: 90vw;
  }
}

/* projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(5, 79, 109, 0.825);
}

.project-card h3 {
  color: #4f46e5;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
}

.project-card p {
  color: #333;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.project-media {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-image,
.project-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 12px;
  transition: opacity 0.4s ease;
}

.project-video {
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.project-image {
  opacity: 1;
  z-index: 1;
}

.project-card .btn {
  background: #4e46e5b7;
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin-right: 0.6rem;
  transition: background 0.3s ease;
  display: inline-block;
}

.project-card .btn:hover {
  background: #3c39d9e3;
}

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
  .project-card {
    padding: 1.2rem;
  }

  .project-card h3 {
    font-size: 1.15rem;
  }

  .project-card p {
    font-size: 0.9rem;
  }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1rem;
  }

  .project-card h3 {
    font-size: 1.1rem;
  }

  .project-card p {
    font-size: 0.85rem;
  }

  .project-card .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0.4rem 0;
  }
}

/* Tiny screens (≤480px) */
@media (max-width: 480px) {
  .project-media {
    height: 160px;
  }

  .project-card {
    padding: 0.8rem;
  }

  .project-card h3 {
    font-size: 1rem;
  }

  .project-card p {
    font-size: 0.8rem;
  }

  .project-card .btn {
    font-size: 0.9rem;
    padding: 0.4rem 1rem;
  }
}

.project-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem auto;
  padding: 1rem 2rem;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  width: fit-content;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.project-controls label {
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
}

.project-controls select {
  padding: 0.5rem 1.2rem;
  border: none;
  border-radius: 12px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
  transition: background 0.3s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
}

.project-controls select:hover {
  background: #3b39d9;
}

.project-controls select:focus {
  outline: none;
  box-shadow: 0 0 0 2px #a5b4fc;
}

/* Responsive */
@media (max-width: 768px) {
  .project-controls {
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .project-controls label {
    margin-bottom: 0.5rem;
  }

  .project-controls select {
    width: 100%;
  }
}


/* about me */
.about-me-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-image img {
  width: 280px;
  max-width: 100%;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.about-content {
  flex: 1;
}

.about-content h2 {
  font-size: 2rem;
  color: #4f46e5;
  margin-bottom: 1rem;
}

.about-points {
  list-style: none;
  padding: 0;
}

.about-points li {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #444;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f9f9ff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.about-points li:hover {
  transform: translateX(6px);
  background: #eef2ff;
}

.about-points i {
  font-size: 1.4rem;
  color: #4f46e5;
}
.about-socials {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.about-socials a {
  font-size: 1.6rem;
  color: #4f46e5;
  background: #eef2ff;
  padding: 10px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
}

.about-socials a:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .about-me-container {
    flex-direction: column;
    text-align: center;
  }

  .about-points li {
    justify-content: center;
    text-align: left;
  }
}


.btn {
  background: #4f46e5;
  color: white;
  height: 50px;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #3b39d9;
}

/* Contact */
.contact-section {
  padding: 4rem 2rem;
  background: #f9f9ff00;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #4f46e5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.contact-form .btn {
  width: 60%;
  background: #4f46e5;
  color: #fff;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 9px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.5s ease;
}

.contact-form .btn:hover {
  background: #4338ca;
}

.form-status {
  margin-top: 1rem;
}

.loader {
  border: 4px solid #eee;
  border-top: 4px solid #4f46e5;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
  display: none;
}

.form-message {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}



/* Footer */
.clean-footer {
  background: #fafaff; /* soft bluish-gray */
  padding: 2rem 1rem;
  color: #333;
  font-family: 'Inter', sans-serif;
  border-top: 1px solid #dce1e7;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  text-align: center;
  margin-bottom: 1.2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e293b;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 0.3rem;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.2rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.4rem;
}

.footer-column ul li a {
  text-decoration: none;
  color: #475569;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #4f46e5;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  font-size: 2rem;
}

.footer-socials a {
  color: #314661;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #4f46e5;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
  border-top: 1px solid #dce1e7;
  padding-top: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-column {
    width: 100%;
  }

  .footer-socials {
    justify-content: center;
  }
}


/* Animations */
.section {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {

  nav ul {
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 0;
    display: none;
  }
}

@media (max-width: 768px) {
  .card {
    width: 90%;
    padding: 2rem 1rem;
  }

  .card img {
    width: 100px;
    height: 100px;
  }

  .social-icons {
    gap: 10px;
  }
}
