/* ============================================================
   STYLE.CSS — Aryan Utkarsh Portfolio (v2 clean rebuild)
   ============================================================ */

/* ─── DESIGN TOKENS ─── */
:root {
  --color-bg-cream: #e7e5e2;
  --color-primary: #1e1c1a;
  --color-text-dark: #1e1c1a;
  --color-text-muted: #a8a6a3;
  --color-accent-green: #d4a574;
  --color-error: #444549;
  --color-light-gray: #858381;
  --color-brown: #b29d8a;
  --color-mint: #dec5ac;
  --color-dark: #1e1c1a;
  --color-bg-light: #e7e5e2;
  --color-bg-alt: #e7e5e2;
  --color-text-base: #1e1c1a;
  --color-cyan: #dec5ac;
  --color-hover-gray: #858381;
  --color-sage: #b29d8a;
  --color-lime: #dec5ac;
  --color-red: #444549;
  --color-yellow: #d4a574;

  /* V2 Custom layout colors */
  --color-accent:     #d4a574;
  --color-hover-bg:   #dddbd8;
  --color-heading-green: #2d6a30;
  --color-shadow:     rgba(30, 28, 26, 0.25);
  --color-card-shadow: rgba(30, 28, 26, 0.35);
  --color-pill-bg:    rgba(231, 229, 226, 0.5);

  --font-mono:  'JetBrains Mono', monospace;
  --font-body:  'Inter', sans-serif;

  --radius-pill: 60px;
  --radius-card: 15px;
}


/* ─── FONT FACES ─── */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/tDbV2o-flEEny0FZhsfKu5WU4xD7OwE.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/GrgcKwrN6d3Uz8EwcLHZxwEfC4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2070, U+2074-207E, U+2080-208E, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/vQyevYAyHtARFwPqUzQGpnDs.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/5vvr9Vy74if2I6bQbJvbw7SY1pQ.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/EOr0mi4hNtlgWNn9if640EZzXCo.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/Y9k9QrlZAqio88Klkmbd8VoMQc.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/OYrD2tBIBPvoJXiIHnLoOXnY9M.woff2) format('woff2');
  unicode-range: U+0370-03FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/JeYwfuaPfZHQhEG8U5gtPDZ7WQ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../assets/fonts/b6Y37FthZeALduNqHicBT6FutY.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1,
    U+01AF-01B0, U+1EA0-1EF9, U+20AB;
}


/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  -webkit-font-smoothing: antialiased; 
  -moz-osx-font-smoothing: grayscale; 
  overflow-x: hidden; 
}
body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-primary);
  background-color: #d4a574; /* Page background color */
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; border: none; outline: none; background: none; }
h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }


/* ─── PAGE LAYOUT ─── */
.page-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 80px 80px;
  gap: 50px;
  min-height: 100vh;
}


/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 20px;
  z-index: 100;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
  min-height: 100px;
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 1040px;
  max-width: 100%;
  border-radius: 80px;
  pointer-events: auto;
}

.nav-title {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-shadow: 0px 1px 1px rgba(30, 28, 26, 0.5);
  mix-blend-mode: difference;
  user-select: none;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 15px;
  border-radius: var(--radius-pill);
  background: var(--color-pill-bg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 40px;
  color: var(--color-primary);
  transition: opacity 0.2s;
}

.btn-pill:hover { opacity: 0.8; }


/* ─── MAIN CARD ─── */
.main-card {
  width: 1200px;
  max-width: 100%;
  display: flex;
  justify-content: center;
}

.content-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  min-width: 300px;
  background-color: var(--color-bg-cream);
  border-radius: var(--radius-card);
  box-shadow: 0px 2px 4px var(--color-card-shadow);
  overflow: visible;
}


/* ─── CORNER BRACKETS ─── */
.corners {
  display: flex;
  justify-content: space-between;
  padding: 0;
}

.corner {
  display: block;
  width: 30px;
  height: 30px;
  border-color: var(--color-primary);
  border-style: solid;
  border-width: 0;
}

.corner-tl { border-left-width: 1px; border-top-width: 1px; }
.corner-tr { border-right-width: 1px; border-top-width: 1px; }
.corner-bl { border-left-width: 1px; border-bottom-width: 1px; }
.corner-br { border-right-width: 1px; border-bottom-width: 1px; }


/* ─── DECORATIONS (abs positioned images) ─── */
.decor {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}

.decor-tape-top {
  width: 153px;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  opacity: 0.84;
}

.decor-tape-side {
  width: 148px;
  bottom: 61px;
  right: -91px;
  transform: rotate(90deg);
  opacity: 0.85;
}

.decor-staple-top {
  width: 55px;
  top: 16px;
  left: 49%;
  transform: translateX(-50%);
  filter: saturate(0.3);
}

.decor-paperclip {
  width: 29px;
  top: 79px;
  right: 22px;
  transform: rotate(90deg);
  z-index: 3;
}

.decor-tape-blue-hero {
  width: 157px;
  bottom: 178px;
  left: -94px;
  transform: rotate(-90deg);
  opacity: 0.76;
}

/* Contact decorations */
.decor-tape-blue-contact {
  width: 157px;
  bottom: 209px;
  right: -92px;
  filter: saturate(0);
  transform: rotate(90deg);
  opacity: 0.76;
}

.decor-tape-top-contact {
  width: 164px;
  top: -33px;
  left: 49%;
  transform: translateX(-50%) rotate(-1deg);
  opacity: 0.85;
}

.decor-tape-bottom-contact {
  width: 153px;
  bottom: -33px;
  left: 51%;
  transform: translateX(-50%) rotate(0deg);
  opacity: 0.84;
}

.decor-staple-bottom {
  width: 55px;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  filter: saturate(0.3);
}


/* ─── HERO SECTION ─── */
.hero {
  position: relative;
  padding: 30px;
  overflow: visible;
  z-index: 1;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  position: relative;
}

.intro-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 20px;
  mix-blend-mode: multiply;
  position: relative;
  min-height: 200px;
  z-index: 3;
  opacity: 0.85;
}

.label {
  font-family: 'Chubbo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 40px;
  color: var(--color-primary);
}

.name-heading {
  font-family: var(--font-mono);
  font-size: 88px;
  font-weight: 500;
  line-height: 88%;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--color-heading-green);
  position: absolute;
  top: 54px;
  left: -3px;
  z-index: 3;
}

.bio-text {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 300;
  line-height: 32px;
  color: var(--color-primary);
  padding: 0 0 10px;
}

.current-status {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  color: var(--color-primary);
  text-align: right;
  padding: 10px 0;
}


/* ─── POLAROID ─── */
.polaroid {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* Year toggle: desktop/mobile */
.year-mobile { display: none; }
.year-desktop { display: inline; }

.polaroid-inner {
  width: 236px;
  height: 270px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-radius: 3px;
  box-shadow: 0px 2px 2px 0px var(--color-shadow);
  background: url(../assets/images/polaroid-texture.jpg) repeat;
  background-size: 7.5px;
  position: relative;
}

.photo-frame {
  flex: 1;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  filter: contrast(0.87) saturate(0);
  transition: filter 0.4s ease;
}

.photo-frame:hover {
  filter: contrast(1) saturate(1);
}

.photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-shadow {
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 2px 4px rgba(30, 28, 26, 0.15),
    inset 0 -2px 4px rgba(30, 28, 26, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.noise-overlay {
  position: absolute;
  inset: 0;
  background: url(../assets/images/cursor-animation.gif) repeat;
  background-size: 39px;
  mix-blend-mode: overlay;
  opacity: 0.25;
  pointer-events: none;
}

.photo-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.caption-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caption-name {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0;
  line-height: 1.2;
}

.caption-role {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-primary);
  line-height: 1.2;
}

.caption-year {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-light-gray);
  line-height: 1.2;
}


/* ─── SOCIAL ICONS ─── */
.social-section {
  padding: 0;
  position: relative;
  z-index: 1;
}

.social-grid {
  display: flex;
  width: 100%;
  height: 80px;
  border-top: 1px solid var(--color-primary);
  border-bottom: 1px solid var(--color-primary);
  /* Dark bg creates 1px gap separators */
  background-color: var(--color-primary);
  gap: 1px;
}

.social-grid li {
  flex: 1;
  height: 100%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-cream);
  transition: background-color 0.25s ease;
}

.social-icon:hover {
  background-color: var(--color-hover-bg);
}

.social-icon svg {
  fill: var(--color-primary);
}


/* ─── SERVICES ─── */
.services {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  background-color: var(--color-primary);
  width: 100%;
}

.services-title {
  padding: 45px 30px 30px;
}

.services-title h3 {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-bg-cream);
  line-height: 1.3;
}

.services-items {
  display: flex;
  flex-direction: column;
  padding: 20px 30px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--color-bg-cream);
}

.service-item--last {
  border-bottom: none;
}

.check-icon {
  width: 23px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--color-bg-cream);
}

.service-item span {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 300;
  text-transform: uppercase;
  line-height: 18px;
  color: var(--color-bg-cream);
}


/* ─── CONTACT ─── */
.contact {
  position: relative;
  padding: 30px;
  background-color: var(--color-bg-cream);
  border-bottom-left-radius: var(--radius-card);
  border-bottom-right-radius: var(--radius-card);
  box-shadow: 0px -1px 2px 0px var(--color-shadow);
  overflow: visible;
  z-index: 1;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-heading {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 35px;
  color: var(--color-primary);
}

.contact-desc {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 300;
  line-height: 32px;
  color: var(--color-primary);
}

.email-link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Form */
.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-primary);
}

.form-field input,
.form-field textarea {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  line-height: 120%;
  padding: 16px 16px 16px 0;
  border-bottom: 1px dotted var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  transition: border-bottom-width 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom: 2px solid var(--color-primary);
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-submit {
  display: flex;
  justify-content: flex-start;
}

.btn-submit {
  width: 240px;
  height: 60px;
  border-radius: var(--radius-pill);
  background-color: var(--color-primary);
  color: var(--color-bg-cream);
  font-family: 'Chubbo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-submit:hover {
  opacity: 0.9;
}


/* ─── BACKGROUND PATTERN ─── */
.bg-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  pointer-events: none;
}

.dots-layer {
  position: absolute;
  inset: 0;
  background: url(../assets/images/decoration.svg) repeat left top;
  background-size: 24.5px;
  mix-blend-mode: multiply;
}

.dots-blend {
  position: absolute;
  inset: 0;
  background-color: var(--color-mint);
  mix-blend-mode: lighten;
}


/* ─── FLOWER OVERLAY (fixed viewport) ─── */
.flower-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.flower-blend {
  position: absolute;
  inset: 0;
  background-color: transparent;
}

.flower-pattern {
  position: absolute;
  inset: 0;
  background: url(../assets/images/flower-pattern.png) repeat center top;
  background-size: 302.5px;
  opacity: 0.15;
}

.flower-texture {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-cream);
  mix-blend-mode: multiply;
  opacity: 0.3;
}


/* ─── FOOTER ─── */
.footer {
  width: 1040px;
  max-width: 100%;
  min-height: 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-radius: 80px;
}


/* ─── Z-INDEX LAYERING ─── */
.navbar       { z-index: 100; }
.main-card    { z-index: 2; position: relative; }
.content-card { z-index: 2; position: relative; }
.flower-overlay { z-index: 1; }


/* ==============================================================
   RESPONSIVE — TABLET (810px – 1199px)
   ============================================================== */
@media (max-width: 1199px) {
  .page-layout {
    padding: 80px;
  }

  .navbar-inner {
    width: 100%;
  }

  .main-card {
    width: 810px;
  }

  .contact-heading {
    font-size: 28px;
  }
}


/* ==============================================================
   RESPONSIVE — PHONE (≤ 809px)
   ============================================================== */
@media (max-width: 809px) {
  .page-layout {
    padding: 80px 20px; /* Increased top padding so decorations aren't cut off */
    gap: 30px;
  }

  /* Hide navbar & footer on mobile */
  .navbar,
  .footer {
    display: none;
  }

  .main-card {
    width: 390px;
    max-width: 100%;
  }

  /* Hero */
  .hero {
    padding: 20px;
  }

  .profile-row {
    gap: 15px;
  }

  .intro-text {
    min-height: 140px;
  }

  .name-heading {
    font-size: 55px;
    top: 84px;
  }

  .year-desktop { display: none; }
  .year-mobile { display: inline; }

  .label {
    font-size: 13px;
  }

  .bio-text {
    font-size: 14px;
    line-height: 26px;
  }

  .current-status {
    font-size: 14px;
    line-height: 26px;
    text-align: right;
    padding: 5px 0;
  }

  /* Corners */
  .corner {
    width: 20px;
    height: 20px;
  }

  /* Polaroid */
  .polaroid-inner {
    width: 185px;
    height: 213px;
    padding: 12px;
    gap: 10px;
  }

  .caption-year {
    font-size: 12px;
  }

  .photo-frame {
    filter: contrast(0.87) saturate(0.98);
  }

  /* Social — keep same flat separator style, just shorter */
  .social-grid {
    height: 60px;
  }

  .social-icon svg {
    width: 24px;
    height: 24px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-title {
    padding: 45px 30px 30px 20px;
  }

  .services-items {
    padding: 20px 20px 20px 30px;
  }

  .service-item span {
    font-size: 13px;
  }

  /* Contact */
  .contact {
    padding: 20px;
  }

  .contact-heading {
    font-size: 26px;
  }

  .contact-desc {
    font-size: 14px;
    line-height: 26px;
  }

  .form-submit {
    justify-content: center;
  }

  .btn-submit {
    width: 100%;
    max-width: 100%;
  }

  /* Hide desktop-only decorations on mobile */
  .decor-tape-side,
  .decor-paperclip,
  .decor-tape-blue-hero,
  .decor-tape-blue-contact {
    display: none;
  }
}

/* ==============================================================
   FIXED AVATAR
   ============================================================== */
.fixed-avatar {
  position: fixed;
  bottom: 0px;
  right: 0px;
  height: 35vh;
  max-height: 400px;
  min-height: 250px;
  width: auto;
  max-width: none; /* Prevents global img max-width from squishing it on mobile */
  z-index: 1000;
  pointer-events: none; /* so it doesn't block clicks */
  /* The image has 512px of transparency on the right side out of 1472. 
     Translation handles the padding to make it flush right. */
  transform: translateX(34.8%);
  transform-origin: bottom right;
}

@media (max-width: 809px) {
  .fixed-avatar {
    height: 25vh;
    min-height: 180px;
  }
}
