/* Reset and global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body, html {
  height: 100%;
  margin: 0;
}

body {
  background-color: #000000; /* Black color as default background */
  color: #ffffff;
  font-family: 'Oxanium', sans-serif; /* Updated to Oxanium font */
  line-height: 1.6;
  padding: 2rem;
  max-width: 1000px; /* Unified width */
  margin: 0 auto;
  text-align: center;
}

/* Main layout */
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background-color: #17213B; /* Blue color for the middle section */
}

/* Logo styling */
.logo-container {
  margin: 2rem auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  height: auto; /* Auto height to maintain aspect ratio */
  background-image: url('assets/gradient_1280_288.png');
  background-size: contain; /* Change to contain instead of cover to maintain aspect ratio */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0px; /* Removing rounded corners */
  overflow: hidden;
  aspect-ratio: 1280/288; /* Exact aspect ratio of the banner */
}

.logo-image {
  width: auto; /* Removed percentage width */
  max-height: 50%; /* Maximum height 50% of banner height */
  max-width: unset; /* Removing width restriction */
  height: auto;
  position: relative;
  z-index: 2;
}

/* Removing previous styles for the image that are no longer needed */
.logo-container img {
  width: auto;
  max-width: unset;
  height: auto;
}

.logo {
  background-color: white;
  padding: 2rem;
  border-radius: 8px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo svg {
  width: 100%;
  height: 100%;
  fill: #17213B; /* Updated to primary brand color */
}

.name {
  font-size: 2.5rem;
  font-weight: bold;
}

/* Contact information section */
.contact-info {
  text-align: center;
  color: #ffffff;
  margin-top: 20px;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 600;
}

.contact-info p {
  font-size: 18px;
  margin: 5px 0;
}

.linkedin-link {
  color: #ffffff;
  text-decoration: underline;
  margin-top: 10px;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: center; /* Add to center LinkedIn icon */
  gap: 0.5rem;
}

.linkedin-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Language switcher */
.language-switch {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(169, 206, 244, 0.3); /* Updated with brand color with transparency */
  padding: 5px;
  border-radius: 5px;
}

.language-switch select {
  background-color: #17213B; /* Updated to primary brand color */
  color: #ffffff;
  border: none;
  padding: 5px;
  font-size: 14px;
  font-family: 'Oxanium', sans-serif;
}

/* Content sections */
.intro {
  margin-bottom: 20px; /* Add margin to separate sections */
}

.availability {
  margin-bottom: 20px; /* Add margin to separate sections */
}

/* Links styling */
.contact a {
  color: #DFB715; /* Updated to brand accent color */
  text-decoration: none;
  border-bottom: 2px solid #DFB715; /* Updated to brand accent color */
  padding-bottom: 2px;
  transition: opacity 0.3s;
  font-size: 1.2rem;
}

.contact a:hover {
  opacity: 0.8;
}

/* Headline section */
.headline-container {
  margin: 4rem auto;
  max-width: 100%; /* Changed for consistent width */
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
}

.headline-item {
  padding: 1.5rem;
  background: #17213B; /* Changing color to #17213B */
  border-radius: 0px; /* Removing rounded corners */
  transition: transform 0.3s ease, background 0.3s ease;
  cursor: default;
  text-align: center; /* Center headline text */
}

.headline-item:hover {
  transform: translateY(-5px);
  background: rgba(169, 206, 244, 0.1); /* Updated with brand color */
}

.headline-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #DFB715; /* Updated to brand accent color */
}

.headline-description {
  font-size: 1rem;
  color: #A9CEF4; /* Updated to brand color */
}

/* Removing the connecting line */
.connecting-line {
  display: none; /* Hide the connecting line */
}

/* About section */
.about-section {
  margin: 6rem auto;
  max-width: 100%; /* Changed for consistent width */
  text-align: center; /* Center about section content */
}

.section-heading {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: #DFB715; /* Updated to brand accent color */
}

.about-intro {
  background: rgba(169, 206, 244, 0.05); /* Updated with brand color */
  padding: 2rem;
  border-radius: 0px; /* Removing rounded corners */
  margin-bottom: 3rem;
  text-align: center; /* Center about intro text */
  color: #ffffff;
  font-size: 1.1rem;
  line-height: 1.8;
}

/* Expertise section */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.expertise-card {
  background: #17213B; /* Changed to match headline-item background */
  padding: 1.5rem;
  border-radius: 0px; /* Changed from 12px to 0px to remove rounded corners */
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: center;
  color: #ffffff;
}

.expertise-card:hover {
  transform: translateY(-5px);
  background: rgba(169, 206, 244, 0.1); /* Keep the hover state as is */
}

.expertise-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.expertise-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #DFB715; /* Updated to brand accent color */
  display: flex;
  justify-content: center; /* Center title content */
  align-items: center;
  gap: 0.5rem;
}

.expertise-description {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #A9CEF4; /* Updated to brand color */
}

.tech-stack {
  color: rgba(169, 206, 244, 0.7); /* Updated with brand color */
  font-size: 0.9rem;
}

/* Closing note */
.closing-note {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(169, 206, 244, 0.05); /* Updated with brand color */
  border-radius: 0px; /* Removing rounded corners */
  font-style: italic;
  text-align: center; /* Center closing note text */
}

/* Contact section */
.contact-section {
  margin-top: 4rem;
}

/* Footer */
footer {
  margin-top: 6rem; /* Increased margin-top */
  padding-top: 1rem; /* Reduced padding-top */
  border-top: none; /* Removed border */
  font-size: 0.8rem; /* Reduced font-size */
  color: rgba(255, 255, 255, 0.4); /* Made color more subtle */
  text-align: center; /* Centered the text */
}

/* Contact section spacing */
.contact-spacer {
    margin: 20px 0;
}

/* Responsive design */
@media (max-width: 768px) {
  .logo-container {
    flex-direction: column;
    text-align: center;
    height: 200px; /* Smaller height on mobile devices */
    aspect-ratio: 1280/288; /* Maintaining aspect ratio on mobile devices */
  }

  .logo {
    margin: 0 auto;
  }

  .logo-image {
    max-height: 40%; /* Smaller percentage for mobile devices */
  }

  .headline-container {
    margin: 2rem auto; /* Reduced from 4rem for mobile devices */
  }

  .headline-item {
    padding: 1.2rem;
  }

  .headline-title {
    font-size: 1.2rem;
  }

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

  .expertise-grid {
    flex-direction: column; /* Cards below each other on mobile devices */
  }

  .expertise-card {
    width: 100%; /* Full width on mobile devices */
    text-align: center; /* Keep centered on mobile */
  }

  .expertise-title {
    text-align: center; /* Keep centered on mobile */
    justify-content: center; /* Ensure center alignment */
  }

  .about-section {
    margin: 3rem auto; /* Reduced from 6rem for mobile devices */
  }

  .section-heading {
    font-size: 2rem; /* Reduced from 2.5rem for mobile devices */
  }

  .about-intro {
    padding: 1.5rem; /* Reduced from 2rem for mobile devices */
  }

  .language-switch {
    top: 15px;
    right: 15px;
    padding: 8px;
  }

  .language-switch select {
    padding: 8px; /* Increased from 5px for easier selection on touch devices */
  }

  .contact a {
    padding: 5px 0; /* Added vertical padding for larger touch area */
  }
}

@media (max-width: 480px) {
  .logo-container {
    height: 160px; /* Even smaller height on very small devices */
  }

  .logo-image {
    max-height: 35%; /* Even smaller percentage on small devices */
  }
}
