
/* =========================================
   1. Reset & Variables (Modern CSS)
   ========================================= */
:root {
    /* Color Palette - Dark & Luxury Theme */
    --c-bg-body: #0f172a;       /* Deep Navy */
    --c-bg-card: #1e293b;       /* Slate 800 */
    --c-bg-header: rgba(15, 23, 42, 0.95);
    
    --c-primary: #f59e0b;       /* Gold/Amber */
    --c-primary-hover: #d97706;
    --c-secondary: #3b82f6;     /* Bright Blue */
    --c-accent: #ef4444;        /* Red */
    
    --c-text-main: #f8fafc;     /* White/Off-white */
    --c-text-muted: #94a3b8;    /* Slate 400 */
    --c-border: #334155;
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-size-base: 1rem;
    
    /* Spacing & Sizing */
    --s-container: 75rem;       /* ~1200px */
    --s-radius: 0.75rem;
    --s-radius-lg: 1.5rem;
    --s-header-height: 4.5rem;
    
    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 15px rgba(245, 158, 11, 0.3);
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* =========================================
   2. Layout & Typography
   ========================================= */
.container {
    width: 100%;
    max-width: var(--s-container);
    margin: 0 auto;
    padding: 0 1rem;
}

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--s-radius);
}

/* Headings with Clamp for fluid typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--c-text-main);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-top: 2rem;
    border-left: 4px solid var(--c-primary);
    padding-left: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--c-text-muted);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: var(--c-text-muted);
}

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   3. Header & Navigation
   ========================================= */
header {
    background: var(--c-bg-header);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--c-border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--s-header-height);
    display: flex;
    align-items: center;
}

.men1 {
    flex-shrink: 0;
}

.men1 a {
    display: block;
    width: 150px;
    height: 40px;
    background: url('/path/to/logo.png') no-repeat center/contain; /* Placeholder for logo */
    background-color: rgba(255,255,255,0.1); /* Fallback */
    border-radius: var(--s-radius);
}

/* Mobile Header Logic */
header:not(.mob) {
    display: flex; /* Show desktop by default */
}
header.mob {
    display: none; /* Hide mobile by default */
}

.menn {
    display: flex;
    gap: 1rem;
    margin-left: auto;
}

/* Navigation Buttons Style */
.men3, .men4 {
    padding: 0.5rem 1.25rem;
    border-radius: var(--s-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Login Button (Outline) */
.men3 {
    border: 2px solid var(--c-border);
    color: var(--c-text-main);
    background: transparent;
}
.men3:hover {
    border-color: var(--c-primary);
    color: var(--c-primary);
    transform: translateY(-2px);
}

/* Register Button (Solid) */
.men4 {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-hover) 100%);
    color: #000; /* Dark text for contrast on gold */
    box-shadow: var(--shadow-glow);
}
.men4:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.5);
}

/* =========================================
   4. Hero / Slider Section
   ========================================= */
.main {
    padding-top: 2rem;
}

.joyl-slide {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: linear-gradient(to bottom, #1e293b, #0f172a);
    border-radius: var(--s-radius-lg);
    overflow: hidden;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

/* Abstract placeholder for slider/hero image */
.main1 {
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2) 0%, transparent 70%);
}

.jou-abs {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* =========================================
   5. Content Area
   ========================================= */
/* Handling the flex structure from HTML */
.joy-left {
    background: var(--c-bg-card);
    padding: 2rem;
    border-radius: var(--s-radius);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    flex: 3; /* Take more space */
    min-width: 0; /* Fix flex overflow */
}

/* Wrapper handling */
div[style*="display:flex"] {
    display: flex !important;
    gap: 2rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.main-left {
    width: 100%;
}

.main-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Buttons CTA */
.btn-box {
    margin: 2rem 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #0f172a;
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
    border-radius: 50px;
    box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.4);
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px -5px rgba(245, 158, 11, 0.6);
    color: #000;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn:hover::after {
    left: 100%;
}

/* =========================================
   6. Footer
   ========================================= */
footer {
    background: #020617;
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--c-border);
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.menu-fo {
    font-size: 0.9rem;
    color: var(--c-text-muted);
}

.menu-fo a {
    color: var(--c-text-muted);
    margin: 0 0.5rem;
}

.menu-fo a:hover {
    color: var(--c-primary);
}

/* =========================================
   7. Interactive Elements & Forms (Generic)
   ========================================= */
input, select, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--c-bg-body);
    border: 1px solid var(--c-border);
    border-radius: var(--s-radius);
    color: var(--c-text-main);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--c-secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* =========================================
   8. Scroller (Back to Top)
   ========================================= */
#scroller {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: var(--c-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    opacity: 0.8;
}

#scroller:hover {
    transform: translateY(-5px);
    opacity: 1;
    background: var(--c-primary-hover);
}

.b-top-but {
    font-size: 0; /* Hide text, use icon logic or empty */
}

#scroller::before {
    content: '';
    width: 10px;
    height: 10px;
    border-top: 2px solid #000;
    border-right: 2px solid #000;
    transform: rotate(-45deg);
    margin-top: 4px;
}

/* =========================================
   9. Media Queries (Responsiveness)
   ========================================= */

/* Tablet & Mobile Breakpoints */
@media (max-width: 992px) {
    div[style*="display:flex"] {
        flex-direction: column !important;
    }
    
    .main-right {
        width: 100%;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* Header toggle */
    header:not(.mob) {
        display: none;
    }
    header.mob {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
    }
    
    .men1 a {
        width: 100px;
    }
    
    .menn {
        gap: 0.5rem;
    }
    
    .men3, .men4 {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .joyl-slide {
        min-height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .joy-left {
        padding: 1.25rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }
    
    #scroller {
        bottom: 1rem;
        right: 1rem;
    }
}
