body{
    margin:0;
    background-image: linear-gradient(rgba(0,0,0,0.2),
    rgba(0,0,0,0.2)), url('src/wall.png');
    background-size: cover;
}

.navbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#2e3440;
    padding:0.5rem 1rem;
}

/* LEFT */

.nav-left{
    display:flex;
    align-items:center;
    gap:0.7rem;
}

.logo {
    width: 2.5rem;
    height: 2.5rem; /* Explicit height for a perfect circle */
    border-radius: 50%;
    object-fit: cover; /* Prevents image distortion */
}

.brand{
    font-size:1.6rem;
    color:white;
}

/* CENTER */

.search{
    padding:0.4rem;
    font-size:1rem;
    border-radius:4px;
    border:none;
}

.search-box{
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input{
    padding: 0.4rem 2rem 0.4rem 0.5rem;
    font-size: 1rem;
    border-radius: 4px;
    border: none;
}

.search-box i{
    position: absolute;
    right: 8px;
    color: gray;
    font-size: 0.9rem;
}

/* RIGHT */

.nav-right{
    display:flex;
    gap:2rem;
    list-style:none;
    margin:0;
    padding:0;
}

.nav-right a{
    text-decoration:none;
    color:white;
    font-weight:500;
}

.signin{
    background:#952323;
    padding:4px 10px;
    border-radius:5px;
}

.signin:hover{
    background:#7a1b1b;
}

/* Main Container Spacing */
main {
    padding-bottom: 5rem;
}

/* Hero Section Styles */
.hero-center {
    height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.directory {
    color: #88c0d0; /* Tech blue color */
    font-family: 'Courier New', monospace;
    margin-bottom: 0.5rem;
}

.hero-center h1 {
    font-size: 3.5rem;
    margin: 0;
}

.cursor {
    animation: blink 1.2s infinite;
    color: #952323; /* Matching your Sign In button */
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-subtext {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem auto;
    opacity: 0.8;
}

/* Topic Grid Styles */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 10%;
}

.card {
    background: rgba(46, 52, 64, 0.9); /* Same dark grey as navbar */
    padding: 2.5rem;
    border-radius: 8px;
    color: white;
    text-align: center;
    border-bottom: 4px solid #952323;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    background: rgba(46, 52, 64, 1);
}

.card i {
    font-size: 3rem;
    color: #952323;
    margin-bottom: 1.5rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* This centers the glass box on the page */
.about-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 2rem;
}

/* The "Blur Glass" effect for the whole content */
.glass-container {
    background: rgba(15, 17, 26, 0.75); /* Darker tint for better text contrast */
    backdrop-filter: blur(15px);        /* Heavy blur for readability */
    -webkit-backdrop-filter: blur(15px); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4rem;
    max-width: 1100px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.about-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.about-grid {
    display: flex;
    gap: 4rem;
    align-items: center;
}

/* Make sure the text color is bright */
.about-text p {
    color: #e5e9f0; 
    line-height: 1.8;
    font-size: 1.1rem;
}

.highlight {
    color: #4da0ff; /* Brightened the red slightly for readability */
    font-weight: bold;
}

/* Stats box contrast */
.stats-box {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
}
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.auth-box {
    max-width: 450px !important; /* Overriding previous glass width */
    padding: 2.5rem !important;
    text-align: center;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.tab-btn.active {
    opacity: 1;
    color: #952323;
    font-weight: bold;
    border-bottom: 2px solid #952323;
}

.auth-form h2 {
    margin-bottom: 1.5rem;
    color: white;
}

.input-group {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #952323;
}

.input-group input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    outline: none;
    box-sizing: border-box; /* Important for padding */
}

.input-group input:focus {
    border-color: #952323;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: #952323;
    border: none;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 1rem;
}

.auth-submit:hover {
    background: #7a1b1b;
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #88c0d0;
}

.auth-footer a {
    color: white;
    text-decoration: none;
}

.contact-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
    padding: 2rem;
}

.contact-box {
    max-width: 900px !important;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 250px;
    gap: 3rem;
}

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

.contact-select {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    cursor: pointer;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: white;
    resize: none;
}

.contact-info h3 {
    color: #952323;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    color: #952323;
    transform: translateX(5px);
}

/* Mobile View */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-info {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 2rem;
    }
    .social-links {
        align-items: center;
    }
}

/* ============================= */
/* TABLET RESPONSIVE */
/* ============================= */

@media (max-width: 1024px){

    .topic-grid{
        padding: 0 5%;
    }

    .about-grid{
        flex-direction: column;
        text-align: center;
    }

    .stats-box{
        justify-content: center;
        flex-wrap: wrap;
    }

    .glass-container{
        padding: 2.5rem;
    }

}


/* ============================= */
/* MOBILE RESPONSIVE */
/* ============================= */

@media (max-width: 768px){

/* NAVBAR */

.navbar{
    flex-wrap: wrap;
    gap:1rem;
}

.nav-center{
    width:100%;
    order:3;
}

.search-box{
    width:100%;
}

.search-box input{
    width:100%;
}

/* NAV LINKS */

.nav-right{
    width:100%;
    justify-content:center;
    gap:1.2rem;
}

/* HERO SECTION */

.hero-center h1{
    font-size:2.2rem;
}

.hero-subtext{
    font-size:1rem;
    padding:0 1rem;
}

/* TOPIC GRID */

.topic-grid{
    grid-template-columns:1fr;
    padding:0 1.5rem;
}

/* ABOUT PAGE */

.about-grid{
    flex-direction:column;
    gap:2rem;
}

.about-profile{
    width:150px;
}

/* GLASS BOX */

.glass-container{
    padding:2rem 1.5rem;
}

/* AUTH PAGE */

.auth-box{
    width:100%;
}

/* CONTACT PAGE */

.contact-grid{
    grid-template-columns:1fr;
}

}


/* ============================= */
/* SMALL PHONE */
/* ============================= */

@media (max-width: 480px){

.brand{
    font-size:1.2rem;
}

.logo{
    width:2rem;
    height:2rem;
}

.hero-center h1{
    font-size:1.8rem;
}

.card{
    padding:1.8rem;
}

}