/* ===========================
   Base Styles
=========================== */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212; /* Dark background */
    color: #e0e0e0; /* Light grey text */
    line-height: 1.6;
}

body.light-mode {
    background-color: #ffffff; /* Light background */
    color: #121212; /* Dark text */
}

a {
    text-decoration: none; /* Remove underline from all links */
}

/* ===========================
   Layout Containers
=========================== */
.container {
    max-width: 700px; /* Set maximum width to 100% of the viewer's width */
    margin: 0 auto; /* Center the container */
    padding: 0 60px; /* Add horizontal padding */
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===========================
   Navigation Menu
=========================== */
nav.floating-menu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1e1e1e4a; /* Slightly lighter dark grey */;
    padding: 10px 5%;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    color: white;
    position: fixed; /* Fix the menu bar to the top */
    top: 0;
    left: 0; /* Ensure it starts at the left edge */
    z-index: 1000; /* Keep it above other elements */
    width: 90%; /* Full width */
}

body.light-mode nav.floating-menu {
    background-color: #f0f0f0; /* Light grey menu background */
    color: #121212; /* Dark text */
}

nav.floating-menu .menu-icon {
    display: none; /* Default hidden */
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it stays above the menu */
}

nav.floating-menu .menu-logo {
    height: 40px;
    margin-right: 20px;
}

nav.floating-menu .menu-items {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.floating-menu .menu-items li {
    display: inline;
    margin-right: 20px;
}

nav.floating-menu .menu-items a {
    text-decoration: none;
    color: #e0e0e0; /* Light grey text */
    font-size: 16px;
    font-weight: 500;
    display: block;
    padding: 5px 10px;
    transition: color 0.3s, background-color 0.3s;
}

body.light-mode nav.floating-menu .menu-items a {
    color: #121212; /* Dark text for links */
}

nav.floating-menu .menu-items a:hover {
    color: #ff6600; /* Orange hover effect */
    background-color: #333; /* Dark grey hover background */
    border-radius: 5px;
}

body.light-mode nav.floating-menu .menu-items a:hover {
    color: #ff6600; /* Orange hover effect */
    background-color: #e0e0e0; /* Light grey hover background */
}

nav.floating-menu .dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

body.light-mode nav.floating-menu .dark-mode-toggle {
    color: #121212; /* Dark text for light mode */
}

nav.floating-menu .dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    fill: currentColor; /* Use current text color */
    transition: transform 0.3s;
}

nav.floating-menu .dark-mode-toggle:hover svg {
    transform: scale(1.2); /* Slight zoom on hover */
}

/* ===========================
   Hero Section
=========================== */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to the left */
    justify-content: center;
    background: linear-gradient(to bottom, rgba(19, 19, 19, 0.6), rgba(0, 0, 0, 0)); /* Vertical transparency gradient */
    color: #ffffffc0;
    padding: 100px 50px; /* Add more padding for a spacious layout */
    position: relative;
    height: 100vh; /* Full viewport height */
    backdrop-filter: blur(0px); /* Default blur */
}
body.light-mode .hero-section {
    background: linear-gradient(to bottom, rgba(240, 240, 240, 0.6), rgba(255, 255, 255, 0)); /* Light mode gradient */
    color: #121212; /* Dark text */
}

.hero-content {
    max-width: 600px; /* Limit the width of the content */
    margin-left: 50px; /* Offset content for asymmetry */
}

.hero-title {
    font-size: 4rem; /* Larger title */
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px; /* Add more spacing below subtitle */
}

.hero-button {
    align-self: flex-start; /* Align button to the left */
    margin-top: 20px; /* Add spacing above the button */
    background: linear-gradient(45deg, #f7503e, #ff9524, #903385, #ffff00, #e02a66, #f64645); /* Gradient using particle colors */
    background-size: 300% 300%; /* Animate gradient */
    color: #ffffff; /* White text */
    border: 1px solid #ffffff; /* Subtle border */
    padding: 30px 60px; /* Make the button much bigger */
    margin: 100px auto; /* Center the button */
    font-size: 50px; /* Larger font size */
    font-weight: 800;
    cursor: pointer;
    border-radius: 15px; /* Larger border radius */
    transition: transform 0.3s, background-position 0.5s;
    position: relative; /* For particle positioning */
    overflow: hidden; /* Prevent particles from overflowing */
}

.hero-button:hover {
    transform: scale(1.5);
    background-position: 100% 0; /* Animate gradient on hover */
}

.hero-logo {
    position: absolute;
    top: 80px; /* Lower the logo to avoid the menu */
    right: 50px; /* Keep it aligned to the right */
    height: 25vh; /* Slightly increase the logo size */
    opacity: 0.8; /* Slight transparency for a modern look */
}

/* ===========================
   Content Sections
=========================== */
.content {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: flex-start; /* Align items to the start */
    max-width: 600px;
    margin: 200px auto; /* Add more spacing between sections */
    padding: 40px 40px;
    background-color: rgba(30, 30, 30, 0); /* Slightly translucent hazy background */
    /* border-radius: 50px; */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s; /* Add transition for smooth animation */
}

.content:hover {
    transform: scale(1.05); /* Slightly enlarge the box on hover */
    box-shadow: 0 40px 50px rgba(0, 0, 0, 0.5);
}

body.light-mode .content {
    background-color: rgba(240, 240, 240, 0.8); /* Light translucent background */
    color: #121212; /* Dark text for light mode */
}

.content:nth-child(odd) {
    margin-left: 0; /* Align odd sections to the left */
    margin-right: auto;
    text-align: left; /* Align text to the left */
}

.content:nth-child(even) {
    margin-left: auto; /* Align even sections to the right */
    margin-right: 0;
    text-align: right; /* Align text to the right */
    align-items: flex-end; /* Align flex items to the right */
}

.content h1, .content h2 {
    color: #ff6600; /* Orange headings */
}

.content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.content p {
    font-size: 1rem;
    margin-bottom: 20px;
    max-width: 600px; /* Limit text width for better readability */
}

.content ul {
    list-style: none;
    padding: 0;
}

.content ul li {
    margin: 10px 0;
}

.cta {
    text-align: center;
    margin: 20px 0;
}

.cta a {
    background: #007bff;
    color: white;
    padding: 20px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.content-icon {
    font-size: 10rem !important; /* Large size for the emoji */
    text-align: center;
    margin: 50px; /* Add more spacing around the emoji */
    transition: transform 0.3s ease, filter 0.3s ease; /* Smooth transition for spin and shine */
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.content-icon .emoji {
    font-size: inherit;
    transition: transform 0.3s ease, filter 0.3s ease;
    display: inline-block !important;
    vertical-align: middle;
    /* Ensure no font-family interferes with Twemoji */
    font-family: inherit;
}

/* Force Twemoji SVG images to display properly */
.content-icon .emoji img {
    width: 1em !important;
    height: 1em !important;
    display: inline-block !important;
    vertical-align: middle !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
    /* Ensure SVG replaces text */
    font-style: normal !important;
}

/* Hide the original emoji text when Twemoji loads */
.content-icon .emoji img + * {
    display: none !important;
}

.content-grid {
    position: relative; /* Enable positioning for child elements */
    display: flex; /* Use flexbox for layout */
    flex-direction: row; /* Default row layout */
    align-items: center; /* Center content vertically */
    gap: 20px; /* Spacing between text and icon */
    width: 100%; /* Full width */
}





/* ===========================
   Forms
=========================== */
form {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increase spacing between form elements */
    max-width: 100%; /* Use full width of container */
    margin: 30px 0; /* Vertical margin only */
    padding: 0; /* Remove padding to let container handle it */
    background: none; /* Remove form background */
    border-radius: 0; /* Remove border radius */
    box-shadow: none; /* Remove form shadow */
}

form input, form textarea {
    padding: 15px 20px; /* Increase padding for better usability */
    font-size: 16px; /* Larger font size */
    border: 2px solid rgba(255, 102, 0, 0.3); /* Orange border with transparency */
    border-radius: 8px; /* Rounded corners */
    background-color: rgba(30, 30, 30, 0.8); /* Semi-transparent dark background */
    color: #e0e0e0; /* Light grey text */
    font-family: 'Plus Jakarta Sans', sans-serif; /* Match site font */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); /* Add blur effect */
}

body.light-mode form input, 
body.light-mode form textarea {
    background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent white background */
    color: #121212; /* Dark text for light mode */
    border-color: rgba(255, 102, 0, 0.4); /* Slightly stronger orange border */
}

form input:focus, form textarea:focus {
    outline: none;
    border-color: #ff6600; /* Full orange border on focus */
    background-color: rgba(30, 30, 30, 0.95); /* Less transparent on focus */
    transform: translateY(-2px); /* Slight lift effect */
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3); /* Orange glow */
}

body.light-mode form input:focus, 
body.light-mode form textarea:focus {
    background-color: rgba(255, 255, 255, 1); /* Solid white on focus */
}

form input::placeholder,
form textarea::placeholder {
    color: rgba(224, 224, 224, 0.6); /* Semi-transparent placeholder */
}

body.light-mode form input::placeholder,
body.light-mode form textarea::placeholder {
    color: rgba(18, 18, 18, 0.6); /* Semi-transparent dark placeholder */
}

form textarea {
    resize: vertical; /* Allow vertical resizing only */
    min-height: 120px; /* Set a minimum height */
}

form button {
    padding: 18px 40px; /* Increase padding for better usability */
    font-size: 20px; /* Larger font size to match hero button style */
    font-weight: 800; /* Match hero button font weight */
    font-family: 'Plus Jakarta Sans', sans-serif; /* Match site font */
    background: linear-gradient(45deg, #f7503e, #ff9524, #903385, #ffff00, #e02a66, #f64645); /* Match hero button gradient */
    background-size: 300% 300%; /* Animate gradient like hero button */
    color: #ffffff; /* White text */
    border: 1px solid #ffffff; /* Match hero button border */
    border-radius: 15px; /* Match hero button border radius */
    cursor: pointer;
    transition: transform 0.3s, background-position 0.5s; /* Match hero button transitions */
    margin-top: 20px; /* Add top margin */
    position: relative;
    overflow: hidden; /* Prevent particles from overflowing */
    text-transform: uppercase; /* Match hero button text style */
    letter-spacing: 1px; /* Add letter spacing for better readability */
}

form button:hover {
    transform: scale(1.1); /* Scaled down version of hero button hover */
    background-position: 100% 0; /* Animate gradient on hover like hero button */
    box-shadow: 0 8px 25px rgba(247, 80, 62, 0.4); /* Colorful shadow */
}

form button:active {
    transform: scale(1.05); /* Slight scale on click */
    box-shadow: 0 4px 15px rgba(247, 80, 62, 0.3); /* Reduced shadow */
}

#contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 200px auto; /* Match content section spacing */
    padding: 40px;
    background-color: rgba(30, 30, 30, 0.8); /* Match content section background */
    border-radius: 0; /* Remove border radius to match content sections */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7); /* Match content section shadow */
    backdrop-filter: blur(20px); /* Match content section blur */
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s; /* Add hover transition */
    text-align: left; /* Align text to the left like content sections */
}

#contact-section:hover {
    transform: scale(1.05); /* Match content section hover effect */
    box-shadow: 0 40px 50px rgba(0, 0, 0, 0.5);
}

body.light-mode #contact-section {
    background-color: rgba(240, 240, 240, 0.8); /* Light translucent background */
    color: #121212; /* Dark text for light mode */
}

.contact-section .box {
    width: 100%; /* Use full width */
    max-width: none; /* Remove max-width constraint */
    margin: 0; /* Remove margin */
    padding: 0; /* Remove padding */
    background: none; /* Remove background */
    border-radius: 0; /* Remove border radius */
    box-shadow: none; /* Remove shadow */
    backdrop-filter: none; /* Remove blur */
    position: static; /* Remove relative positioning */
    text-align: left; /* Align text to the left */
}

.contact-section h2 {
    color: #ff6600; /* Orange heading to match other sections */
    font-size: 2.5rem; /* Match content section heading size */
    font-weight: 700;
    margin-bottom: 20px;
}

.contact-section p {
    font-size: 1.1rem; /* Slightly larger paragraph text */
    line-height: 1.7; /* Better line spacing */
    margin-bottom: 15px; /* Consistent spacing */
    color: #e0e0e0; /* Ensure consistent text color */
}

body.light-mode .contact-section p {
    color: #121212; /* Dark text for light mode */
}

/* ===========================
   Footer
=========================== */
footer {
    background-color: #000000bb; /* Dark grey footer */
    color: #e0e0e0; /* Light grey text */
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

body.light-mode footer {
    background-color: #f0f0f0ae; /* Light grey footer */
    color: #121212; /* Dark text */
}

footer p {
    margin: 0;
    font-size: 14px;
}

/* ===========================
   Particles
=========================== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Prevent interaction with particles */
    overflow: hidden;
    z-index: -1; /* Place behind all other content */
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3); /* Increase transparency */
    animation: floatUp 5s linear infinite;
    filter: blur(5px); /* Add blur effect */
}

@keyframes floatUp {
    from {
        transform: translateY(100vh);
        opacity: 1;
    }
    to {
        transform: translateY(-10vh);
        opacity: 0;
    }
}

/* ===========================
   Media Queries (Mobile)
=========================== */
@media (max-width: 768px) {
    /* Hide navigation menu */
    nav.floating-menu {
        display: none;
    }

    /* Hero Section */
    .hero-section {
        padding: 50px 20px; /* Reduce padding for smaller screens */
        height: auto; /* Allow content to determine height */
    }

    .hero-content {
        margin-left: 0; /* Remove left offset */
        text-align: center; /* Center-align text */
    }

    .hero-title {
        font-size: 2.5rem; /* Reduce title size */
    }

    .hero-subtitle {
        font-size: 1.2rem; /* Reduce subtitle size */
    }

    .hero-button {
        font-size: 1.2rem; /* Reduce button font size */
        padding: 15px 30px; /* Reduce button padding */
        margin: 20px auto; /* Adjust margin for better spacing */
    }

    .hero-logo {
        position: static; /* Disable absolute positioning */
        margin: 0 auto; /* Center the logo */
        top: unset; /* Remove top positioning */
        right: unset; /* Remove right positioning */
        left: unset; /* Remove left positioning */
        height: 100px; /* Increase logo size */
    }

    /* Content Sections */
    .content {
        max-width: 100%; /* Increase the width of content boxes */
        padding: 20px; /* Adjust padding for better spacing */
        margin: 20px auto; /* Center the content boxes */
    }

    .content h2 {
        font-size: 1.5rem; /* Reduce heading size */
    }

    .content p {
        font-size: 0.9rem; /* Reduce paragraph font size */
    }

    .container {
        padding: 0 20px; /* Reduce padding for smaller screens */
    }

    /* Footer */
    footer {
        font-size: 0.8rem; /* Reduce footer font size */
        padding: 10px 0; /* Reduce padding */
    }

    /* Dark Mode Toggle */
    .dark-mode-toggle {
        display: flex; /* Ensure the dark mode button is visible */
        position: fixed; /* Fix it to a specific position */
        bottom: 10px; /* Adjust position */
        right: 10px; /* Adjust position */
        padding: 5px 20px; /* Adjust padding */
        background: #333; /* Add a background for better visibility */
        color: white; /* Ensure the text/icon is visible */
        border-radius: 5px; /* Rounded corners */
        z-index: 1001; /* Ensure it stays above other elements */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Add a subtle shadow */
    }

    body.light-mode .dark-mode-toggle {
        background: #f0f0f0; /* Light background for light mode */
        color: #121212; /* Dark text for light mode */
    }

    /* Content Grid Adjustment */
    .content-grid {
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center-align content */
    }

    .content-grid .content-icon {
        display: none; /* Hide content icons on mobile */
    }
}