

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* RESET & BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  
  background-color: #192238;
  color: #fff;
  scroll-behavior: smooth;
  
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* make sure it stays on top */
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Navbar container */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* ensures it stays on top */
  background: rgba(80, 87, 103, 0.9); /* optional: semi-transparent dark bg */
  backdrop-filter: blur(12px);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.4);
}
.logo {
  font-size: 1.7rem;
  color: #38bdf8;
  font-weight: 700;
}

.logo span { color: #facc15; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #e2e8f0;
  transition: color 0.3s;
}

.nav-links a:hover { color: #38bdf8; }

.menu-icon {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
   background: url("./upload/front2.JPG");
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
/* SLIDESHOW FIX */
.slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 3s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.188);
  z-index: 2; /* keeps overlay above slides */
}

.hero-content {
  position: relative;
  z-index: 3; /* content always on top */
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #38bdf8;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(56,189,248,0.4);
}

.hero h1 { font-size: 2.5rem; }
.highlight { color: #38bdf8; }

.hero h3 {
  margin: 0.5rem 0;
  color: #cbd5e1;
}

.hero p {
  color: #94a3b8;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* BUTTONS */
button {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.4s;
  width: 100%;
  margin-top: 1.5rem;
}

button:hover {
  background: linear-gradient(90deg, #facc15, #fbbf24);
  transform: translateY(-3px);
}

/* SECTIONS */
section {
  padding: 5rem 2rem;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  color: #38bdf8;
  margin-bottom: 1.5rem;
}

/* ABOUT */
.about p {
  max-width: 800px;
  margin: 1rem auto;
  color: #c1ccda;
  line-height: 1.9;
  text-align: left;
}

/* PROJECTS */
.projects {
  background: #1e293b;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #0f172a;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(56, 189, 248, 0.4);
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* Text overlay on project image */
.card-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.8) 100%);
  color: #fff;
}

.card-content h3 {
  font-size: 1.2rem;
  color: #38bdf8;
  margin-bottom: 0.3rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}

.card-content p {
  font-size: 0.95rem;
  color: #e2e8f0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* CONTACT */
.contact form {
  display: flex;
  flex-direction: column;
  max-width: 500px;
  margin: 1.5rem auto;
  gap: 1rem;
}

label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: #cbd5e1;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-size: 1rem;
  transition: border-color 0.3s ease, background 0.3s ease;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #38bdf8;
  background: rgba(255, 255, 255, 0.1);
}

textarea { min-height: 120px; }

.message {
  margin-top: 1rem;
  color: #22c55e;
  font-size: 0.9rem;
}

/* FORM CONTAINER */
.container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.6s ease;
}


.container h2 {
  text-align: center;
  color: #38bdf8;
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

/* FLASH MESSAGES */
.alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 500;
}

.alert.success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert.error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* FOOTER */
footer {
  background: #0f172a;
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #1e293b;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.social-links img {
  width: 24px;
  height: 24px;
  filter: invert(80%);
  transition: transform 0.3s, filter 0.3s;
}

.social-links img:hover {
  transform: scale(1.1);
  filter: invert(100%);
}

footer p { color: #94a3b8; font-size: 0.9rem; }

/* ANIMATIONS */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: -100%;
    flex-direction: column;
     background: rgba(80, 87, 103, 0.9); 
    width: 200px;
    text-align: center;
    padding: 1.5rem 0;
    transition: right 0.3s;
  }

  .nav-links.active { right: 0; }

  .menu-icon { display: block; }

  .hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 1.5rem; }
  h2 { font-size: 1.5rem; }
}

/* SLIDESHOW */
.slideshow, .slide {
  position: absolute;
  inset: 0;
}

.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.slide.active { opacity: 1; }







.two-column {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 2rem;
      max-width: 1100px;
      margin: 0 auto;
      padding: 4rem 2rem;
    }

    /* Left and Right Column Styling */
    .two-column .col {
      background: rgba(58, 89, 111, 0.15);
      padding: 2rem;
      border-radius: 16px;
      backdrop-filter: blur(12px);
      box-shadow: 0 4px 25px rgba(255, 255, 255, 0.4);
    }

    /* Text Column */
    .two-column .col.text {
      color: #e2e8f0;
      line-height: 1.7;
    }

    .two-column .col.text h2 {
      color: #38bdf8;
      margin-bottom: 1rem;
      font-size: 1.8rem;
    }

    /* Image Column */
    .two-column .col.image img {
      width: 100%;
      border-radius: 12px;
      object-fit: cover;
      box-shadow: 0 0 25px rgba(56,189,248,0.3);
    }

    /* Responsive Behavior */
    @media (max-width: 900px) {
      .two-column {
        grid-template-columns: 1fr;
        text-align: center;
      }
      .two-column .col {
        padding: 1.5rem;
      }
    }
    .aboutus{text-align: center;}
    h4{color: whitesmoke;}