
/*
==========================================================================
    Main Stylesheet for Hi-Tech Videos
==========================================================================
*/

/*
--------------------------------------------------------------------------
    1.  Global Settings & Variables
--------------------------------------------------------------------------
*/
:root {
    --primary-color: #D4AF37; /* Gold accent */
    --secondary-color: #f0f0f0; /* Light text */
    --dark-bg: #121212;
    --medium-bg: #1a1a1a;
    --card-bg: #222;
    --border-color: #444;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Montserrat', sans-serif;
}

/*
--------------------------------------------------------------------------
    2.  Base & Typography
--------------------------------------------------------------------------
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--secondary-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2.section-title { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 50px; color: var(--primary-color); }
p { margin-bottom: 1rem; color: #ccc; }
a { color: var(--primary-color); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/*
--------------------------------------------------------------------------
    3.  Header & Navigation
--------------------------------------------------------------------------
*/
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background-color 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(18, 18, 18, 0.85);
    padding: 10px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand-logo { display: flex; align-items: center; gap: 15px; font-size: 1.2rem; font-weight: bold; }
.brand-logo img { height: 40px; width: auto; }
#main-nav ul { list-style: none; display: flex; gap: 35px; }
#main-nav a { color: var(--secondary-color); font-weight: 500; position: relative; padding-bottom: 5px; transition: color 0.3s ease; }
#main-nav a:hover { color: var(--primary-color); }
#main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}
#main-nav a:hover::after { width: 100%; }
#hamburger { display: none; background: none; border: none; z-index: 1001; }

/*
--------------------------------------------------------------------------
    4.  Buttons & CTA
--------------------------------------------------------------------------
*/
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.btn-primary { background-color: var(--primary-color); color: var(--dark-bg); }
.btn-primary:hover { background-color: #e6c35c; transform: translateY(-3px); box-shadow: 0 4px 8px rgba(0,0,0,0.2); }
.btn-secondary { border-color: var(--primary-color); color: var(--primary-color); }
.btn-secondary:hover { background-color: var(--primary-color); color: var(--dark-bg); transform: translateY(-3px); }

/*
--------------------------------------------------------------------------
    5.  Page Sections
--------------------------------------------------------------------------
*/
section { padding: 80px 0; }

/*
    DEVELOPER NOTE: To change the main hero background image,
    update the URL in the 'background' property below.
*/
#hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('images/hero-bg.svg') no-repeat center center/cover; padding: 0 20px; }
.hero-content .tagline { font-size: 1.5rem; color: var(--primary-color); margin: 0; }
.hero-content .subheading { font-size: 1.2rem; color: #ccc; }
.hero-buttons { margin-top: 30px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

#about { background-color: var(--medium-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: #111;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}
.service-icon img {
    height: 60px;
    margin: 0 auto 1.5rem;
}
.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#clientele { background-color: var(--medium-bg); }
.clientele-intro { text-align: center; font-size: 1.1rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }
.logos-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 40px; }
.client-logo img { height: 50px; width: auto; transition: transform 0.3s ease; }
.client-logo img:hover { transform: scale(1.05); }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 15px; }
.gallery-item { position: relative; overflow: hidden; cursor: pointer; border-radius: 8px; aspect-ratio: 1 / 1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; align-items: flex-end; padding: 20px; opacity: 0; transition: opacity 0.4s ease; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { color: white; margin: 0; }

#videos { background-color: var(--medium-bg); }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; gap: 30px; }
.video-container {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background-color: #000;
    border: 1px solid var(--border-color);
}
.video-container.horizontal { aspect-ratio: 16 / 9; }
.video-container.vertical { aspect-ratio: 9 / 16; grid-row: span 2; }
.video-preview, .video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-poster { z-index: 2; transition: opacity 0.3s ease; }
.video-container:hover .video-poster { opacity: 0; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; z-index: 3; pointer-events: none; }
.video-overlay.visible { opacity: 1; pointer-events: auto; }
.youtube-link img { width: 64px; height: 64px; }
.video-cta { text-align: center; margin-top: 50px; }

.video-mute-toggle {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 4;
    background-color: rgba(0,0,0,0.6);
    border: none;
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-mute-toggle {
    opacity: 1;
}


#reviews { padding: 80px 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.review-card { background-color: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px; padding: 30px; }
.review-header { display: flex; align-items: center; margin-bottom: 20px; }
.review-header img { width: 60px; height: 60px; border-radius: 50%; margin-right: 15px; object-fit: cover; }
.review-author h4 { margin: 0; font-size: 1.1rem; }
.review-rating { color: var(--primary-color); }
.review-text { font-style: italic; color: #ccc; }

#contact { background-color: var(--medium-bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: flex-start; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background-color: #333; border: 1px solid var(--border-color); color: var(--secondary-color); border-radius: 5px; font-family: var(--font-primary); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-details h3 { color: var(--primary-color); margin-bottom: 20px; }
.contact-info p { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.contact-info i { color: var(--primary-color); font-size: 1.2rem; width: 20px; text-align: center; }
.map-container { margin-top: 30px; border-radius: 8px; overflow: hidden; height: 250px; }
.map-container iframe { border: 0; width: 100%; height: 100%; }
.form-success { border: 1px solid var(--primary-color); padding: 30px; border-radius: 5px; text-align: center; }

/*
--------------------------------------------------------------------------
    6.  Footer
--------------------------------------------------------------------------
*/
.main-footer { background-color: var(--dark-bg); padding: 40px 0; text-align: center; border-top: 1px solid var(--border-color); }
.footer-logo-img { height: 50px; width: auto; margin: 0 auto 15px; }
.footer-logo { font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; }
.footer-logo span { color: var(--primary-color); }
.social-links { margin-bottom: 20px; }
.social-links a { color: var(--secondary-color); font-size: 1.2rem; margin: 0 10px; transition: color 0.3s ease, transform 0.3s ease; display: inline-block; }
.social-links a:hover { color: var(--primary-color); transform: translateY(-3px); }
.copyright { font-size: 0.9rem; color: #888; }

/*
--------------------------------------------------------------------------
    7.  Modals & Overlays
--------------------------------------------------------------------------
*/
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 2000; display: flex; justify-content: center; align-items: center; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; }
.lightbox.visible { opacity: 1; visibility: visible; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90%; }
#lightbox-img { max-width: 100%; max-height: 100vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 30px; font-size: 3rem; color: white; background: none; border: none; cursor: pointer; }

/*
--------------------------------------------------------------------------
    8.  Animations
--------------------------------------------------------------------------
*/
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* This class is now controlled by JavaScript to trigger on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/*
--------------------------------------------------------------------------
    9.  Responsive Design
--------------------------------------------------------------------------
*/
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .about-grid .about-text { order: 2; text-align: left; }
    .about-grid .about-image { order: 1; margin: 0 auto; max-width: 500px; }
    .video-grid { grid-template-columns: 1fr; }
    .video-container.vertical { grid-row: auto; }
}

@media (max-width: 768px) {
    #main-nav { position: fixed; top: 0; right: 0; width: 100%; height: 100vh; background: var(--dark-bg); flex-direction: column; justify-content: center; align-items: center; transform: translateX(100%); transition: transform 0.3s ease-in-out; display: flex; }
    #main-nav.open { transform: translateX(0); }
    #main-nav ul { flex-direction: column; text-align: center; gap: 40px; }
    #hamburger { display: block; }
    .hamburger-icon { width: 30px; height: 22px; position: relative; transform: rotate(0deg); transition: .5s ease-in-out; cursor: pointer; }
    .hamburger-icon span { display: block; position: absolute; height: 3px; width: 100%; background: var(--secondary-color); border-radius: 9px; opacity: 1; left: 0; transform: rotate(0deg); transition: .25s ease-in-out; }
    .hamburger-icon span:nth-child(1) { top: 0px; }
    .hamburger-icon span:nth-child(2), .hamburger-icon span:nth-child(3) { top: 9px; }
    .hamburger-icon span:nth-child(4) { top: 18px; }
    #hamburger.open .hamburger-icon span:nth-child(1) { top: 9px; width: 0%; left: 50%; }
    #hamburger.open .hamburger-icon span:nth-child(2) { transform: rotate(45deg); }
    #hamburger.open .hamburger-icon span:nth-child(3) { transform: rotate(-45deg); }
    #hamburger.open .hamburger-icon span:nth-child(4) { top: 9px; width: 0%; left: 50%; }
}

@media (max-width: 576px) {
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 100%; text-align: center; max-width: 300px; }
}
