* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: url("https://i.ibb.co/kssY4Frj/milky-way-starry-sky-night-sky-star-956981-jpeg-cs-srgb-dl-pexels-felix-mittermeier-956981.jpg") no-repeat center center/cover;
  background-attachment: fixed;
  color: #429aff;
  min-height: 100vh;
  overflow-x: hidden;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 20px 40px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(12, 15, 23, 0.306);
  backdrop-filter: blur(5px);
  z-index: 1000;
  border-bottom: 1px solid rgba(42, 192, 252, 0.3);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  color: #43adff;
  text-decoration: none;
  letter-spacing: 1px;
}

/* NAVIGATION */
nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

nav a {
  color: #07b9ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
  padding: 5px 0;
}

nav a:hover {
  color: #00bfff;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #00bfff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 80px;
  padding: 140px 40px 60px;
  color: #fff;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  position: relative;
}

/* Hero wrapper for fade-out effect */
.hero-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity 0.5s ease;
}

.hero-content {
  max-width: 800px;
  animation: fadeInUp 1.2s ease-in-out;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 15px;
  background: linear-gradient(90deg, #00bfff, #0077ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
}

h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #ffffff;
}

.typing {
  font-size: 2rem;
  font-weight: bold;
  color: #6fdbff;
  min-height: 2rem;
  display: inline-block;
  transition: opacity 0.5s ease;
  opacity: 1;
}

/* TYPING TEXT EFFECT */
.typing-text {
  font-size: 2rem;
  color: #00bfff;
  font-weight: 600;
  height: 40px;
  text-shadow: 0 0 20px rgba(0, 191, 255, 0.7);
  transition: opacity 0.8s ease-in-out, text-shadow 0.8s ease-in-out;
  animation: blueGlow 2.5s ease-in-out infinite alternate;
}

.typing::after {
  content: "|";
  animation: blink 0.8s infinite;
  color: #00bfff;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes blueGlow {
  0% {
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
  }

  100% {
    text-shadow: 0 0 25px rgba(0, 191, 255, 1);
  }
}

/* BUTTONS */
.cta-buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 1;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in forwards 0.8s;
}

.btn {
  background: linear-gradient(90deg, #00bfff, #0077ff);
  color: rgb(255, 250, 250);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.4);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
}

.btn:hover {
  background: linear-gradient(90deg, #0077ff9c, #00bfffa5);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.8);
  transform: translateY(-3px);
}

/* SOCIAL ICONS */
.social-icons {
  position: absolute;
  left: 40px;
  bottom: 40px;
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
}

.social-icons a {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(0, 191, 255, 0.2);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-in forwards 1.2s;
  font-size: 22px;
}

.social-icons a:hover {
  color: #00bfff;
  text-shadow: 0 0 15px rgba(0, 191, 255, 0.7);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.8);
  transition: all 0.4s ease;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
}

/* Brand-specific hover glows */
.social-icons a.github:hover {
  color: #fff;
  box-shadow: 0 0 25px #fff;
}

.social-icons a.linkedin:hover {
  color: #0077b5;
  box-shadow: 0 0 25px #0077b5;
}

.social-icons a.instagram:hover {
  color: #e1306c;
  box-shadow: 0 0 25px #e1306c;
}

.social-icons a.youtube:hover {
  color: #FF0000;
  box-shadow: 0 0 25px #FF0000;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PROFILE CONTAINER */
.profile-container {
  position: relative;
  width: 300px;
  height: 300px;
}

/* profile image */
.profile-img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  border: 4px solid rgba(0, 191, 255, 0.6);
  box-shadow: 0 6px 30px rgba(0, 191, 255, 0.35);
  transition: transform .35s ease, box-shadow .35s ease;
}

.profile-img:hover {
  transform: translate(-50%, -50%) scale(1.03);
  box-shadow: 0 10px 50px rgba(0, 191, 255, 0.55);
}

/* OUTER ROTATING BORDER */
.border-outer {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  border-radius: 50%;
  background: conic-gradient(transparent, #00bfff, transparent, transparent);
  animation: rotate 4s linear infinite;
}

/* MIDDLE BORDER */
.border-middle {
  position: absolute;
  width: 270px;
  height: 270px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(transparent, #0077ff, transparent, transparent);
  animation: rotate-reverse 3s linear infinite;
  filter: blur(3px);
}

/* INNER BORDER */
.border-inner {
  position: absolute;
  width: 240px;
  height: 240px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(transparent, #00bfff, transparent, transparent);
  z-index: 2;
  animation: rotate 2s linear infinite;
}

/* PULSE RINGS */
.pulse-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 2px solid rgba(0, 191, 255, 0.3);
  z-index: 0;
  animation: pulse 3s ease-out infinite;
}

.pulse-ring:nth-child(2) {
  animation-delay: 1s;
}

.pulse-ring:nth-child(3) {
  animation-delay: 2s;
}

/* BORDER CONTAINER GLOW */
.border-container {
  position: absolute;
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  z-index: 4;
}

.border-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(0, 191, 255, 0.5);
  transform: translate(-50%, -50%);
  animation: pulse 3s ease-out infinite;
}

/* KEYFRAMES */
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes rotate-reverse {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Section Styles */
.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: #fff;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00bfff, #0077ff);
}

/* About Section */
.about-section {
  background: rgba(12, 15, 23, 0.8);
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  color: #ccc;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.about-stats {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.stat-item {
  text-align: center;
  min-width: 120px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #00bfff;
  margin-bottom: 10px;
}

.stat-label {
  color: #ccc;
  font-size: 1rem;
}

/* Testimonials Modal Styles */
.testimonials-trigger {
  text-align: center;
  margin-top: 30px;
}

.testimonials-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  overflow-y: auto;
}

.testimonials-content {
  position: relative;
  background-color: rgba(12, 15, 23, 0.9);
  margin: 50px auto;
  padding: 30px;
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  border: 1px solid rgba(42, 192, 252, 0.3);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.3);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid #00bfff;
}

.testimonial-card p {
  color: #ccc;
  font-style: italic;
  margin-bottom: 15px;
  line-height: 1.6;
}

.testimonial-card h4 {
  color: #fff;
  margin-bottom: 5px;
}

.testimonial-card span {
  color: #00bfff;
  font-size: 0.9rem;
}

/* Services Section */
.services-section {
  background: rgba(12, 15, 23, 0.6);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(42, 192, 252, 0.3);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
  border-color: rgba(42, 192, 252, 0.6);
}

.service-icon {
  font-size: 3rem;
  color: #00bfff;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
}

.service-card p {
  color: #ccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-link {
  color: #00bfff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: #0077ff;
}

.service-link i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.service-link:hover i {
  transform: translateX(5px);
}

/* Experience text */
.experience-text {
  text-align: center;
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* Portfolio Section */
.portfolio-section {
  background: rgba(12, 15, 23, 0.8);
}

.skills-container {
  max-width: 800px;
  margin: 0 auto;
}

.skill-item {
  margin-bottom: 30px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.skill-name {
  color: #fff;
  font-weight: 600;
}

.skill-percentage {
  color: #00bfff;
  font-weight: 600;
}

.skill-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #00bfff, #0077ff);
  border-radius: 5px;
  transition: width 1.5s ease;
}

/* Skill subtitle */
.skill-subtitle {
  color: #fff;
  font-size: 1.5rem;
  margin: 30px 0 15px;
  text-align: center;
}

/* Academics Section */
.academics-section {
  background: rgba(12, 15, 23, 0.6);
}

/* Sports Section */
.sports-section {
  background: rgba(12, 15, 23, 0.8);
}

/* Creative Skills */
.creative-skills-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.creative-skill-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  width: 100%;
  max-width: 350px;
  border: 1px solid rgba(42, 192, 252, 0.3);
  transition: all 0.3s ease;
}

.creative-skill-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
  border-color: rgba(42, 192, 252, 0.6);
}

.creative-skill-icon {
  font-size: 3rem;
  color: #00bfff;
  margin-bottom: 20px;
}

.creative-skill-item h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
}

.creative-skill-item p {
  color: #ccc;
  line-height: 1.6;
}

/* Ongoing Projects */
.ongoing-projects-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.ongoing-project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  max-width: 500px;
  border: 1px solid rgba(42, 192, 252, 0.3);
  transition: all 0.3s ease;
}

.ongoing-project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
  border-color: rgba(42, 192, 252, 0.6);
}

.project-icon {
  font-size: 3rem;
  color: #00bfff;
  margin-bottom: 20px;
}

.ongoing-project-card h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}

.ongoing-project-card p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-status {
  text-align: right;
}

.status-badge {
  display: inline-block;
  background: rgba(0, 191, 255, 0.2);
  color: #00bfff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(0, 191, 255, 0.3);
}

/* Contact Section */
.contact-section {
  background: rgba(12, 15, 23, 0.6);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 15px;
}

.contact-info p {
  color: #ccc;
  margin-bottom: 30px;
  line-height: 1.6;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ccc;
}

.contact-item i {
  color: #00bfff;
  font-size: 1.2rem;
  width: 20px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(42, 192, 252, 0.3);
  border-radius: 5px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00bfff;
  background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Footer */
.footer {
  background: rgba(12, 15, 23, 0.9);
  padding: 30px 0;
  border-top: 1px solid rgba(42, 192, 252, 0.3);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  color: #ccc;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #00bfff;
  transform: translateY(-3px);
}

/* Scroll Animations */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal-element.active {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax Effect */
.parallax-element {
  will-change: transform;
}

/* RESPONSIVE DESIGN */


@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 120px 20px 40px;
  }

  .cta-buttons {
    justify-content: center;
  }

  .social-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }

  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(12, 15, 23, 0.9);
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    flex-direction: column;
    transition: left 0.3s ease;
  }

  nav ul.active {
    left: 0;
  }

  nav a {
    font-size: 1.2rem;
    padding: 15px 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding-top: calc(var(--header-height) + 12px);
    flex-direction: column-reverse;
    padding: 750px 00px 50px;
    gap: 30px;
  }

  .hero-content {
    margin-top: 280px;
  }

  .profile-container {
    position: fixed;
    /* Fixed position prevents shifting on scroll */
    top: calc(var(--header-height) + 12px);
    /* Position below header */
    left: 50%;
    transform: translateX(-50%);
    /* Only horizontal centering */
    width: calc(var(--pfp-mobile-size) + 60px);
    height: calc(var(--pfp-mobile-size) + 60px);
    z-index: 50;
    margin: 0;
  }

  .profile-img {

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-width: 20px;
  }

  .border-outer,
  .border-middle,
  .border-inner,
  .pulse-ring {
    width: calc(var(--pfp-mobile-size) + 60px);
    height: calc(var(--pfp-mobile-size) + 60px);
  }

  .border-middle {
    width: calc(var(--pfp-mobile-size) + 30px);
    height: calc(var(--pfp-mobile-size) + 30px);
  }

  .border-inner {
    width: var(--pfp-mobile-size);
    height: var(--pfp-mobile-size);
  }

  .hero-content {
    margin-top: 700px;
    /* Increased space below profile */
    text-align: relative;
  }

  .social-icons {
    position: relative;
    left: auto;
    bottom: auto;
    flex-direction: row;
    justify-content: center;
    margin-top: 30px;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
  }

  .tagline {
    font-size: 1.1rem;
    margin-bottom: 25px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .btn {
    padding: 12px 25px;
    font-size: 1rem;
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section {
    padding: 60px;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-content,
  .contact-content {
    flex-direction: column;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .testimonials-content {
    width: 95%;
    margin: 20px auto;
    padding: 20px;
  }

  .creative-skills-container,
  .ongoing-projects-container {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .about-content {
    flex-direction: column;
    gap: 30px;
    width: 140px;
    padding: 0 20px;
  }
}

.border-outer {
  width: 160px;
  height: 160px;
}

.border-middle {
  width: 140px;
  height: 140px;
}

.border-inner {
  width: 120px;
  height: 120px;
}

.pulse-ring {
  width: 160px;
  height: 160px;
}

h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

h2 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.tagline {
  font-size: 1rem;
  margin-bottom: 20px;
}

.cta-buttons {
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.btn {
  width: 100%;
  max-width: 280px;
  justify-content: center;
}

.section {
  padding: 40px 0;
}

.section-title {
  font-size: 1.8rem;
}

.service-card {
  padding: 20px;
}

.stat-number {
  font-size: 2rem;
}

/* Small Mobile Fix */
@media (max-width: 480px) {
  .about-content {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0 15px;
  }
}

/* Add these rules to your existing CSS */

/* Mobile Portrait About Section Fix */
@media (max-width: 768px) and (orientation: portrait) {
  .about-section {
    padding: 40px 0;
  }

  .about-content {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
  }

  .about-text {
    flex: 1;
    min-width: auto;
    width: 100%;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .about-stats {
    flex: 1;
    min-width: auto;
    width: 100%;
    justify-content: space-around;
    gap: 15px;
  }

  .stat-item {
    min-width: auto;
    padding: 0 10px;
  }

  .stat-number {
    font-size: 2rem;
    margin-bottom: 5px;
  }

  .stat-label {
    font-size: 0.9rem;
  }

  .testimonials-trigger {
    margin-top: 20px;
  }
}

/* Small Mobile Fix */
@media (max-width: 480px) {
  .about-text p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .about-stats {
    gap: 10px;
  }

  .stat-item {
    padding: 0 5px;
  }
}


/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}