/* Root Colors */
:root {
  --primary: #1a3c6e;
  --secondary: #e63946;
  --light: #f4f4f9;
  --dark: #222;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: #333;
  background: white;
}

a {
  text-decoration: none;
  color: var(--primary);
}

/* Header */
header {
  background: var(--primary);
  color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.nav-links a {
  color: white;
  margin-left: 2rem;
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Hero Section */
.hero {
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding-top: 4rem;
}

.hero-content {
  max-width: 900px;
  padding: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--secondary);
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background: #c1121f;
  transform: translateY(-3px);
}

/* Sections */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

.services-grid,
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-10px);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* About Section */
.about {
  background: var(--light);
}

/* Contact */

.contact {
  background: var(--dark);
  color: white;
  text-align: center;
  padding-bottom: 6rem;
}

.contact-info p {
  margin: 0.8rem 0;
  font-size: 1.2rem;
}

/* Floating Go Back Button */
.go-back {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--primary);
  color: white;
  padding: 0.9rem 1.4rem;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  transition: 0.3s;
  z-index: 2000;
}

.go-back:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background: #111;
  color: #aaa;
  text-align: center;
  padding: 2rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links a {
    margin-left: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}
