/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #1a202c;
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 50%, #e2e8f0 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ==========================================================================
   Container and Layout
   ========================================================================== */

.container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem 2rem;
  z-index: 1;
}

/* ==========================================================================
   Background Elements
   ========================================================================== */

.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-shape {
  position: absolute;
  background: linear-gradient(
    135deg,
    rgba(74, 85, 104, 0.03),
    rgba(45, 55, 72, 0.05)
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: 5%;
  left: -15%;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  top: 50%;
  right: -10%;
  animation-delay: 3s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  bottom: 15%;
  left: 15%;
  animation-delay: 6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(90deg);
  }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.main-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
  z-index: 2;
  position: relative;
}

/* ==========================================================================
   Header and Title
   ========================================================================== */

.header {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 0.3s forwards;
}

.title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  animation: slideInUp 1s ease-out forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.6s;
  color: #4a5568;
  font-weight: 400;
  font-size: 0.7em;
}

.title-line:nth-child(2) {
  animation-delay: 1s;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin: 0.2em 0;
}

.title-line:nth-child(3) {
  animation-delay: 1.4s;
  color: #718096;
  font-weight: 500;
  font-size: 0.8em;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   Content Section
   ========================================================================== */

.content {
  margin-bottom: 4rem;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 1.8s forwards;
}

.subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: #4a5568;
  margin-bottom: 4rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ==========================================================================
   Button Container
   ========================================================================== */

.button-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem 3rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s;
}

.btn:hover::before {
  left: 100%;
}

.btn-professional {
  background: linear-gradient(135deg, #2d3748, #4a5568);
  color: white;
  opacity: 0;
  transform: translateX(-60px);
  animation: slideInLeft 1s ease-out 2.2s forwards;
}

.btn-professional:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(45, 55, 72, 0.25);
  background: linear-gradient(135deg, #1a202c, #2d3748);
}

.btn-personal {
  background: linear-gradient(135deg, #4a5568, #718096);
  color: white;
  opacity: 0;
  transform: translateX(60px);
  animation: slideInRight 1s ease-out 2.5s forwards;
}

.btn-personal:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(74, 85, 104, 0.25);
  background: linear-gradient(135deg, #2d3748, #4a5568);
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.btn-icon {
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn:hover .btn-icon {
  transform: scale(1.1);
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  margin-top: auto;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 2.8s forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-text {
  color: #a0aec0;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Social Links
   ========================================================================== */

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  opacity: 0;
  animation: fadeInUp 1.2s ease-out 3.2s forwards;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(74, 85, 104, 0.1),
    rgba(45, 55, 72, 0.15)
  );
  color: #4a5568;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(74, 85, 104, 0.1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(74, 85, 104, 0.2);
  background: linear-gradient(
    135deg,
    rgba(74, 85, 104, 0.15),
    rgba(45, 55, 72, 0.2)
  );
  color: #2d3748;
}

.social-link:active {
  transform: translateY(-1px) scale(1.02);
}

.social-link svg {
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

/* Individual social link hover colors */
.social-link:nth-child(1):hover {
  /* LinkedIn */
  background: linear-gradient(
    135deg,
    rgba(0, 119, 181, 0.1),
    rgba(0, 119, 181, 0.2)
  );
  color: #0077b5;
}

.social-link:nth-child(2):hover {
  /* GitHub */
  background: linear-gradient(
    135deg,
    rgba(36, 41, 46, 0.1),
    rgba(36, 41, 46, 0.2)
  );
  color: #24292e;
}

.social-link:nth-child(3):hover {
  /* Instagram */
  background: linear-gradient(
    135deg,
    rgba(225, 48, 108, 0.1),
    rgba(225, 48, 108, 0.2)
  );
  color: #e1306c;
}

.social-link:nth-child(4):hover {
  /* X (formerly Twitter) */
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2));
  color: #000000;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
  .container {
    padding: 2rem 1.5rem;
  }

  .title {
    font-size: clamp(2.2rem, 8vw, 3.2rem);
  }

  .subtitle {
    font-size: clamp(1rem, 4vw, 1.2rem);
  }

  .btn {
    min-width: 280px;
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }

  .button-container {
    gap: 1.5rem;
  }

  .bg-shape {
    display: none;
  }

  .social-links {
    gap: 1rem;
  }

  .social-link {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px) {
  .btn {
    flex-direction: column;
    gap: 0.8rem;
    min-width: 240px;
    padding: 1.2rem 2rem;
  }

  .btn-icon {
    font-size: 1.1rem;
  }

  .title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .social-links {
    gap: 0.8rem;
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .footer {
    gap: 1rem;
  }
}

/* iPhone 13 specific optimizations (390px width) */
@media (max-width: 430px) {
  /* Make footer text smaller */
  .footer-text {
    font-size: 0.7rem;
  }

  /* Make buttons smaller */
  .btn {
    min-width: 220px;
    padding: 1rem 1.8rem;
    font-size: 0.9rem;
    gap: 0.7rem;
  }

  .btn-text {
    font-size: 0.9rem;
  }

  .btn-icon {
    font-size: 1rem;
  }

  /* Make subtitle even smaller */
  .subtitle {
    font-size: clamp(0.85rem, 3vw, 1rem);
  }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Focus States
   ========================================================================== */

.btn:focus {
  outline: 2px solid #4a5568;
  outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
  pointer-events: none;
}

.loading .btn {
  opacity: 0.7;
  transform: scale(0.98);
}

/* ==========================================================================
   Professional Enhancements
   ========================================================================== */

.btn:active {
  transform: translateY(-2px) scale(0.98);
}

.title-line.highlight {
  position: relative;
}

.title-line.highlight::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #4a5568, #718096);
  border-radius: 1px;
  opacity: 0;
  animation: underlineExpand 0.8s ease-out 1.8s forwards;
}

@keyframes underlineExpand {
  to {
    opacity: 1;
    width: 120px;
  }
}

/* ==========================================================================
   Subtle Professional Animations
   ========================================================================== */

@keyframes professionalPulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
}

.btn-professional:hover {
  animation: professionalPulse 2s ease-in-out infinite;
}

.btn-personal:hover {
  animation: professionalPulse 2s ease-in-out infinite;
}
