/* Root Variables */
:root {
    --primary-color: #c8922a;
    --secondary-color: #7a8c5c;
    --dark-bg: #1a1c18;
    --darker-bg: #0f1110;
    --card-bg: #24261f;
    --text-primary: #e8e0cc;
    --text-secondary: #d4ccb4;
    --border-color: #3a3c34;
    --hover-color: #d4a838;
    --icon-bg: #4a5c3a;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-light);
    transition: transform 0.3s ease;
}

.navbar.is-hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    color: var(--primary-color);
}

.logo-main {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 0.35rem;
    text-transform: uppercase;
}

.logo-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Logo sweep animation (gradient text sweep) */
:root {
    --alt-color: #00a8ff; /* Electric blue fallback — change as desired */
    --sweep-duration: 5000ms;
}

.logo-main {
    /* Use background-clip for animated gradient on the text */
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--alt-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo-main.sweep-active {
    animation: logo-sweep var(--sweep-duration) ease-in-out forwards;
}

@keyframes logo-sweep {
    0% {
        background-position: 0% 50%;
        opacity: 1;
        filter: blur(0px);
    }
    50% {
        background-position: 100% 50%;
        opacity: 0.95;
        filter: blur(0.5px);
    }
    100% {
        background-position: 0% 50%;
        opacity: 1;
        filter: blur(0px);
    }
}

/* Button sweep: apply same gradient sweep to button text once per hover */
.btn.sweep-active {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--alt-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logo-sweep var(--button-sweep-duration, 1500ms) ease-in-out forwards;
}

/* Apply the same sweep to service card headings on hover */
.service-card h3.sweep-active {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--alt-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logo-sweep var(--button-sweep-duration, 1500ms) ease-in-out forwards;
}

/* Nav link and nav button sweep styles */
.nav-link.sweep-active,
.nav-btn.sweep-active {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--alt-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logo-sweep var(--button-sweep-duration, 1500ms) ease-in-out forwards;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.nav-btn:hover {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.nav-btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.nav-btn-secondary:hover {
    background-color: var(--secondary-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
}

.hero-image-wrapper {
    width: 100%;
    min-height: 340px;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
    background-color: #0f1110;
    position: relative;
    overflow: hidden;
}

.hero-image-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(26, 28, 24, 0.55), rgba(26, 28, 24, 0.55));
    z-index: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    position: relative;
    z-index: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    line-height: 1.2;
}

.hero-slogan {
    font-size: clamp(1.8rem, 2.4vw, 2.6rem);
    max-width: 760px;
    margin: 5.5rem auto 3rem;
    color: #c8a96e;
    line-height: 1.25;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-align: center;
    text-transform: uppercase;
    background-image: linear-gradient(90deg, rgba(200,169,110,0.85), rgba(0,168,255,0.9), rgba(255,243,206,1), rgba(200,169,110,0.85));
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: slogan-sweep 8s ease-in-out infinite;
}

@keyframes slogan-sweep {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--dark-bg);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
}

/* Services Section */
.services {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.services h2,
.portfolio h2,
.values h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.1);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.service-card details {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.service-card summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--text-primary);
    list-style: none;
    margin-bottom: 0.75rem;
    position: relative;
}

.service-card summary::marker {
    display: none;
}

.service-card summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform 0.2s ease;
}

.service-card details[open] summary::after {
    content: '–';
}

.pricing-tier {
    margin-bottom: 1rem;
}

.pricing-tier strong {
    display: block;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.pricing-tier p,
.service-card details p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.pricing-note {
    margin-top: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 300px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.portfolio-overlay h3 {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.portfolio-overlay h3.sweep-active {
    background-image: linear-gradient(90deg, var(--primary-color) 0%, var(--alt-color) 50%, var(--primary-color) 100%);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: logo-sweep 1200ms ease-in-out forwards;
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.portfolio-video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.portfolio-video-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.portfolio-video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.45);
    transition: filter 0.3s ease;
}

.portfolio-video-placeholder:hover .portfolio-video-poster {
    filter: brightness(0.55);
}

.portfolio-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: 3;
}

.portfolio-video-play::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 18px solid rgba(0, 0, 0, 0.85);
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.portfolio-video-placeholder:hover .portfolio-video-play {
    background-color: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    padding: 2rem;
    transform: translateY(50px);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

.video-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 7, 10, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.video-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-dialog {
    position: relative;
    width: min(100%, 960px);
    background: #090b0c;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: translateY(12px);
    transition: transform 0.25s ease;
}

.video-modal.is-open .video-modal-dialog {
    transform: translateY(0);
}

.video-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 2;
    border: none;
    border-radius: 999px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
}

.video-modal-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-modal-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

body.modal-open {
    overflow: hidden;
}

.portfolio-overlay h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-overlay p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.video-section {
    background-color: var(--card-bg);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-top: 3rem;
}

.video-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.video-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    background-color: var(--darker-bg);
    border-radius: 4px;
    margin: 0 auto;
}

.video-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    display: block;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    background-color: var(--darker-bg);
    position: relative;
}

.video-placeholder img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center center;
    display: block;
    filter: brightness(0.45);
    transition: transform 0.3s ease;
}

.video-placeholder:hover img {
    transform: scale(1.03);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    padding: 0.95rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.video-play-button:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%);
}

/* Values Section */
.values {
    padding: 5rem 0;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--border-color);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(255, 107, 53, 0.05) 100%);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.value-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: var(--text-secondary);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: var(--primary-color);
}

.modal h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.modal-subtitle {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

#quoteForm button,
#consultationForm button {
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        position: sticky;
    }

    .navbar.is-hidden {
        transform: translateY(-100%);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-btn {
        width: 100%;
    }

    .services h2,
    .portfolio h2,
    .values h2 {
        font-size: 1.8rem;
    }

    .hero-background {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        margin: 20% auto;
    }

    .services-grid,
    .portfolio-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu {
        width: 100%;
    }

    .services-grid,
    .portfolio-grid,
    .values-grid {
        gap: 1rem;
    }

    .service-card,
    .value-card {
        padding: 1.5rem;
    }

    .portfolio-item {
        height: 200px;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}
