/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2c5aa0;
  --secondary-color: #f39c12;
  --accent-color: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #ecf0f1;
  --bg-light: #ffffff;
  --bg-dark: #1a1a1a;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 60px rgba(0, 0, 0, 0.3);
  --border-radius: 15px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  transition: var(--transition);
}

/* Dark Theme */
body.dark-theme {
  --text-dark: #ecf0f1;
  --text-light: #2c3e50;
  --bg-light: #1a1a1a;
  --bg-dark: #000000;
  background: #1a1a1a;
  color: #011014;
}

/* Progress Bar */
#progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 9999;
}

#progress-bar {
  height: 100%;
  background: var(--gradient-primary);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}
/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
}

body.dark-theme header {
  background: rgba(26, 26, 26, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header .logo {
  float: left;
}

header .logo h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8rem;
  font-weight: 600;
  text-decoration: none;
}

header .logo a {
  text-decoration: none;
}

nav {
  float: right;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: var(--transition);
}

nav ul li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
}

nav ul li a:hover {
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.1);
  transform: translateY(-2px);
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  transform: translateX(-50%);
}

nav ul li a:hover::after {
  width: 80%;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
}

.hamburger:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/about_us1.jpg');
  background-size: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
  font-size: 3.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideDown 1s ease-out;
}

#typing-text {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  min-height: 60px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: inline;
}

.cursor {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: blink 1s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: var(--transition);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.3);
}


/* About Us Section */
.about-us {
  padding: 6rem 0;
  background: var(--bg-light);
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.h2text {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.h2text::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.about-us p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 4rem;
  color: var(--text-dark);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Image Cards */
.img-card-outer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 6rem;
  flex-wrap: wrap;
}

.img-card {
  width: 300px;
  height: 300px;
  border-radius: var(--border-radius);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.img-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(102, 126, 234, 0.3), rgba(240, 147, 251, 0.3));
  opacity: 0;
  transition: var(--transition);
}

.img-card:hover::before {
  opacity: 1;
}

.img-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: var(--shadow-heavy);
}

.img1 {
  background-image: url("../images/about_us2.jpg");
}
.img2 {
  background-image: url("../images/about_us3.jpg");
}
.img3 {
  background-image: url("../images/about_us4.jpg");
}

/* Features Cards */
#display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.features-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

body.dark-theme .features-card {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.features-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: var(--transition);
}

.features-card:hover::before {
  transform: scaleX(1);
}

.features-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.features-card h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

.features-card p {
  color: var(--text-dark);
  line-height: 1.6;
  opacity: 0.8;
}

.features-card a {
  color: inherit;
  text-decoration: none;
}

/* css for mouse cursor trail effect */
 .circle {
    position: absolute;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(70, 130, 180, 0.3),skyblue, rgba(0, 0, 50, 0.3),white);
    transition: transform 0.1s, left 0.1s, top 0.1s;
  }
  
  .circle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999; /* removed the non-breaking space (&nbsp;) */
  }

@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Footer */
footer {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 0 1rem;
  text-align: center;
  position: relative;
}

.footer-socials {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-socials a {
  color: white;
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-socials a:hover {
  transform: translateY(-3px) scale(1.2);
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-contact {
  margin-bottom: 1.5rem;
}

.footer-contact a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  .hamburger {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: var(--transition);
  }

  body.dark-theme nav ul {
    background: rgba(26, 26, 26, 0.95);
  }

  nav ul.active {
    left: 0;
  }

  nav ul li {
    margin: 1rem 0;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  #typing-text {
    font-size: 1rem;
  }

  .h2text {
    font-size: 2rem;
  }

  .img-card-outer {
    flex-direction: column;
    align-items: center;
  }

  #display {
    grid-template-columns: 1fr;
  }

  .features-card {
    padding: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-content h2 {
    font-size: 2rem;
  }

  .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .features-card {
    padding: 1.5rem;
  }

  .img-card {
    width: 100%;
    max-width: 300px;
  }
}

#emailForm {
  display: flex;          /* arrange children in a row */
  gap: 10px;              /* space between buttons */
  flex-wrap: wrap;        /* wrap if container is narrow */
  align-items: center;    /* vertically center buttons if needed */
}