/* ==========================================================================
   Radina's Portfolio - iOS Glassmorphism Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-base: #FEF8FB;
  --text-main: #5A2343;
  --text-muted: rgba(90, 35, 67, 0.7);
  --accent-pink: #FDE2F3;
  --accent-pink-deep: #fbc6e9;
  --accent-magenta: #a83d7a;
  
  /* Glassmorphism Tokens */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-card: rgba(255, 255, 255, 0.65);
  --glass-bg-pink: rgba(253, 226, 243, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-border-pink: rgba(253, 226, 243, 0.9);
  --glass-shadow: 0 16px 36px -10px rgba(90, 35, 67, 0.1);
  --glass-shadow-hover: 0 24px 48px -12px rgba(90, 35, 67, 0.18);
  
  /* Border Radius (iOS Style) */
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 32px;
  --radius-pill: 9999px;
  
  /* Transitions */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Ambient Background Blobs (Essential for Glassmorphism depth!)
   ========================================================================== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate ease-in-out;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: #fce4f5;
}

.blob-2 {
  top: 30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: #fde8f7;
  animation-delay: -5s;
}

.blob-3 {
  bottom: -15%;
  left: 20%;
  width: 550px;
  height: 550px;
  background: #ffdbee;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -50px) scale(1.1); }
  100% { transform: translate(-30px, 30px) scale(0.95); }
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.container {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   1. iOS Status / Navbar Title
   ========================================================================== */
.ios-navbar {
  position: sticky;
  top: 20px;
  z-index: 100;
  margin-top: 20px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.navbar-pill {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  box-shadow: var(--glass-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s var(--smooth);
}

.navbar-pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-shadow-hover);
}

.status-dot {
  width: 10px;
  height: 10px;
  background-color: #ff6b8b;
  border-radius: 50%;
  box-shadow: 0 0 10px #ff6b8b;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.navbar-title {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

/* ==========================================================================
   2. Greetings / Hero Section
   ========================================================================== */
.hero-section {
  padding: 40px 0;
  text-align: left;
}

.hero-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--glass-shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--smooth);
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--text-main), #ff80b5, var(--accent-pink));
}

.hero-greeting {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero-greeting .highlight {
  background: linear-gradient(135deg, var(--text-main) 0%, #bd468a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-muted);
  font-weight: 500;
  max-width: 800px;
  line-height: 1.8;
}

.badge-dkv {
  display: inline-block;
  background: var(--accent-pink);
  color: var(--text-main);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: 0 4px 12px rgba(90, 35, 67, 0.06);
}

/* ==========================================================================
   3. Get to Know About Me (Interactive Mini Notes)
   ========================================================================== */
.about-section {
  margin: 40px 0 60px;
}

.btn-about {
  background: var(--accent-pink);
  color: var(--text-main);
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(253, 226, 243, 0.8), 0 4px 10px rgba(90, 35, 67, 0.08);
  transition: all 0.4s var(--spring);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-about:hover {
  transform: scale(1.05) translateY(-2px);
  background: var(--accent-pink-deep);
  box-shadow: 0 16px 32px rgba(253, 226, 243, 1), 0 6px 15px rgba(90, 35, 67, 0.12);
}

.btn-about:active {
  transform: scale(0.97);
}

.btn-icon {
  transition: transform 0.4s var(--spring);
}

.btn-about.active .btn-icon {
  transform: rotate(180deg);
}

.about-notes-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--smooth), opacity 0.4s ease;
  opacity: 0;
}

.about-notes-wrapper.open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 24px;
}

.about-notes-content {
  overflow: hidden;
}

.mini-notes-card {
  background: var(--glass-bg-pink);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.mini-notes-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(90, 35, 67, 0.15);
  padding-bottom: 16px;
}

.notes-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.notes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.notes-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 1.05rem;
}

.notes-item-icon {
  background: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(90, 35, 67, 0.06);
}

.notes-item-text strong {
  display: block;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-magenta);
  margin-bottom: 4px;
}

/* ==========================================================================
   4. Toolbox Section (Bento Grid)
   ========================================================================== */
.section-header {
  margin-bottom: 32px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60%;
  height: 4px;
  background: var(--accent-pink-deep);
  border-radius: 2px;
}

.toolbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 80px;
}

.toolbox-card {
  background: var(--glass-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--spring);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.toolbox-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--glass-shadow-hover);
  border-color: #ffffff;
}

.toolbox-icon-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.toolbox-icon {
  width: 54px;
  height: 54px;
  background: var(--accent-pink);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  border: 1px solid white;
  box-shadow: 0 8px 16px rgba(253, 226, 243, 0.8);
}

.toolbox-category {
  font-size: 1.3rem;
  font-weight: 800;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-tag {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(253, 226, 243, 0.8);
  box-shadow: 0 2px 6px rgba(90, 35, 67, 0.04);
  transition: all 0.2s ease;
}

.toolbox-card:hover .tool-tag {
  background: #ffffff;
}

/* ==========================================================================
   5. Some of My Works (Horizontal Sliders / Carousels)
   ========================================================================== */
.works-section {
  margin-bottom: 80px;
}

.works-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 8px;
}

.category-block {
  margin-top: 40px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-container {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 10px 4px 30px 4px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.work-card {
  scroll-snap-align: start;
  flex: 0 0 320px;
  height: 240px;
  background: var(--glass-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: all 0.4s var(--spring);
}

@media (min-width: 768px) {
  .work-card {
    flex: 0 0 360px;
    height: 260px;
  }
}

.work-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--glass-shadow-hover);
  border-color: #ffffff;
}

.work-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--smooth);
}

.work-card:hover .work-thumb {
  transform: scale(1.08);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(90, 35, 67, 0.85) 0%, rgba(90, 35, 67, 0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.work-card:hover .work-overlay {
  opacity: 1;
}

.work-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.work-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.work-desc {
  font-size: 0.9rem;
  color: #fde2f3;
}

/* ==========================================================================
   6. Footer Section
   ========================================================================== */
.footer {
  background: var(--glass-bg-pink);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-top: 2px solid #ffffff;
  border-radius: 40px 40px 0 0;
  padding: 60px 0 40px;
  margin-top: 60px;
  box-shadow: 0 -10px 40px rgba(90, 35, 67, 0.05);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    text-align: left;
  }
}

.footer-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-btn {
  background: #ffffff;
  color: var(--text-main);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(90, 35, 67, 0.08);
  border: 1px solid var(--accent-pink);
  transition: all 0.3s var(--spring);
}

.social-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 30px rgba(90, 35, 67, 0.15);
}

.social-btn.wa:hover {
  background: #25D366;
  color: #ffffff;
  border-color: #25D366;
}

.social-btn.ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  border-color: transparent;
}

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

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(90, 35, 67, 0.1);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Modal / Lightbox
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(90, 35, 67, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 700px;
  padding: 32px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.4s var(--spring);
  position: relative;
  border: 2px solid var(--accent-pink);
}

.modal-backdrop.active .modal-box {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent-pink);
  color: var(--text-main);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--text-main);
  color: #ffffff;
  transform: rotate(90deg);
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-category {
  color: var(--accent-magenta);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.modal-preview {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--accent-pink-deep);
  margin-bottom: 20px;
}

.modal-preview img, .modal-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--smooth), transform 0.8s var(--smooth);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Design for All Devices (Mobile, Tablet, Desktop)
   ========================================================================== */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  
  .ios-navbar {
    margin-top: 12px;
    margin-bottom: 24px;
  }
  
  .navbar-pill {
    padding: 10px 20px;
  }
  
  .hero-card {
    padding: 32px 20px;
    border-radius: var(--radius-md);
  }
  
  .hero-greeting {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.05rem;
  }
  
  .btn-about {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
  }
  
  .mini-notes-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  
  .notes-title {
    font-size: 1.25rem;
  }
  
  .notes-item {
    font-size: 0.95rem;
    gap: 12px;
  }
  
  .toolbox-card {
    padding: 24px 20px;
  }
  
  .work-card {
    flex: 0 0 260px;
    height: 200px;
  }
  
  .work-title {
    font-size: 1.1rem;
  }
  
  .footer {
    padding: 40px 0 30px;
    border-radius: 28px 28px 0 0;
  }
  
  .footer-title {
    font-size: 1.6rem;
  }
  
  .social-links {
    width: 100%;
    flex-direction: column;
  }
  
  .social-btn {
    width: 100%;
    justify-content: center;
  }
  
  .modal-box {
    padding: 24px 16px;
  }
  
  .modal-title {
    font-size: 1.4rem;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }
  
  .work-card {
    flex: 0 0 300px;
    height: 230px;
  }
}

