/* Import Clash Display Font */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --accent: #ff9900;
    --accent-yellow: #ffb84d;
    --lemonade-glow: rgba(255, 153, 0, 0.15);
    --lemonade-glow-strong: rgba(255, 153, 0, 0.25);
    --font-primary: 'Clash Display', sans-serif;
    --font-secondary: 'Clash Display', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-light: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-light: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    --glass-shadow-strong: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    --noise-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    font-weight: 400;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Prevent iOS zoom on focus */
@media screen and (max-width: 768px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Accessibility helper */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* Apply Clash Display font weights appropriately */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
}

h1 {
    font-weight: 600;
}

h2 {
    font-weight: 500;
}

h3 {
    font-weight: 500;
}

/* Gradient Glow Effects */
.gradient-glow {
    position: fixed;
    background: radial-gradient(circle, var(--lemonade-glow) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: 20%;
    left: 10%;
    opacity: 0.6;
    animation: floatGlow1 12s ease-in-out infinite;
}

.glow-2 {
    width: 500px;
    height: 500px;
    top: 60%;
    right: 15%;
    opacity: 0.4;
    animation: floatGlow2 10s ease-in-out infinite;
}

.glow-3 {
    width: 700px;
    height: 700px;
    bottom: 10%;
    left: 20%;
    opacity: 0.3;
    animation: floatGlow3 15s ease-in-out infinite;
}

.glow-4 {
    width: 550px;
    height: 550px;
    top: 30%;
    right: 25%;
    opacity: 0.5;
    animation: floatGlow4 11s ease-in-out infinite;
}

@keyframes floatGlow1 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floatGlow2 {
    0%, 100% { transform: translateX(0px) scale(1); }
    50% { transform: translateX(15px) scale(1.03); }
}

@keyframes floatGlow3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(25px) rotate(5deg); }
}

@keyframes floatGlow4 {
    0%, 100% { transform: translateX(0px) scale(1); }
    50% { transform: translateX(-10px) scale(1.02); }
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Enhanced Fixed Header with Reduced Padding */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.8rem 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-strong);
}

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

.nav-left, .nav-right {
    flex: 1;
}

.nav-left ul {
    justify-content: flex-end;
}

.nav-right ul {
    justify-content: flex-start;
}

/* Logo Styles */
.logo {
    padding: 0 2rem;
}

.logo-square {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.logo-square:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
}

.logo-square.small {
  width: 50px;
  height: 50px;
}

.logo-square img {
  border-radius: 8px;
  width: 45px;
  height: 45px;
}

.logo-square video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transform: scale(1.4);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    font-size: 0.85rem;
}

nav a {
    position: relative;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Active navigation state */
nav a.active {
    color: var(--accent);
}

nav a.active::after {
    width: 100%;
}

/* Hero Section - Fullscreen */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0;
    margin: 0;
    z-index: 1;
    background: var(--bg-dark);
}

.hero.full-screen {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* Make the container inside the hero section a flex container to position the arrow */
.hero .container {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 8vh;
}

.hero-video {
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-main);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.hero-line {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-text {
    display: inline-block;
    overflow: hidden;
}

.typewriter-line-1 {
    animation: typewriter1 4s steps(15) forwards;
    white-space: nowrap;
    width: 0;
}

.typewriter-line-2 {
    animation: typewriter2 4s steps(15) 4s forwards;
    white-space: nowrap;
    width: 0;
}

.typewriter-line-3 {
    animation: typewriter3 4s steps(15) 8s forwards;
    white-space: nowrap;
    width: 0;
}

.accent-text {
    color: var(--accent);
    text-shadow: 0 2px 4px rgba(214, 255, 75, 0.3);
}

@keyframes typewriter1 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typewriter2 {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes typewriter3 {
    from { width: 0; }
    to { width: 100%; }
}

/* Scroll Down Arrow */
.scroll-down-arrow {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.scroll-down-arrow i {
    font-size: 1.8rem;
    color: var(--text-main);
    opacity: 0.7;
    animation: float-loop 2.2s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
    margin-top: -12px;
}

.scroll-down-arrow i:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down-arrow i:nth-child(3) {
    animation-delay: 0.4s;
}

.scroll-down-arrow:hover {
    animation-play-state: paused;
}

@keyframes float-loop {
    0% { transform: translateY(-10px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(10px); opacity: 0; }
}

/* All Sections with Reduced Padding */
section {
    padding: 0;
    position: relative;
    z-index: 1;
}

/* About Section Improvements */
.about-buttons {
    margin-top: 1.5rem;
}

/* Recent Work Section */
.section.recent-work {
    position: relative;
    background: transparent;
    margin: 3rem 0 0;
    overflow: hidden;
    width: 100%;
}

.section-title-container {
    position: relative; /* Establish stacking context */
    z-index: 10; /* Ensure it's above the carousel */
    padding: 2rem 1.5rem;
    text-align: center;    
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 0; /* Remove any bottom margin */
}

.section-title-standalone {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.1px;
}

.section-title-years {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.8em;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.about-title-container {
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.section.recent-work .container {
    position: relative;
    z-index: 2;
}

.recent-work-background {
    position: absolute;
    display: none; /* Removed to create a seamless background with the About section */
}

/* View More Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.view-more-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Stupid Shots Section - Now matches Recent Work */
.section.stupid-shots {
    position: relative;
    background: transparent;
    padding-top: 8rem;
    overflow: hidden;
    width: 100%;
    z-index: 1;
    min-height: 80vh;
}

.stupid-shots-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1;
}

.stupid-shots-header {
    text-align: left;
}

.stupid-shots-description {
    max-width: 600px;
    text-align: left;
    margin-top: 1rem;
}

.stupid-shots-description p {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-muted);
}

/* Updated Stupid Shots Grid to match Recent Work */
.stupid-shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stupid-shot-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border-light);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    aspect-ratio: 16 / 9;
}

.stupid-shot-item::before {
    transition: opacity 0.5s ease;
}

.work-item::after, .stupid-shot-item::after {
    cursor: pointer;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.stupid-shot-item:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border);
}

.text-color-yellow {
    color: var(--accent-yellow);
    text-shadow: 0 2px 4px rgba(244, 250, 148, 0.3);
}

.stupid-shot-item:hover .video-preview {
    transform: scale(1.08);
}

.about-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
    color: var(--text-main);
}

.about-description {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 500px;
}

/* New About Section Layout */
.about-section {
    position: relative;
    padding: 2rem 0 4rem; /* Adjusted padding */
    margin-top: 0; /* Removed top margin to merge with recent work */
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.about-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.about-image-section {
    flex: 1;
    max-width: 450px;
    position: relative;
    cursor: pointer;
}

.about-image-section img,
.about-video {
    width: 100%;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    aspect-ratio: 1 / 1;
}
.about-image-section .video-overlay {
    border-radius: 12px;
}

.about-image-section:hover .video-overlay {
    opacity: 1;
}

.about-image-section:hover .about-video {
    transform: scale(1.08);
}

.about-text-section {
    flex: 1.2;
}

.about-text-section .about-title {
    margin-bottom: 1rem;
}

.about-faq-section {
  max-width: 100%;
}

.about-faq-accordion {
  border-top: 1px solid var(--glass-border);
}

.about-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-border);
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main);
}

/* Animated Accordion Icon */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.icon-line:first-child {
  opacity: 1;
}

.icon-line:last-child {
  opacity: 1;
  transform: rotate(90deg);
}

.about-faq-question.open .icon-line:first-child,
.about-faq-question.open .icon-line:last-child {
  opacity: 0;
}

.about-faq-question.open .faq-icon::after {
  content: 'o';
  font-size: 40px;
  color: var(--text-main);
  font-weight: 300;
  line-height: 1;
}

.about-faq-answer {
  padding: 0 0;
  max-height: 0;
  overflow: hidden;
  color: var(--text-main);
  border-bottom: 1px solid var(--glass-border);
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.about-faq-answer p {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
  margin-bottom: 1rem;
  font-weight: 500;
}

.about-faq-answer.open {
  padding: 15px 0 25px;
}

.about-faq-answer.open p {
  opacity: 1;
  transform: translateX(0);
}

.about-faq-answer a {
  color: var(--accent);
}

.about-content p {
    color: var(--text-main);
}

.spacer {
    height: 24px;
}

.spacer._32 {
    height: 32px;
}

.spacer-16 {
    height: 16px;
}

.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
}

.button-secondary i {
    margin-right: 0.5rem;
}

.button-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button-secondary:hover::before {
    left: 100%;
}

.button-secondary:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.3);
}

.grid-work-header {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: flex-start;
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 2rem;
}

.work-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
    color: var(--text-main);
}

.text-white-50 {
    color: var(--text-muted);
}

.text-white-64 {
    color: rgba(255, 255, 255, 0.64);
}

.heading.extra-small {
    font-size: 0.9rem;
    font-weight: 400;
}

.heading.small {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.work-wrapper {
    width: 100%;
}

/* FIXED: 3-Column Work Grid with proper text display */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.work-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border-light);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
}

.work-item::after, .stupid-shot-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), var(--lemonade-glow-strong) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.work-item:hover::after, .stupid-shot-item:hover::after {
    opacity: 1;
}

.work-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
}

.work-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--glass-shadow-strong);
    border-color: var(--glass-border);
}

.work-item .video-container,
.stupid-shot-item .video-container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    top: 0;
    left: 0;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.about-video {
    transition: transform 0.4s ease;
}

.work-item:hover .video-preview,
.stupid-shot-item:hover .video-preview {
    transform: scale(1.08);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    z-index: 2;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.video-overlay i {
    font-size: 3rem;
    color: var(--accent);
    transition: all 0.3s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.work-item:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.work-item:hover .video-overlay i {
    transform: scale(1.2);
}

/* FIXED: Work content positioning and text display */
.work-content {
    position: absolute;
    z-index: 2;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    backdrop-filter: blur(20px) saturate(180%);
    width: 100%;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
}

.work-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-content h4 {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Skills Section */
.skills-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
    color: var(--text-main);
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 2rem;
    align-items: start;
}

.list-wrapper {
    display: flex;
    flex-direction: column;
}

.list-item {
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.list-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1rem;
}

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

.skill-heading {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.skill-description {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    font-family: var(--font-secondary);
}

/* CTA Section */
.cta {
    position: relative;
    text-align: center;
    padding: 3rem 1rem;
    margin: 2rem auto;
    max-width: 1000px;
    overflow: hidden;
    z-index: 1;
}

.cta-content {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-video-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow-strong);
}

.cta-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cta-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(10, 10, 10, 0.8) 0%,
        rgba(10, 10, 10, 0.4) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    pointer-events: none;
}

.cta-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
    width: 100%;
}

.cta h2 {
    font-family: var(--font-primary);
    font-size: 72px;
    font-weight: 500;
    line-height: 72px;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.cta-email {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 500;
    color: var(--accent);
    display: block;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(255, 153, 0, 0.3);
}

.cta-email:hover {
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Brand Reveal Section */
.brand-reveal {
  background-color: var(--bg-dark);
  padding: 5rem 10%;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Recommended for pinned sections */
  will-change: transform; /* Optimize for pinning */
}

@media (max-width: 768px) {
    .brand-reveal {
        padding: 3rem 5%;
    }
}

.reveal-text {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}

.highlight {
  color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(to right, var(--accent) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  will-change: background-position;
  transform: translateZ(0); /* Force hardware acceleration */
}

.base-text {
  display: block;
  margin-top: 2rem;
  font-family: var(--font-primary);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: none;
  color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(to right, var(--text-main) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  word-spacing: 0.1em;
  letter-spacing: 0.02em;
  will-change: background-position;
  transform: translateZ(0); /* Force hardware acceleration */
}

/* Infinite Logo Marquee */
.logo-marquee {
    background: var(--bg-dark);
    padding: 3rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--glass-border-light);
    border-bottom: 1px solid var(--glass-border-light);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.marquee-track.reverse {
    animation-direction: reverse;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding-right: 5rem;
}

.marquee-logo {
    height: 60px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%) brightness(1.3);
    transition: all 0.3s ease;
}

.marquee-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Awards Marquee Styles */
.awards-marquee {
    background: var(--bg-dark);
    padding: 2rem 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid var(--glass-border-light);
}

/* FIXED: Enhanced Footer with reduced height and better spacing */
footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* Logo and Description Side by Side */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    max-width: 400px;
}

/* Navigation Section with Even Columns */
.footer-nav-section {
    display: flex;
    justify-content: flex-end;
}

.footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 500px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    white-space: nowrap;
}

.footer-column a {
    display: block;
    margin: 0.4rem 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.footer-column a:hover {
    color: var(--accent);
}

/* Social Icons */
.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: fit-content;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Centered Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border-light);
    text-align: center;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

/* Remove old footer credits since we're centering everything */
.footer-credits {
    display: none;
}

/* Enhanced Video Modal */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: var(--glass-shadow-strong);
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal.active .modal-content {
    transform: scale(1);
}

.modal-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    display: block;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    width: 45px;
    height: 70px;
    cursor: pointer;
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: background 0.3s ease;
    opacity: 0.6;
}

.modal-nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.modal-nav-btn.prev { left: 15px; }
.modal-nav-btn.next { right: 15px; }

/* Modal Navigation */
.modal-navigation {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--glass-border-light);
}

/* Animation classes */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Additional Projects */
.additional-project {
    display: none;
}

.additional-project.visible {
    display: block;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 56px;
        line-height: 56px;
    }
    
    .cta h2 {
        font-size: 56px;
        line-height: 56px;
    }
    
    .cta-email {
        font-size: 24px;
    }
    
    .cta-video-container {
        height: 350px;
    }
    
    .work-grid,
    .stupid-shots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-work-header {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 0.5rem; /* Minimized gap for tablet view */
    }
    
    .footer-nav-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .glow-1, .glow-2, .glow-3, .glow-4 {
        opacity: 0.2;
    }

    .recent-work .viewport {
        --panel-w: 420px;
    }
}

@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .header-content {
        flex-direction: row-reverse;
    }

    .nav-left, .nav-right {
        flex: none;
    }

    .logo {
        margin-right: auto;
    }
    
    .logo-square {
        width: 45px;
        height: 45px;
    }

    .about-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.2;
        font-weight: 400;
        letter-spacing: -0.02em;
    }
    
    header .logo {
        font-size: 1.1rem;
    }

    .footer-name {
        font-size: 1.1rem;
    }

    .cta h2 {
        font-size: 40px;
        line-height: 40px;
    }
    
    .cta-email {
        font-size: 20px;
    }
    
    .cta-video-container {
        height: 300px;
    }
    
    .work-title,
    .about-title,
    .skills-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .heading.small {
        font-size: 18px;
    }
    
    .skill-heading {
        font-size: 20px;
    }
    
    .work-grid,
    .stupid-shots-grid {
        grid-template-columns: 1fr;
    }
    
    .video-container {
        height: 250px;
    }
    
    .footer-nav-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    header {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    
    .gradient-glow {
        display: none;
    }
    
    .modal-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .modal-navigation button {
        width: 100%;
    }
    
    .about-buttons {
        justify-content: center;
    }

    .modal-nav-btn {
        width: 35px;
        height: 50px;
        font-size: 1rem;
    }

    /* Unified styles for video captions */
    .video-caption-mobile {
        padding: 0.75rem 1rem !important;
        min-height: auto !important;
    }

    .video-caption-mobile h2,
    .video-caption-mobile h3 {
        font-size: 0.85rem !important;
        font-weight: 400 !important;
        line-height: 1.3 !important;
        letter-spacing: 0.01em !important;
        margin-bottom: 0.25rem !important;
    }

    .video-caption-mobile p,
    .video-caption-mobile h4 {
        font-size: 0.75rem !important;
        font-weight: 400 !important;
        line-height: 1.5 !important;
        opacity: 0.8;
    }

    .recent-work .panel figcaption p {
        margin-bottom: 0; /* Remove bottom margin on mobile */
    }
    /* Adjust glassmorphism title for mobile */
    .section-title-container {
        padding: 1.5rem;
    }

    .section-title-standalone {
        font-size: 1.5rem;
        font-weight: 400;
        letter-spacing: -0.01em;
        margin-bottom: 0.5rem;
    }


    .cta h2 {
        font-size: 32px;
        line-height: 32px;
    }
    
    .cta-email {
        font-size: 18px;
    }
    
    .cta-video-container {
        height: 250px;
    }
    
    .work-title,
    .about-title,
    .skills-title {
        font-size: 24px;
        line-height: 28px;
    }
    
    .heading.small {
        font-size: 16px;
    }
    
    .skill-heading {
        font-size: 18px;
    }
    
    .skill-description,
    .about-content p,
    .stupid-shots-description p {
        font-size: 14px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .hero {
        height: 60vh;
        padding: 0.5rem;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .video-container {
        height: 200px;
    }
    
    .video-overlay i {
        font-size: 2.5rem;
    }
    
    body {
        padding-top: 50px;
    }
    
    header {
        padding: 0.6rem 0;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .social-icons {
        justify-content: center;
    }

    /* Mobile work item adjustments */
    .work-content {
        padding: 1rem;
        min-height: 100px;
    }
    
    .work-content h3 {
        font-size: 1rem;
    }
    
    .work-content h4 {
        font-size: 0.8rem;
    }
}
/* Additional Projects */
.additional-project {
    display: none;
}

.additional-project.visible {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
}

/* View More Button Animation */
.view-more-btn.expanded {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

/* Enhanced Video Autoplay Fallback */
.video-preview.autoplay-fallback {
    position: relative;
}

.video-preview.autoplay-fallback::after {
    content: 'Click to play';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-preview.autoplay-fallback.paused::after {
    opacity: 1;
}

/* Stupid Shots Video Overlay */
.stupid-shot-item {
    cursor: pointer;
}

.stupid-shot-item .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.stupid-shot-item .video-overlay i {
    font-size: 3rem;
    color: var(--accent);
    transition: all 0.3s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.stupid-shot-item:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.stupid-shot-item:hover .video-overlay i {
    transform: scale(1.2);
}
/* Wider container for Stupid Shots */
.container-wide {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    z-index: 1;
}

/* Enhanced Stupid Shots Grid Layout */
.stupid-shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

/* Larger video containers for Stupid Shots */
.stupid-shots .video-container {
    height: 100%;
    width: 100%;
}
/* Enhanced Stupid Shots Grid Layout */
.stupid-shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    width: 100%;
}

/* Larger video containers for Stupid Shots */
.stupid-shots .video-container {
    height: 100%;
    width: 100%;
}

/* Enhanced Stupid Shot Items */
.stupid-shot-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border-light);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.stupid-shot-item:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border);
}

.stupid-shot-item:hover .video-preview {
    transform: scale(1.08);
}

/* Reduced container padding */
.container-wide {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

/* Active click state for videos */
.stupid-shot-item:active {
    transform: translateY(-2px);
}

.stupid-shot-item:active .video-preview {
    transform: scale(1.05);
}

/* Enhanced Footer Social Icons - 3 per column */
.social-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    width: fit-content;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .stupid-shots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }
    
    .container-wide {
        max-width: 1200px;
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .stupid-shots-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .container-wide {
        padding: 0;
    }
    
    .social-icons {
        grid-template-columns: repeat(3, 1fr);
    }
}
    
    .stupid-shots .video-container {
        height: 280px;
    }
    
    .container-wide {
        padding: 0;
    }

@media (max-width: 480px) {
    .stupid-shots .video-container {
        height: 240px;
    }
}

/* CV Page Styling */
.cv-page {
    padding-top: 120px;
}

/* Back Arrow */
.back-arrow {
  position: fixed;
  top: 85px;
  left: 25px;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.2rem;
  z-index: 1001;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-arrow:hover {
  background: var(--accent);
  color: var(--bg-dark);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
}

/* Legal Pages Styling */
.legal-container {
    max-width: 800px;
    margin: 120px auto 60px;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--glass-border);
}

.legal-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--text-main);
}

.legal-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-header .back-link:hover {
    color: var(--accent);
}

.legal-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent);
}

.legal-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--text-main);
}

.legal-section p,
.legal-section li {
    line-height: 1.7;
    color: var(--text-muted);
}

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

@media (max-width: 768px) {
    .legal-container {
        margin: 100px auto 40px;
        padding: 0 1rem;
    }
    .legal-content {
        padding: 2rem;
    }
}

.hero-overlay-text {
    position: relative;
    z-index: 2;
    color: var(--text-main);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.great-vibes {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    display: block;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 0.5rem;
}

.arndy-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    display: block;
}

.subline {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
    margin-top: 2rem;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--glass-shadow-lg);
}

/* Work Tabs */
.work-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.work-tab {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--glass-border);
  background: transparent;
  color: var(--text-main);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.work-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.work-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
}

/* Quote Form */
#get-quote {
    padding: 4rem 0;
}
.quote-container {
  background: var(--glass-bg-light);
  border-radius: 30px;
  padding: 4rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}

.quote-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.quote-text h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.quote-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.quote-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature i {
  color: var(--accent);
  font-size: 1.1rem;
}

.feature span {
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 992px) {
    .quote-content {
        grid-template-columns: 1fr;
    }
    .quote-container {
        padding: 2rem;
    }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loading-logo {
  animation: scale-up 4.5s ease-out forwards;
}

.loading-logo video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
}

@keyframes scale-up {
    from { transform: scale(0.8); }
    to { transform: scale(1); }
}

/* Enhanced FAQ Accordion Styles */
.about-faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  font-size: 1.1rem;
}

.about-faq-question:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.about-faq-question.open {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Animated Accordion Icon */
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease-out;
}

.about-faq-question.open .faq-icon {
  transform: rotate(45deg);
}

.icon-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: all 0.3s ease-out;
  transform-origin: center;
}

.icon-line:first-child {
  transform: translateY(-50%);
}

.icon-line:last-child {
  transform: translateY(-50%) rotate(90deg);
}

.about-faq-question.open .icon-line:last-child {
  transform: translateY(-50%) rotate(0deg);
  opacity: 0;
}

.about-faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.02);
}

.about-faq-answer.open {
  padding: 1.5rem 0 2rem;
  max-height: 500px;
  border-bottom-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
}

.about-faq-answer p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease-out 0.2s, transform 0.4s ease-out 0.2s;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-family: var(--font-secondary);
}

.about-faq-answer p:last-child {
  margin-bottom: 0;
}

.about-faq-answer.open p {
  opacity: 1;
  transform: translateY(0);
}

.about-faq-answer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.about-faq-answer a:hover {
  color: var(--accent-yellow);
}

/* About Section Video Enhancements */
.about-image-section {
  position: relative;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.about-image-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.about-image-section:hover .about-video {
  transform: scale(1.05);
}

.about-image-section .video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.about-image-section:hover .video-overlay {
  opacity: 1;
}

.about-image-section .video-overlay i {
  font-size: 3rem;
  color: var(--accent);
  transition: all 0.3s ease;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.about-image-section:hover .video-overlay i {
  transform: scale(1.2);
}

/* Enhanced Stupid Shots Section */
.stupid-shots-header {
    text-align: center;
    margin-bottom: 2rem;
}

.stupid-shots-header .work-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 500;
    line-height: 38px;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.stupid-shots-description {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.stupid-shots-description p {
    font-family: var(--font-secondary);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    color: var(--text-muted);
}

/* Reduced padding and larger video containers */
.container-wide {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Larger video containers for Stupid Shots */
.stupid-shots .video-container {
    height: 100%;
    width: 100%;
}

/* Enhanced Stupid Shot Items with larger size */
.stupid-shot-item {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border-light);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

/* Filter Buttons */
.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* 3D Flip Animation Styles */
.stupid-shot-item {
    perspective: 1000px;
    z-index: 1;
}

.stupid-shot-item.flipped {
    z-index: 100;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.stupid-shot-item.flipped .flipper {
    transform: rotateY(180deg);
}

.stupid-shot-front, .stupid-shot-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: inherit;
    overflow: hidden;
    top: 0;
    left: 0;
}

.stupid-shot-front {
    z-index: 2;
    transform: rotateY(0deg);
    background: inherit;
}

.stupid-shot-back {
    transform: rotateY(180deg);
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust content positioning for flip card */
.stupid-shot-item .work-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
}

.stupid-shot-item:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border);
}

.stupid-shot-item.hidden {
    display: none;
}

.stupid-shot-item.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.stupid-shot-item.flipped:hover {
    transform: none;
}

.stupid-shot-item:not(.flipped):hover .video-preview {
    transform: scale(1.08);
}

/* Enhanced Stupid Shots Grid Layout */
.stupid-shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

/* Stupid Shots Overlay */
.stupid-shots-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 50;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.stupid-shots-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive adjustments for larger grid */
@media (max-width: 1200px) {
    .stupid-shots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .container-wide {
        max-width: 1200px;
        padding: 0 2rem;
    }
}

@media (max-width: 768px) {
    .stupid-shots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container-wide {
        padding: 0 1.5rem;
    }
    
    .stupid-shots-header .work-title {
        font-size: 28px;
        line-height: 32px;
    }
    
    .stupid-shots-description p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 480px) {
    .container-wide {
        padding: 0 1rem;
    }
    
    .stupid-shots-header .work-title {
        font-size: 24px;
        line-height: 28px;
    }
    
    .stupid-shots-description p {
        font-size: 14px;
        line-height: 22px;
    }
    
    .stupid-shots-grid {
        gap: 1rem;
    }
}

/* Enhanced Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    padding: 2rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Removed .footer-name since we're not using the text logo anymore */

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
    font-size: 0.9rem;
}

.footer-nav-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
}

.footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-column a {
    display: block;
    margin: 0.5rem 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--accent);
}

.footer-social-section h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Centered Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border-light);
    text-align: center;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

/* Remove old footer credits since we're centering everything */
.footer-credits {
    display: none;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-nav-section {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-nav-group {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .social-icons {
        justify-content: flex-start;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-nav-section {
        gap: 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column a {
        font-size: 0.85rem;
    }
    
    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .footer-copyright p {
        font-size: 0.8rem;
    }
}

/* Smaller work content for stupid-shots */
.work-content-small {
    padding: 1rem;
    min-height: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
}

.work-content-small h3 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    -webkit-line-clamp: 1;
    line-clamp: 1;
}

.work-content-small h4 {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

/* Enhanced Footer Styles */
footer {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px) saturate(180%);
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem; /* Reduced gap for desktop/tablet view */
    align-items: start;
    margin-bottom: 2rem;
}

/* Logo and Description Side by Side */
.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-section {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.footer-logo {
    flex-shrink: 0;
}

.footer-description {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
    max-width: 400px;
}

/* Navigation Section with Even Columns */
.footer-nav-section {
    display: flex;
    justify-content: flex-end;
}

.footer-nav-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    max-width: 500px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    white-space: nowrap;
}

.footer-column a {
    display: block;
    margin: 0.25rem 0;
    color: var(--text-muted);
    transition: color 0.3s ease;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
}

.footer-column a:hover {
    color: var(--accent);
}

/* Social Icons - 3 per column */
.social-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: fit-content;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-main);
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.social-icons a:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

/* Centered Footer Bottom Section */
.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border-light);
    text-align: center;
}

.footer-copyright {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.3;
}

/* Remove old footer credits since we're centering everything */
.footer-credits {
    display: none;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-nav-section {
        justify-content: flex-start;
    }
    
    .footer-nav-group {
        max-width: 100%;
        gap: 2rem;
    }
    
    .footer-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .footer-logo-section {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        text-align: center;
    }
    
    /* Adjust footer columns for mobile */
    .footer-nav-group {
        grid-template-columns: 1fr 1fr; /* Two columns for Nav and Legal */
        gap: 1.5rem;
    }
    
    .footer-content {
        gap: 2rem;
    }

    .footer-column:nth-child(3) {
        grid-column: 1 / -1; /* Make 'Follow' section span both columns */
        margin-top: 1rem;
    }
    
    footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-column {
        align-items: center;
        text-align: center;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-nav-group {
        gap: 1.5rem;
    }
    
    .footer-column h4 {
        font-size: 1rem;
    }
    
    .footer-column a {
        font-size: 0.85rem;
    }
    
    .social-icons {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.6rem;
    }
    
    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 0.7rem;
    }
    
    .footer-copyright p {
        font-size: 0.75rem;
    }
    
    .footer-description {
        font-size: 0.85rem;
        text-align: center;
    }
}

/* ===== 3D CAROUSEL STYLES ===== */
.recent-work .stage {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: space-around; /* Push controls to the bottom */
    align-items: center;
    padding: 2rem 1.5rem 1rem; /* Adjust padding for spacing */
    position: relative;
    z-index: 2;
}

.work-header {
    width: 100%;
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    margin-bottom: 0;
    z-index: 20;
    text-align: center;
}

.section-heading {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
    letter-spacing: 0.1px;
}

.work-years {
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 8px;
    font-size: 0.95rem;
}

.work-header .hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Viewport & cube */
.recent-work .viewport {
    width: 100%;
    max-width: 1400px;
    height: calc(var(--panel-w, 520px) * 0.95);
    display: grid;
    place-items: center;
    perspective: 3000px;
    position: static;
    outline: none;
    z-index: 1;
}

.recent-work .cube {
    width: calc(var(--panel-w, 520px) * 0.95);
    height: calc(var(--panel-w, 520px) * 0.95);
    transform-style: preserve-3d;

    transition: transform 450ms cubic-bezier(0.2, 0.9, 0.25, 1);
    will-change: transform;
    position: relative;
    z-index: 1;
}

/* Panels in 3D cylinder */
.recent-work .panel {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border-light);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 1;
    --hover-y: 0px;
}

.recent-work .panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 184, 77, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 300ms;
    pointer-events: none;
    border-radius: 0;
    z-index: 1;
}

.recent-work .panel::before {
    /* hover overlay disabled; keep hidden */
    opacity: 0;
}

.recent-work .panel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.recent-work .panel figcaption {
    position: relative;
    z-index: 3;
    color: var(--text-main);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    background: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
    width: 100%;
    bottom: 0;
    left: 0;
}

.recent-work .panel h2 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    font-weight: 500;
}

.recent-work .panel p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.panel-tools {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.panel-tool-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
}

/* Position each panel in 3D cylinder (12 panels = 30° rotation) - Increased radius to prevent intersection */
.recent-work .panel[data-index="0"] { transform: rotateY(0deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="1"] { transform: rotateY(30deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="2"] { transform: rotateY(60deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="3"] { transform: rotateY(90deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="4"] { transform: rotateY(120deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="5"] { transform: rotateY(150deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="6"] { transform: rotateY(180deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="7"] { transform: rotateY(210deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="8"] { transform: rotateY(240deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="9"] { transform: rotateY(270deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="10"] { transform: rotateY(300deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }
.recent-work .panel[data-index="11"] { transform: rotateY(330deg) translateZ(calc(var(--panel-w, 520px) * 1.7727)) var(--panel-scale, scale(1)) translateY(var(--hover-y, 0)); }

/* Remove hover pop-out — panels remain static; keep accessible focus ring */
.recent-work .panel:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 10px rgba(255,184,77,0.06);
    z-index: 30;
}

/* Hover Effects for 3D Carousel */
.recent-work .panel:hover {
    --hover-y: -10px;
    border-color: var(--glass-border);
    box-shadow: var(--glass-shadow-strong);
}

.recent-work .panel:hover .panel-video {
    transform: scale(1.08);
}

.recent-work .panel:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
}

.recent-work .panel:hover .video-overlay i {
    transform: scale(1.2);
}

.recent-work .panel figcaption {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.75rem 1.25rem;
}

/* Navigation buttons */
.recent-work .nav-controls {
    display: flex;
    flex-direction: column; /* Changed to vertical alignment */
    align-items: center;
    justify-content: center;
    gap: 1.5rem; /* Adjusted gap for vertical layout */
    width: 100%;
    margin-top: 0; /* Remove margin, flexbox will handle spacing */
    position: relative;
    z-index: 20;
}

.recent-work .nav-buttons {
    display: flex; /* Ensure buttons are in a flex container */
    gap: 1rem; /* Add gap between buttons */
    order: 1; /* Place buttons before pagination dots */
}

.recent-work .nav {
    position: relative;
    top: auto;
    transform: none;
    width: 48px; /* square buttons */
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 8px; /* slight rounding to keep square look */
    border: 1px solid rgba(255,255,255,0.04);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
    backdrop-filter: blur(6px) saturate(120%);
    -webkit-tap-highlight-color: transparent;
}

.recent-work .nav i {
    font-size: 1.15rem;
    color: var(--text-main);
    pointer-events: none;
    transition: transform 160ms ease, color 160ms ease;
}

.recent-work .nav:hover,
.recent-work .nav:focus {
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 6px 20px rgba(255,184,77,0.06);
}

.recent-work .nav:active {
    transform: translateY(-1px) scale(0.98);
}

.recent-work .nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,184,77,0.12);
}

/* Tooltip from data-tooltip attribute */
.recent-work .nav[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 30;
}

.recent-work .nav:hover[data-tooltip]:after,
.recent-work .nav:focus[data-tooltip]:after,
.recent-work .nav:focus-visible[data-tooltip]:after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Pagination dots */
.recent-work .pagination {
    display: flex;
    flex-wrap: wrap; /* Allow dots to wrap on smaller screens */
    gap: 10px;
    z-index: 20;
    justify-content: center;
    align-items: center;
    order: 2; /* Place pagination dots after buttons */
}

@media (max-width: 768px) {
    .recent-work .nav-controls {
        gap: 0.6rem;
        margin-top: 2rem;
        margin-bottom: 2px;
    }
    .recent-work .pagination { margin-top: 4px; }
}

.recent-work .dot {
    width: 12px;
    height: 12px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    cursor: pointer;
    transition: all 200ms;
}

.recent-work .dot.active {
    transform: scale(1.25);
    background: var(--accent-yellow);
}

/* Modal */
.recent-work .modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65));
    opacity: 0;
    transition: opacity 260ms;
    z-index: 40;
}

.recent-work .modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.recent-work .modal-content {
    width: min(1100px, 95%);
    max-width: 1100px;
    background: var(--noise-texture), linear-gradient(rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.6));
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    position: relative;
    transform: translateY(12px);
    transition: transform 260ms;
    max-height: 90vh;
    overflow-y: auto;
}

.recent-work .modal[aria-hidden="false"] .modal-content {
    transform: translateY(0);
}

.recent-work .modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.recent-work .modal-close:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: rotate(90deg);
}

.recent-work .modal-body {
    min-height: 260px;
    color: var(--text-muted);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.modal-close-bottom {
    display: none;
}

.modal-video-container {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-details h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.modal-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 0.8rem 0;
}

.modal-details h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
    margin: 1.5rem 0 0.5rem 0;
    font-family: var(--font-primary);
}

/* Modal Text Animation */
.modal-details h2 {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards 0.1s;
}

.modal-details .detail-block, 
.modal-details > p {
    opacity: 0;
    animation: fadeInUp 0.5s ease forwards;
}

/* Staggered delays for detail blocks */
.modal-details .detail-block:nth-child(2) { animation-delay: 0.2s; }
.modal-details .detail-block:nth-child(3) { animation-delay: 0.3s; }
.modal-details .detail-block:nth-child(4) { animation-delay: 0.4s; }


.recent-work .modal-body video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Custom cursor */
.recent-work .cursor,
.recent-work .cursor-follower {
    position: fixed;
    left: 0;
    top: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: normal;
    z-index: 100;
}

.recent-work .cursor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-yellow);
    opacity: 0.95;
}

.recent-work .cursor-follower {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: transparent;
    opacity: 0.9;
    transition: transform 120ms linear, width 200ms, height 200ms;
}

/* Responsive adjustments for carousel */
@media (max-width: 1024px) {
    /* No left/right offsets on smaller screens; controls are centered */
}

@media (max-width: 768px) {
    .recent-work .stage {
        padding: 16px;
        gap: 12px;
        min-height: 60vh;
    }

    .recent-work .viewport {
        --panel-w: 320px;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recent-work .nav {
        width: 44px;
        height: 44px;
    }

    .recent-work .nav-left:after,
    .recent-work .nav-right:after {
        border-width: 8px;
    }

    .recent-work .modal-body {
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        flex: 1;
        height: auto;
        min-height: 0;
        gap: 1.5rem;
        padding: 0;
    }

    .recent-work .modal {
        z-index: 2000;
        padding: 0;
    }

    .recent-work .modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    /* Fix for description readability and layout */
    .recent-work .modal-body > div:not(.modal-video-container) {
        padding: 0.5rem 1.5rem 3rem;
    }

    .recent-work .modal-body h4 {
        font-size: 1.1rem;
        color: var(--accent);
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .recent-work .modal-body p {
        font-size: 1rem;
        line-height: 1.6;
        color: var(--text-muted);
        margin-bottom: 1rem;
    }

    .recent-work .modal-close {
        top: 15px;
        right: 15px;
        background: rgba(0, 0, 0, 0.5);
        border-radius: 50%;
        color: white;
        backdrop-filter: blur(4px);
    }

    .modal-close-bottom {
        display: block;
        width: 100%;
        padding: 1.2rem;
        background: var(--bg-light);
        color: var(--text-main);
        border: none;
        border-top: 1px solid var(--glass-border);
        font-family: var(--font-primary);
        font-weight: 600;
        font-size: 1rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        cursor: pointer;
        margin-top: auto;
        flex-shrink: 0;
        padding-bottom: max(1.2rem, env(safe-area-inset-bottom));
        z-index: 10;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }

    .modal-video-container {
        order: -1;
        flex-shrink: 0;
        width: 100%;
    }

    .recent-work .nav-controls {
        margin-top: 2rem;
        gap: 1rem;
    }
}

@media (max-width: 520px) {
    .work-header {
        display: none;
    }

    .recent-work .viewport {
        --panel-w: 280px;
    }

    .recent-work .nav {
        width: 40px;
        height: 40px;
    }

    .recent-work .pagination {
        gap: 6px;
    }

    .recent-work .dot {
        width: 10px;
        height: 10px;
    }

    /* Transparent header for the stupid shots page on desktop/tablet only */
    @media (min-width: 769px) {
        .stupid-shots-page header {
            background: transparent;
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border-bottom: none;
            box-shadow: none;
        }
    }

}

/* WhatsApp Enquiries Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-main);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 1rem;
    z-index: 999;
    transition: all 0.3s ease;
    box-shadow: var(--glass-shadow);
    animation: pulse-glow 3s infinite;
}

.whatsapp-float:hover {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.3);
}

.whatsapp-float i {
    font-size: 1.4rem;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0.4), var(--glass-shadow);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(255, 153, 0, 0), var(--glass-shadow);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 153, 0, 0), var(--glass-shadow);
    }
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .whatsapp-float i {
        font-size: 1.2rem;
    }
}