/* =============================
   GLOBAL STYLES
============================= */
:root {
  --primary: #0ea5e9;
  --text-light: #f4f4f4;
  --text-dark: #1e293b;
  --bg-dark: #0f172a;
  --bg-light: #1e293b;
  --accent: #38bdf8;
  --radius: 12px;
  --transition: 0.3s ease-in-out;
}

*,
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}

/* =============================
   HEADER / NAVBAR
============================= */
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5%;
  background: rgba(15, 23, 42, 0.7);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

header .logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-light);
  text-decoration: none;
}

header .logo span {
  color: var(--primary);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--text-light);
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  font-size: 18px;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: var(--transition);
}

/* =============================
   HERO SECTION
============================= */
.hero,
#home {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  min-height: 100vh;
  padding: 0 20px;
  gap: 2rem;
}

.hero-text,
.intro {
  max-width: 700px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-text h1,
.intro h2 {
  font-size: 2.8rem;
  color: var(--text-light);
}

.hero-text span,
.intro span {
  color: var(--primary);
}

.subtitle {
  font-size: 1.3rem;
  margin: 10px 0;
  color: var(--accent);
}

.cta {
  background: var(--primary);
  color: var(--text-dark);
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.cta:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.cta-buttons .btn {
  display: inline-block;
  background: #0179a1;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
  margin-right: 10px;
}

.btn:hover {
  background: #0080ff;
}

.btn.secondary {
  background: transparent;
  border: 2px solid #00bfff;
}

.btn.secondary:hover {
  background: #00bfff;
  color: #fff;
}

.intro-image img {
  width: 350px;
  border: 4px solid #00bfff;
  box-shadow: 0 0 20px rgba(0, 191, 255, 0.3);
}

/* =============================
   ABOUT SECTION
============================= */
#about {
  padding: 100px 5%;
  display: flex;
  justify-content: center;
  background: rgba(15, 23, 42, 0.8);
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  align-items: center;
  max-width: 1000px;
}

.about-img {
  flex: 1 1 300px;
}

.about-img img {
  width: 250px;
  border: 4px solid var(--primary);
  display: block;
  margin: auto;
}

.about-text {
  flex: 2 1 400px;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.about-text p {
  margin-bottom: 20px;
  max-width: 600px;
}

/* Tabs */
.tabs-container {
  max-width: 700px;
  margin: 40px auto;
  background: transparent;
  border-radius: var(--radius);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  background: transparent;
}

.tab-btn {
  flex: 1;
  padding: 12px 0;
  border: none;
  background: #2a3d4716;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.tab-btn:hover {
  background-color: #334155;
}

.tab-btn.active {
  background: #0285c700;
  border-bottom: 2px solid #0ea5e9;
}

.tabs {
  padding: 20px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  margin-bottom: 10px;
  color: #0f172a;
}

.tab-content ul {
  list-style: none;
  padding-left: 0;
}

.tab-content li {
  margin: 8px 0;
  color: #c7d8f0;
}

.tab-content span {
  color: #66c2f0;
  font-weight: bold;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================
   PROJECTS SECTION
============================= */
#projects {
  padding: 100px 5%;
  text-align: center;
}

.projects-grid {
  width: 80%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-right: auto;
  margin-left: auto;
}

.project-card {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project-card img {
  border-radius: var(--radius);
  margin-bottom: 15px;
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.project-card p {
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.project-card a {
  display: inline-block;
  margin-top: 5px;
  color: var(--accent);
  font-weight: 600;
}

/* =============================
   CONTACT SECTION
============================= */
#contact {
  padding: 100px 5%;
  background: rgba(15, 23, 42, 0.85);
  text-align: center;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

#contact-form input,
#contact-form textarea {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid #334155;
  background: #1e293b;
  color: var(--text-light);
  font-size: 1rem;
  resize: none;
}

#contact-form button {
  align-self: center;
  width: fit-content;
}

.social-links {
  margin-top: 30px;
}

.social-links a {
  color: var(--accent);
  margin: 0 10px;
  font-weight: 600;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--primary);
}

/* =============================
   FOOTER
============================= */
footer {
  background: var(--bg-light);
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

/* =============================
   RESPONSIVE DESIGN
============================= */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  header.navbar {
    flex-direction: column;
  }
  .nav-links {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    display: none;
  }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .hamburger {
    display: flex;
  }
}

@media (max-width: 660px) {
  header.navbar {
    display: flex;
    flex-direction: row;
  }

  #home {
    flex-direction: column-reverse;
  }
  .intro-image {
    margin-top: 7rem;
    width: 300px;
  }

  .intro h2 {
    font-size: 35px;
    text-align: center;
  }

  div.tabs {
    text-align: left;
  }
}
