/* homepage.css */

/* CSS Variables for Theme Colors */
:root {
    /* Primary Colors */
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #ffcc00; /* Lighter Gold */
    --background-color: #0c0c0c; /* Dark Background */
    --header-bg-color: #1a1a1a; /* Slightly Lighter Dark Background */
    --button-bg-color: #FFD700; /* Gold Button */
    --button-hover-bg-color: #ffcc00; /* Lighter Gold on Hover */
    --text-color: #FFD700; /* Gold Text */
    --overlay-color: rgba(12, 12, 12, 0.7); /* Overlay for Hero Section */
    
    /* Additional Variables */
    --font-size-small: 0.9em;
    --font-size-medium: 1em;
    --font-size-large: 1.2em;
}

/* Box-sizing for All Elements */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color); /* Dark background */
    color: #fff; /* White text for general readability */
    margin: 0;
    padding: 0;
}

/* Header Styling */
header {
    background-color: var(--header-bg-color); /* Slightly lighter dark background */
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: fixed; /* Make header sticky */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header-logo-container {
    display: flex;
    align-items: center;
}

.header-logo-container .logo {
    width: 40px; /* Increased logo size */
    height: auto; /* Maintain aspect ratio */
    margin-right: 10px; /* Space between logo and text */
}

.header-logo-container .site-title {
    font-size: 1.5em; /* Adjusted for balance */
    color: var(--text-color); /* Gold color */
    margin: 0;
}

header nav {
    flex: 1; /* Allow nav to take up remaining space */
    display: flex;
    justify-content: flex-end; /* Align navigation links to the right */
    align-items: center;
}

header nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px; /* Reduced gap to fit all items */
    flex-wrap: wrap; /* Allow wrapping if necessary */
    justify-content: flex-end; /* Align items to the end */
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color); /* Gold text */
    font-weight: bold;
    transition: color 0.3s ease, background-color 0.3s ease;
    padding: 5px 8px; /* Reduced padding to save space */
    border-radius: 5px;
}

header nav ul li a:hover {
    color: #000;
    background-color: var(--secondary-color); /* Lighter gold on hover */
}

nav ul li a.active {
    color: #000;
    background-color: var(--secondary-color); /* Highlight active page */
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 75vh;
    background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;
    position: relative;
    color: var(--text-color);
    overflow: hidden;
    margin-top: 70px; /* Space for fixed header */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color); /* Overlay for readability */
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.3) 0%, transparent 70%),
                radial-gradient(circle at 80% 70%, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
    animation: subtleDust 30s linear infinite;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.2) 0%, transparent 60%);
    opacity: 0.2;
    pointer-events: none;
    z-index: 1;
    animation: subtleDust 45s linear infinite reverse;
}

@keyframes subtleDust {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-20px) rotate(360deg);
    }
}

/* Hero Content Styling */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    color: var(--text-color);
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo img {
    width: 180px; /* Further increased logo size in hero section */
    height: auto;
    margin-bottom: 20px;
    opacity: 0.95;
    animation: rotateLogo 20s linear infinite, scaleUp 1.5s ease-in-out forwards;
}

@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero-logo:hover img {
    animation-play-state: paused; /* Pause rotation on hover */
}

.hero-paragraph {
    max-width: 800px;
    margin: 20px auto;
    font-size: var(--font-size-large);
    line-height: 1.6;
    color: var(--text-color); /* Gold text */
}

.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards;
}

@keyframes fadeUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* CTA Button Styling */
.cta-button {
    padding: 12px 28px;
    background-color: var(--button-bg-color);
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 10px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    margin-top: 20px;
    display: inline-block;
}

.cta-button:hover {
    background-color: var(--button-hover-bg-color);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.7);
}

/* About Us Section */
.about {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-color); /* Gold text */
}

.about h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.about p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    font-size: 1.1em;
}

/* Our Values Section */
.values {
    background-color: var(--header-bg-color); /* Dark background */
    padding: 50px 20px;
    color: var(--text-color); /* Gold text */
}

.values h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2em;
}

.values .value-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.values .value-item {
    max-width: 250px; /* Reduced max-width for better fit */
    margin: 0 auto;
    padding: 20px;
    background-color: var(--background-color); /* Darker background */
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.values .value-item:hover {
    transform: translateY(-5px);
}

.values .value-item h4 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.values .value-item p {
    font-size: 1em;
    line-height: 1.4;
}

/* CTA Section */
.cta {
    background-color: var(--header-bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 50px 20px;
}

.cta h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.cta p {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.cta a {
    padding: 10px 25px;
    background-color: var(--button-bg-color); /* Gold button */
    color: #000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
}

.cta a:hover {
    background-color: var(--button-hover-bg-color);
    box-shadow: 0px 8px 25px rgba(255, 215, 0, 0.7);
}

/* Contact Us Section */
.contact {
    padding: 50px 20px;
    text-align: center;
    color: var(--text-color); /* Gold text */
}

.contact h2 {
    margin-bottom: 20px;
    font-size: 2em;
}

.contact p {
    margin-bottom: 10px;
    font-size: 1.1em;
}

.contact a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
}

.contact a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--header-bg-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Back to Top Button */
#backToTop {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--button-bg-color);
    color: #000;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#backToTop:hover {
    background-color: var(--button-hover-bg-color);
    transform: scale(1.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }

    header nav {
        width: 100%;
        justify-content: center;
    }

    header nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    header nav ul li a {
        padding: 5px 8px; /* Further reduced padding */
        font-size: 0.9em;
    }

    .hero-logo img {
        width: 120px; /* Adjust logo size for tablets */
    }

    .hero-paragraph {
        font-size: var(--font-size-medium);
        padding: 0 20px;
    }

    .about h2 {
        font-size: 1.8em;
    }

    .about p {
        font-size: 1em;
        padding: 0 20px;
    }

    .values .value-container {
        flex-direction: column;
        align-items: center;
    }

    .values .value-item {
        max-width: 90%;
    }

    .cta h2 {
        font-size: 1.8em;
    }

    .cta p {
        font-size: 1em;
    }

    .cta a {
        padding: 8px 20px;
        font-size: 0.9em;
    }

    /* Adjust Gold Dust Animation Speeds for Smaller Devices */
    .hero::after {
        animation: subtleDust 20s linear infinite;
    }

    .hero::before {
        animation: subtleDust 30s linear infinite reverse;
    }
}

@media (max-width: 480px) {
    .hero-logo img {
        width: 100px;
    }

    .hero-content h2 {
        font-size: 1.5em;
    }

    .hero-paragraph {
        font-size: var(--font-size-small);
        padding: 0 15px;
    }

    .values .value-item h4 {
        font-size: 1.3em;
    }

    .values .value-item p {
        font-size: 0.9em;
    }
}
