/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
}

/* Header - Fixed and Transparent */
header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    color: white;
    width: 100%;
    position: fixed; /* Makes the navigation bar stay on top while scrolling */
    top: 0;
    z-index: 1000; /* Ensures it stays above other content */
}
nav ul {
    display: none; /* Hide menu by default on mobile */
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

nav ul.active {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8); /* Ensure the menu background stays dark */
    position: absolute;
    top: 60px; /* Place the menu below the header */
    right: 0;
    width: 100%; /* Full width on mobile */
    padding: 20px;
    z-index: 1000;
}

/* Optional: Add transition for smooth menu toggle */
nav ul {
    transition: display 0.3s ease; /* Smooth transition for displaying the menu */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding-right: 20px;
}

/* Base Navigation Link Styles */
nav ul li a {
    text-decoration: none;
    color: #f5efef;
    font-weight: bold;
    position: relative;
    padding: 10px 0; /* No box effect */
    transition: color 0.3s ease; /* Smooth text color transition */
}

/* Hover Effect (Bottom-to-Top Line) */
nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0; /* Line starts from the bottom */
    height: 2px; /* Line thickness */
    background: orange; /* Line color */
    transform: scaleX(0); /* Initially hidden */
    transform-origin: right; /* Animation direction */
    transition: transform 0.3s ease; /* Smooth line animation */
}

nav ul li a:hover::after {
    transform: scaleX(1); /* Expand line on hover */
    transform-origin: left; /* Animation direction */
}

nav ul li a:hover {
    color: #f3ebeb; /* Optional: Darker text color on hover */
}

/* Highlighted "Events" Link */
nav ul li a.highlighted {
    background-color: orange; /* Orange box */
    color: white; /* White text */
    padding: 10px 15px; /* Add box padding */
    border-radius: 5px; /* Rounded corners */
    text-decoration: none;
}

nav ul li a.highlighted:hover::after {
    transform: none; /* Disable line animation for Events */
}
.hero {
    position: relative;
    height: 90vh;
    overflow: hidden; /* Prevent content overflow */
    background: #000; /* Fallback for black */
}

.hero p {
    position: absolute;
    top: 50%;
    left: 29%;
    transform: translate(-50%, -50%);
    font-size: 2.8rem;
    margin-top: 120px;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(237, 231, 231);  /* Light text color */
    white-space: nowrap;
    z-index: 100;
}

.hero-slides {
    display: flex;
    width: 400%; /* 4 slides: 3 originals + 1 duplicate */
    animation: seamless-cycle 12s infinite linear;
    will-change: transform; /* Optimize animation */
}

.hero-slide {
    width: 25%; /* Each slide is 1/4th of the total width */
    height: 100vh;
    background-size: cover;
    background-position: center;
    flex-shrink: 0; /* Prevent shrinking */
}

/* Keyframes for Seamless Transition */
@keyframes seamless-cycle {
    0% { transform: translateX(0); }            /* Start at Slide 1 */
    25% { transform: translateX(-25%); }       /* Move to Slide 2 */
    50% { transform: translateX(-50%); }       /* Move to Slide 3 */
    75% { transform: translateX(-75%); }       /* Move to Duplicate of Slide 1 */
    100% { transform: translateX(-75%); }      /* Stay on Duplicate */
}
.hero .logo img {
    width: 300px;
    height: 200px;
    margin-top: 50px;
}
/* Hero Section Buttons */
.hero .buttons {
    position: absolute;
    top: 80%; /* Adjusts buttons to be placed lower */
    left: 20%;
    transform: translateX(-50%); /* Centers the buttons horizontally */
    display: flex;
    justify-content: space-between;
    gap: 20px; /* Space between buttons */
    z-index: 200; /* Ensures buttons are above other content */
}

.buttons .btn {
    text-decoration: none;
    background: orange;
    color: white;
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.buttons .btn:hover {
    background: darkorange;
    transform: scale(1.1);
}

.logo img {
    height: 150px; /* Adjust logo size */
    position: absolute;
    top: 100px;
    left: 250px;
    width: 100px;
    height: auto; /* Adjust the position as needed */
    z-index: 500; /* Ensure it stays above hero section content */
}

.hero p {
    font-size: 2.8rem;
    margin-top: 90px;
    font-family: 'Times New Roman', Times, serif;
    color: rgb(237, 231, 231);
    margin-left: 10px;
    white-space: nowrap; /* Prevent the text from wrapping to the next line */
}

.buttons {
    display: flex;
    gap: 0px;
}

/* Button Styles */
.buttons .btn {
    margin-left: 150px;
    text-decoration: none;
    background: orange;
    color: white;
    padding: 10px 30px;
    font-size: 1rem;
    border-radius: 5px;
    transition: background 0.3s, transform 0.2s;
}

.buttons .btn:hover {
    background: darkorange;
    transform: scale(1.1);
}

/* About Us Section */
.about-us {
    padding: 50px 20px;
    background: rgb(213, 212, 212);
    text-align: center;
}

.about-us h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 20px;
}

.about-us p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Vision and Mission Section */
.vision-mission {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    padding: 50px;
}

.image-container {
    position: relative;
    width: 400px;
    height: 300px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0.6; /* Adjust transparency (0.0 = fully transparent, 1.0 = fully opaque) */
    filter: blur(2px); /* Apply a blur effect (adjust the px value for stronger/weaker blur) */
    transition: filter 0.3s, opacity 0.3s; /* Smooth transition for the effect */
}
.image-container img:hover {
    filter: blur(0); /* Remove blur on hover */
    opacity: 1; /* Full opacity on hover */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    color: white;
    padding: 20px;
    border-radius: 10px;
}

.overlay h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

.overlay p {
    font-size: 1rem;
    line-height: 1.5;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
}

/* Contact Section */
.contact-info {
    padding: 30px;
    background: rgb(245, 176, 92);
    color: rgb(18, 15, 15);
    text-align: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-links {
    display: flex; /* Align items horizontally */
    flex-direction: column; /* Stack each contact row vertically */
    color: white;
    max-width: 9000px;
    margin-left:550px;
    gap: 15px; /* Space between each contact row */
}

.contact-links p {
    font-size: 1.2rem;
    margin: 0; /* Remove extra margin */
    display: flex; /* Align label and content on the same line */
    align-items: center; /* Vertically center items */
    gap: 10px; /* Add space between label and value */
}

.contact-links a {
    text-decoration: none;
    color: rgb(246, 242, 242);
    transition: color 0.3s ease;
}

.contact-links a:hover {
    color: #ffcc00;
}
/* Social Media Section */
.social-media {
    position: fixed;
    top: 50%;
    right: 10px; /* Adds some spacing from the edge */
    transform: translateY(-50%);
    z-index: 1000; /* Ensures it stays above the background */
    padding: 10px 0;
}

.social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Adds spacing between icons */
}

.social-icons a {
    display: block;
    text-decoration: none;
    position: relative;
}
.social-icons a img {
    width: 55px; /* Slightly smaller size for better alignment */
    height: 55px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 50%; /* Circular icons */
    background-color: rgba(0, 0, 0, 0.1); /* Light background for contrast */
    padding: 5px;
}

.social-icons a:hover img {
    transform: scale(1.1);
    background-color: orange; /* Highlighted background on hover */
}

/* Footer Styling */
footer {
    background-color: #f8f8f8; /* Light background for footer */
    padding: 20px;
    position: relative; /* Set relative positioning for the footer */
    text-align: center;
    font-size: 14px;
    color: #333;
    border-top: 2px solid #ddd;
}

/* Codesphere image styling */
footer .codesphere {
    padding-top: 100px;
    position: absolute; /* Absolute positioning to place it at the bottom right */
    bottom: 10px; /* Adjust spacing from the bottom */
    right: 10px; /* Adjust spacing from the right */
    width: 150px; /* Set the size of the image */
    height: 150px;
}

footer .codesphere img {
    margin-top: 10px;
    margin-left: 50px;
    width: 100%; /* Ensure the image fits within the container */
    height: 100%; /* Ensure the image fits within the container */
    object-fit: contain; /* Preserve the aspect ratio of the image */
}

/* Media Queries for Mobile */
/* Mobile View Adjustments for screens smaller than 815px */
@media (max-width: 815px) {
    /* Hero Section Adjustments */
    .hero {
        height: 30vh; /* Reduce height for mobile screens */
    }
	.hero-slides{
		width:400%;
	}
	.hero-slide{
		height:30vh;
		width:25%;
	}

    .hero p {
        font-size: 15px; /* Reduce text size */
        left: 47%;  /* Center horizontally */
        transform: translateX(-50%);
        margin-top: 40px;  /* Adjust positioning */
    }
	.hero .logo img {
    width: 90px;
    height: 70px;
    margin-top: 50px;
	}
	.logo img {
    position: absolute;
    top:20px;
    left: 36%;
	}
	.hero .buttons{
		display: block;
		width: 100%;
		margin-left:145px;
		margin-top:10px;
	}
	.buttons .btn{
		margin-left:20px;
	}

    .buttons {
        left: 50%;
        transform: translateX(-50%); /* Center the buttons */
        top: 75%; /* Adjust button position */
    }

    /* Header and Navigation Menu Adjustments */
    header {
        padding: 10px 20px;
        font-size: 1rem;
		height:40px;
    }

    nav ul {
        display: none; /* Hide menu by default */
    }

    .menu-toggle {
        display: block; /* Show hamburger menu on mobile */
        cursor: pointer;
        font-size: 2rem;
        color: white;
    }

    nav ul.active {
        display: flex; /* Show menu when active */
        flex-direction: column;
        gap: 10px;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 50px; /* Adjust menu positioning */
        right: 0;
        width: 250px;
        padding: 20px;
    }

    nav ul li {
        margin-top: 10px;
    }

    /* About Section Adjustments */
    .about-us {
        padding: 30px 10px;
    }

    /* Vision and Mission Section Adjustments */
    .vision-mission {
        flex-direction: column;
        padding: 20px;
    }

    .image-container {
        width: 100%; /* Ensure image fits within screen */
        height: auto;
    }

    /* Contact Info Section Adjustments */
    .contact-info {
        padding: 20px;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
		margin-left:5px;
    }

    .contact-links p {
        font-size: 1rem;
    }

    /* Social Media Section Adjustments */
    .social-media {
    position: fixed;
    top: 50%;
    right: 10px; /* Ensures it's 10px from the right edge */
    transform: translateY(-50%); /* Vertically center the icon list */
    z-index: 1000; /* Ensures it stays above the background */
    padding: 10px 0;
    transition: right 0.3s ease; /* Optional: smooth transition on page load */
}

    .social-icons a img {
        width: 45px;
        height: 45px;
    }

}

/* For smaller screens (313px and below), further tweaks */
@media (max-width: 313px) {
    .hero p {
        font-size: 1.5rem; /* Smaller font size */
        top: 30%; /* Adjust vertical position */
    }

    .buttons .btn {
        padding: 8px 20px; /* Smaller button padding */
        font-size: 1rem;
    }

    header {
        font-size: 0.9rem; /* Smaller font for navigation */
    }

    .logo img {
        width: 80px; /* Smaller logo on very small screens */
        height: auto;
        left: 10px;  /* Adjust positioning */
    }

    .menu-toggle {
        font-size: 1.5rem; /* Slightly smaller toggle button */
    }

    nav ul.active {
        width: 100%; /* Full width for ultra-small screens */
        padding: 10px;
    }
}
