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

:root {
    /* Warm gold earthy colors */
    --color-primary: #d9a03e;        /* Earthy gold */
    --color-secondary: #c17817;      /* Warm amber */
    --color-tertiary: #8a5a44;       /* Terracotta */
    
    --color-background: #0f0d0a;     /* Dark earthy background */
    --color-text: #f5f5f5;           /* Light text */
    --color-text-muted: #b0b0b0;     /* Muted text */
    
    --color-header: rgba(15, 13, 10, 0.8);  /* Transparent dark background */
    --color-card: #1d1a16;           /* Slightly lighter background for cards */
    
    --font-main: 'Montserrat', sans-serif;
    --font-heading: 'Playfair Display', serif;
    
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
}

html {
    scroll-behavior: smooth;
}

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

/* Ambient Orbs Animation */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 1;
    pointer-events: none;
    background-color: var(--color-background);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    transition: opacity 0.5s ease;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(217, 160, 62, 0.5) 0%, rgba(185, 72, 207, 0.3) 50%, rgba(100, 40, 179, 0.1) 100%);
    box-shadow: 0 0 80px rgba(217, 160, 62, 0.4);
}

.orb-2 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(235, 175, 75, 0.5) 0%, rgba(210, 140, 40, 0.3) 50%, rgba(180, 110, 30, 0.1) 100%);
    box-shadow: 0 0 100px rgba(235, 175, 75, 0.4);
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(41, 45, 243, 0.5) 0%, rgba(230, 170, 70, 0.3) 50%, rgba(23, 22, 94, 0.1) 100%);
    box-shadow: 0 0 90px rgba(255, 200, 100, 0.4);
}

.backdrop-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAANUSURBVGhD7ZpLSFVBGMfPvWpaaZaWD3wUQi97QFBBRLXoRYsWQRBRCxdFtCiiHhBE0SJaREEtWkQQLeqBRVAtalEUBBUFQT3I0rK00jJ7/P9n5lydq3fOzD33Km74wY/jfDPn+2bmnJk5M8dXU4oQjtHB15xhgA3RRrvgax5hcDu94wQz9FFrwAnYPwLjtFE0QiZhXJPLPTiCEdgP72Ar5L2KMiGjf0D3JY9MpcWHugP6xI5YsMCEcUNAe6wKO5NjXRQvTJjVkBBcE2WqgSX8h/n8VLrxA5YlCOOCCbMOeuwKqQHeaoqT/IR1UoHrgQnjKlnk0Ah7tS+aKzA16ixhXCWrHJpgn/ZFY+yw/a6fWCJ8Rk4Xw9G5TmyoqOO05rWGeA2vtV8wcV3YBFtgJzQHfuMVxCrYBY9BnpThEmyGmI4Nk8MsuXgK28F6CWoiZkBP4DfiCZyGrTPojYbJgUX2Wn+oNF0kkYoFOQ6qcj6FUEeTbr+Y3LQ+WI8Dp2AbyP0jNZb7SJJ4kN3wGRyLDZs+yhjt0EZriIcQW5Nfou1G7c9kYQrwFKTqnrI+dMm/kPkHYDMs037Wod4CvQYnJ1Jq1B/Qd70TbAZZWK7CRVgFsnZl5fOm3gPbmL2Qx9ZC8U7CbZWNBduX4Tz8hVw8ux4Q7LYO7ddlGZFKuzBjCnABbBTyUdpGq5fP2sNqUCfIJsM1C9Ibc+MJsD2jtUL0C9vN7BIEt8FOvAvqJbD9BEJRhajTvnFHzEuScFPwqPaNC1pBbzZViFRW5t60b1yQCllXbS6F/IS5sFyKs1UvQ2uQ7XOtEDe1b0Lkv0KKuTbg2n9Ym0JECpnQCrlrMCHbzC5xvWJbwZTSOWprkMfWQvE2GWLl+PwPtMrCcDX4C5JsOfEAboD4F4GDDnuZ1gAnJ1IaJH+S5z9/c14KLCm3KY/1DPX+YZBtf4nLvDxP+yGJrF+dIvM9xtXvx5D64XF4D1XaLzU2JvKlFCLhLu1Lk+UxVWmXQgfGFPCuS/vSJBTX0X7KYqY37ZeHSvDVaKe5wnz/i/Lil8L8jKXFrzaHvUr+Lsf/b/3N8EfkT/zTTmGYUD6fDysLcCH8B6wkgqJRTdxkAAAAAElFTkSuQmCC');
    opacity: 0.05;
    z-index: -1;
}

.vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 150px rgba(0, 0, 0, 0.8);
    z-index: -1;
    pointer-events: none;
}

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

a:hover {
    color: var(--color-secondary);
}

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--space-md);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 4rem 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    background-color: var(--color-header);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    padding: var(--space-sm) var(--space-lg);
    background-color: rgba(15, 13, 10, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.logo img {
    max-height: 55px;
    width: auto;
    transition: all 0.3s ease;
}

header.scrolled .logo img {
    max-height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

nav a {
    color: var(--color-text);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

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

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

/* Hero Section */
#hero {
    height: 100vh;
    background-color: transparent;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
}

.hero-content h1 {
    margin-bottom: var(--space-md);
    position: relative;
    display: inline-block;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 3px;
    background-color: var(--color-primary);
}

.hero-content p {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    letter-spacing: 0.01em;
    text-align: justify;
    column-count: 1;
    column-gap: 30px;
    min-height: 4.8rem; /* Approximate height based on line height and font size */
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--color-primary);
    cursor: pointer;
    animation: bounce 2s infinite;
}

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

/* Featured Section */
#featured {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem 4rem;
    background-color: transparent;
}

.featured-video {
    margin-top: 2rem;
    position: relative;
    transform: translateZ(0);
}

.featured-video::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(217, 160, 62, 0.3);
    border-radius: 10px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-video:hover::after {
    opacity: 1;
}

.plyr__video-embed {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(217, 160, 62, 0.3);
    transition: all 0.3s ease;
}

.plyr__video-embed:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 111, 61, 0.4);
    transform: translateY(-5px);
}

.video-info {
    margin-top: 1.5rem;
}

/* Video Grid */
#all-videos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: transparent;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-card {
    background: var(--color-card);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(37, 37, 40, 0.8);
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(217, 160, 62, 0.3);
    border-color: rgba(217, 160, 62, 0.3);
}

.thumbnail {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    height: 0;
    padding-top: 56.25%;
    background-color: #000;
    --img-scale: 1.1;
}

.thumbnail.loaded img {
    animation: fadeIn 0.5s ease forwards;
}

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

.thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.thumbnail:hover::after {
    opacity: 1;
}

.thumbnail img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(var(--img-scale));
    width: auto;
    height: auto;
    min-width: 110%;
    min-height: 110%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.thumbnail:hover img {
    transform: translate(-50%, -50%) scale(calc(var(--img-scale) * 1.05));
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(217, 160, 62, 0.8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.thumbnail:hover .play-button {
    opacity: 1;
    box-shadow: 0 0 20px rgba(217, 160, 62, 0.7);
}

.video-card .video-info {
    padding: 1.5rem;
}

.video-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.video-card:hover h3 {
    color: var(--color-primary);
}

.video-card p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* About Section */
#about {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    background-color: transparent;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.workflow-description {
    width: 100%;
    margin-bottom: 2rem;
}

.workflow-description p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.workflow-slideshow {
    width: 100%;
    overflow: hidden;
    margin-top: 1rem;
}

.slideshow-container {
    position: relative;
    margin: auto;
    max-width: 100%;
    background-color: var(--color-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(217, 160, 62, 0.3);
    border: 1px solid rgba(217, 160, 62, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.slideshow-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 111, 61, 0.4);
    transform: translateY(-5px);
}

.slideshow-images {
    display: flex;
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
}

.slide {
    flex: 0 0 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}

.slide.active {
    opacity: 1;
    display: block;
}

.slide-nav {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.slide-nav:hover {
    background-color: var(--color-primary);
}

.prev-slide {
    left: 10px;
}

.next-slide {
    right: 10px;
}

.slide-dots {
    text-align: center;
    margin-top: 15px;
}

.slide-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slide-dot.active {
    background-color: var(--color-primary);
}

/* Contact Section */
#contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: transparent;
}

.contact-container {
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background-color: var(--color-card);
    color: var(--color-text);
    padding: 2rem;
    border-top: 1px solid rgba(217, 160, 62, 0.15);
}

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

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

.social-icon {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.social-icon::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.social-icon:hover {
    color: var(--color-primary);
}

.social-icon:hover::after {
    width: 100%;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    color: var(--color-text);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

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

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

/* Typing animation for hero text */
.typing-text {
    display: inline;
    visibility: hidden;
}

.typed-cursor {
    display: inline-block;
    opacity: 1;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
        column-count: 1;
        text-align: left;
        max-width: 100%;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .social-icon::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 400px;
        height: 400px;
    }

    .workflow-description p {
        font-size: 1rem;
    }
    
    .slideshow-images {
        height: 300px;
    }

    .modal-content {
        max-width: 98%;
        max-height: 98vh;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .prev-image {
        left: 15px;
    }
    
    .next-image {
        right: 15px;
    }

    /* Center slideshow image vertically in container */
    .slideshow-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 320px;
        height: 320px;
    }
    .slideshow-images {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .slide img {
        max-height: 90%;
        max-width: 100%;
        margin: 0 auto;
        display: block;
    }
}

@media (max-width: 576px) {
    header {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        gap: 1rem;
    }

    #hero {
        height: 100vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Image Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    padding-top: 150px;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    animation: zoom 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

@keyframes zoom {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002;
}

.close-modal:hover {
    color: var(--color-primary);
    text-decoration: none;
}

/* Add cursor pointer to slideshow images */
.slide img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.02);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
}

.modal-nav:hover {
    background-color: var(--color-primary);
    transform: translateY(-50%) scale(1.1);
}

.prev-image {
    left: 30px;
}

.next-image {
    right: 30px;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 98%;
        max-height: 98vh;
    }
    
    .modal-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .prev-image {
        left: 15px;
    }
    
    .next-image {
        right: 15px;
    }
}

.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 3;
    pointer-events: none;
}
.slide:hover .zoom-icon,
.slide:focus-within .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.slide img {
    cursor: zoom-in;
} 