/* 
  Thilina Ruhunage - Portfolio Website 
  Theme: Dark, Cinematic, Red Accents, Glassmorphism
*/

:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-darker: #020202;
    --bg-card: rgba(15, 15, 15, 0.7);
    --primary-red: #e6192b;
    --primary-red-glow: rgba(230, 25, 43, 0.5);
    --primary-red-hover: #ff2a3f;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(10, 10, 10, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Cursor */
    --cursor-size: 8px;
    --follower-size: 30px;
    
    /* Spacing */
    --section-pad: 100px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    cursor: none; /* Hide default cursor */
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--primary-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    position: fixed;
    width: var(--follower-size);
    height: var(--follower-size);
    border: 1px solid var(--primary-red);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background: rgba(230, 25, 43, 0.1);
    border-color: transparent;
}

.cursor-hover-active {
    width: 80px;
    height: 80px;
    background: rgba(230, 25, 43, 0.2);
}

/* Subtle grain overlay for cinematic feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: 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)"/%3E%3C/svg%3E');
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

/* Typography Utilities */
.section-tag {
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-title span {
    color: transparent;
    -webkit-text-stroke: 1px var(--primary-red);
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary-red);
    color: #fff;
    border: none;
    box-shadow: 0 0 20px var(--primary-red-glow);
    transition: var(--transition-normal);
}

.btn-primary:hover {
    background: var(--primary-red-hover);
    box-shadow: 0 0 30px var(--primary-red-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255,255,255,0.05);
}

.btn-outline {
    border: 1px solid var(--primary-red);
    color: var(--primary-red);
    padding: 10px 24px;
}

.btn-outline:hover {
    background: var(--primary-red);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-red-glow);
}

.w-100 {
    width: 100%;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0.15em 0.5em;
    line-height: 1;
    user-select: none;
    text-decoration: none;
}

.logo-text {
    display: inline-flex;
    align-items: center;
}

.logo .flip,
.preloader-logo .flip,
.footer-logo .flip {
    display: inline-block;
    transform: scaleX(-1);
    color: var(--primary-red);
}

.logo .dot,
.preloader-logo .dot,
.footer-logo .dot {
    color: var(--text-main);
    margin: 0 0.1em;
    font-weight: 900;
}

/* Bracket Corners - relative to font-size via em */
.bracket-left, .bracket-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0.25em;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bracket-left {
    left: 0;
}

.bracket-right {
    right: 0;
}

.bracket-left::before,
.bracket-left::after,
.bracket-right::before,
.bracket-right::after {
    content: '';
    width: 0.25em;
    height: 0.25em;
    border-color: var(--primary-red);
    border-style: solid;
}

.bracket-left::before {
    border-width: 0.08em 0 0 0.08em; /* Top-left */
}

.bracket-left::after {
    border-width: 0 0 0.08em 0.08em; /* Bottom-left */
}

.bracket-right::before {
    border-width: 0.08em 0.08em 0 0; /* Top-right */
}

.bracket-right::after {
    border-width: 0 0.08em 0.08em 0; /* Bottom-right */
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-outline) {
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a:not(.btn-outline)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-outline):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    transition: transform 0.1s ease-out;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.5) 50%, rgba(230,25,43,0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--primary-red);
    font-family: var(--font-primary);
    font-size: 1.2rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
    animation: bounce 2s infinite;
}

.scroll-indicator .mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--text-main);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator .mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--text-main);
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

.scroll-indicator p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About Section */
.about {
    background-color: var(--bg-darker);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: var(--primary-red);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}

.about-image {
    position: relative;
    z-index: 1;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    text-align: justify;
}

.stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.stat-num {
    font-size: 3rem;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(230,25,43,0.05) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230,25,43,0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(230,25,43,0.3));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--bg-darker);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
}


.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5,5,5,0.9) 0%, rgba(5,5,5,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.portfolio-overlay p {
    color: var(--primary-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: var(--transition-normal);
    transition-delay: 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 60px;
    height: 60px;
    background: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition-normal);
    box-shadow: 0 0 20px var(--primary-red-glow);
}

.portfolio-item:hover .play-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Showreel Section */
.showreel {
    padding: 0;
}

.showreel-container {
    max-width: 100%;
    padding: 0;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
    transition: var(--transition-slow);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
}

.massive-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 2;
}

.massive-play-btn::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid var(--primary-red);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.massive-play-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translate(-50%, -50%) scale(1.1);
}

.showreel-text {
    position: absolute;
    bottom: 50px;
    left: 5%;
    z-index: 2;
    max-width: 500px;
}

.showreel-text h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.showreel-text span {
    color: var(--primary-red);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: var(--bg-card);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.contact-item a, .contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-item a:hover {
    color: var(--primary-red);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.social-icon:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(230,25,43,0.1);
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    min-height: 24px;
}

.text-success { color: #4CAF50; }
.text-error { color: var(--primary-red); }

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    background: var(--bg-darker);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0.15em 0.5em;
    line-height: 1;
    user-select: none;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: 1.5rem;
}

.footer-links a:hover {
    color: var(--primary-red);
}

/* Animations */
@keyframes slowZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

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

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

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

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-darker);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10002;
    transition: transform 0.8s cubic-bezier(0.85, 0, 0.15, 1);
}

.preloader.hidden {
    transform: translateY(-100%);
}

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

.preloader-logo {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding: 0.15em 0.5em;
    line-height: 1;
    user-select: none;
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    animation: loading 2s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

@keyframes loading {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

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

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--primary-red);
    transform: rotate(90deg);
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    transform: scale(0.9);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe,
.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background: #000;
}

/* Update Modal */
.update-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 10005;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.update-modal.active {
    opacity: 1;
    visibility: visible;
}

.update-modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

.update-modal-content img {
    width: 100%;
    max-height: 50vh;
    object-fit: contain;
    background: #000;
    border-bottom: 1px solid var(--border-color);
}

.update-modal-text {
    padding: 2rem;
}

/* Scrollbar for modal */
.update-modal-content::-webkit-scrollbar {
    width: 8px;
}
.update-modal-content::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05); 
}
.update-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2); 
    border-radius: 4px;
}
.update-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red); 
}

/* Scroll Reveal Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up.active, .reveal-left.active, .reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Social Connect Section */
.social-connect {
    background-color: var(--bg-dark);
    text-align: center;
}

.social-connect .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.social-connect .section-title {
    margin-bottom: 0;
}

.social-cymbals {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 2rem 0;
}

.cymbal {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cymbal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cymbal:hover {
    transform: translateY(-10px) scale(1.1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.cymbal:hover::before {
    opacity: 1;
}

/* Brand specific glowing effects */
.cymbal.spotify:hover { background: #1DB954; box-shadow: 0 15px 30px rgba(29, 185, 84, 0.4), inset 0 0 20px rgba(255,255,255,0.3); }
.cymbal.apple:hover { background: #fc3c44; box-shadow: 0 15px 30px rgba(252, 60, 68, 0.4), inset 0 0 20px rgba(255,255,255,0.3); }
.cymbal.youtube:hover { background: #FF0000; box-shadow: 0 15px 30px rgba(255, 0, 0, 0.4), inset 0 0 20px rgba(255,255,255,0.3); }
.cymbal.facebook:hover { background: #1877F2; box-shadow: 0 15px 30px rgba(24, 119, 242, 0.4), inset 0 0 20px rgba(255,255,255,0.3); }
.cymbal.tiktok:hover { background: #000000; border-color: rgba(255,255,255,0.1); box-shadow: 0 15px 30px rgba(0, 242, 254, 0.3), inset 0 0 20px rgba(254, 44, 85, 0.2); text-shadow: 2px 2px 0px #fe2c55, -2px -2px 0px #00f2fe; }
.cymbal.instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 15px 30px rgba(220, 39, 67, 0.4), inset 0 0 20px rgba(255,255,255,0.3); }

/* Responsive Design */
/* Latest Updates & Dashboard */
.latest-updates {
    background-color: var(--bg-dark);
}

.updates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.update-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.update-card:hover {
    transform: translateY(-5px);
    border-color: rgba(230,25,43,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.update-card img {
    width: 100%;
    aspect-ratio: 16/9;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.update-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.update-card-date {
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.update-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.update-card-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Updates Filtering Styles */
.updates-filter-container {
    margin-bottom: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.updates-filter-container input[type="text"],
.updates-filter-container select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    outline: none;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.updates-filter-container input[type="text"] {
    padding-left: 45px;
}

.updates-filter-container input[type="text"]:focus,
.updates-filter-container select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(230, 25, 43, 0.2);
    background: rgba(0, 0, 0, 0.6);
}

.updates-filter-search-wrapper {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.updates-filter-search-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.updates-filter-search-wrapper input:focus + i {
    color: var(--primary-red);
}

.updates-filter-sort-wrapper {
    width: 200px;
    min-width: 150px;
}

/* Login Gate Styles */
.login-gate {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
    padding: 2rem 0;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    width: 100%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.login-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: white;
}

.login-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Dashboard Styles */
.dashboard-body {
    background-color: var(--bg-darker);
    min-height: 100vh;
}

.dashboard-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.updates-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

/* Scrollbar for updates list */
.updates-list::-webkit-scrollbar {
    width: 6px;
}
.updates-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05); 
    border-radius: 10px;
}
.updates-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2); 
    border-radius: 10px;
}
.updates-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-red); 
}

.dashboard-update-item {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-delete {
    background: rgba(230,25,43,0.1);
    color: var(--primary-red);
    border: 1px solid rgba(230,25,43,0.3);
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.btn-delete:hover {
    background: var(--primary-red);
    color: white;
}

@media (max-width: 992px) {
    .section-title { font-size: 2.5rem; }
    .about-container, .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-text, .contact-info {
        text-align: center;
    }
    .stats {
        justify-content: center;
    }
    .hero-title { font-size: 4rem; }
    .contact-form { padding: 2rem; }
}

@media (max-width: 768px) {
    .hamburger { display: block; }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active { left: 0; }
    
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    
    .hero-title { font-size: 3rem; }
    .hero-desc { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .portfolio-overlay {
        padding: 1rem;
    }
    
    .portfolio-overlay h3 {
        font-size: 1rem;
    }
    
    .portfolio-overlay p {
        font-size: 0.75rem;
    }
    
    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .showreel-text h2 { font-size: 2rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links { margin-top: 1rem; }
    .footer-links a { margin: 0 0.5rem; }

    /* Hide custom cursor on mobile */
    .custom-cursor, .cursor-follower {
        display: none;
    }
    body {
        cursor: auto;
    }
}

/* Dashboard Custom Cursor Override */
.dashboard-body,
.dashboard-body * {
    cursor: auto !important;
}

.dashboard-body a,
.dashboard-body button,
.dashboard-body .btn-primary,
.dashboard-body .btn-outline,
.dashboard-body .btn-delete {
    cursor: pointer !important;
}

/* Dashboard Mobile Responsiveness */
@media (max-width: 992px) {
    .dashboard-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .dashboard-update-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .dashboard-update-item .btn-delete {
        align-self: flex-end;
    }
    .login-card {
        padding: 2rem 1.5rem;
    }
}
