/* Base Styling */
body {
  font-family: "Segoe UI", sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #f7fafd;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 1rem;
}

section {
  padding: 2.5rem 0;
}

h1, h2, h3 {
  font-weight: 700;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  color: #222;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

header .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0077cc;
}

nav a {
  margin: 0 1.2rem;
  color: #222;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.2s;
}
nav a:hover, nav a:focus {
  color: #0077cc;
}

/* Hero Section */
#hero {
  background: #eaf4fc;
  color: #1a2a3a;
  text-align: center;
  padding: 3.5rem 2rem 2.5rem 2rem;
  border-radius: 2rem;
  margin: 2.5rem auto 2.5rem auto;
  max-width: 900px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  position: relative;
  display: block;
}
#hero h1 {
  font-size: 2.6rem;
  margin: 0 0 1.5rem 0;
  line-height: 1.15;
  font-weight: 700;
}
#hero p {
  font-size: 1.25rem;
  margin: 0 0 0 0;
  line-height: 1.6;
  font-weight: 400;
}
@media (max-width: 700px) {
  #hero {
    padding: 2rem 1rem 1.5rem 1rem;
    max-width: 98vw;
  }
  #hero h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  #hero p {
    font-size: 1rem;
  }
}

/* About */
#about p {
  line-height: 1.7;
  font-size: 1.1rem;
}

/* Portfolio */
#portfolio {
  display: block;
  background: none;
  box-shadow: none;
}
.portfolio-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}
.card, .company {
  background: #fff;
  border: 1px solid #e0e7ef;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem;
  min-width: 280px;
  max-width: 380px;
  flex: 1 1 320px;
  margin-bottom: 1.5rem;
}
.card-title, .company h3 {
  color: #0077cc;
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

/* Vision Highlight */
#vision {
  background: #f7fbff;
  padding: 2.5rem;
  border-top: 2px solid #cce0f5;
  border-radius: 1.2rem;
  margin: 2rem 0;
}
#vision ul {
  list-style: none;
  padding: 0;
}
#vision li {
  margin: 1rem 0;
  font-size: 1.1rem;
  position: relative;
  padding-left: 1.5rem;
}
#vision li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #0077cc;
  font-weight: bold;
}

/* Future Vision */
#future {
  background: #f4f8fb;
  padding: 2.5rem;
  text-align: center;
  border-radius: 1.2rem;
  margin-bottom: 2rem;
}

/* Modernized Contact Form */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
form div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
form input,
form textarea {
  padding: 1rem;
  border: 1.5px solid #cce0f5;
  border-radius: 8px;
  font-size: 1.1rem;
  background: #f7fbff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
form input:focus,
form textarea:focus {
  border-color: #0077cc;
  outline: none;
  box-shadow: 0 0 0 2px #cce0f5;
}
form button {
  padding: 1rem;
  background: linear-gradient(90deg, #0077cc 60%, #00c6fb 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: background 0.2s, box-shadow 0.2s;
}
form button:hover, form button:focus {
  background: linear-gradient(90deg, #005fa3 60%, #00b4e6 100%);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
form label {
  font-size: 1rem;
  color: #0077cc;
  font-weight: 500;
}
@media (max-width: 600px) {
  form {
    padding: 1rem;
  }
  #hero {
    padding: 2rem 1rem 1.5rem 1rem;
    font-size: 1.2rem;
  }
  #hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  #hero p {
    font-size: 1rem;
  }
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2.5rem 2rem;
  max-width: 95vw;
  width: 400px;
  position: relative;
  pointer-events: auto;
  z-index: 2100;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #0077cc;
  cursor: pointer;
}

/* Footer */
footer {
  background: #fff;
  color: #222;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 1rem;
  border-top: 1px solid #e0e7ef;
}

/* --- Hero Animation --- */
@keyframes heroFadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
#hero h1, #hero p {
  opacity: 0;
  animation: heroFadeInUp 1s cubic-bezier(.4,0,.2,1) forwards;
}
#hero h1 { animation-delay: 0.1s; }
#hero p { animation-delay: 0.5s; }

/* --- Interactive Portfolio Cards --- */
.portfolio-container .card {
  transition: transform 0.25s cubic-bezier(.4,0,.2,1), box-shadow 0.25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
}
.portfolio-container .card:hover, .portfolio-container .card:focus-within {
  transform: translateY(-8px) scale(1.035);
  box-shadow: 0 8px 32px rgba(0,123,204,0.13);
  border-color: #90cdf4;
  outline: none;
}
