:root {
  --primary-color: #2b6777;
  --secondary-color: #c8d8e4;
  --bg-color: #f4f7fa;
  --accent-color: #52ab98;
  --text-color: #333;
}


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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-links li {
  margin: 0 20px;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background-color: var(--secondary-color);
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 6px solid var(--accent-color);
}


.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.cta-button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--accent-color);
}

/* Social Icons */
.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  margin: 0 10px;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

/* Add responsive design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

/* === Global Styles === */
:root {
  --primary-color: #2b6777;
  --secondary-color: #c8d8e4;
  --bg-color: #f4f7fa;
  --accent-color: #52ab98;
  --text-color: #333;
  --card-bg: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --border-radius: 10px;
  --transition: 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* === Navigation Bar === */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
}

.nav-links li {
  margin: 0 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* === Hero Section === */
.hero {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 4rem 1rem;
}


.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.cta-button {
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.cta-button:hover {
  background-color: var(--accent-color);
}

.social-links {
  margin-top: 1.5rem;
}

.social-links a {
  margin: 0 10px;
  font-size: 1.8rem;
  color: var(--primary-color);
  transition: color var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

/* === Section Headings === */
.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 40px;
}

/* === About Section === */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px var(--shadow);
  text-align: left;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card ul {
  margin-top: 10px;
  list-style: square inside;
}

/* Tech stack section*/
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  justify-items: center;
}

.tech-item {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px var(--shadow);
  text-align: center;
  font-size: 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: bold;
}

.tech-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
}

/* === Projects Section === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background-color: var(--card-bg);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 8px var(--shadow);
  text-align: left;
}

.project-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

/* === Contact Section === */
.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

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

.contact-section input,
.contact-section textarea {
  padding: 12px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
}

.contact-section button {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.contact-section button:hover {
  background-color: var(--accent-color);
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  .cta-button {
    font-size: 0.9rem;
  }

  .card, .project-card {
    padding: 20px;
  }
}

/* About Section Layout */
.about-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 2rem auto 4rem auto;
  gap: 2rem;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.about-img img {
  width: 300px;
  max-width: 100%;
  border-radius: 20px;  /* Rounded corners */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  height: auto;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  color: var(--dark);
  line-height: 1.6;
  min-width: 280px;
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
  .about-layout {
    flex-direction: column;
    text-align: center;
  }
  
  .about-text {
    padding-top: 1rem;
  }
  
  .about-img img {
    width: 80%;
    border-radius: 20px;
  }
}

.hero-content {
  flex-direction: column;
  text-align: center;
}

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

.btn-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
}

.btn-link:hover {
  background-color: var(--accent-color);
  color: white;
}
