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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    overflow-x: hidden;
}

/* Smooth Page Transitions */
body {
    opacity: 1;
    transition: opacity 0.3s ease;
}

body.fade-out {
    opacity: 0;
}

/* ===== VIDEO BACKGROUND ===== */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

/* ===== NAVIGATION MENU ===== */
.top-bar {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    padding: 1.5rem 2rem;
    width: 100%;
}

.nav-menu {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: #ffd700;
    transition: left 0.3s ease;
    box-shadow: 0 0 10px #ffd700;
}

.nav-menu a:hover {
    color: #ffd700;
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    left: 0;
}

.nav-menu a.active {
    border-bottom: 2px solid #ffd700;
}

/* ===== PAGE CONTENT ===== */
.page-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 6rem auto 2rem auto;
    padding: 2.5rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

h2 {
    font-size: 2rem;
    margin: 1.5rem 0 1rem;
    color: #fff;
}

p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    color: #f0f0f0;
}

/* ===== HOMEPAGE SPECIFIC ===== */
.home-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    margin-top: -2rem;
}

.home-content h1 {
    font-size: 4rem;
    border-bottom: none;
}

.home-content .tagline {
    font-size: 1.8rem;
    margin-top: 1rem;
    opacity: 0.9;
}

/* ===== PARALLAX SECTIONS - ALL USING TALOS IMAGE ===== */
.parallax-section {
    position: relative;
    min-height: 400px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.parallax-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 800px;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.parallax-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.parallax-btn {
    display: inline-block;
    background: #ffd700;
    color: black;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.parallax-btn:hover {
    background: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

/* Single Talos image for all parallax sections */
.parallax-1, .parallax-2, .parallax-3 {
    background-image: url('../images/Talos_T60X_Close_Up.webp');
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 2rem;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: #ffd700;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    color: white;
}

/* Service Cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #ffd700;
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-content {
    padding: 1.5rem;
}

.service-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
}

/* ===== LIGHTBOX GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    border-color: #ffd700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    border: 3px solid #ffd700;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
}

.lightbox-close:hover {
    color: #ffd700;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.lightbox-nav:hover {
    background: #ffd700;
    color: black;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-size: 1.1rem;
}

/* ===== CONTACT FORM ===== */
.contact-form {
    display: grid;
    gap: 1.5rem;
    max-width: 600px;
    margin: 2rem auto;
}

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

label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffd700;
}

input, textarea, select {
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.5);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

button {
    background: #ffd700;
    color: black;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: #ffed4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .top-bar {
        padding: 1rem;
        justify-content: center;
    }
    
    .nav-menu {
        justify-content: center;
        font-size: 0.8rem;
        gap: 0.8rem;
        padding: 0.6rem 1rem;
        width: auto;
        max-width: 95%;
    }
    
    .page-content {
        margin: 4rem 1rem 2rem 1rem;
        padding: 1.5rem;
    }
    
    .home-content {
        margin-top: -1rem;
    }
    
    .home-content h1 {
        font-size: 2.5rem;
    }
    
    .home-content .tagline {
        font-size: 1.2rem;
    }
    
    .parallax-section {
        background-attachment: scroll;
        min-height: 300px;
    }
    
    .parallax-content h2 {
        font-size: 2rem;
    }
    
    .parallax-content p {
        font-size: 1rem;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .lightbox-nav {
        font-size: 2rem;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        gap: 0.5rem;
        padding: 0.5rem 0.8rem;
    }
    
    .nav-menu a {
        font-size: 0.75rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-nav {
        font-size: 1.5rem;
    }
}