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

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

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

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-lg) 0;
}

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

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Glassmorphism Card */
.glass-card {
    background: var(--color-bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-glass);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Enhanced transition */
}

/* Hover Animation class */
.hover-animate:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Rotated Card with Animation */
.rotate-card {
    transform: rotate(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rotate-card:hover {
    transform: rotate(-2deg) translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

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

/* Lightbox / Slideshow Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    background: transparent;
    border: none;
    z-index: 2002;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-accent);
    text-decoration: none;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: transparent;
    border: none;
    z-index: 2001;
}

.lightbox-prev {
    left: 10px;
    border-radius: 3px 0 0 3px;
}

.lightbox-next {
    right: 10px;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
}

.lightbox-caption {
    margin-top: 1rem;
    color: #ccc;
    font-size: 1.2rem;
    text-align: center;
}


/* FAQ Accordion Styles */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-container.compact {
    gap: 0.5rem;
}

.faq-container.compact .faq-item summary {
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
}

.faq-item {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

/* Custom triangle/icon for summary */
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-content {
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.faq-content ul {
    margin-left: 1rem;
}

/* Hero Slideshow */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

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

/* Responsive Background Images */
.hero-bg-1 {
    background-image: url('../assets/bg-main.webp');
}

.hero-bg-2 {
    background-image: url('../assets/hero/hero-1.webp');
}

.hero-bg-3 {
    background-image: url('../assets/hero/hero-2.webp');
}

@media (max-width: 768px) {
    .hero-bg-1 {
        background-image: url('../assets/bg-main-small.webp');
    }

    .hero-bg-2 {
        background-image: url('../assets/hero/hero-1-small.webp');
    }

    .hero-bg-3 {
        background-image: url('../assets/hero/hero-2-small.webp');
    }
}

/* Ensure container sits above slideshow */
header .container {
    position: relative;
    z-index: 2;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

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

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

.about-images {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr);
}

.about-img-main {
    grid-column: 1 / -1;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.about-img-sub {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}



.faq-item {
    padding: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    list-style: none;
    /* Remove default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

/* Custom triangle/icon for summary */
.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-content {
    padding: 1rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--color-text-muted);
    line-height: 1.8;
}

.faq-content ul {
    margin-left: 1rem;
}

/* =========================================
   MOBILE RESPONSIVENESS
   ========================================= */

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    z-index: 1002;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
    opacity: 0;
}

.mobile-nav-overlay.active {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-overlay a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.mobile-nav-overlay .btn-primary {
    margin-top: 1rem;
    width: 80%;
    text-align: center;
    color: #f0f0f0 !important;
}

/* Close Icon State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


/* Media Queries */
@media (max-width: 768px) {

    /* Navigation Adjustments */
    .nav-links,
    nav .btn-primary {
        display: none !important;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav.glass-card {
        padding: 0.8rem 1.5rem !important;
    }

    /* Hero Text */
    h1 {
        font-size: 2.5rem !important;
    }

    /* Section Spacing */
    .section {
        padding: 3rem 0;
    }

    /* Card Padding */
    .glass-card {
        padding: 1.5rem !important;
    }

    /* Grid Adjustments */
    .grid-cols-1 {
        grid-template-columns: 1fr;
    }

    /* About Section Mobile Order */
    .about-grid {
        display: flex;
        flex-direction: column-reverse;
    }

    .about-grid img {
        margin-bottom: 0;
    }

    /* Footer */
    .grid.md\:grid-cols-3 {
        gap: 2.5rem;
        text-align: center;
    }

    .grid.md\:grid-cols-3 div {
        align-items: center;
    }

    .grid.md\:grid-cols-3 a {
        display: block;
        margin: 0 auto;
    }

    /* Hero Buttons Mobile */
    header .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: auto;
        min-width: 140px;
    }
}

/* FAQ Linked Answer Styles */
.faq-content a {
    color: #0066cc;
    /* Standard web blue for obvious links */
    text-decoration: underline;
    font-weight: 600;
    text-underline-offset: 2px;
}

.faq-content a:hover {
    color: #004499;
    /* Darker blue on hover */
    text-decoration-thickness: 2px;
}

/* Custom Checkbox Styles */
.human-verify {
    padding: 0.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    height: 24px;
    width: 24px;
    background-color: #eee;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #ccc;
}

.checkbox-container:hover input~.checkmark {
    background-color: #ddd;
}

.checkbox-container input:checked~.checkmark {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 8px;
    top: 4px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* =========================================
   MODAL STYLES
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    background-color: white;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--color-primary);
}