/* ===============================
   GLOBAL STYLES
=============================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  background: #f1f3f6; /* light gray background */
  margin: 0;
  color: #1e1e2f;
  line-height: 1.6;
  padding-top: 90px; /* space for fixed header */
}

html {
  scroll-behavior: smooth;
}

/* ===============================
   HEADER & NAVIGATION (Fixed)
=============================== */
header.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #0a1a44; /* navy */
  color: white;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
/* ========================================
   FIX: Section titles hidden under fixed header
   ======================================== */
section {
  scroll-margin-top: 100px;   /* header height + buffer */
}
/* Make #home scroll with offset too */
#home {
  scroll-margin-top: 100px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  padding: 15px 50px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
}

.logo h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  letter-spacing: 0.5px;
}

/* Navbar Styling */
.navbar ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.navbar ul li a {
  position: relative;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 5px;
  font-size: 1rem;
}

.navbar ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background-color: #ffd60a; /* gold accent */
  transition: width 0.3s ease-in-out;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
  width: 100%;
}

.navbar ul li a:hover {
  color: #ffd60a;
}

/* Responsive Header */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    padding: 15px 20px;
  }
  .navbar ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===============================
   HERO / WELCOME SECTION
=============================== */
.hero {
  background: linear-gradient(
      rgba(10, 26, 68, 0.7),
      rgba(10, 26, 68, 0.7)
    ),
    url('images/skfederation-bg.jpg') center/cover no-repeat;
  color: white;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  border-bottom: 5px solid #ffcc00;
  box-sizing: border-box;
  animation: fadeInHero 1.5s ease-in-out;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 15px;
  max-width: 800px;
  line-height: 1.5;
  color: #FFFFFF;
}

@keyframes fadeInHero {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===============================
   SECTION TITLES
=============================== */
section h2,
.section-title {
  text-align: center;
  font-size: 2.3rem;
  color: #0a1a44;
  margin-bottom: 10px;
  font-weight: 700;
}

section h2::after,
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #ffd60a;
  margin: 10px auto 0;
  border-radius: 2px;
}

section p,
.section-subtitle {
  text-align: center;
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 50px;
  line-height: 1.7;
}



/* ===============================
   PROJECTS SECTION
=============================== */
.projects-section {
  background: #f1f3f5;
  padding: 80px 0;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
  padding: 0 40px;
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 20px;
}

.project-content h3 {
  color: #0a1a44;
  font-size: 1.3rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.project-content p {
  color: #555;
  font-size: 0.95rem;
}

/* ===============================
   BACK TO TOP BUTTON
=============================== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #0a1a44;
  color: white;
  border-radius: 50%;
  padding: 12px;
  font-size: 20px;
  display: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

#back-to-top.show { display: block; }

#back-to-top:hover {
  background: #142e6e;
}

/* ===============================
   SIGN UP PAGE
=============================== */
.register-page {
  background-color: #b5f1f1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 40px 20px;
}

.register-container {
  display: flex;
  width: 900px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.left-panel {
  background-color: #0a1a44;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.left-panel img {
  width: 160px;
  height: auto;
}

.right-panel {
  flex: 1.2;
  background-color: #ffffff;
  padding: 50px 60px;
}

.right-panel h2 {
  text-align: center;
  color: #0a1a44;
  font-size: 1.8rem;
  margin-bottom: 25px;
  font-weight: 700;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row input,
.form-row select {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-row input:focus,
.form-row select:focus {
  border-color: #0a1a44;
  box-shadow: 0 0 6px rgba(10, 26, 68, 0.2);
}

.btn-signup {
  width: 100%;
  background-color: #0a1a44;
  color: white;
  border: none;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-signup:hover {
  background-color: #142e6e;
}

.login-link {
  text-align: center;
  margin-top: 10px;
  color: #333;
}

.login-link a {
  color: #0a1a44;
  text-decoration: none;
  font-weight: 600;
}

.login-link a:hover {
  text-decoration: underline;
}

/* ===============================
   SIGN IN PAGE
=============================== */
.signin-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f1f3f6;
}

.signin-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 40px 50px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}

.signin-container img {
  width: 100px;
  margin-bottom: 15px;
}

.signin-container h2 {
  margin-bottom: 25px;
  color: #1e1e2f;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: #333;
  display: block;
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #007bff;
}

.position-relative { position: relative; }

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  color: #555;
}

.btn-primary {
  background: #007bff;
  border: none;
  color: white;
  padding: 12px 0;
  width: 100%;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}

.btn-primary:hover { background: #0056b3; }

.text-center a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.text-center a:hover {
  text-decoration: underline;
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 900px) {
  .register-container { flex-direction: column; }
  .left-panel, .right-panel { width: 100%; padding: 30px; }
}

/* Modal overlay */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stays over everything */
  z-index: 9999;   /* Very high so it's above other content */
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5); /* Semi-transparent background */
  justify-content: center;     /* Center horizontally with flex */
  align-items: center;         /* Center vertically with flex */
}

/* Modal content */
.modal-content {
  background: #fff;
  padding: 32px 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 100%;
  margin: 0;
  box-shadow: 0 4px 32px rgba(0,0,0,0.18);
  position: relative;
  display: block;
}
