:root {
    --bg-main: #050505;
    --bg-secondary: #111111;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-1: #8a2be2; /* Purple */
    --accent-2: #00d2ff; /* Cyan */
    --gradient-accent: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --glass-bg: rgba(17, 17, 17, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

h1 span, h2 span {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 1rem;
    border: none;
}

.btn.primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 210, 255, 0.5);
}

.btn.secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo img {
    height: 85px; /* Increased height for a larger logo */
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: 0.3s;
}

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

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

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

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Background Glowing Orbs */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 1;
    opacity: 0.5;
    animation: float 10s infinite alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-1);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-2);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

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

/* Sections Common */
section {
    padding: 100px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-secondary);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: rgba(255,255,255,0.2);
}

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

.service-card > * {
    position: relative;
    z-index: 1;
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

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

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-item {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #222; /* Placeholder background */
}

/* Placeholder gradients for images */
.portfolio-item:nth-child(1) { background: linear-gradient(45deg, #2b1055, #7597de); }
.portfolio-item:nth-child(2) { background: linear-gradient(45deg, #112d4e, #3f72af); }
.portfolio-item:nth-child(3) { background: linear-gradient(45deg, #0f2027, #203a43, #2c5364); }
.portfolio-item:nth-child(4) { background: linear-gradient(45deg, #301847, #C0392B); }


.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.4), transparent);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease;
}

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

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(0, 210, 255, 0.5), 0 0 15px rgba(0, 210, 255, 0.3); }
    100% { text-shadow: 0 0 15px rgba(0, 210, 255, 0.9), 0 0 25px rgba(0, 210, 255, 0.6), 0 0 35px rgba(0, 210, 255, 0.4); }
}

.item-overlay h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: #fff;
    animation: textGlow 1.5s infinite alternate;
}

.item-overlay p {
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--bg-secondary);
    padding: 60px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.info-block {
    margin-bottom: 25px;
}

.info-block h4 {
    font-size: 1.1rem;
    color: var(--accent-2);
    margin-bottom: 5px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    background: rgba(255,255,255,0.08);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 40px 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.socials a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent-2);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* Responsive */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 10px 0;
    }
    nav.scrolled {
        padding: 8px 0;
    }
    .logo img {
        height: 50px;
    }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
        z-index: -1;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .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-content { margin-top: 140px; }
    .hero h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .btn { text-align: center; }
    
    .projects-hero {
        padding-top: 100px;
        padding-bottom: 30px;
    }
    .projects-hero p {
        font-size: 0.95rem;
        padding: 0 15px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .socials a { margin: 0 10px; }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 120px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* Adjust for mobile */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 100px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

/* Cinematic Projects Showcase Styles */
.portfolio-showcase {
    position: relative;
    overflow: hidden;
    padding: 100px 0 120px 0;
    background: #050505;
}

.portfolio-showcase .slideshow-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.portfolio-showcase #slideshow-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(40px) brightness(0.2) saturate(1.5);
    transform: scale(1.15);
    opacity: 0.8;
    transition: opacity 0.8s ease, filter 0.8s ease, src 0.8s ease;
}

.portfolio-showcase .slideshow-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(5, 5, 5, 0.15) 0%, rgba(5, 5, 5, 0.9) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.showcase-container {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: center;
}

.featured-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(12, 12, 12, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    transition: all 0.4s ease;
}

.featured-info-panel:hover {
    border-color: rgba(138, 43, 226, 0.25);
    box-shadow: 0 30px 60px rgba(138, 43, 226, 0.1);
}

.showcase-tag {
    align-self: flex-start;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: var(--accent-2);
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.1);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}

#active-project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#active-project-title.changing,
.active-project-meta.changing,
#active-project-desc.changing {
    opacity: 0;
    transform: translateY(-8px);
}

.active-project-meta {
    margin-bottom: 25px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#active-project-service {
    font-size: 0.85rem;
    color: var(--accent-2);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 10px;
}

#active-project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 35px;
    font-family: var(--font-primary);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.showcase-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.showcase-slider-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.carousel-track-wrapper {
    overflow: hidden;
    padding: 25px 10px;
    border-radius: 16px;
}

#showcase-carousel-track {
    display: flex;
    gap: 24px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.showcase-card {
    flex: 0 0 calc(50% - 12px);
    aspect-ratio: 2/3;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #0c0c0c;
    background-size: cover;
    background-position: center;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}

.showcase-card::after {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.35) saturate(1.2);
    opacity: 0.95;
    z-index: 1;
    transition: opacity 0.4s ease;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    will-change: filter, opacity;
}

.showcase-card img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full poster view without cropping */
    opacity: 0.65;
    transition: all 0.5s ease;
    pointer-events: none;
}

.showcase-card.active {
    border: 2px solid var(--accent-2);
    box-shadow: 0 15px 40px rgba(0, 210, 255, 0.45), 0 0 25px rgba(0, 210, 255, 0.2);
    transform: translateY(-8px) scale(1.03);
    z-index: 10;
}

.showcase-card.active img {
    opacity: 0.95;
    transform: scale(1.02);
}

.showcase-card:hover img {
    opacity: 0.95;
    transform: scale(1.04);
}

.showcase-card:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.card-glow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.card-text-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 22px;
    z-index: 5;
    transition: transform 0.4s ease;
}

.card-text-content h4 {
    font-family: var(--font-heading);
    font-size: clamp(0.75rem, 2.2vw, 1.3rem);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: #fff;
    overflow-wrap: break-word;
    word-break: break-word;
    line-height: 1.15;
}

.card-text-content p {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.showcase-card.active .card-text-content p {
    color: var(--accent-2);
}

.showcase-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 0 10px;
}

.slider-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.slider-dot.active {
    width: 24px;
    height: 8px;
    border-radius: 4px;
    background: var(--accent-2);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.slider-arrows {
    display: flex;
    gap: 15px;
}

.slider-arrows button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(10, 10, 10, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.slider-arrows button:hover {
    background: var(--gradient-accent);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.4);
    transform: scale(1.05);
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .featured-info-panel {
        padding: 35px;
    }
    .showcase-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 576px) {
    .showcase-container {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
    }
    .featured-info-panel {
        padding: 24px 20px;
        border-radius: 20px;
    }
    .showcase-tag {
        font-size: 0.7rem;
        padding: 4px 12px;
        margin-bottom: 15px;
    }
    #active-project-title {
        font-size: clamp(1.2rem, 5.5vw, 1.5rem);
        margin-bottom: 8px;
    }
    .active-project-meta {
        margin-bottom: 15px;
    }
    #active-project-desc {
        font-size: 0.88rem;
        margin-bottom: 25px;
        line-height: 1.5;
    }
    .showcase-actions {
        gap: 10px;
    }
    .showcase-actions .btn {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.85rem;
    }
    .carousel-track-wrapper {
        padding: 10px 5px;
    }
    .showcase-card {
        flex: 0 0 145px; /* Compact movie poster thumbnails for portrait screens */
        aspect-ratio: 2/3;
        border-radius: 12px;
    }
    .showcase-card.active {
        transform: translateY(-4px) scale(1.05);
    }
    .card-text-content {
        padding: 12px;
    }
    .card-text-content h4 {
        font-size: clamp(0.6rem, 3.5vw, 0.95rem);
        margin-bottom: 2px;
    }
    .card-text-content p {
        font-size: 0.65rem;
    }
    #showcase-carousel-track {
        gap: 16px;
    }
    .portfolio-showcase {
        padding: 60px 0 80px 0;
    }
    .showcase-nav-controls {
        margin-top: 15px;
    }
    .slider-dots {
        gap: 6px;
        flex-wrap: wrap;
        max-width: calc(100% - 95px);
    }
    .slider-dot {
        width: 6px;
        height: 6px;
    }
    .slider-dot.active {
        width: 18px;
        height: 6px;
    }
    .slider-arrows button {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

