

/* General Styles */

body {
    font-family: 'Poppins', sans-serif; /* Modern font */
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* Add Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Preloader Background */
#preloader {
    position: fixed; /* Ensures it covers the whole screen */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0d1b2a, #1b263b); /* Or whatever color you prefer */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensures it's above everything */
    transition: opacity 0.5s ease-in-out; /* Smooth fade-out */
}


/* Optional: Add a subtle glowing effect */
#preloader::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 60%);
    opacity: 0.3;
}



/* Rubik's Cube Styling */
.cube {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: spinCube 2s linear infinite;
}

/* Faces of the Cube */
.face {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border: 3px solid black;
}

/* Assign Colors to Each Face */
.front  { transform: translateZ(30px); background: red; }
.back   { transform: rotateY(180deg) translateZ(30px); background: orange; }
.right  { transform: rotateY(90deg) translateZ(30px); background: blue; }
.left   { transform: rotateY(-90deg) translateZ(30px); background: green; }
.top    { transform: rotateX(90deg) translateZ(30px); background: white; }
.bottom { transform: rotateX(-90deg) translateZ(30px); background: yellow; }

/* Cube Rotation Animation */
@keyframes spinCube {
    0%   { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}


/* Navbar Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    background: transparent; /* Start with no background */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}


header.scrolled nav ul li a {
    color: #333; /* Dark text for contrast */
}

header.scrolled nav ul li a:hover {
    color: #ff6347; /* Orange on hover */
}





header.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* Navbar Links */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    padding-right: 20px;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #333; /* White text for contrast */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ff6347; /* Orange on hover */
}

/* Hero Section with Custom Cubing Colors */
.hero {
    height: 100vh;
    background: linear-gradient(
        135deg,
        #ff4500 25%, /* Bright Red (GAN 15 Red) */
        #ffffff 25%, /* White */
        #ffffff 50%, /* White */
        #ffcc00 50%, /* Yellow (WRM V9 Yellow) */
        #ffcc00 75%, /* Yellow */
        #0077be 75%, /* Blue (WRM V9 Blue) */
        #0077be 100% /* Blue */
    );
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #333; /* Dark text for contrast */
    position: relative;
    overflow: hidden;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.logo img {
    height: 50px; /* Adjust the size as needed */
    width: 56px;  /* Keeps aspect ratio */
    display: block;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
}
.navbar-logo {
    max-width:60px;  /* Adjust as needed */
    height: 55px; /* Keeps aspect ratio */
    margin-top: -35px; /* Moves the logo up */
}


.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8); /* White shadow for contrast */
    font-weight: 700;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8); /* White shadow for contrast */
    font-weight: 300;
}

.cta-button {
    padding: 15px 30px;
    background-color: #ff8c42; /* Lighter Orange */
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    background-color: #ff6347; /* Slightly darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Other Resources Page Styles */
.resources {
    max-width: 900px;
    margin: 80px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Page Title */
.resources h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

/* Category Sections */
.resource-category {
    margin-bottom: 40px;
    padding: 20px;
    background: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Category Headings */
.resource-category h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ff6347;
    border-bottom: 3px solid #ff6347;
    display: inline-block;
    padding-bottom: 5px;
}

/* Resource List */
.resource-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-category li {
    font-size: 1.2rem;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

/* Links */
.resource-category a {
    text-decoration: none;
    font-weight: 500;
    color: #0077be;
    transition: color 0.3s ease;
}

.resource-category a:hover {
    color: #ff4500;
}

/* Icon for List Items */
.resource-category li::before {
    content: "🔗";
    margin-right: 10px;
    font-size: 1.2rem;
    color: #ff6347;
}


/* Introduction Section */
.intro {
    padding: 80px 20px;
    text-align: center;
    background-color: #fff;
}

.intro h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.intro p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #555;
    font-weight: 300;
}

/* Featured Content Section */
.featured {
    padding: 80px 20px;
    background-color: #f4f4f4;
    text-align: center;
}

.featured h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #333;
    font-weight: 600;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.card p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #555;
    font-weight: 300;
}

.card-button {
    padding: 10px 20px;
    background-color: #ff6347; /* Orange (Rubik's Cube color) */
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.card-button:hover {
    background-color: #ff4500; /* Darker orange on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
}

/* Contact Form Styles */
.contact {
    padding: 80px 20px;
    background-color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.contact-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contact-form .form-group textarea {
    resize: vertical;
    height: 150px;
}

.contact-form button {
    padding: 10px 20px;
    background-color: #ff6347; /* Orange (Rubik's Cube color) */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #ff4500; /* Darker orange on hover */
}

/* Footer Styles */
footer {
    background-color: #333; /* Dark background for the footer */
    color: #fff;
    padding: 40px 20px 20px;
    font-family: 'Poppins', sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ff6347; /* Orange accent color */
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff6347; /* Orange on hover */
}

/* Social Media Links */
.social-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-links .fab {
    font-size: 1.2rem;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: #ff6347; /* Orange (Rubik's Cube color) */
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #ff4500; /* Darker orange on hover */
}

/* Footer Bottom (Copyright) */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    opacity: 0.8;
}