/* =========================================
   VARIABLES & DESIGN SYSTEM
========================================= */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #141414;
    --color-surface-hover: #1f1f1f;
    --color-text: #e0e0e0;
    --color-text-muted: #999999;
    --color-primary: #ffffff; /* Black and white theme accent */
    --color-primary-dark: #cccccc;
    --color-border: #333333;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Oswald', sans-serif;
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =========================================
   RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

p {
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* =========================================
   TYPOGRAPHY
========================================= */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-medium);
    border-radius: 2px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.btn-link {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    position: relative;
}

.btn-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-medium);
}

.btn-link:hover::after {
    width: 100%;
}

/* =========================================
   HEADER & NAVIGATION
========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: padding var(--transition-medium);
    padding: 1.5rem 0;
}

.main-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo a {
    color: var(--color-primary);
}

.logo .accent {
    color: var(--color-text-muted);
    font-weight: 400;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.main-header .logo-img {
    transform: scale(1.6);
    transform-origin: left center;
}

.main-nav .nav-links {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    position: relative;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-primary);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-medium);
}

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--color-primary);
    transition: all var(--transition-fast);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.4), rgba(10, 10, 10, 0.9));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero .subtitle {
    font-family: var(--font-heading);
    letter-spacing: 4px;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    min-height: 4.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    min-height: 11rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.slider-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* =========================================
   SERVICES SECTION
========================================= */
.services {
    background-color: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Removed specific nth-child centering since we have 9 items now */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


.service-card {
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all var(--transition-medium);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-text-muted);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.service-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.service-card:hover .service-img img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 1), transparent);
}

.service-info {
    padding: 2rem;
    margin-top: -2px;
    position: relative;
    z-index: 10;
    background-color: var(--color-bg);
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.service-info p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about {
    background-color: var(--color-surface);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.check-list {
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

/* =========================================
   STATS SECTION
========================================= */
.stats-section {
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box-new {
    background-color: #111111;
    padding: 3rem 2rem;
    border: 1px solid #222222;
    text-align: center;
    transition: border-color var(--transition-fast);
}

.stat-box-new:hover {
    border-color: var(--color-text-muted);
}

.stat-number {
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1;
}

.stat-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   FAQ SECTION
========================================= */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1rem;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 1.5rem 0;
    transition: color var(--transition-fast);
}

.faq-question h3 {
    margin-bottom: 0;
    font-size: 1.2rem;
    font-family: var(--font-primary);
    text-transform: none;
    letter-spacing: normal;
    font-weight: 600;
}

.faq-question:hover h3 {
    color: var(--color-text-muted);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-medium);
}

.faq-answer p {
    color: var(--color-text-muted);
    padding-bottom: 1.5rem;
    margin-bottom: 0;
}

/* =========================================
   CTA SECTION
========================================= */
.cta {
    position: relative;
    overflow: hidden;
}

.cta-background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    z-index: 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10,10,10,0.8), rgba(10,10,10,0.8));
    z-index: 1;
}

.cta h2 {
    font-size: 3rem;
}

/* =========================================
   FOOTER
========================================= */
.main-footer {
    background-color: #050505;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.main-footer .logo-img {
    height: 120px;
    margin-bottom: 0.5rem;
    transform: scale(1.4);
    transform-origin: left center;
}

.footer-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-list-new {
    margin-top: 1.5rem;
}

.contact-list-new li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.contact-list-new li .icon {
    color: var(--color-text-muted);
    margin-top: 2px;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

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

.footer-col.right-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-top: 2.5rem;
}

.footer-col p {
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.4rem;
}

.quick-links {
    margin-top: 1rem;
}

.quick-links li {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.footer-col ul a {
    color: var(--color-text-muted);
}

.footer-col ul a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.contact-list li {
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
}

.contact-list strong {
    color: var(--color-primary);
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.footer-bottom {
    padding: 1rem 0;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =========================================
   ANIMATIONS
========================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Staggered animation for hero */
.hero-content .subtitle { transition-delay: 0.2s; }
.hero-content h1 { transition-delay: 0.4s; }
.hero-content .hero-actions { transition-delay: 0.6s; }

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
    .footer-bottom-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right var(--transition-medium);
        z-index: 999;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }
    
    .main-nav a {
        font-size: 1.5rem;
    }
    
    /* Hamburger Animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        min-height: auto !important;
        margin-bottom: 1rem !important;
    }
    
    .hero .subtitle {
        font-size: 1.1rem !important;
        min-height: auto !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.4 !important;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 1.5rem !important;
        gap: 1rem !important;
    }
    
    .hero-actions .btn {
        width: 80% !important;
        max-width: 250px !important;
        padding: 0.6rem 1.5rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Button Flip Styles */
@keyframes subtleBlink {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)); }
  50% { transform: scale(1.02); filter: drop-shadow(0 0 8px rgba(255,255,255,0.4)); opacity: 0.85; }
  100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)); }
}
.btn-flip {
  opacity: 1;
  outline: 0;
  color: #fff;
  line-height: 30px;
  position: relative;
  text-align: center;
  letter-spacing: 1px;
  display: inline-block;
  text-decoration: none;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  margin-left: 100px;
  white-space: nowrap;
  align-self: center;
  z-index: 1000;
  font-weight: 900;
  font-size: 11px;
  animation: subtleBlink 2.0s infinite;
}
.btn-flip:hover:after {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}
.btn-flip:hover:before {
  opacity: 0;
  transform: translateY(50%) rotateX(90deg);
}
.btn-flip:after {
  top: 0;
  left: 0;
  opacity: 0;
  width: 100%;
  color: #000;
  display: block;
  transition: 0.5s;
  position: absolute;
  background: #fff;
  content: attr(data-back);
  transform: translateY(-50%) rotateX(90deg);
  border: 2px solid #fff;
  border-radius: 5px;
  padding: 0 14px;
  box-sizing: border-box;
}
.btn-flip:before {
  top: 0;
  left: 0;
  opacity: 1;
  color: #fff;
  display: block;
  padding: 0 14px;
  line-height: 30px;
  transition: 0.5s;
  position: relative;
  background: #000;
  content: attr(data-front);
  transform: translateY(0) rotateX(0);
  border: 2px solid #555;
  border-radius: 5px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .btn-flip {
    margin-left: 25px !important;
    font-size: 8px !important;
    line-height: 24px !important;
  }
  .btn-flip:after, .btn-flip:before {
    padding: 0 8px !important;
    line-height: 24px !important;
  }
  .main-header .logo-img {
    transform: scale(1.1) !important; 
  }
}
@keyframes autoFlipFront {
  0%, 45% { opacity: 1; transform: translateY(0) rotateX(0); }
  50%, 95% { opacity: 0; transform: translateY(50%) rotateX(90deg); }
  100% { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes autoFlipBack {
  0%, 45% { opacity: 0; transform: translateY(-50%) rotateX(90deg); }
  50%, 95% { opacity: 1; transform: translateY(0) rotateX(0); }
  100% { opacity: 0; transform: translateY(-50%) rotateX(90deg); }
}

@media (max-width: 768px) {
  .btn-flip:before {
    animation: autoFlipFront 4s infinite !important;
  }
  .btn-flip:after {
    animation: autoFlipBack 4s infinite !important;
  }
}