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

:root {
  --primary: #00bcd4;
  --primary-dark: #0097a7;
  --secondary: #4CAF50;
  --secondary-dark: #45a049;
  --dark: #111;
  --light: #fff;
  --text: #2c3e50;
  --text-light: #666;
  --gray: #f5f7fa;
  --gray-dark: #e4e8eb;
}

body {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--gray);
  margin: 0;
  padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text);
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-login {
  background: var(--secondary);
  margin-left: 20px;
}

.btn-login:hover {
  background: var(--secondary-dark);
}

/* Header and Navigation */
header {
  background: var(--dark);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 40px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 120px 5%;
  background: linear-gradient(135deg, var(--gray) 0%, var(--gray-dark) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* Services Section */
.services {
  padding: 100px 5%;
}

.services h2 {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.card {
  background: var(--light);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--text);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.card p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 40px 5%;
  margin-top: 80px;
}

footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: var(--light);
  margin: 10% auto;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.close:hover {
  color: var(--primary);
}

#loginForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

#loginForm input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#loginForm input:focus {
  outline: none;
  border-color: var(--primary);
}

.error-message {
  color: #ff4444;
  margin-top: 10px;
  text-align: center;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 40px;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .services h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }
  
  .logo-img {
    height: 35px;
  }
  
  .hero {
    padding: 100px 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1.1rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  
  .card {
    padding: 30px;
  }
}

@media (max-width: 576px) {
  nav {
    padding: 0 15px;
  }
  
  .nav-links {
    gap: 15px;
  }
  
  .btn-login {
    margin-left: 10px;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
  
  .hero {
    padding: 80px 15px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .modal-content {
    margin: 20% 15px;
    width: auto;
  }
}