/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: #f9f9f9;
  color: #333;
}
a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  background: #111;
  color: white;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  margin: 0;
  font-size: 1.5rem;
}
nav a {
  margin-left: 20px;
  color: white;
  font-weight: 500;
}

/* Sections */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: auto;
}
h2.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 40px;
}

/* Buttons */
.btn {
  background: #e63946;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  display: inline-block;
  text-align: center;
}
.btn:hover {
  background: #d02837;
}

/* About */
.about-content {
  max-width: 700px;
  margin: auto;
  text-align: center;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}
.service-card {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.project {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-info {
  padding: 15px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Footer */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 20px 0;
  background: #0d0c22;
  color: #aaa;
  font-size: 0.9rem;
  z-index: 100;
}

/* Hero Section Styling */
.hero {
  text-align: center;
  padding: 100px 20px 60px;
  background: linear-gradient(90deg, #7c3aed 0%, #e63946 100%);
  color: #fff;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 32px rgba(124,58,237,0.08);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 32px;
  color: #f3e8ff;
}
.hero .btn {
  font-size: 1.1rem;
  padding: 14px 32px;
  border-radius: 8px;
  background: #fff;
  color: #7c3aed;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(230,57,70,0.08);
  transition: background 0.3s, color 0.3s;
}
.hero .btn:hover {
  background: #7c3aed;
  color: #fff;
}

/* Burger Menu Styles */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  width: 36px;
  height: 36px;
  cursor: pointer;
  z-index: 1100;
  margin-left: auto;
}
.burger span {
  height: 4px;
  width: 100%;
  background: #a855f7;
  margin: 5px 0;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

/* Responsive */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px;
  }
  .logo {
    margin-bottom: 10px;
  }
  nav {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 10px;
  }
  nav a {
    margin-left: 0;
    margin-right: 16px;
    font-size: 1rem;
  }
  .burger { display: flex; }
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100vw;
    background: #111;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 10px 24px;
    gap: 0;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  nav.open {
    display: flex;
  }
  nav a {
    margin: 10px 0;
    font-size: 1.1rem;
    color: #fff;
  }
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 4vw;
  }
  .logo {
    gap: 8px;
  }
  .logo img {
    width: 40px;
    height: 40px;
  }
  .logo h2.subtitle {
    font-size: 0.85rem;
  }
  nav {
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-bottom: 0;
  }
  nav a {
    display: block;
    margin: 6px 0;
    font-size: 1rem;
  }
  section {
    padding: 32px 4vw;
  }
  .services-grid, .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .service-card, .project {
    padding: 18px;
  }
  .contact-form {
    padding: 0 2vw;
  }
  .hero {
    padding: 40px 4vw 24px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 20px;
  }
  .hero h2 {
    font-size: 1.3rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 18px;
  }
  .hero .btn {
    font-size: 0.95rem;
    padding: 10px 18px;
  }
  footer {
    font-size: 0.8rem;
    padding: 12px 0;
  }
}

/* Dark Mode Styles */
body.dark-mode {
  background-color: #111;
  color: #f9f9f9;
}

header.dark-mode {
  background: #222;
}

.service-card, .project, .contact-form input, .contact-form textarea {
  background: #222;
  color: #f9f9f9;
  border: 1px solid #444;
}

footer.dark-mode {
  background: #222;
  color: #ccc;
}
/* Sticky Nav */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo Styling */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  vertical-align: middle;
}
.logo h2.subtitle {
  margin: 0;
  font-size: 1rem;
  color: #a855f7;
  font-weight: 500;
}