/* 
   Chenang Watersport - Main Stylesheet
   Modern UI/UX Update
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

:root {
    /* Color Palette */
    --dark-teal: #004e64;
    --turquoise-surf: #00a5cf;
    --aquamarine: #9fffcb;
    --verdigris: #25a18e;
    --light-green: #7ae582;

    /* Semantic Colors */
    --primary: var(--turquoise-surf);
    --primary-hover: #008eb3;
    --secondary: var(--verdigris);
    --accent: var(--light-green);

    --bg-body: #f4fbfd;
    --bg-white: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.85);

    --text-main: #003545;
    /* Darker version of Dark Teal */
    --text-muted: #526f7a;
    --text-light: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--turquoise-surf) 0%, var(--dark-teal) 100%);
    --gradient-accent: linear-gradient(135deg, var(--light-green) 0%, var(--verdigris) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 78, 100, 0.3), rgba(0, 78, 100, 0.8));
    --gradient-ocean: linear-gradient(0deg, #004e64, #00a5cf, #9fffcb, #25a18e, #7ae582);

    /* UI Tokens */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-main: var(--font-body);
    --shadow-sm: 0 4px 6px -1px rgba(0, 78, 100, 0.1), 0 2px 4px -1px rgba(0, 78, 100, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 78, 100, 0.1), 0 4px 6px -2px rgba(0, 78, 100, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 78, 100, 0.1), 0 10px 10px -5px rgba(0, 78, 100, 0.04);
    --shadow-glow: 0 0 20px rgba(0, 165, 207, 0.3);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, hsla(147, 100%, 81%, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 0%, hsla(192, 100%, 41%, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
}

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

ul {
    list-style: none;
}

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

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

/* --- Utilities --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: #1a4d33;
    /* Darker green for contrast */
}

.btn-secondary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-outline {
    border-color: var(--turquoise-surf);
    color: var(--turquoise-surf);
    background: transparent;
}

.btn-outline:hover {
    background: var(--turquoise-surf);
    color: var(--text-light);
    box-shadow: var(--shadow-glow);
}

.btn-outline-white {
    border-color: #ffffff;
    color: #ffffff;
    background: transparent;
}

.btn-outline-white:hover {
    background: #ffffff;
    color: var(--dark-teal);
    box-shadow: var(--shadow-glow);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title h2 {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-padding {
    padding: 6rem 0;
}

/* --- Navbar --- */
.navbar {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--dark-teal);
    letter-spacing: -1px;
}

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

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

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--turquoise-surf);
}

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

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

.nav-links a:not(.btn):hover::after,
.nav-links a:not(.btn).active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--dark-teal);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    background: #000;
    /* Fallback color */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    margin-top: 0;
    /* Reset */
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Add a subtle overlay pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 3.5rem 4.5rem;
    max-width: 850px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons .btn {
    min-width: 180px;
    text-align: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.scroll-indicator:hover i {
    color: var(--aquamarine);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Trust Strip */
.trust-strip {
    background: var(--dark-teal);
    padding: 1.5rem 0;
}

.trust-strip .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 500;
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--aquamarine);
}

/* --- Activity Cards --- */
.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.activity-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 78, 100, 0.05);
    display: flex;
    flex-direction: column;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.activity-card img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card video {
    height: 240px;
    width: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.activity-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 32px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.card-content h3 {
    color: var(--dark-teal);
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.card-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    flex-grow: 1;
}

.price-tag {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--turquoise-surf);
    margin: 16px 0;
}

/* --- Why Choose Us (Features) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 165, 207, 0.1);
    box-shadow: var(--shadow-sm);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--aquamarine);
}

.feature-card .icon {
    font-size: 3rem;
    margin-bottom: 24px;
    display: inline-block;
    background: linear-gradient(135deg, #e0faff, #ffffff);
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    margin-bottom: 16px;
    color: var(--dark-teal);
    font-size: 1.25rem;
}

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

/* --- Footer --- */
footer {
    background-color: var(--dark-teal);
    color: var(--text-light);
    padding: 0;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background shapes for footer */
footer::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--turquoise-surf) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-left h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--aquamarine);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links ul li a:hover {
    color: var(--aquamarine);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* --- Forms --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-teal);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e8eb;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--turquoise-surf);
    box-shadow: 0 0 0 4px rgba(0, 165, 207, 0.1);
}

.form-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.form-container-full {
    max-width: 800px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* --- Helper Utilities --- */
.text-center {
    text-align: center;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-100 {
    margin-top: 100px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-2rem {
    margin-bottom: 2rem;
}

.pb-2rem {
    padding-bottom: 2rem;
}

.w-100 {
    width: 100%;
}

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

.bg-light {
    background-color: #f0f7fa;
}

/* Status Colors */
.text-green {
    color: var(--light-green);
}

.text-orange {
    color: #f59e0b;
}

.text-red {
    color: #ef4444;
}

/* Admin Styles (simplified for cohesion) */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-ocean);
}

.admin-link {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    transition: var(--transition);
}

.admin-link:hover {
    color: var(--aquamarine);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .navbar .container {
        height: 70px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-white);
        padding: 24px;
        box-shadow: var(--shadow-lg);
        text-align: center;
    }

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

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-title h2 {
        font-size: 2.25rem;
    }

    .grid-2-col {
        grid-template-columns: 1fr;
    }
}

/* --- Simple Footer --- */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    color: var(--text-light);
    width: 100%;
}

.footer-left p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-left a {
    color: var(--aquamarine);
    text-decoration: underline;
}

.footer-left a:hover {
    color: var(--light-green);
}

.footer-admin-link {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    /* Muted color to match copyright */
    transition: var(--transition);
    position: relative;
    top: -1px;
}

.footer-admin-link:hover {
    color: var(--aquamarine);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-simple {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-right {
        width: 100%;
    }

    .footer-right .btn {
        width: 100%;
    }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.login-page {
    height: auto;   /* Let it resize automatically */
    flex: 1;        /* Grow to fill all available space */

    /* Keep your existing centering */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-ocean);
}

.login-page + footer {
    margin-top: 0;
}

.dashboard-header-stack {
    display: flex;
    flex-direction: column; /* Forces items to stack vertically */
    align-items: flex-start; /* Aligns everything to the left */
    gap: 20px;               /* Adds space between the title and the buttons */
    margin-bottom: 30px;
}

.dashboard-header-stack > div {
    display: flex;
    gap: 15px;
}

/* --- Contact Page Specifics --- */
.grid-contact {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-block {
    background: var(--bg-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border-left: 4px solid var(--turquoise-surf);
    transition: var(--transition);
}

.contact-info-block:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.contact-info-block h3 {
    color: var(--dark-teal);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.map-placeholder {
    width: 100%;
    height: 250px;
    background-color: #e0e7ea;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8898aa;
    font-weight: 600;
    border: 2px dashed #cbd5e0;
}

@media (max-width: 768px) {
    .grid-contact {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Contact Page Specific Styles --- */

.contact-card-wrapper {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius-lg); /* Uses your existing radius var */
    box-shadow: var(--shadow-lg);    /* Uses your existing shadow var */
    overflow: hidden; /* Keeps the corners rounded */
}

/* Left Side: Info & Map */
.contact-sidebar {
    background: var(--gradient-ocean); /* Uses your green gradient */
    color: white;
    padding: 40px;
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-sidebar h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-sidebar p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.map-mini {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: blur(5px);
    margin-top: auto; /* Pushes map to bottom of sidebar */
}

/* Right Side: Form */
.contact-form-area {
    width: 60%;
    padding: 50px;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .contact-card-wrapper {
        flex-direction: column;
    }
    .contact-sidebar, .contact-form-area {
        width: 100%;
        padding: 30px;
    }
}
