/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@100,200,300,400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&family=Patrick+Hand+SC&family=Yomogi&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=TikTok+Sans:opsz,wght@12..36,300..900&display=swap');

@font-face {
  font-family: 'Switzer-Variable';
  src: url('../fonts/Switzer-Variable.woff2') format('woff2'),
       url('../fonts/Switzer-Variable.woff') format('woff'),
       url('../fonts/Switzer-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

/* global styles */
body {
  font-family: 'Hanken Grotesk', sans-serif;
  color: #404446;
  margin: 0;
  padding: 0;
  max-width: 1200px;
  margin: 0 auto;
}

/* Common layout settings */
.section1,
.section2,
.section3,
.section4,
.section5 {
  width: 100%;
  padding: 0 20%;
  box-sizing: border-box;
  margin: 24px 0;
}

/* Add specific gaps between sections */
.section1 {
  margin: 24px 0 160px 0;
}

.section2 {
  margin: 0 0 160px 0;
}

.section3 {
  margin: 0 0 160px 0;
}

.section4 {
  margin: 0 0 80px 0;
}

/* Navigation */
.nav-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 0.5rem 0;
}

.logo-text {
  display: flex;
  gap: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 300;
  line-height: normal;
  text-transform: uppercase;
  color: #333333;
}

/* Body content */
.body-text-box {
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.body-text {
  font-size: 15px;
  font-weight: 400;
  line-height: 25px;
  color: #333333;
  font-family: 'TikTok Sans', sans-serif;
  margin: 0;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.body-text a {
  color: #000000;
  text-decoration: none;
}

.body-text a:hover {
  color: #0142FB;
}

/* Projects section */
.title-box {
  width: 100%;
  padding: 16px 0;
  margin-bottom: 24px;
}

.title-text {
  font-size: 16px;
  font-weight: 700;
  color: #4044467b;
  font-family: 'courier prime', monospace;
  letter-spacing: 1px;
}

/* Project thumbnails */
.section4 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.projects {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-thumbnail {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #dedede75;
  border-radius: 2px;
}

.my-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* Contact section */
.section4 {
  display: flex;
}

.anil-shubham {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 36px;
  flex-wrap: wrap;
}

.contact {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
}

.contact-text {
  font-size: 15px;
  font-weight: 400;
  color: #404040ce;
  font-family: 'courier prime', monospace;
  text-decoration: none;
  display: block;
  line-height: 0;
}

.contact-text:hover {
  color: #000000;
}

.contact-text-bold {
  font-size: 15px;
  font-weight: 600;
  color: #404040ce;
  font-family: 'courier prime', monospace;
  text-decoration: none;
  display: block;
  line-height: 0;
}

.contact-text-bold:hover {
  color: #000000;
}

/* Links */
.name-link {
  text-decoration: none;
  color: #404040;
  font-weight: 400;
  text-decoration-color: #3636364e;
}

.name-link:hover {
  color: #000000;
}

/* Footer */
.footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  border-top: #00000020 1px solid;
  padding-top: 12px;
}

/* ===== CONSISTENT BUTTON SYSTEM ===== */

/* Reach Out Container */
.reach-out {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-end;
}

/* Base Button Styles - Fixed sizing */
.button {
  width: fit-content;
  /* Fixed padding and font-size for consistency */
  padding: 0.15rem 1rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  font-size: 1rem; /* Keep this consistent across all viewports */
  color: white;
  border-radius: 0.234375rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  
  /* Prevent text wrapping to maintain consistent width */
  white-space: nowrap;
  
  /* Ensure consistent line height */
  line-height: 1.2;
  
  /* Fixed minimum dimensions
  min-height: 2.5rem;
  min-width: 5rem;*/
  
  /* Center text vertically */
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Primary Button (Orange/Amber - Whop Style) */
.button.primary {
  rotate: 0.5deg;
  background: linear-gradient(
    125deg,
    #f59e0b 0%,     /* Amber */
    #f97316 25%,    /* Orange */
    #fb923c 50%,    /* Light Orange */
    #f97316 75%,    /* Orange */
    #f59e0b 100%    /* Back to Amber */
  );
  background-size: 200% auto;
  border: 1px solid rgba(251, 146, 60, 0.4);
  box-shadow:
    -1px -1px 2px rgba(0, 0, 0, 0.15),
    2px 2px 4px rgba(86, 102, 116, 0.15);
  animation: floatAlt 7s ease-in-out infinite;
}

/* Secondary Button (Purple/Indigo) */
.button.secondary {
  rotate: -0.25deg;
  background: linear-gradient(
    125deg,
    #6366f1 0%,    /* Indigo */
    #8b5cf6 25%,   /* Purple */
    #6366f1 50%,   /* Indigo */
    #4f46e5 75%,   /* Darker Indigo */
    #6366f1 100%   /* Back to Indigo */
  );
  background-size: 200% auto;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    0 4px 8px rgba(99, 102, 241, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.1);
  animation: pulse 3s infinite;
}

/* Hover Effects */
.button:hover {
  transform: translateY(-2px);
  rotate: 1deg;
  background-position: right center;
}

.button.primary:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(245, 158, 11, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.button.secondary:hover {
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(99, 102, 241, 0.2),
    inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

/* Active States */
.button:active {
  rotate: -0.5deg;
  transform: translateY(1px);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Shimmer Effects */
.button::before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    transparent 25%,
    rgba(255, 255, 255, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.4) 55%,
    transparent 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  z-index: 1;
}

.button.primary::before {
  animation: shimmer 10s infinite;
}

.button.secondary::before {
  animation: shimmer 5s infinite;
}

/* Keyframe Animations */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse {
  0%, 100% {
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.1),
      0 4px 8px rgba(99, 102, 241, 0.2),
      0 0 0 0 rgba(99, 102, 241, 0.4);
  }
  50% {
    box-shadow:
      0 2px 4px rgba(0, 0, 0, 0.1),
      0 4px 8px rgba(99, 102, 241, 0.2),
      0 0 16px 4px rgba(99, 102, 241, 0.2);
  }
}

@keyframes floatAlt {
  0%, 100% {
    rotate: 0.5deg;
  }
  50% {
    rotate: -0.5deg;
  }
}

/* Accessibility */
.button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* Touch Device Optimizations */
@media (hover: none) {
  .button {
    touch-action: manipulation;
  }
  
  .button:active {
    transform: scale(0.96);
    opacity: 0.9;
    transition: transform 0.1s ease-out;
  }
  
  .button:hover {
    transform: none;
    background-position: initial;
  }
  
  .button::before {
    animation: shimmer 8s infinite;
  }
  
  /* Touch feedback ripple effect */
  .button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transform: scale(2);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  }
  
  .button:active::after {
    opacity: 1;
    transform: scale(0);
    transition: 0s;
  }
}

/* Responsive Design - NO button size changes */
/* Mobile */
@media (max-width: 600px) {
  .section1,
  .section2,
  .section3,
  .section4,
  .section5 {
    padding: 0 6%;
  }
  
  .nav-box {
    padding: 0.75rem 0;
    gap: 1rem;
  }
  
  .logo-text {
    font-size: 22px;
  }
  
  .reach-out {
    align-items: center;
    gap: 0.5rem;
  }
  
  /* REMOVED: Button size changes - keeping consistent across all viewports */
  /* .button {
    font-size: 1rem;
    padding: 0.3rem 0.8rem;
    white-space: nowrap;
  } */
  
  .section1 {
    margin: 24px 0 80px 0;
  }
  
  .section2,
  .section3 {
    margin: 0 0 80px 0;
  }
  
  .body-text {
    font-size: 14px;
    line-height: 22px;
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
  }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
  .section1,
  .section2,
  .section3,
  .section4,
  .section5 {
    padding: 0 4%;
  }
  
  .nav-box {
    padding: 0.5rem 0;
  }
  
  .logo-text {
    font-size: 22px;
  }
  
  /* REMOVED: Button size changes - keeping consistent across all viewports */
  /* .button {
    font-size: 1rem;
    padding: 0.25rem 0.6rem;
  } */
  
  .body-text {
    font-size: 14px;
    line-height: 24px;
  }
}

/* Alternative approach: If you want slightly smaller buttons on mobile, use this instead */
/*
@media (max-width: 600px) {
  .button {
    transform: scale(0.9);
    transform-origin: center;
  }
}

@media (max-width: 400px) {
  .button {
    transform: scale(0.85);
    transform-origin: center;
  }
}
*/