/* ====== Global Responsive Design Rules ====== */

/* ================================
   CREATIVE ABOUT SECTION - COMPLETE REDESIGN
   ================================ */

.creative-header {
  text-align: center;
  margin-bottom: 6rem;
  position: relative;
}

.floating-particles {
  position: absolute;
  top: -50px;
  left: 0;
  right: 0;
  height: 200px;
  pointer-events: none;
}

.particle {
  position: absolute;
  font-size: 2rem;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
  animation-duration: 8s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-delay: 1s;
  animation-duration: 7s;
}

.particle:nth-child(3) {
  right: 25%;
  animation-delay: 2s;
  animation-duration: 9s;
}

.particle:nth-child(4) {
  right: 10%;
  animation-delay: 3s;
  animation-duration: 6s;
}

.particle:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
  animation-duration: 8s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-20px) rotate(90deg);
  }
  50% {
    transform: translateY(-40px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

.particle::before {
  content: attr(data-particle);
  display: block;
}

.header-content {
  position: relative;
  z-index: 3;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(
    135deg,
    rgba(127, 255, 166, 0.15) 0%,
    rgba(46, 204, 64, 0.1) 100%
  );
  color: #7fffa6;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(127, 255, 166, 0.3);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(127, 255, 166, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 1s ease-out 0.3s forwards;
}

.main-title {
  font-size: clamp(3rem, 6vw, 5rem);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 800;
  transform: translateY(30px);
  opacity: 0;
  animation: slideUp 1s ease-out 0.6s forwards;
}

.eco-gradient {
  background: linear-gradient(135deg, #7fffa6 0%, #2ecc40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.eco-gradient::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #7fffa6, #2ecc40);
  border-radius: 2px;
  opacity: 0.8;
}

.main-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUp 1s ease-out 0.9s forwards;
}

/* Animations */
@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =====================
   ENHANCED HERO INTRODUCTION - NO CONTAINER
====================== */

.hero-introduction {
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  z-index: 10;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: linear-gradient(
    135deg,
    rgba(127, 255, 166, 0.03) 0%,
    transparent 50%,
    rgba(46, 204, 64, 0.02) 100%
  );
  border-radius: 20px;
  backdrop-filter: blur(10px);
  margin: 2rem auto;
  max-width: 900px;
  border: 1px solid rgba(127, 255, 166, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2),
    0 0 100px rgba(127, 255, 166, 0.05);
}

/* Animated Welcome Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(
    135deg,
    rgba(127, 255, 166, 0.15) 0%,
    rgba(46, 204, 64, 0.1) 100%
  );
  color: #7fffa6;
  padding: 1rem 2rem;
  border-radius: 50px;
  border: 1px solid rgba(127, 255, 166, 0.3);
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 25px rgba(127, 255, 166, 0.2);
  transform: translateY(20px);
  opacity: 0;
  animation: slideUpFade 1s ease-out 0.5s forwards;
}

.badge-icon {
  font-size: 1.2rem;
  animation: badgeSpin 3s ease-in-out infinite;
}

@keyframes badgeSpin {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.badge-text {
  letter-spacing: 0.5px;
}

/* Dynamic Title Animation */
.dynamic-title {
  margin-bottom: 1.5rem;
}

.title-line-1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #7fffa6 25%,
    #2ecc40 50%,
    #7fffa6 75%,
    #ffffff 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(127, 255, 166, 0.3);
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 1rem 0;
  transform: translateY(30px);
  opacity: 0;
  animation: slideUpFade 1s ease-out 0.8s forwards,
    titleGradientFlow 4s ease-in-out infinite 1.8s;
}

.title-line-2 {
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  margin: 0;
  transform: translateY(20px);
  opacity: 0;
  animation: slideUpFade 1s ease-out 1.1s forwards;
}

.typing-text {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  animation: gentleGlow 3s ease-in-out infinite alternate;
}

.title-cursor {
  color: #7fffa6;
  animation: softBlink 2s ease-in-out infinite;
  margin-left: 0.2rem;
}

@keyframes gentleGlow {
  0% {
    text-shadow: 0 0 5px rgba(127, 255, 166, 0.3);
  }
  100% {
    text-shadow: 0 0 15px rgba(127, 255, 166, 0.6);
  }
}

@keyframes softBlink {
  0%,
  70% {
    opacity: 1;
  }
  71%,
  100% {
    opacity: 0.3;
  }
}

@keyframes titleGradientFlow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Enhanced Tagline Section */
.hero-tagline {
  max-width: 600px;
  transform: translateY(30px);
  opacity: 0;
  animation: slideUpFade 1s ease-out 1.4s forwards;
}

.tagline-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deco-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, #7fffa6, transparent);
  border-radius: 1px;
  animation: lineGlow 3s ease-in-out infinite alternate;
}

.deco-line.left,
.deco-line.right {
  width: 60px;
}

.tagline-icon {
  font-size: 1.5rem;
  animation: iconFloat 3s ease-in-out infinite;
}

@keyframes lineGlow {
  0% {
    opacity: 0.5;
    box-shadow: 0 0 5px rgba(127, 255, 166, 0.3);
  }
  100% {
    opacity: 1;
    box-shadow: 0 0 15px rgba(127, 255, 166, 0.6);
  }
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(10deg);
  }
}

.hero-description {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.3px;
  margin: 0;
}

.highlight-text {
  background: linear-gradient(135deg, #7fffa6 0%, #2ecc40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  position: relative;
}

.highlight-text::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7fffa6, #2ecc40);
  border-radius: 1px;
  opacity: 0.6;
}

/* Floating Tech Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.float-item {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: floatAround 8s ease-in-out infinite;
}

.float-item.code {
  top: 20%;
  left: 10%;
  color: #7fffa6;
  animation-delay: 0s;
  animation-duration: 10s;
}

.float-item.react {
  top: 30%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 12s;
}

.float-item.node {
  bottom: 30%;
  left: 15%;
  color: #68a063;
  animation-delay: 4s;
  animation-duration: 9s;
}

.float-item.eco {
  bottom: 20%;
  right: 10%;
  color: #7fffa6;
  animation-delay: 6s;
  animation-duration: 11s;
}

@keyframes floatAround {
  0%,
  100% {
    transform: translateX(0px) translateY(0px) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translateX(20px) translateY(-15px) rotate(90deg);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-10px) translateY(-30px) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translateX(-25px) translateY(-10px) rotate(270deg);
    opacity: 0.9;
  }
}

/* Common Animation */
@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== SIMPLE ABOUT TEXT WRAPPER - NO HOVER EFFECTS ====== */
.about-text-wrapper {
  background: linear-gradient(
    135deg,
    rgba(127, 255, 166, 0.03) 0%,
    rgba(46, 204, 64, 0.02) 50%,
    rgba(16, 24, 32, 0.6) 100%
  );
  border: 1px solid rgba(127, 255, 166, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Content Container */
.about-text-content {
  position: relative;
  z-index: 2;
}

/* Text Paragraphs - Clean and Readable */
.about-text-wrapper .text-paragraph {
  margin-bottom: 1.8rem;
}

/* Text Styling for Readability */
.about-text-wrapper .text-paragraph p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  line-height: 1.8;
  margin: 0;
  text-align: justify;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Highlight Effects */
.about-text-wrapper .highlight {
  background: linear-gradient(135deg, #7fffa6 0%, #2ecc40 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Strong text styling within wrapper */
.about-text-wrapper .text-paragraph strong {
  color: #7fffa6;
  font-weight: 600;
}

/* =====================
   CLEAN TEXT CONTAINER - MINIMAL DESIGN
====================== */

.clean-text-container {
  max-width: 100%;
  margin: 1rem 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(127, 255, 166, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.clean-text-container .story-title {
  color: #7fffa6;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(127, 255, 166, 0.2);
  padding-bottom: 0.5rem;
}

.story-text {
  line-height: 1.7;
}

.story-text p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  margin: 0 0 1rem 0;
  text-align: justify;
}

.story-text p:last-child {
  margin-bottom: 0;
}

.story-text strong {
  color: #7fffa6;
  font-weight: 600;
}

/* ====== General Responsive Design Rules ====== */
@media (max-width: 900px) {
  .tech-constellation {
    display: none;
  }
  .animated-plant {
    font-size: 2.5rem;
    bottom: 1rem;
  }
  .plant-left {
    left: 2%;
  }
  .plant-right {
    right: 2%;
  }
  .intro-text {
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }
  .intro-text h1 {
    font-size: 2.4rem;
    letter-spacing: 2px;
  }
  .intro-text h2 {
    font-size: 1.4rem;
  }
  .intro-text p {
    font-size: 1.1rem;
  }
  body::before,
  body::after {
    animation-duration: 40s;
    opacity: 0.2;
  }
  .interests-section {
    padding: 1.5rem;
  }
  .interests-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
  }
  .cv-download-section {
    padding: 2rem;
  }
  .education-container {
    padding: 0 1.5rem;
  }
  .education-container h2 {
    font-size: 2.5rem;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 3.5rem;
    padding-right: 1rem;
  }
  .timeline::before {
    left: 1.5rem;
  }
  .timeline-item::before {
    left: 1.5rem;
  }
  .timeline-item::after {
    left: 1.5rem;
  }
  .about-container,
  .certificates-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .certificate-card {
    width: 80%;
    max-width: 400px;
    min-width: 280px;
    flex: 1 1 80%;
  }
  .projects-row {
    flex-direction: row;
    gap: 2rem 1.2rem;
    justify-content: center;
  }
  .project-card {
    width: 48%;
    max-width: 420px;
    min-width: 220px;
    margin: 0 auto 2rem auto;
    flex: 1 1 48%;
  }
  .skills-container h2 {
    font-size: 2.5rem;
  }
  .skills-subtitle {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }
  .skills-categories {
    gap: 3rem;
  }
  .skill-category {
    padding: 2rem;
  }
  .category-header h3 {
    font-size: 1.6rem;
  }
  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
  }
  .skill-card {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  .skill-icon {
    font-size: 2rem;
  }
  .summary-stats {
    gap: 2rem;
  }
  .stat-item {
    padding: 1.5rem 1rem;
    min-width: 120px;
  }
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 700px) {
  .education-container,
  .contact-container {
    padding: 0 0.5rem;
  }
  .education-container h2 {
    font-size: 2.2rem;
  }
  .timeline {
    padding: 1rem 0;
  }
  .timeline::before {
    left: 2rem;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 4rem;
    padding-right: 1rem;
  }
  .timeline-item::before {
    left: 2rem;
  }
  .timeline-item::after {
    left: 2rem;
  }
  .timeline-content {
    padding: 1.5rem;
  }
  .timeline {
    padding-left: 0.5rem;
    margin-left: 0.2rem;
  }
}

@media (max-width: 600px) {
  .animated-plant {
    font-size: 2rem;
    bottom: 0.5rem;
  }
  .intro-text {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    min-height: 30vh;
  }
  .intro-text h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }
  .intro-text h2 {
    font-size: 1.2rem;
  }
  .intro-text p {
    font-size: 1rem;
  }
  .interests-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .interest-item {
    padding: 1rem;
  }
  .interest-icon {
    font-size: 2rem;
  }
  .cv-download-section {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  .cv-download-section h3 {
    font-size: 1.4rem;
  }
  .cv-download-btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  .education-container {
    padding: 0 1rem;
  }
  .education-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  .timeline {
    padding: 0.5rem 0;
  }
  .timeline::before {
    left: 1.5rem;
  }
  .timeline-item {
    margin-bottom: 3rem;
  }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 3.5rem;
    padding-right: 0.5rem;
  }
  .timeline-item::before {
    left: 1.5rem;
    width: 16px;
    height: 16px;
  }
  .timeline-item::after {
    left: 1.5rem;
    font-size: 1.2rem;
  }
  .timeline-year {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
  .timeline-content {
    padding: 1.5rem 1.2rem;
    border-radius: 15px;
  }
  .timeline-content strong {
    font-size: 1.2rem;
  }
  .timeline-content p {
    font-size: 1rem;
  }
  .about-img {
    width: 110px;
    height: 110px;
  }
  .education-container,
  .skills-container,
  .projects-container,
  .certificates-container,
  .contact-container {
    padding: 0 0.5rem;
  }
  .skills-container h2 {
    font-size: 2rem;
  }
  .skills-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  .skills-categories {
    gap: 2rem;
  }
  .skill-category {
    padding: 1.5rem;
  }
  .category-header {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .category-icon {
    font-size: 2rem;
  }
  .category-header h3 {
    font-size: 1.4rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .skill-card {
    padding: 1.2rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.8rem;
  }
  .skill-icon {
    font-size: 1.8rem;
  }
  .skill-info h4 {
    font-size: 1.1rem;
  }
  .skill-info p {
    font-size: 0.9rem;
  }
  .skill-badge {
    position: relative;
    top: auto;
    right: auto;
    margin-top: 0.5rem;
  }
  .summary-stats {
    gap: 1.5rem;
  }
  .stat-item {
    padding: 1.2rem 0.8rem;
    min-width: 100px;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .stat-label {
    font-size: 0.9rem;
  }
  .project-card,
  .certificate-card {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    padding: 1.2rem 0.7rem;
    margin: 0 0 2rem 0;
    flex: 1 1 100%;
  }
  .certificate-card .certificate-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  .certificate-card .achievement-badge {
    top: 10px;
    right: 10px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
  }

  /* Footer Responsive */
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-title {
    font-size: 1.8rem;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Hero Introduction Responsive */
  .hero-introduction {
    padding: 3rem 1.5rem;
    margin: 1rem;
  }

  .title-line-1 {
    font-size: 2.2rem;
  }

  .floating-elements {
    display: none;
  }

  /* About Text Wrapper Responsive */
  .about-text-wrapper {
    padding: 2rem;
    margin: 1.5rem 0;
  }

  /* Clean Text Container Responsive */
  .clean-text-container {
    padding: 1.2rem;
    margin: 0.8rem 0;
  }

  .clean-text-container .story-title {
    font-size: 1.3rem;
  }

  .story-text p {
    font-size: 0.95rem;
    text-align: left;
  }
}

@media (min-width: 1090px) {
  .projects-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem 2.2rem;
  }
  .project-card {
    width: 30%;
    max-width: none;
    min-width: 320px;
    flex: 0 0 30%;
    margin: 0;
  }
}

/* Small Mobile and Ultra-Small Devices */
@media (max-width: 480px) {
  .hero-introduction {
    padding: 2rem 1rem;
    gap: 1.5rem;
  }

  .dynamic-title {
    margin-bottom: 1rem;
  }

  .about-text-wrapper {
    padding: 1.5rem;
    border-radius: 15px;
  }

  .clean-text-container {
    padding: 1rem;
  }

  .clean-text-container .story-title {
    font-size: 1.2rem;
  }

  .story-text p {
    font-size: 0.9rem;
  }
}

@media (max-width: 320px) {
  .hero-introduction {
    padding: 1.5rem 0.8rem;
  }

  .title-line-1 {
    font-size: 1.8rem;
  }

  .about-text-wrapper {
    padding: 1.2rem;
  }

  .clean-text-container {
    padding: 0.8rem;
  }

  .story-text p {
    font-size: 0.85rem;
  }
}

/* Global Gradient Flow Animation */
@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
