* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #2d3748;
  background: #f8fafc;
  width: 100%;
  overflow-x: hidden;
}

.hero, .section, .cta {
  scroll-margin-top: 90px;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============ Header ============ */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s;
}

.header.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: 40px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 800;
  color: #1a365d;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: #3b82f6;
}

.navbar ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.navbar a {
  color: #334155;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #3b82f6;
}

#btn-nav {
  background: #3b82f6 !important;
  color: white !important;
  padding: 0.65rem 1.5rem !important;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

#btn-nav:hover {
  background: #2563eb !important;
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1e293b;
  background: none;
  border: none;
  padding: 0.5rem;
}

/* ============ Hero Section ============ */
.hero {
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(135deg, rgba(26,54,93,0.8), rgba(26,54,93,0.9)),
              url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?w=1600') center/cover no-repeat;
  color: white;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 80px;
  margin-top: 70px;
}

.hero-content {
  max-width: 700px;
  width: 100%;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: left;
}

.hero .lead {
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  text-align: left;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary, .btn-outline {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-outline {
  border: 2px solid #3b82f6;
  color: white;
  padding: 0.65rem 1.9rem;
}

.btn-outline:hover {
  background: #3b82f6;
  color: white;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============ Sections ============ */
.section {
  padding: 120px 0;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: #1a365d;
  text-align: center;
  margin-bottom: 4rem;
  line-height: 1.2;
}

/* ============ Portfolio Section ============ */
.portfolio {
  background: #f8fafc;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.portfolio-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.portfolio-card h3 {
  margin: 0.75rem 0 0.5rem;
  color: #1e293b;
  font-size: 1.25rem;
}

.portfolio-card p {
  color: #475569;
  line-height: 1.6;
  font-size: 0.98rem;
}

.portfolio-tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  background: #e0f2fe;
  color: #1d4ed8;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ============ Legal Sections ============ */
.legal {
  background: white;
}

.legal-content {
  max-width: 840px;
  margin: 0 auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  color: #334155;
  line-height: 1.7;
  display: grid;
  gap: 1.25rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.legal-content li {
  color: #1f2937;
}

/* ============ Services Section ============ */
.services {
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin: 0 auto;
}

.service-card {
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  border: 1px solid #e2e8f0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
  border-color: #3b82f6;
  background: white;
}

.service-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.service-card h3 {
  font-size: 1.4rem;
  color: #1e293b;
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============ About Section ============ */
.about {
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: #1a365d;
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.about-text p {
  color: #475569;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.8;
}

.check-list {
  list-style: none;
  margin-top: 2rem;
}

.check-list li {
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #334155;
  position: relative;
  padding-left: 2.5rem;
}

.check-list li::before {
  content: "✓";
  color: #10b981;
  position: absolute;
  left: 0;
  font-weight: bold;
  font-size: 1.3rem;
}

.about-image {
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
}

.stat .number {
  font-size: 3rem;
  font-weight: 800;
  color: #3b82f6;
  display: block;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #64748b;
  font-size: 0.95rem;
}

/* ============ CTA Section ============ */
.cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  text-align: center;
  padding: 120px 0;
}

.cta .container {
  max-width: 800px;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

/* ============ Contact Section ============ */
.contact {
  background: #f1f5f9;
}

.text-center {
  text-align: center;
}

.contact .text-center {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 600px;
  margin: 3rem auto 0;
  display: grid;
  gap: 1.5rem;
  background: white;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.form-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.form-field span {
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  color: #2d3748;
  transition: border-color 0.3s;
  background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #3b82f6 50%),
                    linear-gradient(135deg, #3b82f6 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #475569;
  font-size: 0.95rem;
}

.note-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.form-status {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-status.success {
  color: #16a34a;
}

.form-status.error {
  color: #dc2626;
}

.form-legal {
  font-size: 0.9rem;
  color: #64748b;
  text-align: left;
}

.form-legal a {
  color: #2563eb;
  text-decoration: none;
}

.form-legal a:hover {
  text-decoration: underline;
}

.contact-form button {
  background: #3b82f6;
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
  margin-top: 1rem;
}

.contact-form button:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* ============ Footer ============ */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

footer h3, footer h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

footer p {
  font-size: 0.95rem;
  line-height: 1.8;
}

footer ul {
  list-style: none;
}

footer a {
  color: #94a3b8;
  text-decoration: none;
  line-height: 2;
  font-size: 0.95rem;
  transition: color 0.3s;
}

footer a:hover {
  color: #60a5fa;
}

.copyright {
  text-align: center;
  border-top: 1px solid #334155;
  padding-top: 2rem;
  font-size: 0.9rem;
  color: #64748b;
}

/* ============ RESPONSIVE DESIGN ============ */

/* Tablets & iPad (768px - 1024px) */
@media (max-width: 1024px) {
  .header .container {
    padding: 1rem 1.5rem;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    padding: 0 4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .lead {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: 3rem;
  }

  .about-text h2 {
    font-size: 2rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Small Tablets (600px - 767px) */
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .header .container {
    padding: 0.9rem 1rem;
  }

  .logo a {
    font-size: 1.4rem;
  }

  .navbar {
    position: static;
  }

  .navbar ul {
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    padding: 1.5rem;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 999;
    width: 100%;
    margin: 0;
  }

  .navbar ul.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
  }

  #btn-nav {
    width: 100% !important;
    text-align: center !important;
    margin-top: 1rem !important;
  }

  .menu-toggle {
    display: block;
  }

  .container {
    width: 95%;
    padding: 0 1rem;
  }

  .hero {
    height: auto;
    min-height: 400px;
    padding: 100px 2rem 60px;
    margin-top: 65px;
    justify-content: center;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero .lead {
    font-size: 1rem;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
    flex-direction: column;
  }

  .hero-buttons a {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-text h2 {
    font-size: 1.8rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .cta h2 {
    font-size: 2rem;
  }

  .cta p {
    font-size: 1rem;
  }

  .contact-form {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section {
    padding: 80px 0;
  }
}

/* Phones (480px - 599px) */
@media (max-width: 599px) {
  body {
    font-size: 14px;
  }

  .header .container {
    padding: 0.8rem 0.8rem;
  }

  .container {
    width: 100%;
    padding: 0 1rem;
  }

  .logo a {
    font-size: 1.2rem;
  }

  .logo img {
    height: 32px;
    width: 32px;
  }

  .navbar ul {
    top: 60px;
  }

  .hero {
    height: auto;
    min-height: auto;
    padding: 80px 1rem 50px;
    margin-top: 60px;
  }

  .hero h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .hero .lead {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .hero-buttons a {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon {
    font-size: 2.8rem;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .about-text h2 {
    font-size: 1.5rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .check-list li {
    padding-left: 2rem;
    font-size: 0.95rem;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stat .number {
    font-size: 2.5rem;
  }

  .cta {
    padding: 60px 0;
  }

  .cta h2 {
    font-size: 1.6rem;
  }

  .cta p {
    font-size: 0.95rem;
  }

  .contact-form {
    padding: 1.5rem 1rem;
    gap: 1.2rem;
  }

  .contact-form button {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  footer {
    padding: 50px 0 30px;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  footer h3, footer h4 {
    font-size: 1rem;
  }

  .copyright {
    font-size: 0.85rem;
  }
}

/* Small Phones (320px - 479px) */
@media (max-width: 479px) {
  body {
    font-size: 13px;
  }

  .header .container {
    padding: 0.7rem 0.6rem;
  }

  .container {
    padding: 0 0.8rem;
  }

  .logo a {
    font-size: 1rem;
  }

  .logo img {
    height: 28px;
    width: 28px;
    margin-right: 5px;
  }

  .menu-toggle {
    font-size: 1.3rem;
  }

  .navbar ul {
    padding: 1.2rem 0.8rem;
  }

  .hero {
    padding: 75px 0.8rem 40px;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
  }

  .hero .lead {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }

  .hero-buttons a {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }

  .service-card {
    padding: 1.2rem;
  }

  .service-icon {
    font-size: 2.5rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .about-text h2 {
    font-size: 1.3rem;
  }

  .check-list li {
    font-size: 0.9rem;
    padding-left: 1.5rem;
  }

  .stat .number {
    font-size: 2rem;
  }

  .cta {
    padding: 50px 0;
  }

  .cta h2 {
    font-size: 1.4rem;
  }

  .contact-form {
    padding: 1.2rem 0.8rem;
  }

  footer {
    padding: 40px 0 20px;
  }

  footer h3, footer h4 {
    font-size: 0.95rem;
  }

  .copyright {
    font-size: 0.8rem;
  }
}
