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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

#banner {
  background: linear-gradient(rgba(0,0,0,0.5), #009688), url("background.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
}


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

/* Navigation */
.navbar {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: white;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
}

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

.nav-menu a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.nav-menu a:hover {
  opacity: 0.8;
}

/* Hero Section Background */
.hero {
  background: url("background.png");
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.profile-image {
  width: 160px;
  height: 160px;
  margin: 0 auto 2rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(37, 99, 235, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%; /* fine-tuned to center face after zoom */
  transform: scale(1.3);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: bold;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.1rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.hero-description {
  font-size: 1.25rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

/* Typing effect */
.typing-text {
  overflow: hidden;              /* Ensures text stays within bounds */
  white-space: nowrap;           /* Prevents wrapping */
  border-right: 3px solid #2563eb; /* Cursor effect */
  width: 0;                      /* Hidden initially */
  animation: typing 6s steps(40, end) forwards, blink 0.7s step-end infinite;
}

/* Typing keyframes */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Cursor blink keyframes */
@keyframes blink {
  50% { border-color: transparent; }
}

@media (max-width: 480px) {
  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .typing-text {
    border-right-width: 2px;
    animation: typing 8s steps(25, end) forwards, blink 1s step-end infinite;
  }
}


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

.btn {
  padding: 0.75rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
  background: white;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-secondary:hover {
  background: #eff6ff;
}

.hero-location {
  color: #64748b;
  font-size: 0.95rem;
}

/* Section Styles */
section {
  padding: 80px 20px;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  border-radius: 2px;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
}

.about-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  border: 2px solid #e0f2fe;
}

.about-card p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.8;
}

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

.info-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid #e0f2fe;
}

.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Education Section */
.education {
  background: #ffffff;
}

.education-card {
  background: linear-gradient(135deg,  #f0f9ff 0%, #e0f2fe 100%);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #85b7c3;
}

.education-icon {
  font-size: 3rem;
}

.education-content h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.institution {
  font-size: 1.1rem;
  color: #64748b;
  font-weight: 600;
}

.location,
.year {
  color: #64748b;
  margin-top: 0.25rem;
}

/* Skills Section */
.skills {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #e0f2fe 100%);
  padding: 4rem 2rem;
}

/* Two-column layout */
.skills-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Left side (Technical Skills - made smaller) */
.skills-grid {
  flex: 0.9; /* smaller width */
  min-width: 300px;
  max-width: 500px; /* narrower box */
}

/* Right side (Soft Skills & Tools) */
.side-skills {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 300px;
  max-width: 500px;
}

/* Card styling */
.skill-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #bfdbfe;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #1e293b;
  text-align: center;
}

/* Skill Tags */
.skill-tags {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-tag {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #2563eb;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.4rem;
  align-self: flex-start;
}

/* Bars */
.skill {
  margin-bottom: 0.8rem;
  text-align: left;
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #1e293b;
}

.skill-bar {
  background: #e2e8f0;
  border-radius: 20px;
  height: 10px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  border-radius: 20px;
  animation: fillBar 2.5s ease-in-out forwards;
}

/* Animation */
@keyframes fillBar {
  from { width: 0; }
  to { width: var(--skill-width, 100%); }
}

/* Soft Skills list */
.soft-skills-list {
  list-style: none;
  padding: 0;
  color: #64748b;
  font-size: 1rem;
}

.soft-skills-list li {
  padding: 0.6rem 0;
}

/* Responsive */
@media (max-width: 992px) {
  .skills-layout {
    flex-direction: column;
  }

  .skills-grid, 
  .side-skills {
    max-width: 100%;
  }
}



/* Experience Section */
.experience {
  background: #ffffff;
}

.experience-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  gap: 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #bae6fd;
}

.experience-icon {
  font-size: 3rem;
}

.experience-content h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.company {
  font-size: 1.1rem;
  color: #2563eb;
  font-weight: 600;
}

.duration {
  color: #64748b;
  margin: 0.5rem 0 1rem;
}

.experience-list {
  list-style: none;
  padding-left: 0;
}

.experience-list li {
  padding: 0.5rem 0;
  color: #64748b;
  position: relative;
  padding-left: 1.5rem;
}

.experience-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #2563eb;
}

.subsection-title {
  font-size: 1.75rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

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

.activity-card {
  background: linear-gradient(135deg, #cdf5f8 0%, #83c6d0 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid #a2d4db;
}

.activity-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.activity-card h4 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.activity-card p {
  color: #64748b;
}

/* Projects Section */
.projects {
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid #5eead4;
  transition: all 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: #14b8a6;
}

.project-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.project-card h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.project-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-tag {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
  color: #0f766e;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Certifications Section */
.certifications {
  background: #ffffff;
}

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

.cert-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid #fde047;
}

.cert-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-size: 1.1rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.cert-provider {
  color: #64748b;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cert-date {
  color: #0f766e;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  text-align: left;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  background: white;
  padding: 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 2px solid #bfdbfe;
  transition: all 0.3s;
}

.contact-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-color: #2563eb;
}

.contact-icon {
  font-size: 1.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .education-card,
  .experience-card {
    flex-direction: column;
    text-align: center;
  }

  .section-header h2 {
    font-size: 2rem;
  }
}
