/* ========================================== 
   🌐 DaDon Portfolio Website — styles.css (2025)
   ========================================== */

:root {
  --primary: #0b0c10;
  --secondary: #1f2833;
  --accent: #66fcf1;
  --text-light: #c5c6c7;
  --text-dark: #45a29e;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.4);
  --radius: 12px;
  --transition: all 0.3s ease;
}

/* ===== Base & Reset ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: var(--primary);
  color: var(--text-light);
  line-height: 1.7;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ==========================================
   🧭 Navbar
   ========================================== */
header {
  background: var(--secondary);
  padding: 0.75rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px var(--shadow);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo img {
  height: 45px;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

/* ===== Navbar Glow Links ===== */
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(102, 252, 241, 0.8),
               0 0 16px rgba(102, 252, 241, 0.5);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(102, 252, 241, 0.6);
  transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* ===== Hamburger ===== */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--accent);
  cursor: pointer;
  transition: var(--transition);
}

/* ===== Mobile Navbar ===== */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    background: var(--secondary);
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ==========================================
   🦸 Hero Section
   ========================================== */
.hero {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  padding: 5rem 2rem;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1 1 55%;
}

.hero-content h1 {
  font-size: 3rem;
  color: var(--white);
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content h2 {
  font-size: 1.25rem;
  margin: 1rem 0;
  color: var(--text-dark);
}

.hero-content p {
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-image {
  flex: 1 1 35%;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 340px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 6px 14px var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px var(--shadow);
}

/* ==========================================
   🔘 Universal Buttons (Neon)
   ========================================== */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.9rem 1.8rem;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(102, 252, 241, 0.25);
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-3px);
  background: var(--accent);
  box-shadow: 0 0 20px rgba(102, 252, 241, 0.7),
              0 0 40px rgba(102, 252, 241, 0.4);
}

.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    transparent
  );
  transition: all 0.6s ease;
}

.btn:hover::after {
  left: 100%;
}

/* ==========================================
   🙋 About Section
   ========================================== */
.about-section {
  background: var(--primary);
  color: var(--text-light);
  padding: 80px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 16px;
  box-shadow: 0 6px 16px var(--shadow);
  border: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px var(--shadow);
}

/* ==========================================
   💼 Portfolio Section
   ========================================== */
.portfolio {
  padding: 80px 20px;
  text-align: center;
}

.portfolio h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--secondary);
  transition: all 0.4s ease;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 18px rgba(102, 252, 241, 0.4);
  border: 1px solid var(--accent);
}

.portfolio-item img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

/* ==========================================
   📞 Contact Section (Restored Layout)
   ========================================== */
.contact-section {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.contact-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1100px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  padding: 3rem 2rem;
  backdrop-filter: blur(10px);
  animation: fadeInUp 1s ease forwards;
}

/* Left Side (Form) */
.contact-left {
  flex: 1 1 45%;
  animation: slideInLeft 1s ease forwards;
}

.contact-left h1 {
  font-size: 2.2rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-left p {
  color: var(--text-dark);
  margin-bottom: 1.8rem;
  font-size: 1rem;
  line-height: 1.7;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  border: none;
  outline: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--accent);
  box-shadow: 0 0 10px rgba(102, 252, 241, 0.5);
}

.contact-form .btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.9rem 1.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.3);
  overflow: hidden;
  position: relative;
}

.contact-form .btn:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 0 18px rgba(102, 252, 241, 0.7), 0 0 30px rgba(102, 252, 241, 0.5);
}

.contact-form .btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.6s ease;
}

.contact-form .btn:hover::after {
  left: 100%;
}

/* Right Side (Contact Info) */
.contact-right {
  flex: 1 1 45%;
  animation: slideInRight 1s ease forwards;
}

.contact-right h2 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-right p {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  color: var(--text-light);
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(102, 252, 241, 0.2);
}

.contact-item i {
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-item:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(102, 252, 241, 0.6);
}

.contact-item:hover i {
  color: var(--primary);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 900px) {
  .contact-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .contact-left,
  .contact-right {
    flex: 1 1 100%;
  }

  .contact-item {
    justify-content: center;
  }
}

/* ==========================================
   🟢 WhatsApp Floating Button
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 15px;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px var(--shadow);
  transition: var(--transition);
  animation: pulse 2s infinite;
  z-index: 2000;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==========================================
   🦶 Footer
   ========================================== */
footer {
  background: var(--secondary);
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-light);
  box-shadow: 0 -2px 8px var(--shadow);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.socials {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.socials a {
  color: var(--accent);
  font-size: 1.4rem;
  transition: var(--transition);
}

.socials a:hover {
  color: var(--white);
  transform: scale(1.15);
}
