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

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #f9f9f9;
}

/* Header & Navigation */
.site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 1rem;
  gap: 1.5rem;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: #0b5cff;
}

.nav-links .cta {
  background: #0b5cff;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-links .cta:hover {
  background: #093e9c;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, #0b5cff, #6ba8ff);
  color: white;
}

#typing {
  font-size: 2.5rem;
  font-weight: bold;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;  
}

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

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.btn {
  background: white;
  color: #0b5cff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #ffdd57;
  color: #111;
}

.btn.ghost {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.btn.ghost:hover {
  background: white;
  color: #0b5cff;
}

/* Skills Section */
.skills {
  padding: 3rem 1rem;
  text-align: center;
}

.skills h2 {
  margin-bottom: 2rem;
  font-size: 2rem;
}

.skills-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.skill-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
}

.skill-card h3 {
  margin-bottom: 0.5rem;
  color: #0b5cff;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 1rem;
  background: #111;
  color: #fff;
  margin-top: 2rem;
}

/* Global Styles */  
a {
  text-decoration: none;
  color: inherit;
}
  
ul {
  list-style: none;
}

/*  Header & Nav */
header {
  background: #222;
  color: #fff;
  padding: 1rem 2rem;
}
  
header nav ul {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}
  
header nav a {
  color: #fff;
  transition: color 0.3s;
}
  
header nav a:hover,
header nav a.active {
  color: #ff9800;
}
  
.cta {
  background: #ff9800;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  color: #fff !important;
  font-weight: bold;
  transition: background 0.3s;
}
  
.cta:hover {
  background: #e68900;
}
  
  /* Hero Section (Home) */
main {
  padding: 2rem;
}
  
main h1,
main h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #222;
}
  
main p {
  text-align: center;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
  
main a.btn,
button.btn {
  display: inline-block;
  margin: 0.5rem;
  padding: 0.7rem 1.2rem;
  background: #ff9800;
  color: #fff;
  border-radius: 5px;
  transition: background 0.3s;
}
  
main a.btn:hover,
button.btn:hover {
  background: #e68900;
}
  
  /* Skills (Home) */
.skill-card {
  background: #fff;
  margin: 1rem auto;
  padding: 1.2rem;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}
  
.skill-card:hover {
  transform: translateY(-5px);
}
  
  /* About Page */
.about {
  max-width: 800px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
  
.about p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

  
  /* Projects Page */
.projects {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}
  
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card img {
  max-width: 100%;
  border-radius: 6px;
  margin-bottom: 15px;
}
  
.project-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}
  
.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
}
  
.project-card h3 {
  margin-bottom: 0.8rem;
  color: #222;
}
  
.project-card p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: #555;
}
  
  /* Contact Page */
.contact {
  max-width: 600px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
  
.contact p {
  margin-bottom: 1.5rem;
  text-align: center;
}
 
.contact-form .form-group {
  margin-bottom: 1rem;
}
  
.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: #444;
}
  
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s;
}
  
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ff9800;
  outline: none;
}
  
.contact-form button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  font-size: 1rem;
}
  
  /* Footer */
footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}
  
  /* Responsive */
@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    gap: 0.8rem;
  }
  
 .skill-card {
    max-width: 90%;
  }
}
/* Mobile First Adjustments */
@media (max-width: 768px) {
  /* Hero */
  .hero {
    padding: 2rem 1rem;
  }

  #typing {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  /* Nav */
  .nav-links {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  /* Skills & Projects */
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr; /* One per row */
  }

  .skill-card,
  .project-card {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  #typing {
    font-size: 1.2rem;
  }

  .hero {
    padding: 1.5rem 0.5rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .contact,
  .about {
    padding: 1rem;
  }
}


  
