/* 
  Draw Drive Stylesheet
  =========================================
  Designed with a premium sketchy/handcrafted aesthetic.
*/

:root {
  --text-color: #2b1712;
  --card-bg: #8c7464;
  --nav-bg: #c4b7a7;
  --dev-text-dark: #2b1712;
  --dev-name-color: #54201c;
  --placeholder-light: #f4e6dc;
  --paper-grain-shadow: rgba(43, 23, 18, 0.15);
}

/* Reset and Layout Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #c4a791;
  /* Main background image provided by you: "DRAWDRIVE UI (1).png" */
  background-image: url('DRAWDRIVE UI (1).png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: 'Patrick Hand', cursive;
  color: var(--text-color);
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* 
  Vignette Overlay Touchup:
  Fades the edges slightly to draw the eye to the content
*/
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0) 55%, rgba(43, 23, 18, 0.08) 100%);
  pointer-events: none;
  z-index: 99;
}

/* ----------------------------------------------------
   Top-Right GitHub Link
---------------------------------------------------- */
.github-link {
  position: absolute;
  top: 30px;
  right: 40px;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 2px dashed var(--text-color);
  padding-bottom: 2px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 10;
  letter-spacing: 0.5px;
}

.github-link:hover {
  color: var(--dev-name-color);
  border-bottom-color: var(--dev-name-color);
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   Logo Component & Absolute Stroke Placement
---------------------------------------------------- */
.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  user-select: none;
}

.logo-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Absolute strokes positioning - prevents layout shift and aligns exactly with text */
.stroke-img {
  position: absolute;
  pointer-events: none;
  object-fit: contain;
  transition: transform 0.4s ease;
}

/* Large logo stroke coordinates */
.large .stroke-left-bottom {
  right: 98%;
  top: 50%;
  transform: translate(-10px, 15px) rotate(0deg);
  width: 75px;
  height: auto;
}

.large .stroke-right-top {
  left: 98%;
  bottom: 50%;
  transform: translate(10px, -15px) rotate(0deg);
  width: 75px;
  height: auto;
}

/* Small logo stroke coordinates */
.small .stroke-left-bottom {
  right: 98%;
  top: 50%;
  transform: translate(-5px, 6px);
  width: 28px;
  height: auto;
}

.small .stroke-right-top {
  left: 98%;
  bottom: 50%;
  transform: translate(5px, -6px);
  width: 28px;
  height: auto;
}

/* Micro-Interaction: Stroke wiggle on logo hover */
@keyframes strokeWiggleLeft {
  0% { transform: translate(-10px, 15px) rotate(0deg); }
  50% { transform: translate(-12px, 14px) rotate(-3deg); }
  100% { transform: translate(-8px, 16px) rotate(2deg); }
}

@keyframes strokeWiggleRight {
  0% { transform: translate(10px, -15px) rotate(0deg); }
  50% { transform: translate(12px, -16px) rotate(3deg); }
  100% { transform: translate(8px, -14px) rotate(-2deg); }
}

.logo-wrapper:hover .stroke-left-bottom {
  animation: strokeWiggleLeft 0.3s ease infinite alternate;
}

.logo-wrapper:hover .stroke-right-top {
  animation: strokeWiggleRight 0.3s ease infinite alternate;
}

/* Typographic settings */
.logo-container.large .main-logo-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 5.5rem;
  letter-spacing: 2px;
  line-height: 1.1;
  font-weight: normal;
  color: var(--text-color);
  /* Textured letter-press text shadow shadow */
  text-shadow: 1.5px 1.5px 0px rgba(255, 255, 255, 0.25),
               -1px -1px 0px rgba(43, 23, 18, 0.1);
}

.logo-container.small .main-logo-text {
  font-family: 'Permanent Marker', cursive;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: normal;
  color: var(--text-color);
}

/* ----------------------------------------------------
   Sketched Button Component (TRY NOW)
---------------------------------------------------- */
.btn-sketch {
  position: relative;
  display: inline-block;
  font-family: 'Patrick Hand', cursive;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
  background: transparent;
  border: 3.5px solid var(--text-color);
  
  /* Skewed hand-drawn border (Middle ground: organic but not overly distorted) */
  border-radius: 120px 15px 100px 15px / 15px 100px 15px 120px;
  
  cursor: pointer;
  text-transform: uppercase;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Hand-drawn double outline effect */
.btn-sketch::after {
  content: '';
  position: absolute;
  top: -5.5px;
  left: -5.5px;
  right: -5.5px;
  bottom: -5.5px;
  border: 2px solid var(--text-color);
  
  /* Double border overlay (Middle ground: organic but not overly distorted) */
  border-radius: 100px 15px 120px 15px / 15px 120px 15px 100px;
  
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Dynamic Handcrafted Hover Effects */
@keyframes pencilWobble {
  0% { 
    border-radius: 120px 15px 100px 15px / 15px 100px 15px 120px;
  }
  50% { 
    border-radius: 100px 15px 120px 15px / 15px 120px 15px 100px;
  }
  100% { 
    border-radius: 120px 15px 100px 15px / 15px 100px 15px 120px;
  }
}

.btn-sketch:hover {
  transform: scale(1.04) rotate(-0.5deg);
  background-color: rgba(43, 23, 18, 0.04);
  animation: pencilWobble 0.6s linear infinite;
}

.btn-sketch:hover::after {
  transform: scale(1.02) rotate(1deg);
}

.btn-sketch:active {
  transform: scale(0.98);
}

/* Button Size Layouts */
.large-btn {
  padding: 10px 38px;
  font-size: 1.7rem;
  margin-top: 10px;
}

.small-btn {
  padding: 5px 18px;
  font-size: 1.2rem;
  border-width: 2.5px;
}

.small-btn::after {
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-width: 1.5px;
}

/* ----------------------------------------------------
   Hero Section (Full Screen Viewport)
---------------------------------------------------- */
.hero-section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  position: relative;
  box-sizing: border-box;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.hero-subtitle {
  font-size: 1.9rem;
  font-weight: normal;
  max-width: 650px;
  line-height: 1.35;
  color: var(--text-color);
  letter-spacing: 0.5px;
  text-shadow: 0.5px 0.5px 0px rgba(255, 255, 255, 0.3);
}

/* Scroll Down Indicator Component */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--text-color);
  opacity: 0.7;
  animation: bounce 2s infinite;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 5;
  user-select: none;
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) scale(1.05);
}

.scroll-indicator.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(15px);
  pointer-events: none;
}

.scroll-text {
  letter-spacing: 1px;
}

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

/* ----------------------------------------------------
   Navigation Bar (Fixed with Transition Reveal)
---------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 60px;
  background-color: var(--nav-bg);
  /* Top and Bottom solid borders */
  border-top: 2.5px solid #000;
  border-bottom: 2.5px solid #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  
  /* 
    Initial hidden state - slides down and fades in when scrolling down.
    Slowed down to 1.2s transition for a premium, cinematic feel.
  */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.25, 0.8, 0.25, 1), 
              opacity 1.2s cubic-bezier(0.25, 0.8, 0.25, 1),
              background-color 0.4s ease, 
              box-shadow 0.4s ease;
}

/* Visible state toggled via JS scroll-reveal */
.navbar.navbar-visible {
  transform: translateY(0);
  opacity: 1;
  background-color: rgba(196, 181, 165, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(43, 23, 18, 0.15);
}

/* ----------------------------------------------------
   Developer Section & Scroll Reveal
---------------------------------------------------- */
.developer-section {
  min-height: 100vh; /* Centered in full height layout */
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Aligned to top to sit close to navbar on scroll */
  
  /* 
    Increased top padding to 130px to clear the fixed navbar height (~70px)
    and leave a clean 60px gap so the card is NOT colliding/touching.
  */
  padding: 130px 20px 60px 20px; 
  position: relative;
  box-sizing: border-box;
}

.developer-card {
  background-color: var(--card-bg);
  width: 100%;
  max-width: 720px;
  min-height: 360px;
  padding: 45px 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  position: relative;
  
  /* Doodle-style Double Outline Border for the card (Middle ground: organic and wavy but straight enough) */
  border: 3.5px solid var(--text-color);
  border-radius: 200px 15px 180px 15px / 15px 180px 15px 200px;
  box-shadow: 10px 10px 0px var(--paper-grain-shadow); /* Blocky card shadow */
  
  /* 
    Scroll Entrance Reveal transition properties.
    Slowed down transition duration to 1.5s for a cinematic entrance.
  */
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.5s cubic-bezier(0.25, 0.8, 0.25, 1), 
              transform 1.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Double border overlay for the card (Middle ground: organic and wavy but straight enough) */
.developer-card::after {
  content: '';
  position: absolute;
  top: -6.5px;
  left: -6.5px;
  right: -6.5px;
  bottom: -6.5px;
  border: 2px solid var(--text-color);
  border-radius: 180px 15px 200px 15px / 15px 200px 15px 180px;
  pointer-events: none;
}

/* Reveals card when scrolled in */
.developer-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.dev-info {
  display: flex;
  flex-direction: column;
  flex: 1.2;
}

.dev-title {
  font-family: 'Alfa Slab One', serif;
  font-size: 2.8rem;
  color: var(--dev-text-dark);
  margin-bottom: 12px;
  display: inline-block;
  align-self: flex-start;
  border-bottom: 5px solid var(--dev-text-dark);
  padding-bottom: 4px;
  line-height: 1.15;
  font-weight: normal;
  text-shadow: 1px 1px 0px rgba(255, 255, 255, 0.2);
}

.dev-name {
  font-family: 'Kalam', cursive;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--dev-name-color);
  margin-bottom: 8px;
  text-shadow: 0.5px 0.5px 0px rgba(255, 255, 255, 0.2);
}

.dev-tags {
  font-family: 'Patrick Hand', cursive;
  font-size: 1.35rem;
  color: var(--dev-name-color);
  opacity: 0.95;
  letter-spacing: 0.3px;
  word-spacing: 1px;
}

/* ----------------------------------------------------
   Developer Social Links
---------------------------------------------------- */
.dev-socials {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--text-color);
  
  /* Hand-drawn sketched circle effect (organic look) */
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 55%;
  
  color: var(--text-color);
  background: transparent;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 2px 2px 0px var(--paper-grain-shadow);
}

.social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.social-link svg.stroke-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Handcrafted Hover Interaction */
.social-link:hover {
  background-color: var(--dev-name-color);
  color: var(--placeholder-light);
  border-color: var(--dev-name-color);
  transform: scale(1.12) rotate(4deg);
  box-shadow: 4px 4px 0px var(--paper-grain-shadow);
  
  /* Wobble border slightly on hover */
  border-radius: 48% 52% 45% 55% / 50% 45% 52% 48%;
}

.social-link:hover svg {
  transform: scale(1.05) rotate(-4deg);
}

.social-link:active {
  transform: scale(0.95);
}

/* ----------------------------------------------------
   Developer Image / Space Placeholder
---------------------------------------------------- */
.dev-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  background: rgba(244, 230, 220, 0.05);
  
  /* Touchup: Hand-sketched image container borders (Toned down, straighter layout) */
  border: 2.5px dashed rgba(244, 230, 220, 0.45);
  border-radius: 12px 6px 12px 6px / 6px 12px 6px 12px;
  
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(244, 230, 220, 0.7);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  margin-top: 10px;
  box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.08);
}

.dev-image-container:hover {
  border-color: rgba(244, 230, 220, 0.85);
  background: rgba(244, 230, 220, 0.08);
  color: var(--placeholder-light);
  transform: scale(1.02);
}

.dev-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* Show Image when source is populated */
.dev-profile-img[src]:not([src=""]) {
  display: block;
}

.dev-profile-img[src]:not([src=""]) + .dev-img-placeholder {
  display: none;
}

.dev-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px;
  text-align: center;
  user-select: none;
}

.dev-img-placeholder svg {
  stroke: currentColor;
  transition: transform 0.3s ease;
}

.dev-image-container:hover .dev-img-placeholder svg {
  transform: scale(1.1);
}

.placeholder-label {
  font-size: 0.95rem;
  font-family: 'Patrick Hand', cursive;
  letter-spacing: 0.5px;
}

/* Footer Spacer */
.footer-spacing {
  height: 40px;
}

/* ----------------------------------------------------
   Responsive Adjustments
---------------------------------------------------- */
@media (max-width: 768px) {
  .navbar {
    padding: 12px 30px;
  }
  
  .developer-section {
    padding-top: 120px;
  }

  .developer-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 35px 25px;
    gap: 30px;
  }
  
  .dev-info {
    align-items: center;
  }

  .dev-title {
    align-self: center;
    font-size: 2.2rem;
  }

  .dev-name {
    font-size: 2.1rem;
  }

  .dev-tags {
    font-size: 1.25rem;
  }
  
  .dev-image-container {
    margin-top: 0;
  }
}

@media (max-width: 600px) {
  .logo-container.large .main-logo-text {
    font-size: 3.8rem;
  }
  
  .github-link {
    top: 15px;
    right: 15px;
    font-size: 1rem;
  }

  .large .stroke-left-bottom,
  .large .stroke-right-top {
    width: 50px;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .large-btn {
    padding: 8px 30px;
    font-size: 1.45rem;
  }
  
  .navbar {
    padding: 10px 15px;
  }
  
  .logo-container.small .main-logo-text {
    font-size: 1.4rem;
  }
  
  .small .stroke-left-bottom,
  .small .stroke-right-top {
    width: 20px;
  }
}
/* Unified complete footer box container */
/* Unified complete footer box container */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 12px 32px;
  box-sizing: border-box;
  
  /* Modern Dark Glassmorphism */
  background: rgba(15, 15, 15, 0.75) !important;
  backdrop-filter: blur(12px) saturate(140%);
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  pointer-events: none;
  
  /* Smooth visibility transition system */
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 🔥 Hide state: pushes footer downwards out of view */
.footer.hidden {
  opacity: 0 !important;
  transform: translateY(100%) !important;
  pointer-events: none !important;
}

/* Connects left and right sides in a single horizontal row */
.footer-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Structural blocks for text rows */
.devdet, .techdet {
  display: block !important;
  pointer-events: auto; /* Restores interactivity so links remain clickable */
}

.devdet p, .techdet p {
  margin: 4px 0 !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.75) !important; /* High contrast light text against dark background */
  line-height: 1.4 !important;
}

.devdet {
  text-align: left !important;
}

.techdet {
  text-align: right !important;
}

/* Custom Hyperlinks */
.footer a {
  color: #38bdf8 !important; /* Cyan blue accent link color */
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
}

/* Code badges for APIs */
.footer u {
  text-decoration: none !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-family: monospace !important;
  font-size: 11px !important;
}