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

:root {
    --primary-bg: #121212;
    --secondary-bg: #1a1a1a;
    --accent-color: #4cadde;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-light: rgba(255, 255, 255, 0.9);
    --section-spacing: 120px;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-medium: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    --transition-fast: all 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

html, body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    font-style: italic;
    font-weight: 300;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow: hidden;
}

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

.section-label {
    display: block;
    font-size: 14px;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 4rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

p {
    margin-bottom: 20px;
    color: var(--text-muted);
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition-medium);
    text-transform: uppercase;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.btn-primary:hover {
    background-color: rgba(76, 173, 222, 0.8);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    z-index: 1000;
    transition: var(--transition-medium);
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
}

header.scrolled {
    padding: 15px 40px;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.logo {
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 1px;
}

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

.nav-links li {
    margin: 0 20px;
}

.nav-links a {
    position: relative;
    font-size: 0.8rem;
    letter-spacing: 2px;
    font-weight: 500;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-color);
    transition: var(--transition-medium);
}

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

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

.burger div {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    margin: 5px;
    transition: var(--transition-medium);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #121212; /* Fallback background in case video doesn't load */
}

/* Create a semi-transparent overlay for better text readability */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark overlay */
    z-index: -1; /* Ensure it's behind the content but in front of video */
}

/* Fallback background when video fails to play */
.hero.video-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom right, #1a1a1a, #121212, #0a0a0a);
    z-index: -1;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.5);
    opacity: 1; /* Ensure it's visible */
    min-width: 100%;
    min-height: 100%;
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 1400px;
    padding: 0 20px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1.5s ease forwards 0.5s;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-size: 4.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

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

/* Clients Section */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 0;
}

.client {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: var(--transition-medium);
}

.client:hover {
    opacity: 1;
}

.client img {
    max-width: 100%;
    max-height: 100px;
    filter: grayscale(100%) brightness(1.5);
    transition: var(--transition-medium);
}

.client:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Update the clients section container to use a grid layout */
#clients .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

/* Make section header take full width in its column */
#clients .section-header {
    width: 100%;
}

@media screen and (max-width: 768px) {
    #clients .container {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        margin-top: 30px;
    }
}

@media screen and (max-width: 480px) {
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 80px;
    align-items: center;
}

.about-media {
    position: relative;
}

.about-image {
    border-radius: 5px;
    width: 100%;
}

.play-button-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    cursor: pointer;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
    z-index: 2;
}

.play-button i {
    font-size: 30px;
    color: black;
    animation: pulse 2s infinite;
}

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

.circular-text {
    width: 120px;
    height: 120px;
    fill: var(--text-color);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: rotate 15s linear infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.about-content h2 {
    margin-bottom: 30px;
}

.about-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 40px;
    margin-top: 50px;
}

.service-item {
    transition: var(--transition-medium);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.service-item h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    letter-spacing: 1.5px;
}

.service-item ul {
    color: var(--text-muted);
}

.service-item ul li {
    margin-bottom: 10px;
}

/* Work Section */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work-item {
    position: relative;
    overflow: hidden;
}

.work-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 5px 15px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
}

.work-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.work-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.work-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.work-year {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-muted);
}

.work-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.work-client {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 80px;
    align-items: center;
}

.skills-content h2 {
    margin-bottom: 50px;
}

.skills-list {
    margin-top: 40px;
}

.skill-item {
    margin-bottom: 30px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.skill-info h3 {
    font-size: 1rem;
    letter-spacing: 1.5px;
    margin-bottom: 0;
}

.skill-percent {
    font-weight: 600;
}

.skill-bar {
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--accent-color);
    width: 0;
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

.skills-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 20px;
}

.skills-image img {
    border-radius: 5px;
    width: 100%;
}

/* Testimonials Section */
.testimonials-container {
    margin-top: 50px;
}

.testimonial {
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-author {
    color: var(--accent-color);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-section {
    padding: 0;
}

.contact-background {
    background-image: url('images/IMG_2334.JPG');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 70vh;
    min-height: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px;
}

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

.contact-background h2,
.contact-background p,
.contact-background .btn {
    position: relative;
    z-index: 1;
}

.contact-background h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.contact-background p {
    font-size: 1.3rem;
    margin-bottom: 40px;
}

/* Footer */
footer {
    background-color: var(--primary-bg);
    padding: 80px 0 20px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    align-items: start;
}

.footer-left {
    grid-column: 1 / 2;
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.footer-info {
    margin-bottom: 15px;
}

.footer-info p {
    margin-bottom: 0;
}

.footer-contact {
    text-align: right;
    grid-column: 2 / 3;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-link {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    transition: var(--transition-fast);
}

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

.footer-contact-item {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 20px;
}

.social-icon {
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-contact {
        text-align: center;
        grid-column: 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    position: relative;
    max-width: 90%;
    width: 1000px;
    margin: 0 auto;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 1002;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInRight 1s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInLeft 1s ease forwards;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
    
    h2 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container,
    .skills-container {
        grid-template-columns: 1fr;
        grid-gap: 50px;
    }
    
    .about-content,
    .skills-content {
        order: -1;
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    body {
        font-size: 15px;
    }
    
    .nav-links {
        position: absolute;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: var(--primary-bg);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 300px;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
        z-index: 1001;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .nav-links li {
        opacity: 0;
        margin: 20px 0;
    }
    
    .burger {
        display: block;
        z-index: 1002;
    }
    
    .nav-active {
        transform: translateX(0%);
    }
    
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .toggle .line2 {
        opacity: 0;
    }
    
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    header {
        padding: 20px;
    }
    
    header.scrolled {
        padding: 15px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .footer-contact {
        text-align: center;
        grid-column: 1;
        grid-row: auto;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .close-modal {
        right: 0;
    }
    
    .modal-content {
        width: 90%;
    }
}

@media screen and (max-width: 480px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        margin-bottom: 15px;
        display: block;
        text-align: center;
    }
    
    .contact-background h2 {
        font-size: 2.8rem;
    }
}

/* Animation for Navigation Links */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Behind the Scenes Gallery */
.bts-gallery {
    margin-top: 60px;
}

.bts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
}

.bts-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.bts-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(76, 173, 222, 0);
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.bts-item:hover::after {
    background-color: rgba(175, 175, 175, 0.061);
}

.bts-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.bts-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.gallery-note {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    font-style: italic;
}

/* Media Queries for Responsive Gallery */
@media (max-width: 992px) {
    .bts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .bts-grid {
        grid-template-columns: 1fr;
    }
    
    .bts-item img {
        height: 250px;
    }
}

/* BTS Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.show {
    opacity: 1;
    display: block;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    max-width: 80%;
    max-height: 80%;
}

#lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 1rem;
    padding: 10px 0;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 2001;
}

.close-lightbox:hover {
    color: var(--accent-color);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 80px;
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    opacity: 0.6;
    border-radius: 4px;
}

.lightbox-nav:hover {
    opacity: 1;
    background: rgba(76, 173, 222, 0.7);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 60px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    #lightbox-image {
        max-height: 70vh;
    }
}

/* Timeline Section */
.timeline-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: var(--accent-color);
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(76, 173, 222, 0.5);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 4px solid var(--primary-bg);
    box-shadow: 0 0 10px rgba(76, 173, 222, 0.7);
    z-index: 2;
}

.timeline-date {
    position: absolute;
    top: 0;
    left: calc(50% - 100px);
    width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.3rem;
    text-shadow: 0 0 5px rgba(76, 173, 222, 0.4);
}

.timeline-content {
    width: calc(50% - 60px);
    padding: 25px 30px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    margin-left: 60px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Arrow pointing to the timeline */
.timeline-content::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--text-color);
}

.timeline-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Even Items (Left Side) */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-date {
    left: auto;
    right: calc(50% - 100px);
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: 60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: auto;
    right: -10px;
    border-right: none;
    border-left: 10px solid rgba(255, 255, 255, 0.05);
}

/* Animation for timeline items */
.timeline-item {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}

.timeline-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Timeline */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        justify-content: flex-start;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-date {
        position: relative;
        left: 0 !important;
        right: auto !important;
        text-align: left !important;
        margin-left: 60px;
        margin-bottom: 10px;
        display: block;
        width: 100%;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        margin-right: 0 !important;
    }
    
    .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-right: 10px solid rgba(255, 255, 255, 0.05) !important;
        border-left: none !important;
    }
}

/* Video Modal Styles */
.video-container-modal {
    position: relative;
    width: 100%;
}

.video-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    z-index: 10;
    pointer-events: none; /* This ensures clicks pass through to the video controls */
    width: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    text-align: left;
}

.video-info-content {
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.video-year {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.video-title {
    font-size: 1.8rem;
    margin: 5px 0;
    font-weight: 600;
}

.video-client {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Make sure title doesn't interfere with controls on mobile */
@media (max-width: 768px) {
    .video-info-overlay {
        padding: 15px;
    }
    
    .video-title {
        font-size: 1.4rem;
    }
}

/* Video Info Below Styles */
.video-info-below {
    width: 100%;
    padding: 20px;
    background-color: #121212;
    color: white;
    text-align: left;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-info-content-below {
    max-width: 100%;
}

.video-info-content-below .video-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.video-info-content-below .video-client,
.video-info-content-below .video-year {
    display: inline-block;
    font-size: 1rem;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.video-description {
    margin-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .video-info-below {
        padding: 15px;
    }
    
    .video-info-content-below .video-title {
        font-size: 1.4rem;
    }
    
    .video-info-content-below .video-client,
    .video-info-content-below .video-year {
        font-size: 0.9rem;
    }
    
    .video-description {
        font-size: 0.9rem;
    }
} 