/* --- Global Styles and Typography --- */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

h1, h2, p {
    color: #1a1a1a;
    text-align: center;
}

/* --- Animated Geometric Background --- */
.waves-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(135deg, #e8f4f8 0%, #f0e6f6 100%);
}

.wave {
    position: absolute;
}

.wave1 {
    width: 900px;
    height: 900px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.15) 100%);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    top: 5%;
    right: -15%;
    animation: rotate-float1 30s ease-in-out infinite;
}

.wave2 {
    width: 800px;
    height: 800px;
    background: linear-gradient(225deg, rgba(236, 72, 153, 0.25) 0%, rgba(251, 146, 60, 0.15) 100%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    bottom: 10%;
    left: -20%;
    animation: rotate-float2 35s ease-in-out infinite reverse;
}

.wave3 {
    width: 700px;
    height: 700px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.25) 0%, rgba(147, 197, 253, 0.15) 100%);
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
    top: 55%;
    left: 45%;
    animation: rotate-float3 25s ease-in-out infinite;
}

@keyframes rotate-float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-100px, 80px) rotate(45deg);
    }
    50% {
        transform: translate(-150px, 120px) rotate(90deg);
    }
    75% {
        transform: translate(-100px, 80px) rotate(135deg);
    }
}

@keyframes rotate-float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(120px, -60px) rotate(60deg);
    }
    66% {
        transform: translate(80px, -100px) rotate(120deg);
    }
}

@keyframes rotate-float3 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(-80px, -60px) rotate(72deg);
    }
}

/* --- Header Bar --- */
.header-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

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

.header-logo {
    height: 45px;
    width: auto;
    display: block;
}

.header-contact-btn {
    display: inline-block;
    padding: 10px 24px;
    background: transparent;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    position: relative;
}

.header-contact-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 10px;
    padding: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: -1;
}

.header-contact-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .header-contact-btn {
        display: none;
    }
}

/* --- Hero Section --- */
.hero-section {
    padding: 80px 20px 40px;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    font-weight: 800;
    margin-bottom: 6px;
}

.hero-content p {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 20px;
}

/* --- Gradient Button Styling --- */
.btn-gradient {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    border-radius: 8px;
    color: #fff;
    
    /* The Gradient Effect */
    background-image: linear-gradient(to right, #007bff, #8a2be2); /* Blue to Violet */
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

/* --- Video Gallery Section --- */
.video-gallery {
    max-width: 1200px;
    margin: -10px auto 120px; /* pull upward slightly */
    padding: 20px;
}

.video-gallery h2 {
    text-align: left;
    margin-bottom: 20px;
    margin-left: 20px; /* Aligns with the grid start */
    font-weight: 600;
    font-size: 1.4em;
    color: #e0e0e0;
}

.reel-grid {
    display: grid;
    /* 4-column layout for desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    padding: 0 20px;
}

/* --- Reel Item Styling (The Vertical Cards) --- */
.reel-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Fixed 9:16 aspect ratio box - shortened to allow peek */
    padding-top: 160%; /* slightly shorter so more visible */
    background-color: #1a1a2e; /* Dark fallback */
}

.reel-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hide legacy img tags */
.reel-item img {
    display: none !important;
}

/* Unmute button overlay */
.unmute-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.unmute-btn::after {
    content: '';
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: block;
    margin-left: 2px;
}

.unmute-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.unmute-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.8);
}

.reel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* --- Overlay Gradient with Slide Animation --- */
.overlay,
.reel-item:hover .overlay{
    pointer-events: none;
}
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0,0,0,0) 90%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    box-sizing: border-box;
    transform: translateY(0);
    will-change: transform;
    transition: transform 0.35s ease;
}

.overlay h3,
.overlay p {
    margin: 0;
    text-align: left;
    color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.overlay h3 {
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.2;
}

.overlay p {
    font-size: 0.78em;
    opacity: 0.9;
    line-height: 1.3;
}


.reel-item:hover .overlay {
    transform: translateY(40%);
}

.client, .title {
    margin: 0;
    text-align: left;
    font-size: 0.9em;
}
.client {
    color: #aaa;
    margin-bottom: 2px;
}
.title {
    color: #fff;
    font-weight: 600;
}

/* --- Play Icon (Center of the Reel) --- */
.play-icon {
    display:none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Simulate the triangle play icon */
.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid #fff;
    margin-left: 3px;
}

/* --- Corner Tag (e.g., "NEW") --- */
.tag {
    display:none; /* legacy hidden */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffcc00; /* Yellow accent */
    color: #000;
    font-size: 0.7em;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 10;
}

/* --- Bottom Right Circle Icon (Placeholder) --- */
.icon-bottom {
    display:none;
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 10;
}

/* --- Responsiveness for the Grid --- */
@media (max-width: 1000px) {
    .reel-grid {
        /* Switch to 3 columns on medium screens */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .reel-grid {
        /* Switch to 2 columns on tablets */
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-content h1 {
        font-size: 2.5em;
    }
}

/* --- FAQ Section --- */
.faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    background: transparent;
}

.faq-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.faq-container h2 {
    font-size: 2.2em;
    margin-bottom: 40px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #667eea;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 600;
    color: #1a1a1a;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-icon {
    font-size: 1.5em;
    color: #667eea;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    text-align: left;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0);
    display: none;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
}

.success-message p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
}

/* --- Contact Form Section --- */
.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
    background: transparent;
}

.contact-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    min-height: 500px; /* Fixed height */
    display: flex;
    flex-direction: column;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

/* Success Message */
.success-message {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    padding: 20px;
}

.success-gif {
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Responsive adjustments for success GIF */
@media (max-width: 768px) {
    .success-gif {
        width: 200px;
        height: 200px;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .success-gif {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }
}

.success-message h3 {
    color: #333;
    font-size: 2em;
    margin: 15px 0;
    font-weight: 600;
}

.success-message p {
    color: #666;
    font-size: 1.1em;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-container h2 {
    font-size: 2.2em;
    margin-bottom: 10px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    width: 100%;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s ease;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.05em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-container {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
}

/* --- Footer --- */
.site-footer {
    background: #fff;
    padding: 40px 30px 20px;
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

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

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

.footer-info {
    text-align: right;
}

.footer-email {
    margin: 5px 0;
    font-size: 0.85em;
    color: #333;
}

.footer-email a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-email a:hover {
    color: #1d4ed8;
}

.footer-copyright {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    margin: 0;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.8em;
    color: #666;
}

@media (max-width: 500px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .reel-grid {
        /* Single column on mobile */
        grid-template-columns: 1fr;
    }
}