@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    --white: #ffffff;
    --ocean-blue: #0ea5e9;
    --marine-blue: #0369a1;
    --sand-beige: #f8f5ef;
    --soft-gray: #e5e7eb;
    --dark-text: #0f172a;
    --sec-text: #64748b;
    
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(3, 105, 161, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--sand-beige);
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Global Background - Always Visible */
.global-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/photo-1540946485063-a40da27545f8.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

/* Maximum 20% overlay */
.global-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.15);
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    color: var(--marine-blue);
    font-weight: 800;
    margin-bottom: 1rem;
}

p {
    color: var(--sec-text);
    font-weight: 500;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--marine-blue);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--ocean-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--ocean-blue);
    transition: width 0.3s ease;
}

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

.btn-primary {
    background: var(--ocean-blue);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--marine-blue);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--marine-blue);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--marine-blue);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--marine-blue);
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 3rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--marine-blue);
    text-shadow: 0 2px 10px rgba(255,255,255,0.8);
}

.hero p {
    font-size: 1.2rem;
    color: var(--dark-text);
    margin-bottom: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 5px rgba(255,255,255,0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    padding: 2rem;
    text-align: center;
    transition: transform 0.4s ease;
}

.category-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.category-card ul {
    text-align: right;
    color: var(--sec-text);
    font-weight: 500;
}

.category-card ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-right: 1.5rem;
}

.category-card ul li::before {
    content: '•';
    color: var(--ocean-blue);
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}

/* Boat Showcase Cards */
.boat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.boat-card {
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.boat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(3, 105, 161, 0.15);
    background: rgba(255, 255, 255, 0.9);
}

.boat-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.boat-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.boat-info h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.boat-desc {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.boat-specs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--marine-blue);
    font-weight: 700;
}

.boat-info .btn-primary {
    width: 100%;
    text-align: center;
}

/* Features List */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.feature-item {
    padding: 1rem 2rem;
    font-weight: 700;
    color: var(--marine-blue);
}

/* Forms */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--marine-blue);
}

.form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 1rem;
    color: var(--dark-text);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--ocean-blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Page Headers */
.page-header {
    padding: 10rem 2rem 4rem;
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
}

/* Content Pages (Terms, Privacy, About) */
.content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem;
}

.content-wrapper h2 {
    margin-top: 2rem;
    font-size: 1.8rem;
}

.content-wrapper p {
    margin-bottom: 1.5rem;
}

.content-wrapper ul {
    margin-bottom: 1.5rem;
    padding-right: 2rem;
    list-style-type: disc;
    color: var(--sec-text);
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--marine-blue);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.footer-links a {
    font-weight: 700;
    color: var(--dark-text);
}

.footer-links a:hover {
    color: var(--ocean-blue);
}

.copyright {
    color: var(--sec-text);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    width: 100%;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-buttons { flex-direction: column; }
    .page-header h1 { font-size: 2.5rem; }
    .content-wrapper { padding: 2rem; }
}