/* === CSS VARIABLES === */
:root {
  /* Base Colors from your theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-light: #999999;
  --accent-color: #e7818f;
  --accent-light: #f8bbd9;
  --accent-dark: #d4485a;
  --border-color: #e0e0e0;
  --border-light: #f0f0f0;
  --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-large: 0 20px 60px rgba(0, 0, 0, 0.15);
  --gradient-primary: linear-gradient(135deg, #e7818f 0%, #f8bbd9 100%);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
}

/* Dark theme support */
[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-light: #999999;
  --border-color: #333333;
  --border-light: #404040;
  --shadow-light: 0 4px 20px rgba(255, 255, 255, 0.05);
  --shadow-medium: 0 8px 30px rgba(255, 255, 255, 0.08);
  --shadow-large: 0 20px 60px rgba(255, 255, 255, 0.1);
}

/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* === ANIMATED BACKGROUND === */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-primary);
}

.floating-particle {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.03;
  animation: floatParticle 20s infinite ease-in-out;
}

.floating-particle:nth-child(1) {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-particle:nth-child(2) {
  width: 120px;
  height: 120px;
  top: 70%;
  right: 10%;
  animation-delay: -5s;
}

.floating-particle:nth-child(3) {
  width: 60px;
  height: 60px;
  top: 40%;
  left: 80%;
  animation-delay: -10s;
}

.floating-particle:nth-child(4) {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: -15s;
}

.floating-particle:nth-child(5) {
  width: 140px;
  height: 140px;
  top: 60%;
  left: 20%;
  animation-delay: -20s;
}

/* === HERO SECTION === */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 80px;
  position: relative;
  background: var(--bg-primary);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(231, 129, 143, 0.05) 0%, transparent 70%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 2;
  position: relative;
}

/* === PROFILE IMAGE === */
.profile-image-container {
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.profile-image-wrapper {
  position: relative;
  display: inline-block;
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  transition: var(--transition-smooth);
  position: relative;
  z-index: 2;
}

.profile-image:hover {
  transform: scale(1.05);
}

.profile-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0.2;
  filter: blur(10px);
  z-index: 1;
  animation: profileGlow 3s ease-in-out infinite;
}

/* === DECORATIVE IMAGE - LARGER AND POSITIONED HIGHER === */
.decorative-image-container {
  position: absolute;
  bottom: 15%; /* Moved up from bottom: 0 */
  left: 0;
  z-index: 1;
  opacity: 0.7; /* Slightly more visible */
  transition: var(--transition-smooth);
}

.decorative-image-wrapper {
  position: relative;
  width: 380px; /* Increased from 280px */
  height: 380px; /* Increased from 280px */
  transform: rotate(-8deg); /* Slightly less rotation for better visibility */
  animation: decorativeFloat 6s ease-in-out infinite;
}

.decorative-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: grayscale(15%) opacity(0.9); /* Less grayscale, more opacity */
  transition: var(--transition-smooth);
  border-radius: var(--border-radius);
}

.decorative-image-wrapper:hover .decorative-image {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08); /* Slightly larger on hover */
}

.decorative-glow {
  position: absolute;
  top: -25px; /* Increased glow area */
  left: -25px;
  right: -25px;
  bottom: -25px;
  border-radius: var(--border-radius);
  background: var(--gradient-primary);
  opacity: 0.12; /* Slightly more visible glow */
  filter: blur(25px); /* Increased blur for larger size */
  z-index: -1;
  animation: decorativeGlow 4s ease-in-out infinite;
}

/* === GREETING TEXT === */
.greeting-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-normal);
  letter-spacing: 0.5px;
}

/* === HERO NAME === */
.hero-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
}

/* === ROLE CONTAINER === */
.role-container {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2rem;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.role-text {
  color: var(--accent-color);
  font-weight: var(--font-weight-bold);
  position: relative;
  display: inline-block;
  min-width: 300px;
  text-align: center;
}

.cursor-blink {
  color: var(--accent-color);
  animation: blink 1.5s infinite;
  font-weight: var(--font-weight-normal);
}

/* === DESCRIPTION === */
.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: var(--font-weight-normal);
}

/* === CTA BUTTONS === */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-primary-custom,
.btn-outline-custom {
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  justify-content: center;
  border: 2px solid;
}

.btn-primary-custom::before,
.btn-outline-custom::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn-primary-custom:hover::before,
.btn-outline-custom:hover::before {
  left: 100%;
}

.btn-primary-custom {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-primary-custom:hover {
  background: transparent;
  color: var(--text-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-large);
}

.btn-outline-custom {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.btn-outline-custom:hover {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.btn-primary-custom i,
.btn-outline-custom i {
  transition: transform 0.3s ease;
  font-size: 0.875rem;
}

.btn-primary-custom:hover i,
.btn-outline-custom:hover i {
  transform: translateX(3px);
}

/* === SOCIAL LINKS === */
.social-links-container {
  margin-bottom: 4rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text-primary);
  transform: scale(0);
  transition: transform 0.3s ease;
  border-radius: 50%;
}

.social-link:hover::before {
  transform: scale(1);
}

.social-link i {
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
  transition: var(--transition-smooth);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  border-color: var(--text-primary);
}

.social-link:hover i {
  color: var(--bg-primary);
  transform: scale(1.1);
}

/* === SCROLL INDICATOR === */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 13px;
  position: relative;
  background: transparent;
}

.scroll-wheel {
  width: 3px;
  height: 10px;
  background: var(--text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s infinite;
}

.scroll-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: var(--font-weight-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* === ANIMATIONS === */
@keyframes floatParticle {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes profileGlow {
  0%, 100% {
    opacity: 0.2;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(1.05);
  }
}

@keyframes decorativeFloat {
  0%, 100% {
    transform: translateY(0) rotate(-8deg);
  }
  50% {
    transform: translateY(-20px) rotate(-5deg); /* More movement for larger image */
  }
}

@keyframes decorativeGlow {
  0%, 100% {
    opacity: 0.12;
    transform: scale(1);
  }
  50% {
    opacity: 0.25;
    transform: scale(1.05); /* Slightly more glow animation */
  }
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) translateY(8px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1399.98px) {
  .decorative-image-wrapper {
    width: 350px; /* Reduced slightly for large screens */
    height: 350px;
  }
}

@media (max-width: 1199.98px) {
  .decorative-image-wrapper {
    width: 320px; /* Reduced for medium screens */
    height: 320px;
  }

  .decorative-image-container {
    bottom: 10%; /* Adjust position */
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 100px 0 60px;
  }

  .profile-image {
    width: 100px;
    height: 100px;
  }

  .hero-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
  }

  .cta-buttons {
    gap: 1rem;
    margin-bottom: 2.5rem;
  }

  .decorative-image-wrapper {
    width: 280px; /* Smaller for tablets */
    height: 280px;
  }

  .decorative-image-container {
    bottom: 5%; /* Lower position for tablets */
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 80px 0 40px;
  }

  .profile-image {
    width: 90px;
    height: 90px;
  }

  .greeting-text {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    max-width: 280px;
    padding: 14px 28px;
  }

  .social-links {
    gap: 0.75rem;
  }

  .social-link {
    width: 46px;
    height: 46px;
  }

  .decorative-image-container {
    display: none; /* Hide on mobile for clean layout */
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 60px 0 30px;
  }

  .profile-image {
    width: 80px;
    height: 80px;
  }

  .greeting-text {
    margin-bottom: 0.75rem;
  }

  .role-container {
    margin-bottom: 1.5rem;
    min-height: 50px;
  }

  .role-text {
    min-width: 250px;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .social-links-container {
    margin-bottom: 3rem;
  }
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .floating-particle,
  .profile-glow,
  .decorative-float,
  .decorative-glow,
  .cursor-blink,
  .scroll-indicator {
    animation: none !important;
  }
}

/* === PRINT STYLES === */
@media print {
  .animated-background,
  .floating-particle,
  .decorative-image-container,
  .scroll-indicator {
    display: none !important;
  }

  .hero-section {
    background: white !important;
    color: black !important;
    min-height: auto !important;
    padding: 2rem 0 !important;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    border: 1px solid black !important;
    background: transparent !important;
    color: black !important;
  }
}

/* === FOCUS STATES === */
.btn-primary-custom:focus,
.btn-outline-custom:focus,
.social-link:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.scroll-indicator:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
  border-radius: 8px;
}

/* === HOVER INTERACTIONS === */
.decorative-image-container:hover {
  opacity: 1;
  transform: translateX(15px); /* More movement on hover */
}

.hero-section:hover .decorative-image-wrapper {
  animation-play-state: paused;
}

/* === ELEGANT ENTRANCE ANIMATIONS === */
.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
  animation: elegantEntrance 0.8s ease-out forwards;
}

.hero-content .profile-image-container {
  animation-delay: 0.2s;
}

.hero-content .greeting-text {
  animation-delay: 0.4s;
}

.hero-content .hero-name {
  animation-delay: 0.6s;
}

.hero-content .role-container {
  animation-delay: 0.8s;
}

.hero-content .hero-description {
  animation-delay: 1s;
}

.hero-content .cta-buttons {
  animation-delay: 1.2s;
}

.hero-content .social-links-container {
  animation-delay: 1.4s;
}

.hero-content .scroll-indicator {
  animation-delay: 1.6s;
}

@keyframes elegantEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}