/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}




body {
    font-family: "Arial", "Helvetica", sans-serif;
    background: linear-gradient(-45deg, #2c3e50, #3f4e65, #355C7D, #5D8AA8, #2c3e50);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center everything */
    align-items: center;
    padding: 20px; /* Allow some spacing for content */
    padding-bottom: 0px;
    box-sizing: border-box; /* Ensure padding doesn't affect layout */
    overflow-y: auto; /* Allow scrolling if content overflows */
}


/* Gradient Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ✨ Floating Glassmorphism Card */
.container {
    max-width: 900px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease-in-out;
    margin-bottom: 10px; /* ✅ Ensures extra space for the footer */
}

.container:hover {
    transform: scale(1.02);
}

/* ✨ Welcome Message */
.welcome-message {
    font-size: 1.2rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    line-height: 1.6;
    text-align: center;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}

.welcome-message h2 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #6c63ff; /* Matches your design */
    margin-bottom: 10px;
}

.welcome-message strong {
    color: #ff3b3b; /* Highlights important words */
}

/* 🔹 Welcome Message - Smooth Entry Animation */
.welcome-message {
    animation: fadeIn 1.2s ease-in-out;
}


/* ✨ Stylish Headings */
h1 {
    font-size: 2.8rem;
    color: #ff3b3b;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

h2 {
    font-size: 1.8rem;
    color: #6c63ff;
    margin-bottom: 15px;
}

/* ✨ Elegant Sections */
.section {
    padding: 20px;
    border-left: 5px solid #6c63ff;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    margin-top: 20px;
    text-align: left; /* ✅ Ensures content is left-aligned */
}

/* Keep headers centered */
.section h2 {
    text-align: center; /* ✅ Keeps the section headers centered */
}


/* ✨ Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ✨ Input & Textarea Styling (DOUBLE SIZE) */
label {
    font-weight: 600;
    color: #fff;
    margin-top: 15px; /* Adjust this value as needed */
}

textarea {
    width: 100%;
    min-height: 180px; /* Increased height */
    padding: 12px;
    font-size: 1.2rem; /* Bigger text */
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s;
    background: rgba(255, 255, 255, 0.6);
    color: #222;
}

textarea:focus {
    border-color: #6c63ff;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
}

#cover_letter {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    border: 2px solid #6c63ff;
    border-radius: 8px;
    min-height: 250px;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    resize: vertical;
}


/* 🔹 Buttons - Enhanced Hover & Glow */
button {
    padding: 14px 22px;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #ff6b6b, #ff8e53);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0px 5px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

/* 🔹 Button Hover Effect */
button:hover {
    background: linear-gradient(135deg, #ff8e53, #ff6b6b);
    transform: scale(1.07);
    box-shadow: 0px 8px 20px rgba(255, 107, 107, 0.5);
}


/* ✨ Reset Link */
.reset-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    font-size: 1rem;
    color: #ff3b3b;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.reset-link:hover {
    color: #b30000;
}

/* ✨ Alerts */
.alert {
    background: #ffebeb;
    color: #ff3b3b;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

/* ✨ Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 20px;
    }

    h1 {
        font-size: 2.2rem;
    }

    textarea {
        min-height: 200px; /* Adjusted for mobile */
    }
}

/* 🔹 Top Navigation Menu */
.top-menu {
    width: 100%;
    background: #333333; /* Opaque Glass White */
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* 🔹 Logo Styling */
.logo {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
}

/* 🔹 Tagline Styling (Navbar) */
.tagline {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    margin-left: 15px;
    opacity: 0.8;
    display: inline-block;
}


/* 🔹 Menu Links */
.menu-right a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease-in-out;
}

.menu-right a:hover {
    color: #ff3b3b;
}

/* 🔹 Adjust the main container to avoid overlap */
.container {
    margin-top: 80px;
}

/* 🔹 Floating Info Boxes - Enhanced Design */
.info-box {
    position: relative;
    width: 300px;
    background: rgba(255, 255, 255, 0.85); /* Increased opacity for readability */
    border-radius: 15px;
    backdrop-filter: blur(15px);
    padding: 20px;
    text-align: center;
    color: #111; /* Slightly stronger contrast */
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15), 0px 0px 10px rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 1;
}



/* 🔹 Hover Effect - Subtle Floating */
.info-box:hover {
    transform: translateY(-5px) scale(1.07);
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2), 0px 0px 15px rgba(255, 255, 255, 0.3);
}

/* 🔹 Animation for Smooth Appearance */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


/* 🔹 Responsive Adjustments */
@media (max-width: 1200px) {
    #box1, #box2 { top: 90px; }
    #box3, #box4 { bottom: 100px; }
}

@media (max-width: 1024px) {
    #box1, #box2 { top: 70px; }
    #box3, #box4 { bottom: 80px; }
}

@media (max-width: 768px) {
    .info-box {
        position: static;
        width: 100%;
        margin: 15px 0;
        opacity: 1;
        transform: translateY(0);
    }
}


.small-welcome {
    text-align: center;
    font-size: 1.2rem; /* Match the font size of info box headers */
    font-weight: bold; /* Make it stand out like the others */
    color: #444;
    padding: 12px;
    margin-bottom: 5px;
    margin-top: -15px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}



/* 🔹 Contact Page Styling */
.contact-box {
    max-width: 600px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    margin: 50px auto;
}

.contact-box h2 {
    font-size: 1.8rem;
    color: #6c63ff;
    margin-bottom: 15px;
}

.contact-box p {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 10px;
}

.contact-details p a {
    text-decoration: none;
    color: #ff3b3b;
    font-weight: bold;
}

.contact-details p a:hover {
    text-decoration: underline;
}

/* 🔹 Social Links */
.social-links {
    margin-top: 15px;
}

.social-btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.linkedin {
    background: #0077B5;
    color: #fff;
}

.linkedin:hover {
    background: #005582;
}


.about-box {
    max-width: 900px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.15);
    text-align: left;
    line-height: 1.6; /* ✅ Adds spacing between lines */
}

.about-box h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: left;
    color: #ff3b3b; /* ✅ This makes it match the other headers */
}

.about-box h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff3b3b; /* ✅ A slight contrast to differentiate sections */
    margin-top: 20px;
    margin-bottom: 10px;
}

.about-box p {
    font-size: 1.1rem;  /* ✅ Slightly bigger for better readability */
    line-height: 1.6;  /* ✅ Improves text flow */
    color: #333;  /* ✅ A soft black for better contrast */
    margin-bottom: 12px; /* ✅ Adds space between paragraphs */
}

/* 🔹 Sticky Footer - Always Visible */
.footer {
    width: 100%;
    position: relative; /* ✅ Allows natural scrolling */
    margin-top: 0px; /* ✅ Adds space between content and footer */
    background: #000;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
}


.coming-soon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    text-align: center;
    margin-top: 50px;
}

.info-container {
    position: absolute;  /* Change from fixed to absolute to allow proper stacking */
    left: 20px;
    top: 150px;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensures they align to the left */
    width: 300px; /* Keep fixed width */
    gap: 20px; /* Ensure spacing between boxes */
    max-height: 80vh; /* Ensure it doesn’t force unnecessary scroll */
    overflow-y: visible; /* Change from auto to visible to avoid a scrollbar */
}

.menu-center a {
  text-decoration: none; /* Remove link underline */
}

.menu-center a img {
  vertical-align: middle; /* Align images nicely */
  border: none;           /* Remove any default border */
  text-decoration: none;  /* Ensure no underline on images */
}

.cool-sidebar {
    position: fixed;
    top: 120px; /* Adjust so it doesn't overlap your nav */
    right: 20px;
    width: 250px;
    background: rgba(255, 255, 255, 0.2); /* Glass effect */
    backdrop-filter: blur(15px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInRight 0.8s ease forwards;
    transform: translateX(50px); /* Start from the right */
    opacity: 0;                  /* Start invisible */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    z-index: 9999; /* Ensure it's above other elements */
}

/* Entrance animation */
@keyframes fadeInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.cool-sidebar:hover {
    transform: scale(1.03);
    box-shadow: 0px 12px 40px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    text-align: center;
    margin-bottom: 10px;
}

.sidebar-header h2 {
    font-size: 1.2rem;
    color: #ff3b3b; /* Or your accent color */
    margin: 0;
}

.portal-list {
    max-height: 60vh; /* So it doesn't fill the entire screen */
    overflow-y: auto; /* Scroll if the list is long */
}

.portal-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.portal-list li {
    margin: 8px 0;
}

.portal-list a {
    color: #222;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.portal-list a:hover {
    color: #ff6b6b; /* Slightly lighter than #ff3b3b */
}

/* Mobile Layout for screens smaller than 768px */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 16px;
    }

    /* Fix the menu */
   .top-menu {
    flex-direction: column;
    align-items: center;
    padding: 10px;
    position: relative; /* Remove fixed positioning */
    box-shadow: none;
}


    .menu-right {
        display: flex;
        flex-direction: column; /* Stack menu links */
        align-items: center;
    }

    .menu-right a {
        margin: 5px 0; /* Add spacing between links */
    }

    /* Adjust container */
    .container {
        width: 95%; /* Make it take almost full width */
        padding: 20px;
    }

    /* Fix floating info boxes */
    .info-container {
        position: static; /* Remove fixed positioning */
        width: 100%; /* Make them take full width */
    }

    .info-box {
        width: 100%; /* Make boxes full width */
        margin-bottom: 10px;
    }

    /* Fix sidebar */
    .cool-sidebar {
        position: static; /* Remove fixed positioning */
        width: 100%;
        margin-top: 20px;
    }
}

.color-toggle {
    cursor: pointer;
    font-size: 1.2rem; /* Adjust size if needed */
    margin-left: 10px; /* Space between text and emoji */
    transition: transform 0.2s ease-in-out;
}

.color-toggle:hover {
    transform: scale(1.2); /* Slight zoom on hover */
}

/* Shrink PDF Box Styling */
.info-box input[type="file"] {
    display: block;
    margin: 2px auto 2px auto; /* Reduced spacing */
    padding: 3px 6px;
}



.info-box button[type="submit"] {
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 6px;
    margin-top: 2px; /* Reduced top margin */
}

.pdf-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px; /* 👈 Controls spacing between input and button */
}

.pdf-form-wrapper input[type="file"] {
    margin: 0; /* Remove default spacing */
    padding: 4px 8px;
}

.pdf-form-wrapper button[type="submit"] {
    margin: 0; /* Avoid extra top spacing */
}

/* 🔹 About Page Two-Column Layout */
.about-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 60px;
    flex-wrap: wrap; /* Responsive fallback */
}

.about-sidebar {
    flex: 0 0 220px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.15);
    font-weight: bold;
    color: #222;
    text-align: left;
}

.about-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-menu li {
    padding: 12px;
    cursor: pointer;
    transition: background 0.3s;
    border-radius: 8px;
}

.about-menu li:hover,
.about-menu li.active {
    background: #ff6b6b;
    color: #fff;
}

.about-content {
    flex: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0px 6px 25px rgba(0, 0, 0, 0.2);
}

.about-section {
    display: none;
}

.about-section.active {
    display: block;
}


