/* Base Styles */
:root {
    --dark-blue-grey: #1a1f2e;
    --darker-blue-grey: #151922;
    --highlight-pink: #CC00FF;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    line-height: 1.5;
    min-width: 320px;
    background-color: var(--dark-blue-grey);
    color: var(--text-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 2.5rem;
}

.logo-img {
    height: 26px;
    width: auto;
}

.nav-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--highlight-pink) !important;
}

.social-link {
    font-size: 1.8rem;
    padding: 0.5rem !important;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.video-background img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
    z-index: 3;
}

.video-foreground {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.video-foreground iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        transparent 100%
    );
    z-index: 3;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 15vh 0;
}

.hero .container {
    text-align: left;
}

.hero h1 {
    font-size: 7rem;
    line-height: 1;
    margin-bottom: 2rem;
}

/* Sections */
section {
    position: relative;
    padding: 4rem 0;
}

.dark-section {
    background-color: var(--dark-blue-grey);
    color: var(--text-color);
}

.solid-bg {
    background-color: var(--darker-blue-grey);
}

.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.py-8 {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

/* Service Icons */
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--highlight-pink);
}

/* Work Section */
.work-item {
    position: relative;
    margin-bottom: 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.work-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.work-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
}

.work-item-content h3 {
    margin: 0;
    font-size: 2rem;
}

.work-item-content p {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.work-item-link {
    color: var(--highlight-pink);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: 1rem;
    display: block;
}

.work-item-link:hover {
    color: white;
}

/* Social Links */
.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--highlight-pink);
}

/* Buttons */
.btn-primary {
    background-color: var(--highlight-pink);
    border-color: var(--highlight-pink);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 1px;
    padding: 0.8rem 2rem 0.6rem;
    line-height: 100%;
}

.btn-primary:hover {
    background-color: #ff0077;
    border-color: #ff0077;
}

/* Contact Section */
.contact-section {
    position: relative;
    background-image: url('images/contact-bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

/* Case Study */
.case-study-section {
    position: relative;
    background: 
      linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
      url('images/casestudybg.jpeg');
    background-size: cover;
    background-position: center;
}


/* About Section */
.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Form Styles */
.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
    padding: 1rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--highlight-pink);
    color: var(--text-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 45, 146, 0.25);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Footer */
footer {
    background-color: var(--darker-blue-grey);
    color: var(--text-color);
}

footer p, footer li {
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--highlight-pink) !important;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Media Queries */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
    
    .hero {
        padding: 12vh 0 10vh; /* Increased top padding for mobile */
    }
    
    .hero h1 {
        font-size: 4.5rem;
        margin-top: 2rem; /* Added margin to prevent overlap */
    }
    
    .navbar {
        padding: 0.75rem 0; /* Reduced padding on mobile */
    }
    
    .navbar.scrolled {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 2rem;
    }
    
    .nav-link {
        font-size: 1.4rem;
        padding: 0.3rem 1rem !important;
    }
    
    .work-item img {
        height: 250px;
    }
    
    /* Disable fixed background on mobile for better performance */
    .contact-section {
        background-attachment: scroll;
    }
}