* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: radial-gradient(circle at top, #0f2027, #000);
  color: #fff;
}

/* ===== HEADER ===== */
.logo {
  text-decoration: none;
  color: #fff;
}

/* ================= RESPONSIVE HEADER ================= */

.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 16px 12%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(12px);
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  font-size: 0.95rem;
}


.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo span {
  color: #00ffd5;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: #00ffd5;
}

.nav-btn {
  padding: 8px 18px;
  border: 1px solid #00ffd5;
  border-radius: 20px;
}

/* ===== HERO ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: 3.8rem;
}

.hero h2 {
  color: #00ffd5;
  font-weight: 400;
}

.hero p {
  margin: 20px auto;
  max-width: 600px;
  opacity: 0.9;
}

.buttons {
  margin-top: 30px;
}

.btn {
  padding: 12px 30px;
  margin: 10px;
  background: #00ffd5;
  color: #000;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #00ffd5;
  color: #00ffd5;
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 12%;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.section h2 {
  font-size: 2.3rem;
  margin-bottom: 20px;
}

.section-subtitle{
  text-align:center;
  max-width:700px;
  margin:15px auto 40px;
  opacity:.85;
}


.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  border-radius: 0px;
}

/* ===== SKILLS ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px,1fr));
  gap: 15px;
}

.grid span {
  padding: 14px;
  border: 1px solid #00ffd5;
  border-radius: 25px;
  text-align: center;
}
.skills-group h3{
  margin-top:40px;
  margin-bottom:15px;
  color:#00ffd5;
  font-weight:500;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 25px;
}

.card {
  background: rgba(255,255,255,0.05);
  padding: 25px;
  border-radius: 25px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
  border: 1px solid #00ffd5;
}

/* ===== CONTACT ===== */
.contact {
  text-align: center;
}

.socials a {
  color: #00ffd5;
  margin: 0 10px;
  text-decoration: none;
}

/* ===== FOOTER ===== */
/* ================= FOOTER ================= */

.footer{
  background:linear-gradient(180deg, #000, #050505);
  padding:50px 10%;
  text-align:center;
}

.footer-content h3{
  font-size:1.6rem;
  color:#00ffd5;
  margin-bottom:6px;
}

.footer-tagline{
  opacity:.85;
  font-size:.95rem;
  margin-bottom:18px;
}

.footer-socials{
  margin-bottom:20px;
}

.footer-socials a{
  margin:0 8px;
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  border:1px solid #00ffd5;
  color:#00ffd5;
  transition:.3s ease;
}

.footer-socials a:hover{
  background:#00ffd5;
  color:#000;
  transform:translateY(-4px);
}

.footer-copy{
  font-size:.85rem;
  opacity:.7;
}

.footer-note{
  font-size:.8rem;
  opacity:.6;
  margin-top:6px;
}


/* ===== CONTACT SECTION ===== */
.contact {
  text-align: center;
}

.contact-subtitle {
  max-width: 600px;
  margin: 0 auto 50px;
  opacity: 0.85;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 40px;
}

.contact-info {
  text-align: left;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info a {
  color: #00ffd5;
  text-decoration: none;
}


/* ===== CONTACT FORM ===== */
.contact-form {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 25px;
}

.contact-form h3 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
}

.contact-form button {
  width: 100%;
}

/* ===== RESPONSIVE ===== */
@media(max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}


.socials {
  margin-top: 20px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  margin-right: 12px;
  border-radius: 50%;
  border: 1px solid #00ffd5;
  color: #00ffd5;
  font-size: 20px;
  transition: 0.3s;
}

.socials a:hover {
  background: #00ffd5;
  color: #000;
  transform: translateY(-4px);
}

.skills-group h3 {
  margin: 35px 0 15px;
  color: #00ffd5;
  font-weight: 500;
}

.grid span {
  background: rgba(0, 255, 213, 0.08);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.grid span:hover {
  background: #00ffd5;
  color: #000;
  transform: scale(1.05);
}

/* PROJECTS */
.section-subtitle{
  max-width:700px;
  margin:15px auto 50px;
  text-align:center;
  opacity:.85;
}

.project-card{
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(16px);
  border-radius:28px;
  padding:30px;
  border:1px solid rgba(255,255,255,0.08);
  transition:.4s ease;
  position:relative;
}

.project-card:hover{
  transform:translateY(-10px) scale(1.02);
  border:1px solid #00ffd5;
  box-shadow:0 20px 40px rgba(0,255,213,0.15);
}

.project-card h3{
  margin-bottom:12px;
  color:#00ffd5;
}

.project-desc{
  font-size:0.95rem;
  opacity:.9;
  margin-bottom:15px;
}

.project-card ul{
  padding-left:18px;
  margin-bottom:18px;
}

.project-card ul li{
  font-size:0.9rem;
  margin-bottom:8px;
  opacity:.85;
}

.tech{
  display:inline-block;
  padding:6px 14px;
  border-radius:20px;
  background:rgba(0,255,213,0.15);
  border:1px solid #00ffd5;
  font-size:0.8rem;
  color:#00ffd5;
}


/* ================= GO TO TOP ================= */

#goTop{
  position:fixed;
  bottom:30px;
  right:30px;
  width:52px;
  height:52px;
  border-radius:50%;
  border:1px solid rgba(0,255,213,0.6);
  background:rgba(0,255,213,0.15);
  backdrop-filter:blur(14px);
  color:#00ffd5;
  font-size:1.1rem;
  cursor:pointer;
  opacity:0;
  pointer-events:none;
  transform:translateY(20px) scale(0.9);
  transition:.4s cubic-bezier(.4,0,.2,1);
  z-index:999;
  box-shadow:0 10px 30px rgba(0,255,213,0.25);
}

#goTop.show{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

#goTop:hover{
  background:#00ffd5;
  color:#000;
  transform:translateY(-6px) scale(1.05);
  box-shadow:0 15px 40px rgba(0,255,213,0.6);
}

/* Mobile adjustment */
@media(max-width:768px){
  #goTop{
    width:46px;
    height:46px;
    bottom:20px;
    right:20px;
  }
}

/* ================= CERTIFICATIONS ================= */

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.cert-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  border-radius: 26px;
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: 0.4s ease;
  text-align: center;
}

.cert-card:hover {
  transform: translateY(-10px) scale(1.03);
  border-color: #00ffd5;
  box-shadow: 0 20px 40px rgba(0,255,213,0.2);
}

.cert-card i {
  font-size: 2.6rem;
  color: #00ffd5;
  margin-bottom: 18px;
}

.cert-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.cert-org {
  font-size: 0.85rem;
  color: #00ffd5;
  margin-bottom: 12px;
}

.cert-desc {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
}

nav a.btn {
  overflow: visible;
  padding: 8px 18px;
  font-size: 1.2rem;
  white-space: nowrap;
}
/* ================= WHATSAPP FLOAT ================= */

.whatsapp-float {
  position: fixed;
  left: 25px;
  bottom: 30px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: 0.35s ease;
}

.whatsapp-float:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 15px 40px rgba(37, 211, 102, 0.7);
  background: #1ebe5d;
}

.whatsapp-float i {
  line-height: 1;
}

.whatsapp-float,
.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active {
  text-decoration: none;
}


@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    left: 18px;
    bottom: 20px;
  }
}

@media (max-width: 768px) {

  /* Header */
  .header {
    padding: 14px 6%;
  }

  .logo {
    font-size: 1.3rem;
  }

  .nav {
    display: none; /* hide nav links */
  }

  /* Hero */
  .hero {
    padding: 120px 6% 80px;
    height: auto;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero h2 {
    font-size: 1.1rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  /* Sections */
  .section {
    padding: 80px 6%;
  }

  .section h2 {
    font-size: 1.9rem;
    text-align: center;
  }

  /* Grids */
  .projects-grid,
  .cert-grid,
  .skills-group .grid {
    grid-template-columns: 1fr;
  }

  /* Contact */
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

}

@media (min-width: 769px) and (max-width: 1024px) {

  .header {
    padding: 16px 8%;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .section {
    padding: 90px 8%;
  }

  .projects-grid,
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}

@media (min-width: 1025px) and (max-width: 1440px) {

  .hero h1 {
    font-size: 3.4rem;
  }

  .section {
    padding: 100px 10%;
  }

}

@media (min-width: 1441px) {

  body {
    font-size: 16px;
  }

  .section,
  .header {
    padding-left: 14%;
    padding-right: 14%;
  }

}

.loading {
  display: none;
  color: #007bff;
}

.error-message {
  display: none;
  color: red;
}

.sent-message {
  display: none;
  color: green;
}
