/* ====== Global Styles ====== */
:root {
  --primary: #FFA500;
  --secondary: #00599C;
  --dark: #1e1e2c;
  --light: #f5f5f7;
  --gray: #6c757d;
  --header-height: 80px;
  --first-name-color: #00599C;
  --last-name-color: #FFA500;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: var(--header-height);
}

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

/* ====== Header Styles ====== */
header {
  background-color: white;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-profile {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.header-name {
  font-weight: 600;
  font-size: 1.3rem;
  white-space: nowrap;
}

.first-name {
  color: var(--first-name-color);
}

.last-name {
  color: var(--last-name-color);
}

nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: 30px;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark);
  cursor: pointer;
  z-index: 1001;
}

/* ====== Hero Section ====== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 44, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 40px 20px;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.typing-text {
  font-family: 'Fira Code', monospace;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary);
  margin: 20px 0;
  height: 60px;
  min-height: 60px;
}

.flag {
  vertical-align: middle;
  width: 20px;
  margin-left: 5px;
}

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

.bg-light {
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70px;
  height: 3px;
  background-color: var(--primary);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ====== About Section ====== */
.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Bio Data Styles */
.bio-section {
  margin-bottom: 40px;
}

.bio-section h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.4rem;
}

.bio-section h3 i {
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.2rem;
}

.bio-list {
  list-style: none;
  padding-left: 5px;
}

.bio-list li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
}

.bio-list li:before {
  content: "•";
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1.4rem;
  line-height: 1;
}

.bio-list strong {
  color: var(--dark);
  min-width: 140px;
  display: inline-block;
  font-weight: 500;
}

/* Interests Styles */
.interests-section {
  margin-top: 40px;
}

.interests-section h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.4rem;
}

.interests-section h3 i {
  margin-right: 12px;
  color: var(--primary);
  font-size: 1.2rem;
}

.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.interest-item {
  background-color: white;
  padding: 20px 15px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.interest-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.interest-item i {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.interest-item span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

/* ====== Education Section ====== */
.education-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.education-item {
  position: relative;
  padding-left: 30px;
}

.education-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--primary);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.education-header h3 {
  font-size: 1.3rem;
  color: var(--secondary);
}

.education-date {
  background-color: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.education-institution {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--gray);
}

.education-institution i {
  margin-right: 10px;
  color: var(--primary);
}

.education-details p {
  color: var(--dark);
  line-height: 1.7;
}

/* ====== Skills Section ====== */
.skills-container {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skills-category {
  margin-bottom: 30px;
}

.skills-category h3 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.skills-category h3 i {
  margin-right: 10px;
  color: var(--primary);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.skills-list img {
  height: 28px;
  border-radius: 4px;
}

.divider {
  height: 1px;
  background-color: #eee;
  margin: 25px 0;
  width: 100%;
}

.other-skills {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--dark);
}

.skill-badge {
  background-color: var(--light);
  color: var(--dark);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
  margin: 2px 0;
}

/* ====== Projects Section ====== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
/*
.project-image {
  height: 250px;
  overflow: hidden;
}
*/
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--secondary);
}

.project-info p {
  color: var(--gray);
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tech-badge {
  background-color: var(--light);
  color: var(--dark);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
}

.project-links a {
  display: inline-block;
  margin-right: 10px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.project-links a:hover {
  color: var(--secondary);
}

/* ====== Contact Section ====== */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary);
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 1rem;
}

.contact-item span {
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

/* ====== Footer ====== */
footer {
  background-color: var(--dark);
  color: white;
  text-align: center;
  padding: 30px 0;
}

.footer-content p {
  margin-bottom: 10px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--secondary);
  transform: translateY(-3px);
}

/* ====== Animations ====== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* ====== Responsive Styles ====== */
@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: left 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 15px 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  .typing-text {
    font-size: 1.2rem;
    height: 80px;
  }
  
  section {
    padding: 60px 0;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .header-name {
    font-size: 1.1rem;
  }
  
  .header-profile {
    width: 40px;
    height: 40px;
  }
  
  .skills-list img {
    height: 24px;
  }
  
  .hero {
    min-height: 90vh;
    padding: 120px 0 60px;
  }
  
  .interests-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
  }
  
  .bio-list strong {
    min-width: 100px;
    display: block;
    margin-bottom: 5px;
  }
  
  .bio-list li {
    padding-left: 0;
  }
  
  .bio-list li:before {
    display: none;
  }
}