/* ===== CSS Variables ===== */
:root {
    --color-primary: #2c5282;
    --color-primary-dark: #1a365d;
    --color-primary-light: #4299e1;
    --color-secondary: #48bb78;
    --color-accent: #ed8936;
    --color-text: #2d3748;
    --color-text-light: #718096;
    --color-bg: #ffffff;
    --color-bg-alt: #f7fafc;
    --color-bg-dark: #1a202c;
    --color-border: #e2e8f0;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

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

a:hover {
    color: var(--color-primary-light);
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
}

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

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border: 2px solid white;
}

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

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: all var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/hero-pool.jpg') center/cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 300;
    margin-bottom: 8px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: 32px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: white;
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(10px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

/* ===== Welcome Section ===== */
.welcome {
    background: var(--color-bg-alt);
}

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

.welcome-content .lead {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 16px;
}

.welcome-content > p {
    max-width: 600px;
    margin: 0 auto 48px;
    color: var(--color-text-light);
}

.welcome-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.feature {
    background: white;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    color: var(--color-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===== Gallery Section ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item.large {
    grid-column: span 2;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    opacity: 0;
    transform: translateY(10px);
    transition: all var(--transition);
}

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

.video-tour {
    text-align: center;
    margin-top: 48px;
    padding: 40px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.video-tour h3 {
    margin-bottom: 12px;
}

.video-tour p {
    margin-bottom: 20px;
    color: var(--color-text-light);
}

/* ===== Amenities Section ===== */
.amenities {
    background: var(--color-bg-alt);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.amenity-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.amenity-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.amenity-icon svg {
    width: 100%;
    height: 100%;
}

.amenity-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.amenity-card ul {
    margin-bottom: 16px;
}

.amenity-card li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-light);
}

.amenity-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.amenity-note {
    font-size: 0.875rem;
    color: var(--color-text-light);
    padding: 12px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--color-primary);
}

.amenity-note.warning {
    border-left-color: var(--color-accent);
    background: #fffaf0;
}

.wifi-info {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.reveal-btn {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition);
}

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

.wifi-details {
    margin-top: 12px;
    padding: 12px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
}

.wifi-details p {
    margin: 4px 0;
    font-family: monospace;
}

/* Resort Amenities */
.resort-amenities {
    margin-top: 48px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.resort-amenities h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.resort-amenities > p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: var(--color-text-light);
}

.resort-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.resort-feature {
    padding: 8px 16px;
    background: var(--color-bg-alt);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text);
}

/* ===== Area Section ===== */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.area-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition);
}

.area-card:hover {
    transform: translateY(-4px);
}

.area-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 24px;
}

.area-header h3 {
    color: white;
    font-size: 1.25rem;
}

.area-content {
    padding: 24px;
}

.area-content p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.area-content ul {
    margin-top: 12px;
}

.area-content li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
}

.area-content li:last-child {
    border-bottom: none;
}

.distance-list li strong {
    color: var(--color-text);
}

/* ===== Guidelines Section ===== */
.guidelines {
    background: var(--color-bg-alt);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.guideline-card {
    background: white;
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.guideline-card h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
    color: var(--color-primary);
}

.guideline-card p {
    color: var(--color-text-light);
}

.guideline-card ul {
    margin-top: 12px;
}

.guideline-card li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.guideline-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.emergency-info {
    margin-top: 48px;
    padding: 32px;
    background: white;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
}

.emergency-info h3 {
    margin-bottom: 24px;
}

.emergency-numbers {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.emergency-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.emergency-label {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.emergency-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ===== Contact Section ===== */
.contact {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    color: white;
}

.contact h2 {
    color: white;
}

.contact .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-intro {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.captcha-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.captcha-question {
    font-size: 1.125rem;
    margin-bottom: 16px;
}

#captcha-answer {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    margin-bottom: 16px;
}

.captcha-error {
    color: #fc8181;
    font-size: 0.875rem;
    margin-top: 12px;
}

.contact-details {
    margin-top: 24px;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-method:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 1.125rem;
    font-weight: 500;
    color: white;
}

.contact-value:hover {
    color: rgba(255, 255, 255, 0.8);
}

.contact-note {
    background: rgba(255, 255, 255, 0.1);
    padding: 28px;
    border-radius: var(--radius-lg);
}

.contact-note h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.contact-note li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    opacity: 0.9;
}

.contact-note li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: white;
    padding: 60px 0 24px;
}

.footer-content {
    text-align: center;
    margin-bottom: 40px;
}

.footer-message h3 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: 16px;
}

.footer-message p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.8;
    line-height: 1.8;
}

.hosts {
    margin-top: 20px;
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 1 !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.6;
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 80px 40px;
        gap: 24px;
        transition: right var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .section {
        padding: 60px 0;
    }

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

    .gallery-item.large {
        grid-column: span 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .emergency-numbers {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 16px 20px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 100px 16px 60px;
    }

    .welcome-features {
        grid-template-columns: 1fr;
    }

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

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

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