/* Base Styles */
:root {
  --primary-color: #0a192f;
  --secondary-color: #64ffda;
  --text-color: #8892b0;
  --heading-color: #ccd6f6;
  --background-color: #f5f5f7;
  --card-bg: #112240;
  --hover-color: #233554;
  --shadow-color: rgba(0, 0, 0, 0.2);
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

header .logo {
  float: left;
  margin-left: 30px;
}

header .logo a {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  padding: 5px 12px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  transition: all 0.3s ease;
}

header .logo a:hover {
  background-color: var(--primary-color);
  color: white;
}

nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  margin-right: 30px;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
  transition: all 0.3s ease;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after, 
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  cursor: pointer;
  margin-right: 20px;
  font-size: 24px;
}

/* About Hero Section */
.about-hero {
  background: linear-gradient(135deg, var(--primary-color), #1a365d);
  color: white;
  padding: 150px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,100 L0,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
  background-size: 100% 100%;
}

.about-hero .hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.about-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--heading-color);
}

.about-hero p {
  font-size: 18px;
  color: #a8b2d1;
  max-width: 700px;
  margin: 0 auto;
}

/* About Content Section */
.about-content {
  padding: 80px 0;
}

.profile-section {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.profile-section:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.profile-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.profile-photo:hover {
  transform: scale(1.03);
}

.profile-info {
  padding: 30px;
  flex: 1;
}

.profile-info h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

.profile-info h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.profile-info p {
  color: #555;
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.profile-info .social-links {
  display: flex;
  margin-top: 20px;
}

.profile-info .social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: white;
  transition: all 0.3s ease;
}

.profile-info .social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* Skills Section */
#skills {
  margin-bottom: 60px;
  background-color: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#skills:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

#skills h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
}

#skills h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

#skills p {
  color: #555;
  margin-bottom: 30px;
  line-height: 1.8;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.skill {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.skill:hover {
  background-color: #f0f0f0;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.skill i {
  font-size: 30px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.skill h3 {
  font-size: 18px;
  color: #333;
  margin-bottom: 15px;
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background-color: #e0e0e0;
  border-radius: 3px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 3px;
}

/* CRITICAL FIX FOR BLANK SECTIONS */
/* This CSS contains only the absolutely essential styles to make the timeline and education sections visible */

/* Experience Section Styles */
#experience {
  padding: 40px;
  margin-bottom: 60px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#experience h2 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 30px;
  position: relative;
}

#experience h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.experience-item {
  background-color: #f9f9fa;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.experience-item:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Experience Header - Clickable */
.experience-header {
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f9f9fa;
}

.experience-header:hover {
  background-color: #f0f5ff;
}

.company-logo {
  width: 45px;
  height: 45px;
  background-color: #446b9e;
  color: white;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  flex-shrink: 0;
}

.company-logo i {
  font-size: 20px;
}

.position-info {
  flex: 1;
}

.position-info h3 {
  font-size: 18px;
  color: #2c5282;
  margin-bottom: 5px;
  font-weight: 600;
}

.position-info h4 {
  font-size: 16px;
  color: #4a5568;
  margin-bottom: 5px;
  font-weight: 500;
}

.duration {
  font-size: 14px;
  color: #718096;
  font-style: italic;
}

.toggle-icon {
  color: #4a5568;
  transition: all 0.3s ease;
}

.experience-item.active .toggle-icon i {
  transform: rotate(180deg);
}

/* Experience Content - Collapsible */
.experience-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  padding: 0 20px;
  border-top: 1px solid #e2e8f0;
}

.experience-item.active .experience-content {
  max-height: 1000px;
  padding: 20px;
}

.experience-content ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 15px;
}

.experience-content ul li {
  margin-bottom: 8px;
  color: #4a5568;
}

.skills-used {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.skills-used span {
  background-color: #e6f7ff;
  color: #0c66e4;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  .experience-content,
  .toggle-icon i,
  .experience-item {
    transition: none;
  }
}

/* Make sure there's enough contrast */
.position-info h3 {
  color: #2c5282; /* Darker blue that meets WCAG AA contrast requirements */
}

/* Add focus styles for keyboard navigation */
.experience-header:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .company-logo {
    margin-bottom: 10px;
  }
  
  .toggle-icon {
    position: absolute;
    top: 20px;
    right: 20px;
  }
  
  .skills-used {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  #experience {
    padding: 20px;
  }
  
  .experience-header {
    padding: 15px;
  }
  
  .position-info h3 {
    font-size: 16px;
  }
  
  .position-info h4 {
    font-size: 14px;
  }
}

/* Education Section Fix */
#education {
  padding: 40px;
  margin-bottom: 50px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  display: block; /* Force display */
  position: relative; 
  visibility: visible !important;
  opacity: 1 !important;
}

#education h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #0a192f;
  display: block;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
  visibility: visible !important;
  opacity: 1 !important;
}

.education-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
}

.education-card-image {
  height: 180px;
  display: block;
}

.education-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.education-info {
  padding: 20px;
}

.education-info h3 {
  font-size: 1.1rem;
  color: #0a192f;
  margin-bottom: 10px;
}

.education-info p {
  color: #555;
  margin-bottom: 5px;
}

.graduation-date {
  color: #777;
  font-style: italic;
}

/* Media Query for Mobile Adjustments */
@media (max-width: 768px) {
  .timeline-marker {
    left: -35px;
  }
  
  .education-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact Section */
#contact {
  padding: 80px 0;
  background-color: var(--background-color);
}

#contact h2 {
  text-align: center;
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 40px;
  position: relative;
}

#contact h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-info {
  padding: 40px;
  background: linear-gradient(135deg, var(--primary-color), #1a365d);
  color: white;
}

.contact-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--heading-color);
}

.contact-info p {
  margin-bottom: 25px;
  color: #a8b2d1;
}

.contact-details {
  list-style: none;
  margin-bottom: 30px;
}

.contact-details li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.contact-details li i {
  margin-right: 10px;
  width: 20px;
  color: var(--secondary-color);
}

.social-links {
  display: flex;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: white;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

form {
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

form input,
form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(10, 25, 47, 0.1);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

button[type="submit"] {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #152347;
  transform: translateY(-2px);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn {
  background-color: var(--primary-color);
  color: white;
  border: 2px solid var(--primary-color);
}

.primary-btn:hover {
  background-color: #152347;
  transform: translateY(-2px);
}

/* Footer Styles */
footer {
  background-color: var(--primary-color);
  color: #a8b2d1;
  padding: 40px 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-info p {
  margin-bottom: 5px;
}

footer .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .profile-section {
    flex-direction: column;
    text-align: center;
  }

  .profile-photo {
    margin: 25px auto;
  }

  .profile-info h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .profile-info .social-links {
    justify-content: center;
  }

  #skills h2::after,
  #experience h2::after,
  #education h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  #skills h2,
  #experience h2,
  #education h2 {
    text-align: center;
  }

  .timeline {
    padding-left: 50px;
  }

  .timeline::before {
    left: 25px;
  }

  .timeline-marker {
    left: -35px;
  }
  
  .education-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header .logo {
    margin-left: 15px;
  }
  
  nav ul {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  nav ul.active {
    display: flex;
  }
  
  nav ul li {
    margin: 0;
    text-align: center;
    padding: 12px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .about-hero h1 {
    font-size: 36px;
  }
  
  .about-hero p {
    font-size: 16px;
  }
  
  .profile-photo {
    width: 250px;
    height: 250px;
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-info {
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  .about-hero h1 {
    font-size: 28px;
  }
  
  .about-hero {
    padding: 120px 0 60px;
  }
  
  .profile-photo {
    width: 200px;
    height: 200px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  #skills, 
  #experience, 
  #education {
    padding: 25px;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-marker {
    left: -25px;
    width: 12px;
    height: 12px;
  }

  .contact-info, form {
    padding: 25px;
  }
}