/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: #ebfeff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header and Navigation */
header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4578bd;
  text-decoration: none;
}

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

.nav-links a {
  text-decoration: none;
  color: #263238;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4578bd;
}

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(135deg, #ebfeff 0%, #ffffff 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text p:first-child {
  color: #263238;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-text p:nth-child(3) {
  font-size: 1.1rem;
  color: #263238;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn {
  background: #4578bd;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 2px solid #4578bd;
  text-align: center;
}

.btn:hover {
  background: #263238;
  border-color: #263238;
  transform: translateY(-2px);
}

.button-outline {
  padding: 12px 24px;
  border: 2px solid #4578bd;
  color: #4578bd;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button-outline:hover {
  background: #4578bd;
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  object-position: center top;
}

/* About Section */
.about {
  padding: 80px 0;
  background: white;
}

.about-flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.about-text h3 {
  color: #4578bd;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #263238;
  line-height: 1.7;
}

/* Skills Section */
.skills {
  padding: 80px 0;
  background: #f2faf6;
}

.skills h3 {
  color: #4578bd;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 0.5rem;
}

#skills-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 3rem;
}

#skills-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skills-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  width: 100%;
}

#skills-content img {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

#skills-content img:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Projects Section */
.projects {
  padding: 80px 0;
  background: white;
}

.projects h3 {
  color: #4578bd;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 0.5rem;
}

.projects h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #000000;
  text-align: center;
  margin-bottom: 3rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e2e8f0;
}

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

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.project-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000000;
  margin-bottom: 0.5rem;
}

.project-card p {
  color: #263238;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-links a {
  padding: 8px 16px;
  background: #ebfeff;
  color: #4578bd;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-links a:hover {
  background: #4578bd;
  color: white;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background: #f8fafb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.contact-info p {
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.contact-info p i {
  color: #2563eb;
  margin-right: 0.5rem;
  width: 20px;
}

.contact-info a {
  color: #2563eb;
  text-decoration: none;
}

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

.icons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #4578bd;
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.icons a:hover {
  background: #263238;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #4578bd;
}

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

.contact-form .btn {
  margin: 0 auto;
  display: block;
}

/* Footer */
footer {
  background: #000000;
  color: white;
  text-align: center;
  padding: 2rem 0;
}

footer p {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .hero {
    padding: 140px 0 60px; /* Increased top padding for mobile */
  }

  .hero .container,
  .about-flex,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero .container {
    grid-template-rows: auto auto;
  }

  .hero-image {
    order: -1;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .about-text h2,
  .projects h2,
  .contact-info h2 {
    font-size: 2rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .hero-buttons .btn,
  .hero-buttons .button-outline {
    width: auto;
    min-width: 200px;
    text-align: center;
  }

  .skills-icons {
    gap: 1rem;
  }

  #skills-content img {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    padding: 160px 0 60px;
  }

  .hero-text h2 {
    font-size: 1.75rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 2rem;
}
