@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

@keyframes fade {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.animate-fade {
    animation: fade 8s infinite ease-in-out;
}

section {
    scroll-margin-top: 80px;
}

/* Custom underline for headings */
.heading-underline {
    position: relative;
    display: inline-block;
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #2dd4bf;
}

/* Hero text shadow for better readability */
.hero h1 span {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

/* Optional: Larger title on very big screens */
@media (min-width: 1536px) {
    #title-line-1 { font-size: 5.5rem; }
    #title-line-2 { font-size: 6.5rem; }
}

/* Make hero buttons stand out more */
.hero a {
    min-width: 240px;
}

@media (max-width: 640px) {
    .hero a {
        min-width: 280px;
        padding: 1.25rem 2rem;
        font-size: 1.125rem;
    }
}

/* Ensure hero content stays contained and button visible */
.hero {
    min-height: 100vh;
}

/* Extra strong shadow for text on bright video parts */
.hero h1 span {
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.95);
}

/* ==================== MAIN CTA BUTTON STYLE (GLOW + PULSE) ==================== */
/* Applies to all major buttons across the site */
.main-cta {
    position: relative;
    animation: pulse 4s infinite ease-in-out;
    transition: all 0.3s ease;
}

.main-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(45, 212, 191, 0.7);
    background-color: #22c7b0; /* slightly darker on hover */
}

/* Keep the hero button extra special (stronger glow) */
.hero .main-cta:hover {
    box-shadow: 0 0 50px rgba(45, 212, 191, 0.8);
}

/* Subtle breathing pulse animation */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* Stronger text shadow */
.hero h1 span {
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.95);
}

/* Prevent horizontal scroll on mobile */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Make tables responsive on mobile */
table {
    width: 100%;
    min-width: 0;
}

/* Force tables to scroll horizontally only inside their container */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Fix large background images */
.bg-cover {
    background-size: cover !important;
}

/* Ensure modals don't cause overflow */
.fixed {
    position: fixed;
}

/* Optional: Better mobile table display */
@media (max-width: 640px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tr {
        border: 1px solid #ccc;
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 0.5rem;
        background: #f9fafb;
    }
    
    td {
        border: none;
        position: relative;
        padding-left: 50% !important;
        text-align: right;
    }
    
    td:before {
        content: attr(data-label);
        position: absolute;
        left: 1rem;
        width: 45%;
        font-weight: bold;
        text-align: left;
        color: #374151;
    }
}

.heading-underline {
    position: relative;
    display: inline-block;
}

.heading-underline::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: #2dd4bf; /* ocean-500 turquoise */
    border-radius: 2px;
}