/* Reset & font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base setup */
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f7f7;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #004466, #0088cc);
  color: white;
  padding: 1rem 1.5rem;
  position: relative;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.menu-toggle {
  font-size: 1.8rem;
  color: white;
  display: none;
  cursor: pointer;
}

/* Navigation */
.navbar {
  display: flex;
}

.navbar .nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.navbar .nav-links li a {
  color: white;
  font-size: 1.1rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar .nav-links li a:hover {
  color: #00aaff;
}

/* Hero */
.hero {
  padding: 3rem 2rem;
  text-align: center;
  background: linear-gradient(to right, #004466, #0088cc);
  color: white;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.hero p {
  max-width: 800px;
  margin: auto;
}

.button {
  display: inline-block;
  margin-top: 1rem;
  text-decoration: none;
  background: white;
  color: #0088cc;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: bold;
  transition: 0.3s ease;
}

.button:hover {
  background: #006699;
  color: white;
}

/* Projects */
.projects {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

.projects h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.project-info h3 {
  margin-bottom: 0.5rem;
}

.project-info p {
  margin-bottom: 1rem;
}

img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
}

/* Footer */
.footer {
  background: #111;
  color: white;
  padding: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer .contact{
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer .contact i {
  margin-right: 8px;
}


.footer .social {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer .social {
  font-size: 1.5rem;
}

.footer .social a {
  color: white;
  transition: color 0.3s ease;
}

.footer .social a:hover {
  color: #00aaff;
}

.footer .copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #ccc;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideIn {
  0%   { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero > * {
  animation: fadeSlideIn 1s ease-in forwards;
}

.hero h1   { animation-delay: 0.2s; }
.hero h2   { animation-delay: 0.3s; }
.hero p    { animation-delay: 0.4s; }
.hero .button { animation-delay: 0.5s; }

/* Responsive Styles */
@media (max-width: 768px) {
  .logo {
    display: none;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    display: none;
    animation: fadeIn 0.4s ease-in-out forwards;
  }

  .navbar.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  @media (max-width: 768px) {
    .footer-content {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
  
    .footer .contact {
      flex-direction: column;
      align-items: center;
      gap: 0.8rem;
    }
  
    .footer .social {
      align-items: center;
    }
  }
  
}
