
/* =========================================
   1. Reset & Variables
   ========================================= */
:root {
    /* Colors */
    --color-bg-body: #0f1219;
    --color-bg-card: #1a1e29;
    --color-bg-dark: #090a0f;
    
    --color-primary: #ffc107;
    --color-primary-hover: #ffa000;
    --color-secondary: #e91e63;
    --color-accent: #00e5ff;
    
    --color-text-main: #e0e0e0;
    --color-text-muted: #9ca3af;
    --color-text-light: #ffffff;
    
    --color-border: #2d3748;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height-base: 1.6;

    /* Spacing & Layout */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;
    --border-radius: 0.75rem;
    --border-radius-sm: 0.5rem;

    /* Effects */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 15px rgba(255, 193, 7, 0.3);
    --transition: all 0.3s ease-in-out;
}

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

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

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

/* Images Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-sm);
}

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

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

/* =========================================
   2. Layout Utilities
   ========================================= */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Fix for the inline flex style in HTML */
div[style*="display:flex"] {
    display: flex !important;
    gap: var(--spacing-md);
    align-items: flex-start;
}

/* =========================================
   3. Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    background: linear-gradient(45deg, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: var(--spacing-md) 0;
}

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

p {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-main);
}

ul, ol {
    margin-bottom: var(--spacing-sm);
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

li::marker {
    color: var(--color-primary);
}

/* =========================================
   4. Header Styles
   ========================================= */
header {
    background-color: var(--color-bg-card);
    padding: var(--spacing-sm) 0;
    box-shadow: var(--shadow-card);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--color-border);
}

/* Desktop Header */
header:not(.mob) .men1 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

header:not(.mob) img {
    max-height: 60px;
    transition: transform 0.3s ease;
}

header:not(.mob) img:hover {
    transform: scale(1.05);
}

/* Mobile Header (Hidden by default on desktop) */
header.mob {
    display: none;
}

/* =========================================
   5. Mobile Navigation & Elements
   ========================================= */
.menn {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    justify-content: center;
    margin-top: var(--spacing-xs);
}

.men3, .men4 {
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.men3 {
    background-color: var(--color-bg-dark);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
}

.men3:hover {
    background-color: var(--color-border);
    transform: translateY(-2px);
}

.men4 {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    border: none;
}

.men4:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* =========================================
   6. Hero & Banner Section
   ========================================= */
.joyl-slide {
    position: relative;
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-card);
}

.joyl-slide img {
    width: 100% !important; /* Override inline styles */
    max-width: 100% !important;
    margin: 0 !important;
    display: block;
    transition: transform 0.5s ease;
}

.joyl-slide:hover img {
    transform: scale(1.02);
}

/* Visibility classes based on context */
.nemob { display: block; }
.mob { display: none; }

/* =========================================
   7. Main Content Area
   ========================================= */
.main {
    padding-bottom: var(--spacing-lg);
}

/* Intro Text */
.joy-left > p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Content Flex Item */
.joy-left {
    flex: 3; /* Takes up 75% space */
    min-width: 0; /* Prevents overflow */
}

/* Inner content styles */
.main-left {
    background-color: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}

/* Buttons inside content */
.btn-box {
    margin: var(--spacing-md) 0;
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(233, 30, 99, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 25px rgba(233, 30, 99, 0.5);
    color: #fff;
}

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

.btn:hover::after {
    opacity: 1;
}

/* =========================================
   8. Sidebar (.main-right)
   ========================================= */
.main-right {
    flex: 1; /* Takes up 25% space */
    background-color: var(--color-bg-card);
    padding: var(--spacing-sm);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
    min-width: 250px;
}

.main-right b {
    display: block;
    margin: 0.5rem 0;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.main-right img {
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--color-border);
    transition: border-color 0.3s;
}

.main-right img:hover {
    border-color: var(--color-primary);
}

/* =========================================
   9. Footer
   ========================================= */
footer {
    background-color: var(--color-bg-dark);
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--color-border);
    margin-top: var(--spacing-lg);
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-top img {
    opacity: 0.8;
    max-width: 150px;
}

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

/* =========================================
   10. Components & Interactive Elements
   ========================================= */

/* Back to top button */
#scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: var(--transition);
    opacity: 0.8;
}

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

.b-top-but {
    font-size: 0; /* Hide text, keep icon logic if adding later */
}
#scroller::before {
    content: '▲';
    color: white;
    font-size: 1.2rem;
}

/* Form Elements (Generic styling if forms appear) */
input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: var(--color-bg-body);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-light);
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

/* =========================================
   11. Responsive Design
   ========================================= */

/* Tablet & Mobile (< 992px) */
@media (max-width: 991px) {
    div[style*="display:flex"] {
        flex-direction: column !important;
    }
    
    .main-right {
        width: 100%;
        position: static;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
        flex-wrap: wrap;
    }
}

/* Mobile (< 768px) */
@media (max-width: 768px) {
    /* Header switching */
    header:not(.mob) {
        display: none;
    }
    
    header.mob {
        display: block;
    }

    /* Container adjustments */
    .container {
        padding: 0 1rem;
    }
    
    /* Image switching */
    .nemob { display: none !important; }
    .mob { display: block !important; width: 100%; }

    /* Flex fixes */
    .menn {
        justify-content: space-between;
    }
    
    .menn a {
        flex-grow: 1;
    }

    .main-left {
        padding: var(--spacing-sm);
    }
    
    .main-right {
        flex-direction: column;
    }

    /* Text resizing */
    h1 { font-size: 1.8rem; text-align: center; }
    h2 { font-size: 1.4rem; }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.main-left, .main-right {
    animation: fadeIn 0.6s ease-out forwards;
}
