/* Base Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f0f4f8;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(to right, #004d40, #00796b);
    color: #fff;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 2.5rem;
}

header p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #00695c;
}

nav ul li {
    margin: 0.5rem;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

nav ul li a:hover {
    background-color: #004d40;
}

/* Section Styling */
section {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    text-align: center;
}

section h2 {
    margin-bottom: 1rem;
    color: #00796b;
    border-bottom: 2px solid #e0f2f1;
    padding-bottom: 0.5rem;
}

/* Skills List */
#skills ul {
    list-style: disc inside;
    text-align: left;
    padding-left: 1rem;
}

/* Certifications Grid */
.cert-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.cert {
    width: 180px;
    text-align: center;
}

.cert img {
    width: 100%;
    max-height: 120px;
    object-fit: contain;
}

/* Project and Resume Link Buttons */
.project-link,
.resume-download {
    display: inline-block;
    width: 100%;
    max-width: 200px;
    text-align: center;
    background-color: #00796b;
    color: #fff;
    padding: 0.6rem 1.2rem;
    margin-top: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.project-link:hover,
.resume-download:hover {
    background-color: #004d40;
}

/* Three-column Layout */
.three-column {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem auto;
    max-width: 1000px;
}

/* Card Style for Each Section */
.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 280px;
    text-align: center;
    flex: 1 1 260px;
}

.card h2 {
    margin-bottom: 1rem;
    color: #00796b;
    border-bottom: 2px solid #e0f2f1;
    padding-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #004d40;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-top: auto;
    font-size: 0.95rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 0;
    letter-spacing: 0.5px;
}

.project {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
  padding: 2rem;
  margin-bottom: 2rem;
  text-align: left; /* ✅ Ensures left alignment */
  line-height: 1.6;
  max-width: 900px; /* ✅ Keeps content width consistent */
  margin-left: auto;
  margin-right: auto;
}

.project p,
.project ul {
  max-width: 80ch; /* ✅ Keeps readable text width */
  margin: 0 auto 1rem auto;
}

.project ul {
  padding-left: 1.5rem;
  list-style-type: disc;
}

.project h3 {
  color: #00796b;
  margin-bottom: 0.5rem;
}

.project a {
  color: #00796b;
  text-decoration: none;
}

.project a:hover {
  text-decoration: underline;
}
