/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu', sans-serif;
  color: #333;
  background: url('images/background.png') no-repeat center center/cover;
  background-attachment: fixed; /* keeps it in place when scrolling */
}


/* Navigation bar */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #222;
  padding: 15px 50px;
  color: white;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
}

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

nav ul li a {
  color: rgb(23, 64, 186);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
  color: #00bcd4;
}

/* Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 90vh;
  text-align: center;
  background: transparent; /* removed the blue */
  color: rgb(25, 44, 212); /* keeps text visible over your background */
}


.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.btn {
  background-color: white;
  color: #007bff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background-color: #007bff;
  color: white;
}

/* Portfolio Section */
.portfolio {
  padding: 60px 20px;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #333;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
  gap: 25px;
  max-width: 1000px; /* controls total width */
  margin: 0 auto;
  justify-items: center;
}

.card {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  text-decoration: none;
  color: #333;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1; /* makes it a perfect square */
  width: 100%;
  max-width: 220px; /* keeps card size balanced */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card img {
  width: 100%;
  height: 70%;
  object-fit: cover;
}

.card p {
  padding: 10px;
  font-weight: 600;
  text-align: center;
  background: rgba(255,255,255,0.9);
}

/* Optional: glowing hover effect for cool style */
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 20px rgba(0, 188, 212, 0.5);
}



/* Contact Section */
.contact {
  background-color: #f9f9f9;
  padding: 60px 20px;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 15px;
}

.contact p {
  color: #555;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.contact-form textarea {
  resize: none;
}

.contact-form button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.about-home {
  position: relative;
  padding: 50px 20px;
  display: flex;
  justify-content: flex-start; /* aligns left */
  align-items: flex-end; /* aligns bottom */
  height: 300px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0)),
              url('images/me.png') no-repeat center center/cover; /* optional background */
  color: white;
  text-align: left;
}

.about-text {
  max-width: 400px;
  background: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 30px 10px;
  margin-top: 40px;
}

.footer p {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer .social-links a img {
  width: 25px;
  margin: 0 10px;
  filter: invert(1);
  transition: transform 0.3s;
}

.footer .social-links a img:hover {
  transform: scale(1.2);
}
.about-text {
  max-width: 400px;
  background: rgba(0, 0, 0, 0.5); /* <– controls transparency */
  padding: 20px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.9); /* <– text slightly transparent */
}
