/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #f9fbfd;
  color: #222;
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
}

header {
  background: #ffffff;
  text-align: center;
  padding: 40px 20px 20px;
  border-bottom: 1px solid #eee;
  animation: fadeInDown 0.8s ease;
}

header h1 {
  margin: 0;
  font-size: 2.6rem;
  color: #002d5f;
}

header p {
  margin-top: 10px;
  color: #666;
  font-size: 1.1rem;
}

.download {
  display: inline-block;
  margin-top: 15px;
  background: #0077cc;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.download:hover {
  background: #005fa3;
  transform: scale(1.05);
}

/* Navigation */
nav {
  background-color: #ffffff;
  padding: 12px 0;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 10;
}

nav a {
  display: inline-block;
  margin: 0 18px;
  text-decoration: none;
  color: #0077cc;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

nav a:hover {
  background-color: #e0f0ff;
}

nav a.active {
  background-color: #0077cc;
  color: white;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(to right, #e0f7fa, #f1f8e9);
  border-bottom: 1px solid #ccc;
  animation: fadeIn 1s ease;
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #003366;
}

.hero-text p {
  font-size: 1.2rem;
  color: #444;
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-buttons .btn {
  display: inline-block;
  margin: 10px 10px;
  padding: 12px 24px;
  background: #0077cc;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: background 0.3s ease, transform 0.2s ease;
}

.hero-buttons .btn.secondary {
  background: #555;
}

.hero-buttons .btn:hover {
  background: #005fa3;
  transform: translateY(-2px);
}

.highlight {
  color: #0077cc;
}

/* Section Container */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  animation: fadeInUp 1s ease;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: #222;
}

/* Blog Post Cards */
.post-card {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0px 4px 12px rgba(0,0,0,0.08);
}

.post-card h3 {
  margin-top: 0;
  font-size: 1.3rem;
}

.post-card a {
  color: #0077cc;
  text-decoration: none;
}

.post-card a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background: #f0f0f0;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9rem;
  color: #555;
}

footer a {
  color: #0077cc;
  text-decoration: none;
}

/* Contact Form Styles */
.contact-form {
  max-width: 600px;
  margin: 30px auto;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form button {
  background-color: #0077cc;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005fa3;
}

/* Dark Mode Support */
body.dark-mode {
  background: #121212;
  color: #eee;
}
body.dark-mode header,
body.dark-mode nav,
body.dark-mode footer {
  background: #1e1e1e;
  color: #eee;
}
body.dark-mode nav a {
  color: #aaa;
}
body.dark-mode nav a.active {
  background: #444;
  color: #fff;
}
body.dark-mode .hero {
  background: linear-gradient(to right, #263238, #37474f);
}
body.dark-mode .container,
body.dark-mode .post-card,
body.dark-mode .contact-form {
  background: #1f1f1f;
  color: #eee;
}
body.dark-mode .post-card a {
  color: #90caf9;
}
body.dark-mode .hero-buttons .btn.secondary {
  background: #888;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 16px;
  font-size: 18px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}
#backToTop:hover {
  background: #005fa3;
}

/* Dark Mode Toggle Button */
#darkModeToggle {
  position: fixed;
  top: 15px;
  right: 20px;
  background: #0077cc;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  z-index: 1001;
  transition: background 0.3s ease;
}
#darkModeToggle:hover {
  background: #005fa3;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-text h2 {
    font-size: 2rem;
  }
  .hero-buttons .btn {
    margin: 8px 5px;
    padding: 10px 18px;
  }
}

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