/* Reset and Fonts */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Rubik', sans-serif;
  background: #f9f9fb;
  color: #2a2a2a;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navbar */
.navbar {
  background: linear-gradient(120deg, #fce4ec, #f8bbd0); /* Soft elegant pink gradient */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 192, 203, 0.3);
  color: #4b2c2c; /* Gentle dark brownish-pink for contrast */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.4s ease, padding 0.3s ease;
  box-shadow: 0 8px 18px rgba(255, 182, 193, 0.3);
}

.navbar .logo {
  font-size: 1.9em;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: linear-gradient(to right, #ec407a, #d81b60); /* Vibrant pink gradient */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 8px rgba(220, 20, 60, 0.3);
  cursor: pointer;
  transition: transform 0.3s ease-in-out;
}
.navbar .logo:hover {
  transform: scale(1.05);
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}
.navbar nav ul li a {
  color: #d81b60;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05em;
  position: relative;
  transition: all 0.3s ease;
}
.navbar nav ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: #d81b60;
  transition: width 0.3s;
}
.navbar nav ul li a:hover {
  color: #d81b60;
}
.navbar nav ul li a:hover::after {
  width: 100%;
}

/* Hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s;
}
.menu-toggle:hover {
  transform: scale(1.1);
}

/*logo*/
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  flex-wrap: wrap; /* Allows wrapping on small screens */
}

.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .logo {
    font-size: 1.2rem;
    gap: 8px;
  }

  .logo-img {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1rem;
    gap: 6px;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }
}

.menu-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 15px;
    right: 20px;
  }

  #nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #222;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
  }

  #nav-links.show {
    display: flex;
  }

  #nav-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 0;
    margin: 0;
  }

  #nav-links ul li {
    list-style: none;
  }

  #nav-links ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
  }

  .nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .subscribe-btn,
  .nav-auth-btn {
    padding: 8px 16px;
    font-size: 16px;
  }
}



/* Buttons */
.buttons {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
 
}
.btn {
  padding: 14px 26px;
  border: none;
  border-radius: 50px;
  font-size: 1em;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.primary {
  background-color: #ce2272;
  color: white;
}
.primary:hover {
  background-color: #ce2272;
  transform: translateY(-2px);
}
.secondary {
  background-color: white;
  color: #333;
}
.secondary:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
}
.main-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('Thetechworld.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.main-content {
  max-width: 600px;
}

.main-content h1 {
  font-size: 2.2em;
  margin-bottom: 24px;
  color: #d81b60;
}

.main-image{
  max-width: 100vh;
  height: auto;
  border-radius: 12px;
}

.main-section {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('Thetechworld.webp') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Overlay content centered over the image */
.overlay-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.main-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(152, 138, 138, 0.4); /* for dark overlay */
  z-index: 1;
}


.overlay-content h1 {
  font-size: 3rem;
  color: #ce2272;
  margin-bottom: 24px;
}

.overlay-content .buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .navbar nav ul {
    display: none;
    flex-direction: column;
    background: rgba(28, 28, 30, 0.95);
    position: absolute;
    top: 65px;
    right: 20px;
    width: 220px;
    padding: 20px;
    border-radius: 10px;
    animation: slideIn 0.3s ease-out forwards;
  }
  .navbar nav ul.active {
    display: flex;
  }
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .hero-content {
    flex-direction: column;
    text-align: center;
  }
  .hero-text {
    padding: 0;
  }
  .main-section {
    flex-direction: column;
    height: auto;
    padding: 60px 20px;
    text-align: center;
  }

  .main-content h1 {
    font-size: 1.8em;
  }

  .main-image img {
    max-width: 90%;
    margin-top: 20px;
  }

  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
@media (max-width: 768px) {
  .overlay-content h1 {
    font-size: 2rem;
  }
  
  .overlay-content {
    padding: 30px 16px;
  }
}
@media (max-width: 480px) {
  .overlay-content h1 {
    font-size: 1.6rem;
  }
  
  .overlay-content .buttons {
    flex-direction: column;
  }

  .overlay-content .btn {
    width: 100%;
    max-width: 250px;
    margin-bottom: 12px;
  }
}

}

/* ===== Event Page Styles (Responsive) ===== */

.container {
  max-width: 600px;
  margin: 60px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  color: #ff6600;
}

.event-card {
  background: #fff6f0;
  padding: 20px;
  margin: 20px 0;
  border-radius: 8px;
  border-left: 6px solid #ff8e3c;
}

label {
  display: block;
  margin-top: 16px;
  font-weight: bold;
}

input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.btn {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 24px;
  background: #ff8e3c;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.btn:hover {
  background: #ff6600;
  transform: translateY(-2px);
}

/* ===== Responsive Enhancements ===== */
@media (max-width: 768px) {
  .container {
    margin: 30px 16px;
    padding: 16px;
  }

  .event-card {
    padding: 16px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 1rem;
    padding: 10px 20px;
  }
}

/* Background Gradient Section */
.tech-section {
  background: linear-gradient(to right, #fb923c, #facc15, #fb923c);
  padding: 4rem 1.5rem;
}

/* Card Container with Glassmorphism */
.tech-card {
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.tech-card:hover {
  transform: scale(1.02);
}

/* Heading Style */
.tech-heading {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ce2272;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

/* Paragraph Style */
.tech-description {
  font-size: 1.25rem;
  color: #374151;
  line-height: 1.8;
  margin: 0 auto;
  max-width: 80%;
}

/* Button Style */
.tech-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  background-color: #ea0c0c;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.tech-button:hover {
  background-color: #c2410c;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */

/* Medium Devices (Tablets) */
@media (max-width: 1024px) {
  .tech-heading {
    font-size: 2.25rem;
  }

  .tech-description {
    font-size: 1.125rem;
    max-width: 90%;
  }

  .tech-button {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }
}

/* Small Devices (Mobiles) */
@media (max-width: 640px) {
  .tech-card {
    padding: 2rem 1.5rem;
  }

  .tech-heading {
    font-size: 1.75rem;
  }

  .tech-description {
    font-size: 1rem;
    max-width: 100%;
  }

  .tech-button {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
}


/* ========= Education Section ========= */

.education-section {
  padding: 4rem 1.5rem;
  background-color: #ffffff;
}

.education-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: center;
}

.education-image {
  flex: 1;
  max-width: 600px;
}

.education-image img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.education-content {
  flex: 1;
  max-width: 600px;
}

.education-content h2 {
  font-size: 2rem;
  color: #d81b60; /* text-purple-700 */
  font-weight: 800;
  margin-bottom: 1rem;
}

.education-content p {
  font-size: 1.125rem;
  color: #374151; /* text-gray-700 */
}

/* Medium and above screens */
@media (min-width: 768px) {
  .education-wrapper {
    flex-direction: row;
  }

  .education-content h2 {
    font-size: 2.5rem;
  }
}

/* ========= Card Grid Section ========= */

.card-grid {
  background-color: #ede9fe; /* bg-purple-100 */
  padding: 3rem 1.5rem;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background-color: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: d81b60;
  margin-bottom: 0.5rem;
}

.card-body p {
  font-size: 1rem;
  color: #4b5563; /* text-gray-600 */
}


/* Subescribe Model */

/* Subscribe Button */
.subscribe-btn {
  padding: 10px 20px;
  background: #1e90ff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}
.subscribe-btn:hover {
  background: #0066cc;
}

/* Modal Background */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

/* Modal Box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  text-align: center;
}

/* Close Icon */
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #000;
}

/* Input Field */
#emailInput {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

/* Submit Button */
.submit-btn {
  margin-top: 15px;
  padding: 12px 24px;
  background-color: #d81b60;
  border: none;
  color: white;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}
.submit-btn:hover {
  background-color: #d81b60;
}

/* Thank You Message */
.thank-you-message {
  display: none;
  margin-top: 15px;
  color: #d81b60;
  font-weight: bold;
  font-size: 16px;
}

/* ✅ Responsive Media Queries */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }

  .subscribe-btn,
  .submit-btn {
    font-size: 14px;
    padding: 10px 16px;
  }

  #emailInput {
    font-size: 14px;
    padding: 10px;
  }

  .thank-you-message {
    font-size: 14px;
  }

  .close {
    font-size: 24px;
    top: 8px;
    right: 16px;
  }
}

/* Auth Modal Specific */
.auth-modal-content {
  padding: 30px 25px;
  width: 90%;
  max-width: 400px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  margin: auto;
  transition: all 0.3s ease-in-out;
}

/* Auth Tabs */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #555;
}

.auth-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.auth-tabs button {
  flex: 1;
  padding: 0.7rem;
  border: none;
  cursor: pointer;
  background: #eee;
  font-weight: bold;
}

.auth-tabs .active-tab {
  background: #d81b60;
  color: #fff;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form input {
  padding: 0.7rem;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.submit-btn {
  padding: 0.8rem;
  background: #d81b60;
  border: none;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  cursor: pointer;
}

.submit-btn:hover {
  background-color: #d81b60;
}

.toggle-msg {
  font-size: 0.9rem;
  text-align: center;
}

.toggle-msg a {
  color: #d81b60;
  text-decoration: none;
}

@media screen and (max-width: 480px) {
  .auth-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }
}

.nav-auth-btn {
  padding: 8px 16px;
  background-color: #d81b60;
  border: none;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.nav-auth-btn:hover {
  background-color: #d81b60;
}







/* Footer Styles */
.footer {
   background: black; /* Purple like original */
  color: #ffffff;
  padding: 40px 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
}

.footer-logo h2 {
  color: #ffcc80; /* Orange-yellow text */
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 400;
}

.footer-links ul li a:hover {
  text-decoration: none;
}

.footer-links p {
  margin: 8px 0;
  font-size: 0.95rem;
}

.email-btn {
  display: inline-block;
  background-color: #d81b60;
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  margin-top: 10px;
  font-weight: bold;
}

.email-btn:hover {
  background-color: #d81b60;
}

.footer-social {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 20px;
}

.footer-social a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.footer-social a:hover {
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .footer-links div {
    width: 100%;
    max-width: 300px;
  }
}

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000dd; /* dark transparent background */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-circle {
  width: 100px;
  height: 100px;
  border: 8px solid #ffffff4d;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%; /* make it circular */
  object-fit: cover;  /* crop perfectly inside the circle */
  position: absolute;
  z-index: 1;
}


@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


