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

body {
  font-family: 'Arial', sans-serif;
  background-color: #0e0e1a;
  color: #f1f1f1;
  line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Julius Sans One', sans-serif;
  color: #b2d4ff; /* Icy Blue */
}

a {
  text-decoration: none;
  color: #b2d4ff;
}

ul {
  list-style: none;
}

/* Header */
header {
  background-color: #1a1a2e;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 2px solid #5a5a8d;
}

.logo img {
  height: 50px;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a:hover {
  color: #a387ff;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(26,26,46,0.9), rgba(26,26,46,0.9)),
              url('../assets/images/hero-background.jpg') center/cover no-repeat;
  padding: 5rem 2rem;
  text-align: center;
  color: #f1f1f1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: #b2d4ff;
  color: #0e0e1a;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: #a387ff;
}

/* Section Base Styles */
section {
  padding: 4rem 2rem;
  text-align: center;

  /* Scroll Reveal Default State */
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* About Preview */
.about-preview p {
  max-width: 700px;
  margin: auto;
}

/* Services Preview */
.services-preview ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.services-preview ul li {
  background-color: #252545;
  padding: 1rem;
  border-radius: 10px;
}

/* Portfolio Preview */
.portfolio-grid {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.thumb {
  background-color: transparent;
  padding: 0;
  border: none;
}

.thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 2px solid #b2d4ff;
  box-shadow: 0 0 10px rgba(178, 212, 255, 0.4);
  transition: transform 0.3s ease;
}

.thumb img:hover {
  transform: scale(1.05);
}

/* Contact CTA */
.contact-cta {
  background-color: #1f1f3a;
}

.contact-cta .cta-button {
  margin-top: 1.5rem;
}

/* Footer */
footer {
  background-color: #121224;
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
  border-top: 2px solid #5a5a8d;
}

.socials a {
  margin: 0 0.5rem;
  color: #b2d4ff;
  transition: color 0.2s ease;
}

.socials a:hover {
  color: #a387ff;
}

/* Light Mode */
body.light-mode {
  background-color: #f2f2f2;
  color: #121224;
}

body.light-mode h1,
body.light-mode h2 {
  color: #1a1a2e;
}

body.light-mode .cta-button {
  background-color: #333355;
  color: #ffffff;
}

body.light-mode header,
body.light-mode footer {
  background-color: #e1e1ff;
  color: #121224;
}

body.light-mode nav a {
  color: #1a1a2e;
}

/* Responsive */
@media (min-width: 768px) {
  .services-preview ul {
    flex-direction: row;
    justify-content: center;
  }

  .services-preview ul li {
    flex: 1;
    margin: 0 0.5rem;
  }
}

/* About Page Hero Overrides */
.about-hero {
  background: linear-gradient(rgba(26,26,46,0.8), rgba(26,26,46,0.8)),
              url('../assets/images/about-hero.jpg') center/cover no-repeat;
  padding: 6rem 2rem;
}

/* About Sections */
.about-story, .about-mission {
  max-width: 800px;
  margin: auto;
  text-align: center;
}

.about-story p, .about-mission p {
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Team */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.team-member {
  flex: 1 1 250px;
  max-width: 250px;
  text-align: center;
}

.team-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #b2d4ff;
  box-shadow: 0 0 10px rgba(178, 212, 255, 0.4);
}

.team-member h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

/* Services Page Hero */
.services-hero {
  background: linear-gradient(rgba(26,26,46,0.85), rgba(26,26,46,0.85)),
              url('../assets/images/services-hero.jpg') center/cover no-repeat;
  padding: 6rem 2rem;
}

/* Services Grid */
.services-section {
  max-width: 1000px;
  margin: auto;
  padding: 4rem 2rem;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.service-card {
  background-color: #1a1a2e;
  padding: 2rem;
  border-radius: 10px;
  border: 2px solid #5a5a8d;
  box-shadow: 0 0 10px rgba(178, 212, 255, 0.2);
  max-width: 300px;
  flex: 1 1 250px;
  transition: transform 0.3s ease;
  text-align: center;
}

.service-card h3 {
  color: #b2d4ff;
  margin-bottom: 1rem;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Portfolio Page Hero */
.portfolio-hero {
  background: linear-gradient(rgba(26,26,46,0.85), rgba(26,26,46,0.85)),
              url('../assets/images/portfolio-hero.jpg') center/cover no-repeat;
  padding: 6rem 2rem;
}

/* Portfolio Section */
.portfolio-section {
  max-width: 1200px;
  margin: auto;
  padding: 4rem 2rem;
}

.portfolio-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.portfolio-item {
  background-color: #1a1a2e;
  border: 2px solid #5a5a8d;
  border-radius: 10px;
  overflow: hidden;
  max-width: 350px;
  text-align: center;
  box-shadow: 0 0 10px rgba(178, 212, 255, 0.1);
  transition: transform 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
}

.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}

.portfolio-item h3 {
  margin: 1rem 0 0.5rem;
  color: #b2d4ff;
}

.portfolio-item p {
  padding: 0 1rem 1.5rem;
  font-size: 0.95rem;
}

/* Contact Hero */
.contact-hero {
  background: linear-gradient(rgba(26,26,46,0.85), rgba(26,26,46,0.85)),
              url('../assets/images/contact-hero.jpg') center/cover no-repeat;
  padding: 6rem 2rem;
}

/* Contact Section */
.contact-section {
  max-width: 700px;
  margin: auto;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #5a5a8d;
  background-color: #1a1a2e;
  color: #f1f1f1;
  font-size: 1rem;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form button {
  background-color: #b2d4ff;
  color: #0e0e1a;
  font-weight: bold;
  padding: 0.8rem;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.contact-info p {
  font-size: 0.95rem;
  margin-top: 0.5rem;
  color: #ccc;
}

.form-message {
  display: none;
  margin-top: 1.5rem;
  padding: 1.2rem;
  border-radius: 10px;
  font-weight: bold;
  background-color: #252545;
  color: #b2d4ff;
  border: 2px solid #5a5a8d;
}

.form-message.success {
  background-color: #202f20;
  border-color: #88cc88;
  color: #ccffcc;
}

.form-message.error {
  background-color: #3d1f1f;
  border-color: #cc6666;
  color: #ffcccc;
}
