/* Core Design System & Reset */
:root {
  --bg-dark: #070709;
  --bg-card: rgba(18, 18, 24, 0.65);
  --bg-card-hover: rgba(28, 28, 38, 0.85);
  --text-white: #ffffff;
  --text-gray: #94a3b8;
  --accent-purple: #a855f7;
  --accent-blue: #3b82f6;
  --accent-purple-glow: rgba(168, 85, 247, 0.35);
  --accent-blue-glow: rgba(59, 130, 246, 0.35);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.18);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --cursor-color: 255, 255, 255;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-purple);
}

/* 3D Background Canvas Container */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
}

/* Custom Cursor Tracker */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(var(--cursor-color), 0.3);
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
.custom-cursor-dot {
  width: 4px;
  height: 4px;
  background-color: rgb(var(--cursor-color));
  border-radius: 50%;
  position: fixed;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
}
.custom-cursor.hovering {
  width: 50px;
  height: 50px;
  border-color: var(--accent-purple);
  background-color: rgba(168, 85, 247, 0.1);
}

/* Layout Wrapper */
.layout {
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Glassmorphic Navigation Bar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(7, 7, 9, 0.4);
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--text-white) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.nav-btn {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  color: var(--text-white);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px var(--accent-purple-glow);
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.6);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
}

.avatar-wrapper {
  margin-bottom: 2rem;
  position: relative;
}

.avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 0 25px var(--accent-purple-glow);
  transition: var(--transition-smooth);
}

.avatar:hover {
  transform: scale(1.05);
  border-color: var(--accent-blue);
  box-shadow: 0 0 35px var(--accent-blue-glow);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 span.gradient-text {
  background: linear-gradient(to right, var(--text-white), var(--accent-purple), var(--accent-blue), var(--text-white));
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 8s linear infinite;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-gray);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
}

.btn-primary, .btn-secondary {
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--text-white);
  color: var(--bg-dark);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.35);
}

.btn-secondary {
  border: 1px solid var(--glass-border);
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.03);
}

.btn-secondary:hover {
  border-color: var(--glass-border-hover);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

/* Portfolio Section */
.portfolio {
  padding: 6rem 5% 8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0.75rem;
}

.filter-tab {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--text-gray);
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-tab:hover,
.filter-tab.active {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border-hover);
}

/* Uniform Size Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

.gallery-item {
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  position: relative;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--glass-border-hover);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.15);
}

.media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: block;
}

.media-wrapper img,
.media-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .media-wrapper img,
.gallery-item:hover .media-wrapper video {
  transform: scale(1.05);
}

/* Overlay for Reels and Photos */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.9) 0%, rgba(7, 7, 9, 0.4) 50%, rgba(7, 7, 9, 0) 100%);
  opacity: 0;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.gallery-item:hover .card-overlay {
  opacity: 1;
}

/* Icon tag for Reels */
.reel-tag {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 7, 9, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-white);
  z-index: 3;
}

.reel-tag svg {
  color: var(--accent-purple);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

.card-category {
  color: var(--accent-purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-views {
  color: var(--text-gray);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.card-caption {
  font-size: 0.85rem;
  color: var(--text-gray);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Contact / Footer Section */
footer {
  padding: 6rem 5% 4rem;
  background: linear-gradient(to top, rgba(7, 7, 9, 0.95), transparent);
  border-top: 1px solid var(--glass-border);
  text-align: center;
  backdrop-filter: blur(10px);
}

.footer-content {
  max-width: 600px;
  margin: 0 auto;
}

.footer-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.footer-content p {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-white);
  transition: var(--transition-smooth);
}

.social-icon:hover {
  border-color: var(--accent-purple);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px var(--accent-purple-glow);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.3);
}

/* New Content Sections */
.content-section {
  padding: 6rem 5%;
  max-width: 1000px;
  margin: 0 auto;
}

.section-container {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.text-center {
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-white) 30%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
  color: var(--text-white);
}

.content-section p {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 1.2rem;
  line-height: 1.8;
}

/* Services Grid */
.services-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card-new {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  border-radius: 16px;
  transition: var(--transition-smooth);
}

.service-card-new:hover {
  transform: translateY(-5px);
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.05);
  box-shadow: 0 10px 30px var(--accent-purple-glow);
}

.service-card-new h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-white);
  margin-bottom: 1rem;
}

.service-card-new p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Why Me List */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 2rem auto 0;
  max-width: 600px;
  text-align: left;
}

.benefits-list li {
  font-size: 1.1rem;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.benefits-list li::before {
  content: '✓';
  color: var(--accent-purple);
  font-weight: 900;
}

.highlight-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  margin-top: 2rem;
}

/* Contact Footer Adjustments */
.contact-subtitle {
  font-size: 1.2rem !important;
  color: var(--text-white) !important;
  margin-bottom: 2rem !important;
}

.contact-availability {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  margin-bottom: 2rem;
  text-align: left;
  display: inline-block;
  max-width: 100%;
}

.contact-availability h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-white);
}

.availability-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

@media (max-width: 600px) {
  .availability-list {
    grid-template-columns: 1fr;
  }
}

.availability-list li {
  color: var(--text-gray);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.availability-list li::before {
  content: '•';
  color: var(--accent-blue);
}

.highlight-text-small {
  font-style: italic;
  color: var(--text-white) !important;
  margin-bottom: 2rem !important;
}

/* Adjusting original bio text size */
.hero-bio {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-gray);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

/* Responsive Grid Adapters */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 650px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  header {
    padding: 1rem 5%;
  }
  .nav-links {
    display: none;
  }
}

/* Portrait Instagram Reels Video Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(3, 3, 5, 0.92);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  display: flex;
  background: #0d0d12;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  max-width: 900px;
  width: 90%;
  height: 80vh;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

/* Left panel: Vertical Video Player */
.modal-media {
  flex: 1.2;
  background: #000;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-media video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Custom Video HUD UI Overlay */
.video-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.hud-badge {
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.7rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-purple);
}

.hud-btn {
  background: rgba(0, 0, 0, 0.6);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  backdrop-filter: blur(5px);
  transition: var(--transition-smooth);
}

.hud-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.15);
}

.hud-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-pause-splash {
  background: rgba(0, 0, 0, 0.7);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.play-pause-splash.active {
  opacity: 1;
  transform: scale(1);
}

/* Right panel: Details Card info */
.modal-details {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--glass-border);
}

.modal-details-top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modal-user-info img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-purple);
}

.modal-user-meta h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-user-meta p {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.modal-caption-text {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.6;
}

.modal-category-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-purple);
  text-transform: uppercase;
  background: rgba(168, 85, 247, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.2);
}

.modal-stats {
  border-top: 1px solid var(--glass-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.stat-item.views {
  color: var(--accent-purple);
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  color: var(--text-white);
  transform: rotate(90deg);
}

/* Adjustments for smaller heights / mobile devices */
@media (max-width: 800px) {
  .modal-container {
    flex-direction: column;
    height: 90vh;
    width: 95%;
  }
  .modal-media {
    flex: 1.5;
  }
  .modal-details {
    flex: 1;
    padding: 1.5rem;
  }
}

/* Shine Keyframes */
@keyframes shine {
  to {
    background-position: 300% center;
  }
}
