/* ----- Landing Page: Global Styles ----- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Sans Pro', sans-serif;
}

body {
    min-height: 100vh;
    background: url('../img/background.jpg') no-repeat center center/cover;
    line-height: 1.6;
}

/* ----- Landing Page: Navigation Styles ----- */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(to right, rgba(4, 20, 23, 0), rgba(4, 20, 23, 0.4));
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 20px; /* Added gap for spacing */
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    margin-left: 0; /* Removed margin-left since we're using gap */
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s ease;
}

.nav-links a.active {
    color: #05dde4;
    background-color: rgba(4, 20, 23, 0.5);
    border-radius: 6px 0 6px 0;
}

.nav-links a:hover {
    color: #05dde4;
    border-radius: 6px 0 6px 0;
    background-color: rgba(4, 20, 23, 0.5);
    transition: background-color 0.7s ease, color 0.7s ease;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
/* ----- Landing Page: Hero Section ----- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(131, 207, 221, 0), rgba(4, 20, 23, 0.9));
    backdrop-filter: blur(3px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 35px 25px;
    background: linear-gradient(to bottom, rgba(5, 27, 31, 0), rgba(4, 20, 23, 2));
    border-radius: 7px;
}

.hero-headline {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 1rem;
    animation: slideFadeIn 1s ease-out forwards;
}

.gradient-build {
    background: linear-gradient(to right, #05dde4, #02b4ba); /* Lighter gradient for Build */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-track {
    background: linear-gradient(to right, #05dde4, #02b4ba); /* Darker gradient for Track */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subheading {
    font-size: 1.1rem;
    color: #D1D5DB;
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0;
    animation: slideFadeIn 1s ease-out 0.3s forwards;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.get-started-btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    background: transparent;
    border-color: #05dde4;
    color: #fff;
    border-radius: 25px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: slideFadeIn 1s ease-out 0.6s forwards;
}

.get-started-btn:hover {
    color: #05dde4;
    box-shadow: 0 0 12px 4px rgba(0, 196, 204, 0.4);
    transform: scale(1.05);
}

.rocket-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.signup-text {
    color: #D1D5DB;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.signup-link, .login-link {
    color: #05dde4;
    text-decoration: none;
    font-weight: 500;
}

.signup-link:hover, .login-link:hover {
    text-decoration: underline;
}

/* ----- Landing Page: Modal Styles ----- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: slideUp 0.6s ease-out;
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: border-color 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: #00C4CC;
    box-shadow: 0 0 5px rgba(0, 196, 204, 0.3);
}

.modal-content button {
    width: 100%;
    padding: 10px;
    background: #00C4CC;
    border: none;
    color: #0A2F36;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #0099A5;
}

.modal-link {
    color: #D1D5DB;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.forgot-password {
    color: #00C4CC;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.back-to-login {
    color: #00C4CC; /* Matches .forgot-password and .login-link color */
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: underline; /* Adds underline as requested */
    text-decoration-color: #00C4CC; /* Ensures underline matches text color */
}

.back-to-login:hover {
    text-decoration-color: #0099A5; /* Darker shade on hover for consistency */
    color: #0099A5; /* Darker shade on hover */
}
.error-message {
    color: #ff4d4d;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
    display: none; /* Hidden by default */
}
.error-message.active {
    display: block; /* Show when active */
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----- Landing Page: Tab Section Styles ----- */
.tab-section {
    padding: 4rem 20px;
    background: linear-gradient(to bottom, rgba(4, 20, 23, 0.8), rgba(4, 20, 23, 0));
    backdrop-filter: blur(5px);
}

.tab-container {
    max-width: 1200px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(2, 27, 28, 1);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tab-btn.active {
    background-color: rgba(0, 196, 204, 0.5);
    color: #fff;
}

.tab-btn:hover {
    background-color: rgba(0, 196, 204, 0.3);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    color: #D1D5DB;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout on mobile */
        grid-template-rows: auto auto; /* Ensure two rows */
    }
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transform: rotate(-2deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
}

.feature-card:nth-child(2) {
    transform: rotate(2deg);
}

.feature-card:nth-child(3) {
    transform: rotate(-1deg);
}

.feature-card:nth-child(4) {
    transform: rotate(1deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 12px 12px 0 0;
}

.feature-card:nth-child(1)::before {
    background-color: #00C4CC;
}

.feature-card:nth-child(2)::before {
    background-color: #FF6B6B;
}

.feature-card:nth-child(3)::before {
    background-color: #2A9D8F;
}

.feature-card:nth-child(4)::before {
    background-color: #E63946;
}

.feature-card:hover {
    transform: translateY(-10px) rotate(0deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #00C4CC;
    margin-bottom: 0.5rem;
    text-align: center;
}

.feature-card p {
    color: #D1D5DB;
    font-size: 0.9rem;
}

/* ----- Landing Page: Footer Styles ----- */
.footer {
    text-align: center;
    padding: 1rem 0;
    background: rgba(4, 20, 23, 0.8);
    backdrop-filter: blur(5px);
}

.copyright {
    font-size: 0.9rem;
    background: linear-gradient(to right, #05dde4, #019fa4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ----- Landing Page: Animations ----- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ----- Landing Page: Mobile Responsiveness for Navigation ----- */
@media (max-width: 768px) {
.nav-container {
        background: linear-gradient(to right, rgba(4, 20, 23, 0.4), rgba(4, 20, 23, 0.1));
    }

    .nav-links {
        display: flex; /* Change from 'none' to 'flex' */
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: linear-gradient(to right, rgba(4, 20, 23, 0.9), rgba(4, 20, 23, 0.2));
        backdrop-filter: blur(20px);
        padding: 20px;
        transform: translateX(-100%); /* Hidden by default */
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0); /* Slide in when active */
    }

    .nav-links a {
        margin: 10px 0;
    }

    .hamburger {
        display: flex;
    }


    .tab-buttons {
        flex-direction: row; /* Keep buttons horizontal */
        align-items: center;
        gap: 0.5rem; /* Reduce gap for smaller screens */
    }

    .tab-btn {
        padding: 8px 16px; /* Slightly smaller padding */
        font-size: 0.9rem; /* Smaller font size */
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2x2 layout on mobile */
        grid-template-rows: auto auto; /* Ensure two rows */
    }

    .hero-headline {
        font-size: 2.5rem;
    }

    .modal-content{
        width: 75%;
        max-width: 370px;

    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr; /* Single column if too narrow */
    }

    .hero-headline {
        font-size: 1.8rem;
    }

    .hero-subheading {
        font-size: 0.8rem;
    }

    .tab-buttons {
        flex-direction: row; /* Keep buttons horizontal even on very small screens */
        gap: 0.3rem;
    }

    .tab-btn {
        padding: 6px 12px; /* Further reduce padding */
        font-size: 0.8rem; /* Further reduce font size */
    }
}
