/* --- Variables & Theming --- */
:root {
    --primary: #1c8585;
    --accent: #d39641;
    --bg-color: #ffffff;
    --text-color: #1e1e1c;
    --secondary: #cbebf4;
    --nav-bg: rgba(255, 255, 255, 0.65);
    --nav-bg2: rgba(255, 255, 255);
    --card-bg: #ffffff;
    --border-color: #f1f1f1;
    --transition: 0.3s ease-in-out;
    --red: #ff4d4d;
    --red-hover: #ff1a1a;
    --red-dark: #8f0000;
    --red-gradient: -webkit-linear-gradient(45deg, var(--red), var(--red-hover));
    --red-gradient-hover: -webkit-linear-gradient(45deg, var(--red-hover), var(--red-dark));
}

[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f5f5f5;
    --secondary: #031417; /* Deepened secondary for dark mode */
    --nav-bg: rgba(18, 18, 18, 0.45);
    --nav-bg2: rgba(18, 18, 18);
    --card-bg: #1e1e1c;
    --border-color: #3e3e3e;
}

/* --- Base & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Baloo 2', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Utility Classes --- */
.section { padding: 100px 0; }
.bg-secondary { background-color: var(--secondary); }
.bg-primary { background-color: var(--primary); }
.bg-gradient { background: -webkit-linear-gradient(45deg, var(--accent), var(--primary));}
.text-light { color: #ffffff; }
.accent-text { color: var(--accent); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 {
    font-size: 3rem; /* Increased from 2.5rem */
    margin-bottom: 25px; /* Increased from 15px */
    color: var(--primary);
    position: relative;
    display: inline-block;
    letter-spacing: 1px; /* Added for a more refined look */
}

.section-header h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60%;
    height: 3px;
    background: -webkit-linear-gradient(45deg, var(--primary), var(--accent));
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}
[data-theme="dark"] .section-header h2 { color: var(--accent); }

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    justify-content: center;
    text-align: center;
    align-items: center;
}
.btn-red {
    background: var(--red-gradient);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-red:hover {
    background: var(--red-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}
.btn-watch {
    background: var(--red-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.btn-watch:hover {
    background: var(--red-gradient-hover);
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 0, 0, 0.3);
}
.btn-primary { background: var(--accent); color: var(--secondary) }
.btn-primary:hover { background: #ffffff; color: var(--primary); }
.btn-accent { background: var(--accent); color: #1e1e1c; }
.btn-accent:hover { background: #fff;}
.delay-02 { transition-delay: 0.2s; }
.delay-04 { transition-delay: 0.4s; }

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background: var(--nav-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 10%;
    width: auto;
    margin: 0 auto;
}
.brand-logo { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.brand-logo span { color: var(--accent); }
[data-theme="dark"] .brand-logo { color: #fff; }
.logo {left: 0;}
.logo-dark,
.logo-light {
    height: 50px;
    object-fit: fill;
}

[data-theme="dark"] .logo-dark,
[data-theme="light"] .logo-light {
    display: block;
}

[data-theme="dark"] .logo-light,
[data-theme="light"] .logo-dark {
    display: none;
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
    position: relative;
    font-weight: 500;
    transition: color var(--transition);
    text-decoration: none;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--accent);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}
.nav-actions { display: flex; align-items: center; gap: 20px; }

#theme-toggle {
    background: none; border: none;
    font-size: 1.2rem; color: var(--text-color);
    cursor: pointer;
}

.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger .bar {
    display: block; width: 25px; height: 3px;
    margin: 5px auto; background-color: var(--text-color);
    transition: var(--transition);
}

.external::before {
            content: '🔺';
            margin-right: 5px;
            font-size: 12px;
            opacity: 0.7;
        }
.trailer-btn{
    color: var(--red);
}
.trailer-btn:hover{
    transform: translateY(-10px);
}
/* Trailer Modal */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    opacity: 0;
    transition: opacity 0.4s ease;
  }
  
  .modal.show {
    display: block;
    opacity: 1;
  }
  
  #trailer-modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 90%;
    max-width: 960px;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 */
  }
  
  #trailer-modal-content iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
  
  .close {
    position: absolute;
    top: 13%;
    right: 0.5rem;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    -webkit-user-select: none;
    user-select: none;
    padding: 10px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.3);
    transition: background 0.3s;
  }
  
  .close:hover {
    background-color: rgba(0,0,0,0.6);
  }
  


        .video {
            position: absolute;
            top: 0;
            left: 0;
            z-index: -4;
            height: 100vh;
            width: 100%;
            object-fit: cover;
             }
                
        #video-container {
            height: 100vh;
            width: 100%;
            background-image: url("video/Official\ trailer\ “Devushka\ Mara”.mp4");
            background-color: transparent;
            position: relative;
            z-index: -3;
            top: 0;
            left: 0;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
            }

/* --- Hero Section --- */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.hero-video {
    position: absolute;
    top: 50%; left: 50%;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}
.video-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(7, 64, 71, 0.6); /* Primary color overlay */
    z-index: -1;
}
.hero-content { z-index: 1; max-width: 800px; padding: 0 20px; }
.hero-content h1 { font-size: 4rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.masked-text{
            color: transparent;
            background-image: url('img/Glass.jpg'); 
            background-size: 200%; /* Enlarged for smooth animation */
            background-position: 0 50%;
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            animation: animate-background 5s infinite alternate linear;
        }

        @keyframes animate-background {
            0% {
                background-position: 0 50%;
            }
            100% {
                background-position: 100% 50%;
            }
        }
/* --- Storytelling Timeline --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: ''; position: absolute;
    width: 2px; background-color: var(--red);
    top: 0; bottom: 0; left: 50%; margin-left: -1px;
}
.timeline-item {
    padding: 10px 40px; position: relative;
    background-color: inherit; width: 50%;
}
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-dot {
    position: absolute; width: 20px; height: 20px;
    right: -10px; background-color: var(--bg-color);
    border: 4px solid var(--red);
    top: 15px; border-radius: 50%; z-index: 1;
}
.timeline-item:nth-child(even) .timeline-dot { left: -10px; }
.timeline-content {
    padding: 20px; background: var(--card-bg);
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Services Grid --- */
.services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--card-bg); /* Changed from --surface */
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--red); /* Changed from red border */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 16px rgba(0,0,0,0.05); /* Softened shadow */
}
.service-card p {padding-top: 0.5rem;}
.service-card:hover {
    border-color: var(--accent);
    background-color: var(--card-bg);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1); /* Softened hover shadow */
        }
.service-icon {
    font-size: 3.5rem; /* Increased from 2.5rem */
    margin-bottom: 25px; /* Increased from 20px */
    background: var(--red-gradient);
    background: linear-gradient(45deg, var(--red), var(--red-hover));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* --- Service Lists --- */
.service-list {
    margin-top: 15px;
    text-align: left;
    list-style: none;
    padding: 0;
}
.service-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: var(--text-color);
}
.service-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* --- Our Works Grid --- */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    will-change: transform, box-shadow;
}

.work-item:hover {
    transform: translateY(-10px);
}

.work-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    will-change: transform;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.work-item:hover .work-info {
    transform: translateY(0);
}

.work-info h3 {
    color: var(--red);
    margin-bottom: 5px;
}

/* --- Team Grid --- */
.team-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.team-card {
    background: var(--card-bg); border-radius: 8px;
    overflow: hidden; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-card:hover .team-img {
    transform: scale(1.1);
    opacity: 0.8;
}

.team-img { 
    width: 100%; height: 300px; 
    object-fit: cover; 
    transition: var(--transition);
}
.team-info { padding: 20px; }
.team-info h3 { color: var(--primary); }
[data-theme="dark"] .team-info h3 { color: var(--accent); }

/* --- Testimonial Carousel --- */
.testimonial-section {
    background-color: var(--secondary);
    padding: 1.5rem 0;
}

.testimonial-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2.5rem;
    background: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.testimonial-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-item {
    min-width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 0 2.5rem;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 2px solid var(--red);
}

.quote {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.author {
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .author {
    color: var(--accent);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: calc(100% - 4rem);
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    left: 2rem;
}

.carousel-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-btn:hover {
    background: var(--accent);
}

.carousel-indicators {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.indicator-dot.active {
    background: var(--red);
}

/* --- Accordion --- */
.accordion { max-width: 800px; margin: 0 auto; }
.accordion-item { border-bottom: 1px solid var(--border-color); margin-bottom: 10px; }
.accordion-header {
    width: 100%; text-align: left; padding: 20px;
    background: var(--card-bg); border: none;
    font-family: inherit; font-size: 1.1rem; font-weight: 600;
    color: var(--text-color); cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
}
.accordion-content {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease-out; background: var(--card-bg);
}
.accordion-content p { padding: 0 20px 20px; }

/* --- Contact Form --- */
.contact-wrapper {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 50px; align-items: center;
}
.contact-details p { margin-bottom: 15px; font-size: 1.1rem; }
.contact-details i { color: var(--accent); margin-right: 10px; }
.form-group { margin-bottom: 20px; position: relative; }
.form-group input, .form-group textarea {
    width: 100%; padding: 15px; border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05); color: #fff;
    border-radius: 0.5rem; font-family: inherit; font-size: 1rem;
    outline: none; resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #ccc; }
.error-msg {
    color: #ff6b6b; font-size: 0.85rem;
    position: absolute; bottom: -20px; left: 0;
    display: none;
}
.form-group.error .error-msg { display: block; }
.form-group.error input, .form-group.error textarea { border-color: #ff6b6b; }

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* --- Footer --- */
.footer { background: var(--secondary); color: var(--text-color); padding: 80px 0 20px; }
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-slim { font-size: 0.9rem;}
.brand-col h3 { font-size: 2rem; color: #fff; margin-bottom: 15px; }
.brand-col span { color: var(--accent); }
.social-links { margin-top: 20px; }
.social-links a {
    display: inline-block; width: 40px; height: 40px;
    background: var(--border-color); border-radius: 50%;
    text-align: center; line-height: 40px; margin-right: 10px;
    transition: var(--transition);
}
.social-links a:hover { background: var(--accent); }
.footer-col h4 { margin-bottom: 20px; font-size: 1.2rem; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {transition: 0.3s ease-in-out;}
.footer-col a:hover{ padding-left: 0.5rem;}
.newsletter-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.newsletter-form input {
    padding: 15px 20px;
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

.newsletter-form input:focus {
    background: var(--bg-color);
}

.newsletter-form button {
    padding: 0 25px;
    background: var(--accent);
    border: none;
    color: #1e1e1c;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
}

.newsletter-form button:hover {
    background: var(--primary);
    color: #fff;
}

.newsletter-form button i {
    transition: transform 0.3s ease-in-out;
}

.newsletter-form button:hover i {
    transform: translateX(5px);
}
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); }
.designer-link {
    color: var(--accent);
    font-weight: 600;
    transition: all 0.3s ease-in-out;
}
.designer-link:hover {
    color: var(--primary);
}
/* --- Back to Top --- */
#backToTop {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--red-gradient);; color: var(--bg-color); border: none;
    width: 50px; height: 50px; border-radius: 50%;
    cursor: pointer; opacity: 0; visibility: hidden;
    transition: var(--transition); z-index: 99;
}
#backToTop.show { opacity: 1; visibility: visible; }

/* --- Scroll Animations --- */
.reveal { opacity: 0; transition: all 0.8s ease-out; }
.slide-up { transform: translateY(50px); }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item:nth-child(even) { left: 0%; }
    .timeline-dot { left: 21px !important; right: auto; }
    .contact-wrapper { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; left: -100%; top: 70px;
        flex-direction: column; background: var(--nav-bg2);
        width: 100%; text-align: center; padding: 20px 0;
        transition: 0.3s; gap: 20px; box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { left: 0; }
    .hamburger { display: block; }
    .hero-content h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; }

    .nav-container {
        align-items: center;
        padding: 1rem 5%;
    }

    .close {
        position: absolute;
        top: 0rem;
        right: 0rem;
        color: #fff;
        font-size: 40px;
        font-weight: bold;
        cursor: pointer;
        z-index: 1001;
        -webkit-user-select: none;
        user-select: none;
        padding: 10px;
        border-radius: 50%;
        background-color: rgba(0,0,0,0.3);
        transition: background 0.3s;
    }
    
    .close:hover {
        background-color: rgba(0,0,0,0.6);
    }
}

/* --- CEO Bio Modal --- */
#ceoModal .modal-content {
    max-width: 800px;
    padding: 3rem;
    background-color: var(--card-bg);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin: 5% auto; /* Add some margin for better positioning */
    height: auto;
    transform: translateY(0); /* Reset transform */
}

#ceoModal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s;
}

#ceoModal .close-btn:hover {
    color: var(--red);
}

.modal-body {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.modal-img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
    flex-shrink: 0;
}

.modal-text {
    flex: 1;
    text-align: left;
    overflow-wrap: break-word;
    min-width: 0;
}

.modal-text h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .modal-text h2 {
    color: var(--accent);
}

.modal-text h3 {
    font-weight: 500;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.modal-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.modal-text h4 {
    color: var(--primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

[data-theme="dark"] .modal-text h4 {
    color: var(--accent);
}

.modal-text ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 1.5rem;
}

.modal-text ul li {
    margin-bottom: 0.5rem;
    padding-left: 5px;
}

.modal-text {
    text-align: left;
}

body.modal-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    #ceoModal .modal-content {
        padding: 2rem;
    }
    .modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .modal-img {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }
}

