/* ========================================
   TRAVIS 3D — Custom Stylesheet
   Minimalist Professional Design
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-bg: #0a0a0a;
    --color-surface: #ffffff;
    --color-accent: #00bbf9;
    --color-accent-hover: #009dd4;
    --color-gold: #fee43e;
    --color-text: #1a1a1a;
    --color-text-light: #555;
    --color-text-muted: #888;
    --color-border: #e0e0e0;
    --font-serif: "DM Serif Text", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --max-width: 1200px;
    --nav-height: 4rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

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

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

a:hover {
    color: var(--color-accent-hover);
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.25rem;
}

p {
    max-width: 65ch;
}

/* --- Navigation --- */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-gold);
    height: var(--nav-height);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 2.5rem;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    font-family: var(--font-serif);
    font-size: 0.95rem;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle:hover {
    opacity: 0.8;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(11px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-11px);
}

/* --- Page Container --- */
.page {
    background: var(--color-surface);
    max-width: var(--max-width);
    margin: 0 auto;
    min-height: 100vh;
}

.page-content {
    padding: 0 3rem 4rem;
}

/* --- Page Header --- */
.page-header {
    text-align: center;
    padding: calc(var(--nav-height) + 3rem) 2rem 3rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 4rem;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin: 0 auto;
}

/* --- Hero Section (index only) --- */
.hero {
    position: relative;
    margin-top: var(--nav-height);
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center; /* center all children */
    text-align: center; /* center text within headings/paragraphs */
    padding: 3rem;
    color: #fff;
}

/* center the button as well (redundant but explicit) */
.hero-overlay .btn {
    align-self: center;
}

.hero-overlay h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-overlay p {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    max-width: 50ch;
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    padding: 1.25rem 0;
    background: var(--color-surface);
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--color-text-muted);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero-dot.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

/* --- Feature Rows --- */
.features {
    padding: 0 3rem 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--color-border);
}

.feature-row:last-child {
    border-bottom: none;
}

.feature-row.reverse .feature-text {
    order: 2;
}

.feature-row.reverse .feature-media {
    order: 1;
}

.feature-text h2 {
    margin-bottom: 1rem;
}

.feature-text p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-media {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.feature-media img {
    width: 100%;
    transition: transform var(--transition);
}

.feature-media:hover img {
    transform: scale(1.02);
}

.feature-caption {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 187, 249, 0.3);
}

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

.btn-outline:hover {
    background: var(--color-accent);
    color: #fff;
}

/* --- About Page Content --- */
.page-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.about-section {
    margin-bottom: 3.5rem;
}

.about-section h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-family: "DM Serif Text", Georgia, serif;
    font-weight: 400;
}

.about-section p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.service-list,
.value-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
}

.service-list li,
.value-list li {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 1rem;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.service-list li:before,
.value-list li:before {
    content: "•";
    color: #00bbf9;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    line-height: 1.5;
}

.cta-section {
    background: linear-gradient(135deg, rgba(0, 187, 249, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
    padding: 2.5rem;
    border-radius: 8px;
    border-left: 4px solid #00bbf9;
    margin-bottom: 2rem;
}

.cta-section h2 {
    margin-top: 0;
    color: #1a1a1a;
    font-family: "DM Serif Text", Georgia, serif;
    font-weight: 400;
}

.cta-section p {
    color: #555;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.cta-section p:last-child {
    margin-bottom: 0;
}

.cta-section a {
    color: #00bbf9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-section a:hover {
    color: #009dd4;
    text-decoration: underline;
}

/* --- Gallery Grid --- */
.gallery-section {
    margin-bottom: 3rem;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform var(--transition);
}

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

/* --- Lightbox --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.1);
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2.5rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.footer-contact p {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: #fff;;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.footer-links a {
    color: #00bbf9;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
}

.footer-link-btn {
    padding: 0.65rem 1.25rem !important;
    border: 2px solid #00bbf9;
    border-radius: 6px;
    background-color: transparent;
    transition: all 0.3s ease !important;
}

.footer-link-btn:hover {
    background-color: #00bbf9;
    color: #0a0a0a !important;
}

.footer-links a:hover {
    color: #fee440;
    text-decoration: underline;
}

.site-footer a {
    color: #fff;
    font-weight: 500;
}

.site-footer a:hover {
    color: var(--color-accent);
}

/* --- Divider --- */
.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 3rem 0;
    }

    .feature-row.reverse .feature-text,
    .feature-row.reverse .feature-media {
        order: unset;
    }

    .features {
        padding: 0 2rem 3rem;
    }

    .page-content {
        padding: 0 2rem 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-overlay {
        padding: 2rem;
    }
}

@media (max-width: 700px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1rem 0;
        border-bottom: 2px solid var(--color-gold);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 2rem;
    }

    .nav-toggle {
        display: block;
    }

    .hero-slider {
        aspect-ratio: 4 / 3;
    }

    .site-footer {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .features,
    .page-content {
        padding: 0 1.25rem 2rem;
    }

    .nav-container {
        padding: 0 1.25rem;
    }

    .site-footer {
        padding: 1.5rem 1.25rem;
    }

    .footer-links {
        gap: 1rem;
        flex-wrap: wrap;
    }

    .about-section h2 {
        font-size: 1.4rem;
    }

    .cta-section {
        padding: 1.5rem;
    }
}