/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

/* Typography */
h1, h2, h3 {
  color: #111;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #0077ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-img {
  height: 40px;
  width: auto;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 101;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #333;
  border-radius: 2px;
}

nav {
  flex-grow: 1;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}

.nav-links a {
  font-weight: 500;
  color: #222;
}

.nav-links a.active {
  color: #0077ff;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem 2rem;
    display: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #ffffff;
}

.hero h1 {
  font-size: 2.2rem;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  max-width: 700px;
  margin: 0.5rem auto 0;
}

/* Section Styling */
section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: auto;
}

.cards,
.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.card,
.project {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  max-width: 340px;
  width: 100%;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.project span {
  display: block;
  font-size: 0.85rem;
  color: #0077ff;
  margin-bottom: 0.5rem;
}

.project p {
  font-size: 0.9rem;
  color: #444;
}

/* Buttons */
.btn {
  display: inline-block;
  background: #0077ff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005fcc;
}

/* Form Styling */
form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
  max-width: 600px;
  margin: 2rem auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

form input,
form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Accordion */
.accordion-container {
  max-width: 800px;
  margin: auto;
}

.accordion-item {
  background: #f9f9f9;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.accordion-toggle {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  width: 100%;
  text-align: left;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 1.5rem;
}

.accordion-item.open .accordion-content {
  max-height: 300px;
  padding: 1rem 1.5rem;
}

/* Tech We Use */
.tech-section {
  padding: 3rem 2rem;
  background: #fff;
  text-align: center;
}

.tech-section h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #111;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.tech {
  background-color: #f2f4f7;
  border: 1px solid #dbe0e5;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, background 0.3s ease;
}

.tech:hover {
  transform: translateY(-3px);
  background-color: #e6f0ff;
  color: #0077ff;
}

/* Footer */
footer {
  background: #f2f2f2;
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

footer .socials {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

footer .socials a {
  color: #0077ff;
  font-weight: 500;
}

/* Responsive Layout Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .cards,
  .portfolio-grid {
    flex-direction: column;
    align-items: center;
  }

  form {
    padding: 1.5rem;
  }

  section {
    padding: 2rem 1.5rem;
  }
}
