/* About Page Specific Styles */

/* Dark Theme Base */
body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Section Backgrounds */
.s-intro,
.s-about,
.s-header,
.s-footer {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Reduce gap between intro and about sections */
#about-intro.s-intro {
  padding-bottom: 2rem !important;
}

#about-main.s-about {
  padding-top: 1rem !important;
}

/* Control intro content spacing */
.intro-content {
  margin-bottom: 1rem !important;
}

.intro-desc {
  margin-bottom: 0.5rem !important;
}

.about-me .row:first-child {
  margin-top: 0 !important;
}

.lead {
  margin-top: 0 !important;
}

/* Typography - All text elements white */
.section-heading,
h1,
h2,
h3,
h4,
h5,
h6,
p,
.intro-text h1,
.intro-desc,
.about-me__text p,
.about-cta h3,
.about-cta p {
  color: #ffffff !important;
}

.intro-text h3 {
    color: #5271ff !important;
}

/* Logo and text layout - inverted positioning */
.intro-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.logo-about {
  width: 50%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 25px;
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 0;
}

.intro-text-overlay {
  position: relative;
  right: 0;
  top: 0;
  text-align: right;
  z-index: 2;
  width: 75%;
  padding-left: 2rem;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.intro-text-overlay h1,
.intro-text-overlay h3 {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  margin: 0;
}

.intro-text-overlay h3 {
  color: #5271ff  !important;
}

.intro-text-overlay h1 {
  margin-bottom: 1rem;
  font-size: 7.8rem;
}

.intro-text-overlay h3 {
  font-size: 3rem;
}

/* Responsive adjustments - inverted layout */
@media screen and (max-width: 1024px) {
  .intro-text-overlay {
    width: 60%;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  
  .intro-text-overlay h1 {
    font-size: 6.2rem;
    line-height: 1.2;
  }
  
  .intro-text-overlay h3 {
    font-size: 3rem;
  }
  
  .logo-about {
    width: 40%;
  }
}

@media screen and (max-width: 782px) {
  .intro-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .logo-about {
    width: 50%;
    position: relative;
    top: auto;
    left: auto;
    bottom: auto;
    margin: 0 auto 2rem auto;
    display: block;
  }
  
  .intro-text-overlay {
    position: static;
    width: 100%;
    transform: none;
    padding: 0;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .intro-text-overlay h1 {
    font-size: 5.6rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .intro-text-overlay h3 {
    font-size: 3rem;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .logo-about {
    width: 60%;
  }
  
  .intro-text-overlay h1 {
    font-size: 4.8rem;
    line-height: 1.3;
  }
  
  .intro-text-overlay h3 {
    font-size: 3rem;
  }
  
  #about-intro.s-intro {
    padding: 3rem 0 2rem !important;
  }
}

/* Button Styles - White background, black text */
.btn--primary,
.about-cta .btn {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #ffffff !important;
}

.btn--primary:hover,
.about-cta .btn:hover {
  background-color: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}

/* Navigation */
.header-main-nav a,
.header-social a {
  color: #ffffff !important;
}

.header-main-nav a:hover,
.header-social a:hover {
  color: #cccccc !important;
}

/* Footer */
.s-footer__social a {
  color: #ffffff !important;
}

.ss-copyright span {
  color: #ffffff !important;
}

.ss-copyright a {
  color: #ffffff !important;
}

/* About Page Specific Layout */
.about-cta {
  margin-top: 4rem;
  padding: 3rem 0;
  text-align: center;
}

.about-cta-section {
  margin-top: 4rem;
}

.about-cta h3 {
  margin-bottom: 1rem;
}

.about-cta p {
  margin-bottom: 2rem;
}

/* Skills carousel container */
.scroller {
  overflow: hidden;
  white-space: nowrap;
}

.icon_carousel {
  display: flex;
  animation: scroll 30s linear infinite;
}

.icons {
  height: 60px;
  width: auto;
  margin: 0 2rem;
  flex-shrink: 0;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  .icons {
    height: 40px;
    margin: 0 1rem;
  }
  
  .about-cta {
    margin-top: 2rem;
    padding: 2rem 0;
  }
}

/* Ensure proper spacing and layout */
.about-me {
  padding: 6rem 0 3rem;
}

.about-experience {
  padding: 3rem 0 6rem;
}

.heading-block {
  margin-bottom: 3rem;
}

/* Preloader dark theme */
#preloader {
  background-color: #000000;
}

#loader {
  border-color: #ffffff;
}

/* Smooth scrolling improvements */
.intro-scroll-link {
  color: #ffffff !important;
}

.intro-scroll-link:hover {
  color: #cccccc !important;
}