/* CSS Custom Properties for Dynamic Theming */
:root {
    --primary-bg-color: #000000;
    --secondary-bg-color: #000000;
    --header-bg-start: #000000;
    --header-bg-end: #2C2C2C;
    --footer-bg-start: #000000;
    --footer-bg-end: #2C2C2C;
    --card-bg-color: #252525;
    --text-color: white;
    --accent-color: #F6D02C;
    --border-color: white;
}

/* Base typography */
html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f4f4f4;
    background: radial-gradient(circle, var(--primary-bg-color, rgb(0, 0, 0)), var(--secondary-bg-color, rgb(0, 0, 0)));
    color: var(--text-color, white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color, white);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, a {
    color: var(--text-color, white);
    margin: 0 0 1rem 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, var(--header-bg-start, #000000), var(--header-bg-end, #2C2C2C));
    padding: 1rem 0;
    text-align: center;
    z-index: 1000;
    box-sizing: border-box;
}

header .logo img {
    width: clamp(120px, 15vw, 180px);
    height: auto;
    max-height: 60px;
}

main {
    margin-top: clamp(100px, 15vh, 140px);
    margin-bottom: clamp(120px, 20vh, 160px);
    padding: clamp(1rem, 3vw, 2rem);
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Footer Styling */
footer {
    background: linear-gradient(to top, var(--footer-bg-start, #000000), var(--footer-bg-end, #2C2C2C));
    /*padding: clamp(0.75rem, 2vw, 1rem) clamp(0.25rem, 1vw, 0.5rem);*/
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* Footer Container */
footer div {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(0.5rem, 2vw, 1rem);
    align-items: center;
    justify-items: center;
    max-width: 100vw;
    overflow: hidden;
}

/* Footer Items */
footer div>div {
    width: 100%;
    text-align: center;
    padding: 0 clamp(0.25rem, 1vw, 0.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

footer div img {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    html {
        font-size: 15px;
    }
    
    .main-container {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .dynamic-section {
        gap: 1rem;
    }
    
    .dynamic-section-card {
        flex: 1 1 250px;
        padding: 1rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .main-container {
        padding: 1rem;
        margin: clamp(80px, 12vh, 120px) 1rem clamp(80px, 10vh, 100px) 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .dynamic-section {
        gap: 0.75rem;
    }
    
    .dynamic-section-card {
        flex: 1 1 100%;
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .main-container {
        margin-bottom: clamp(70px, 8vh, 85px) !important;
    }
    
    .dynamic-section-card {
        padding: 0.75rem;
    }
    
    .hero-image {
        margin-bottom: 1.5rem;
    }
    
    .logo-section {
        margin: 2rem 0 1.5rem;
    }
    
    .middle-section {
        margin: 1.5rem auto;
        padding: 1rem;
    }
}

/* Animation for floating images */
@keyframes moveUpDown {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-30%);
        /* Moves the image up */
    }

    100% {
        transform: translateY(-50%);
        /* Moves back to original position */
    }
}

/* Enhanced floating button styles */
.floating-btn {
    position: fixed;
    right: clamp(0.5rem, 2vw, 1rem);
    width: clamp(50px, 8vw, 70px);
    height: auto;
    filter: drop-shadow(0 0 5px var(--border-color, white));
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1001;
    border-radius: 0.5rem;
}

.floating-btn:hover {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 12px var(--accent-color, #F6D02C));
}

.floating-btn img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Card styling with dynamic colors */
.card {
    background: var(--card-bg-color, #252525);
    border: 1px solid var(--border-color, white);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Dynamic sections (top/bottom columns) */
.dynamic-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    max-width: 1200px;
}

.dynamic-section-card {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--card-bg-color, #252525);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color, white);
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.dynamic-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dynamic-section h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color, white);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.dynamic-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-color, white);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Button styling with dynamic accent color */
.btn-primary {
    background-color: var(--accent-color, #F6D02C);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-color, #F6D02C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #000;
    filter: brightness(1.1);
}

/* Main container styling */
.main-container {
    text-align: center;
    padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    margin: clamp(100px, 10vh, 140px) auto clamp(120px, 20vh, 160px) auto;
}

/* Hero image styling */
.hero-image {
    max-width: 100%;
    height: auto;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    border-radius: 0.5rem;
}

/* Logo section styling */
.logo-section {
    margin: clamp(3rem, 8vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.logo-section img {
    max-width: clamp(150px, 20vw, 250px);
    height: auto;
    max-height: 100px;
}

/* Middle section styling */
.middle-section {
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 3vw, 2rem);
    max-width: 800px;
}

.middle-section h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.middle-section p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1rem;
}