/* Reset default styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #004080;
  --primary-dark: #002d5a;
  --secondary-color: #009E60;
  --secondary-dark: #007A50;
  --accent-color: #FCD116;
  --text-light: #ffffff;
  --text-dark: #333333;
  --overlay-bg: rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.3);
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --font-size-sm: 0.9rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 2.5rem; /* Reduced from 3rem */
  --border-radius: 4px;
  --border-radius-lg: 50px;
  --transition: all 0.3s ease;
}

/* Body styles */
body {
  font-family: 'Poppins', sans-serif;
  background: url('../images/RGPL_main.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh; /* Allow scrolling */
  color: var(--text-dark);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Allow scrolling */
}

body::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  z-index: -1;
}

/* Header and Navigation - Now in components/components.css */

/* Welcome Section */
.welcome-section {
  text-align: center;
  width: 100%;
  padding-top: 80px; /* Reduced padding-top */
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Changed to center */
  align-items: center;
  animation: fadeIn 1s ease-in;
  max-width: 1200px; /* Added max-width */
  margin: 0 auto; /* Center the section */
}

.welcome-text {
  font-size: 3.5rem; /* Increased from 2.5rem */
  line-height: 1.2;
  margin-bottom: var(--spacing-lg);
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: -1px;
  animation: slideDown 1s ease-out;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

.welcome-text span {
  color: var(--accent-color);
  font-weight: 600;
  margin: var(--spacing-sm) 0; /* Reduced from md */
}

.subtext {
  font-size: 1.8rem; /* Increased from 1.25rem */
  margin-bottom: var(--spacing-lg);
  color: var(--accent-color);
  font-weight: 500;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: var(--spacing-lg); /* Increased gap */
  justify-content: center;
  margin-top: var(--spacing-lg);
  animation: fadeIn 1.5s ease-in;
}

.btn-primary,
.btn-secondary {
  padding: var(--spacing-md) var(--spacing-lg); /* Increased padding */
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem; /* Increased font size */
  transition: var(--transition);
  min-width: 200px; /* Added minimum width */
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--secondary-dark);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Container */
.container {
  margin-top: 0; /* Changed from 90px */
  height: 100vh; /* Changed from min-height */
  display: flex;
  justify-content: flex-start; /* Changed from center */
  align-items: center;
  width: 100%;
}

/* Footer - Now in components/components.css */

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  nav {
    right: var(--spacing-md);
  }
  
  nav ul .nav-links {
    margin-right: var(--spacing-md);
  }
}

@media screen and (max-width: 768px) {
  nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .welcome-text {
    font-size: 2.5rem; /* Adjusted for mobile */
  }

  .subtext {
    font-size: 1.4rem; /* Adjusted for mobile */
  }

  .action-buttons {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  header {
    padding: var(--spacing-xs);
  }

  .logo h1 {
    font-size: 20px; /* Reduced from 24px */
  }

  .welcome-section {
    padding: var(--spacing-sm);
  }

  .welcome-text {
    font-size: 2rem; /* Further adjusted for smaller screens */
  }

  .btn-primary,
  .btn-secondary {
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  .logo img {
    height: 32px; /* Reduced from 40px */
  }

  .subtext {
    font-size: 1.2rem; /* Further adjusted for smaller screens */
  }
}

/* Login Button */
.login-button {
  background-color: var(--primary-color);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--border-radius);
  transition: var(--transition);
  margin-left: var(--spacing-sm);
}

.login-button:hover {
  background-color: var(--primary-dark);
}

.login-button i {
  margin-right: 5px;
}