/* Resetting body and html styles */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
    font-family: 'Poppins', sans-serif;
}

/* Ensuring the video background covers the entire viewport */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

/* Styling for the background video */
#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Header styling */
header {
    background-color: rgba(250, 251, 252, 0);
    color: white;
    padding: 1em 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Flexbox for header content alignment */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo styling */
.logo {
    width: 200px;
    margin-left: 1em;
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.vrsec {
    width: 640px;
    height: 426px;
}

/* Navigation styling */
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center; /* Centering the navigation links */
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
    color: #f0f0f0; /* Change color on hover */
}

/* Main content area styling */
main {
    padding: 2em;
    position: relative;
    z-index: 1;
    text-align: center; /* Centering content within main */
}

/* Individual section styling */
section {
    margin-bottom: 5em;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 6em;
    border-radius: 5px;
    transition: background-color 0.3s ease-in-out;
}

section:hover {
    background-color: rgba(255, 255, 255, 0); /* Change background color on hover */
}

/* Responsive image and video styling */
img, video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto; /* Centering images and videos */
}

#team {
    text-align: center; /* Center-align text in the section */
    padding: 50px 20px; /* Add padding around the section */
    background-color: #f9f9f9; /* Light background for contrast */
}

h2 {
    margin-bottom: 40px; /* Space below the heading */
}

/* Set the container to use flexbox */
.team-member {
    display: inline-block; /* Make members inline blocks */
    width: 40%; /* Width of each team member */
    margin: 1%; /* Space between team members */
    background-color: white; /* White background for each member */
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    overflow: hidden; /* Hide overflow to keep rounded corners */
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Position below the original position */
    transition: opacity 1s ease, transform 1s ease; /* Smooth transitions for both fade and translate */
}


/* Fade in effect */
.team-member.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset position */
}

.member-info {
    padding: 20px; /* Padding inside each member info */
}

.member-info img {
    width: 200px; /* Fixed size for images */
    height: 200px; /* Fixed height for images */
    border-radius: 9px; /* Make images circular */
    margin-bottom: 15px; /* Space below the image */
}

h3 {
    margin: 10px 0; /* Space above and below the name */
    font-size: 1.2em; /* Slightly larger font size */
}

p {
    color: #777; /* Gray color for position */
    margin-bottom: 10px; /* Space below the position */
}

.social-links {
    display: flex; /* Use flex to arrange social icons */
    justify-content: center; /* Center the icons */
}

.social-links a {
    margin: 0 10px; /* Space between icons */
}

.social-links img {
    width: 25px; /* Fixed size for social icons */
    height: 25px; /* Fixed height for social icons */
}

.social-links img:hover {
    animation: pulse 1s infinite;
    transform: scale(1.2); /* Slight zoom effect on hover */
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Footer styling */
footer {
    background-color: rgba(0, 64, 128, 0.7);
    color: white;
    text-align: center;
    padding: 1em 0;
    position: relative;
    z-index: 1;
}

/* Animation for text */
.animated-text {
    font-size: 3em;
    font-family: 'Cursive', sans-serif;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
    margin: 0;
    transition: transform 0.3s ease-in-out;
}

.animated-text:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

.line1 {
    animation: zoomIn 2s ease-in-out forwards;
}

.line2 {
    opacity: 0;
    animation: fadeIn 4s 2s ease-in-out forwards;
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Rocket animation styling */
.rocket {
    position: fixed;
    bottom: 10px;
    right: 10px;
    width: 100px;
    animation: moveRocket 10s linear infinite;
    z-index: 2; /* Ensure the rocket is above other content */
}

@keyframes moveRocket {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-100vh);
    }
    100% {
        transform: translateY(0);
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .team-member {
        width: 100%; /* Full width for smaller screens */
    }
}

#contact {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly more opaque */
    padding: 2em;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
}

#contact:hover {
    background-color: rgba(255, 255, 255, 1); /* Change background color on hover */
}

#contact h2 {
    text-align: center;
    transition: color 0.3s ease-in-out;
}

#contact:hover h2 {
    color: #4a9fc1; /* Change color on hover */
}

#contact form {
    display: flex;
    flex-direction: column;
    margin-top: 1em;
}

#contact form label {
    margin-top: 1em;
}

#contact form input, #contact form textarea {
    padding: 0.5em;
    margin-top: 0.5em;
    border: 1px solid #2f4f2f; /* Dark green */
    border-radius: 5px;
    font-size: 1em;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease-in-out;
}

#contact form input:focus, #contact form textarea:focus {
    border-color: #a8d5a8; /* Light green */
    outline: none;
}

#contact form button {
    margin-top: 1em;
    padding: 0.7em;
    background-color: #4a9fc1; /* Dark green */
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#contact form button:hover {
    background-color: #3b5f3b; /* Slightly lighter green */
    transform: scale(1.05);
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    /* Header */
    .header-content {
        flex-direction: column; /* Stack header items vertically */
        align-items: center; /* Center items */
    }

    .logo {
        width: 150px; /* Adjust logo size */
        margin-bottom: 1em; /* Space below the logo */
    }

    nav ul {
        flex-direction: column; /* Stack navigation links vertically */
    }

    nav ul li {
        margin: 0.5em 0; /* Space between links */
    }

    /* Main content area */
    main {
        padding: 1em; /* Adjust padding for smaller screens */
    }

    /* Individual section styling */
    section {
        padding: 3em; /* Reduce padding */
    }

    /* Team member cards */
    .team-member {
        width: 90%; /* Make team members wider on small screens */
        margin: 1em auto; /* Center members */
    }

    /* Contact form */
    #contact {
        padding: 1.5em; /* Reduce padding */
    }

    #contact form label {
        font-size: 0.9em; /* Adjust label font size */
    }

    #contact form input, 
    #contact form textarea {
        font-size: 0.9em; /* Adjust input font size */
    }

    #contact form button {
        font-size: 0.9em; /* Adjust button font size */
    }

    /* Footer */
    footer {
        font-size: 0.9em; /* Adjust footer font size */
    }
}



* {
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

.slider-container {
    position: relative;
    width: 95%;
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    will-change: transform;
}

.event {
    min-width: 300px; /* Adjust width as needed */
    height: 300px; /* Adjust height as needed */
    background-color: #c9daca00;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 60px;
    border-radius: 8px;
    cursor: pointer;
}

.control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.left {
    left: 10px;
}

.right {
    right: 10px;
}


/* Full-page loading screen overlay */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0d1b2a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Solar System Loader */
.solar-system {
    position: relative;
    width: 250px;
    height: 250px;
}

.sun {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at center, #ffcc33, #ff9900, #ff6600);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 30px rgba(255, 165, 0, 0.8);
}

.orbit {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.orbit1 {
    width: 120px;
    height: 120px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit1 4s linear infinite;
}

.planet1 {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 30% 30%, #8cd3ff, #00aaff);
    border-radius: 50%;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(140, 211, 255, 0.7);
}

.orbit2 {
    width: 180px;
    height: 180px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbit2 6s linear infinite;
}

.planet2 {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #f79824, #d98200);
    border-radius: 50%;
    position: absolute;
    top: -12.5px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(247, 152, 36, 0.7);
}

/* Orbit Animations */
@keyframes orbit1 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes orbit2 {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}
