
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

/* ======================
   HEADER & NAVIGATION
====================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background: rgba(34, 34, 34, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

  padding: 20px 40px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
}

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

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.nav a:hover {
  color: #00bcd4;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #00bcd4;
  transition: width 0.3s;
}

.nav a:hover::after {
  width: 100%;
}

/* Prevent content hiding under fixed header */
main {
  padding-top: 100px;
}

/* ======================
   SECTIONS COMMON
====================== */

section {
  padding: 60px 40px;
}

section h2 {
  font-size: 28px;
  margin-bottom: 25px;
}

/* ======================
   ABOUT SECTION
====================== */

.about {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #fff;
}

.about-photo {
  width: 220px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.about p {
  max-width: 600px;
  font-size: 16px;
}

/* ======================
   PROJECTS SECTION
====================== */

.projects {
  background-color: #f0f0f0;
}

.projects-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.project-card {
  background-color: #fff;
  width: 300px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.project-card h3 {
  margin-bottom: 10px;
}

.project-card a {
  display: inline-block;
  margin-top: 10px;
  color: #00bcd4;
  font-weight: 600;
  text-decoration: none;
}

.project-card a:hover {
  text-decoration: underline;
}

/* ======================
   CONTACT SECTION
====================== */

.contact {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact p {
  margin-bottom: 5px;
}

.contact a {
  color: #00bcd4;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* CONTACT FORM */

.contact-form {
  margin-top: 25px;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 400px;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #999;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
}

.contact-form button {
  padding: 12px;
  background: linear-gradient(135deg, #00bcd4, #0097a7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 188, 212, 0.3);
}

/* ======================
   FOOTER
====================== */

.footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
