@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --primary-red: #ff0000;
    --dark-gray: #333333;
    --medium-gray: #555555;
    --light-gray: #cccccc;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

html, body {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 100px;
    padding: 50px 10%;
}

/* Global Styles */
::selection {
    color: var(--primary-white);
    background: var(--primary-red);
}

img {
    max-width: 100%;
    height: auto;
}

/* Navigation Bar */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0; /* Changed from right to left for consistency */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-black);
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
    padding: 15px 10%;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.logo img {
    width: 100px;
    filter: drop-shadow(0px 0px 5px rgba(255, 0, 0, 0.5));
}

.navbar {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-grow: 1;
    justify-content: center;
}

.navbar a {
    font-size: 1rem;
    padding: 11px 20px;
    color: var(--primary-white);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-red);
}

/* Login Button Style */
.btn-login {
    background-color: var(--primary-red);
    color: var(--primary-white);
    padding: 10px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s, height 0.3s, top 0.3s, left 0.3s;
    border-radius: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
}

.btn-login:hover {
    background-color: #cc0000;
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.4);
    transform: translateY(-2px);
}

.btn-login:hover::before {
    width: 400%;
    height: 400%;
    top: -50%;
    left: -50%;
}

.btn-login span {
    position: relative;
    z-index: 1;
}

#menu-icon {
    font-size: 24px;
    color: var(--primary-white);
    cursor: pointer;
    z-index: 1001;
    display: none;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .navbar {
        display: none;
        width: 100%;
        background-color: var(--primary-black);
        position: fixed;
        top: 0;
        left: 0;
        text-align: center;
        height: 100vh;
        padding: 80px 0 20px; /* Added top padding to prevent overlap with header */
        box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3);
        z-index: 999;
    }

    .navbar.active {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #menu-icon {
        display: block;
    }

    .navbar a {
        display: block;
        padding: 15px 0;
        color: var(--primary-white);
        font-size: 1.2rem;
        font-weight: 600;
    }
}

/* Register Section */
#register {
    background-color: var(--primary-black);
    color: var(--primary-white);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Changed from fixed height to min-height for better responsiveness */
    padding: 100px 20px; /* Increased padding to account for fixed header */
}

/* Register Container */
.register-container {
    width: 100%;
    max-width: 600px;
    background-color: var(--dark-gray);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(255, 0, 0, 0.4);
    text-align: center;
}

/* Titles */
.register-box h2 {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.register-box p {
    font-size: 1rem;
    color: var(--light-gray);
    margin-bottom: 20px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Form Fields */
.input-group {
    text-align: left;
    margin-bottom: 15px; /* Added margin bottom for better spacing */
}

.input-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--primary-white);
    margin-bottom: 5px;
}

.input-group input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid var(--medium-gray);
    border-radius: 5px;
    background-color: #2b2b2b;
    color: var(--primary-white);
    outline: none;
    transition: border-color 0.3s ease; /* Added transition for input focus */
}

.input-group input:focus {
    border-color: var(--primary-red); /* Added focus state */
}

.input-group input::placeholder {
    color: var(--light-gray);
}

/* File Input */
.input-group input[type="file"] {
    border: none;
    background-color: transparent;
    padding: 5px;
}

/* Register Button */
.register-button {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-white);
    background-color: var(--primary-red);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    margin-top: 20px;
}

.register-button:hover {
    background-color: #cc0000;
    transform: scale(1.05);
}

/* Links */
.links {
    margin-top: 20px;
}

.links a {
    display: block;
    color: var(--primary-red);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 5px;
    transition: color 0.3s ease;
}

.links a:hover {
    color: #ff3333;
}

/* Responsive */
@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .register-container {
        padding: 30px 20px; /* Reduced padding on smaller screens */
    }
}

/* Footer */
#professional-footer {
    background-color: var(--primary-black);
    color: var(--primary-white);
    padding-top: 70px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 10%;
}

.footer-about {
    flex: 1 1 300px;
}

.footer-about img {
    max-width: 160px;
    margin-bottom: 20px;
    filter: drop-shadow(0px 0px 8px rgba(255, 0, 0, 0.6));
}

.footer-about p {
    color: var(--light-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-links, .footer-contact, .footer-social {
    flex: 1 1 200px;
}

.footer-top h3 {
    color: var(--primary-white);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    font-weight: 600;
}

.footer-top h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-red);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--light-gray);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.footer-links ul li a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.footer-contact p {
    color: var(--light-gray);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: var(--primary-red);
    margin-right: 10px;
    min-width: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Added to handle small screens better */
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--medium-gray);
    color: var(--primary-white);
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.4);
}

.footer-bottom {
    border-top: 1px solid var(--medium-gray);
    padding: 25px 10%;
    text-align: center;
}

.footer-legal {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Better than margins for responsive design */
}

.footer-legal a {
    color: var(--light-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--primary-red);
}

.footer-bottom p {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Add responsive adjustments for footer */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 30px;
    }
    
    .footer-about, .footer-links, .footer-contact, .footer-social {
        flex: 1 1 100%;
    }
}