/* Reset & Base Styles */
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #111;
  background: #fdf8f5;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4 {
  margin-bottom: 1rem;
  font-weight: 600;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

.subheading {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.highlight {
  color: #000;
  font-weight: 700;
  border-bottom: 3px solid #000;
  padding-bottom: 0.2rem;
}

/* Header & Navigation */
.header {
  background: #8B0000;
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: #f0e6d2;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: #D4AF37;
}

/* Hero Section */
  .hero {
  padding: 5rem 0;
  text-align: center;
  background: #f9f9f9;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-content {
  max-width: 700px;
}

.hero-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid #000;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0;
  }
  .hero .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  .hero-content {
    max-width: 600px;
  }
  .hero-visual {
    flex: 1;
    text-align: center;
  }
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.3rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.intro {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #555;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}


.testimonials {
  padding: 4rem 0;
  background: #fff;
}

.testimonials h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: #f5f5f5;
  padding: 1.5rem;
  border-left: 3px solid #000;
  border-radius: 4px;
}

.quote {
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.author {
  font-weight: 600;
  color: #000;
}


/* Buttons */
.btn {
  padding: 0.8rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background: #8B0000;
  color: #fff;
}

.btn-primary:hover {
   background: #6a0000;
  transform: translateY(-2px);
}

.btn-secondary {
   background: #D4AF37;
  color: #fff;
  border: 2px solid #000;
}

.btn-secondary:hover {
background: #b89b2e;
  transform: translateY(-2px);
}

.btn-outline {
 border: 2px solid #8B0000;
  color: #8B0000;
  background: transparent;
}

.btn-outline:hover {
   background: #8B0000;
  color: #fff;
}

/* Main Content */
.main {
  padding: 4rem 0;
}

/* About Page */
.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.profile {
  text-align: center;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  margin-bottom: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #f0f0f0;
  /* Ensures the image never overflows on small screens */
  max-width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .about {
    flex-direction: row;
    align-items: flex-start;
  }
  .profile {
    flex: 1;
    text-align: left;
  }
  .bio {
    flex: 2;
  }
}

/* Timeline */
.timeline {
  margin-top: 2rem;
}

.timeline-item {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid #000;
}

.timeline-item h4 {
  margin-bottom: 0.3rem;
}

.date {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Skills Page */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card h4 {
  margin-bottom: 0.5rem;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #eee;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar span {
  display: block;
  height: 100%;
  background: #000;
}

/* Projects Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}
.project-tools {
  font-size: 0.9rem;
  color: #555;
  margin: 0.8rem 0;
  padding: 0.5rem;
  background: #f0f0f0;
  border-radius: 4px;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card h3 {
  padding: 0 1rem;
}

.project-card p {
  padding: 0 1rem;
  color: #555;
}

.project-card .btn {
  margin: 1rem;
}

/* Resume Page */
.resume-page .container {
  max-width: 900px;
}

.resume-header {
  text-align: center;
  margin-bottom: 3rem;
}

.resume-header h1 {
  font-size: 2.5rem;
}

.resume-section {
  margin-bottom: 2.5rem;
}

.resume-item h3 {
  margin-bottom: 0.3rem;
}

.resume-date {
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.resume-section ul {
  margin-left: 1.2rem;
}

.resume-section ul li {
  margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .contact-wrapper {
    flex-direction: row;
  }
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.contact-info {
  flex: 1;
}

.social-links {
  list-style: none;
}

.social-links li {
  margin-bottom: 0.8rem;
}

.social-links a {
  color: #000;
  text-decoration: none;
}

.social-links a:hover {
  text-decoration: underline;
}

.qr-code {
  margin-top: 1.5rem;
  text-align: center;
}

.qr-code img {
  border: 1px solid #ccc;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: #f0f0f0;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .nav {
    gap: 1rem;
    flex-wrap: wrap;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}