/* Enhanced styles/style.css */

/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
    background-color: #121212; /* Deep Black */
    color: #e0e0e0;
    line-height: 1.7; /* Improved line height */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem; /* Increased padding */
}

/* Header styling */
header {
    background-color: #212121; /* Dark Gray */
    color: #bb86fc;
    padding: 1.2rem 2.5rem; /* Adjusted padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #37474f;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.6); /* Enhanced 3D Effect */
    position: sticky; /* Sticky header */
    top: 0;
    z-index: 100; /* Ensure it stays on top */
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Smooth transition */
}

.logo {
    font-size: 2.7rem; /* Further Increased Size */
    font-weight: bold;
    letter-spacing: 1.7px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Enhanced Shadow Effect */
}

/* Login Section Styling */
.login-section {
    display: flex;
    align-items: center;
    gap: 1rem; /* Spacing between buttons */
}

.login-section a,
.login-section button {
    padding: 0.85rem 1.7rem; /* Adjusted padding */
    background-color: #424242; /* Slightly Lighter Gray */
    border: none;
    border-radius: 8px;
    color: #bb86fc;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; /* Enhanced Transition */
    border: 2px solid #bb86fc;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Remove underline from links */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5); /* Subtle Shadow */
}

.login-section a:hover,
.login-section button:hover {
    background-color: #bb86fc;
    color: #212121;
    transform: translateY(-3px); /* Enhanced Lift Effect */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7); /* Stronger Hover Shadow */
}

/* Hero Section Styling */
.hero {
    text-align: center;
    margin-top: 5rem;
    margin-bottom: 6rem;
    padding: 4rem;
    background-color: #212121;
    border-radius: 15px; /* Increased roundness */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7); /* Enhanced Shadow */
    border: 2px solid #37474f;
    position: relative; /* For diagonal lines */
    overflow: hidden;
}

/* Diagonal lines pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        45deg,
        rgba(66, 66, 66, 0.1),
        rgba(66, 66, 66, 0.1) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 0;
    opacity: 0.6;
    border-radius: 15px;
}

.hero > * {
    z-index: 1; /* Ensure text is above lines */
    position: relative;
}

.hero h1 {
    font-size: 4.5rem; /* Even Larger */
    color: #bb86fc;
    margin-bottom: 1.8rem;
    letter-spacing: 2.5px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8); /* Enhanced Shadow Effect */
}

.hero p {
    font-size: 1.5rem;
    color: #9fa8da;
    line-height: 1.8; /* Improved readability */
}

/* Search section styling */
.search-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 1.5rem; /* Increased padding */
    display: flex;
    gap: 2rem; /* Increased gap */
}

.search-container .search-bar {
    flex-grow: 1;
    padding: 1.3rem;
    border: 2px solid #424242;
    border-radius: 10px;
    font-size: 1.2rem;
    background-color: #303030; /* Deeper Color */
    color: #e0e0e0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Smooth Transition */
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); /* Enhanced Subtle Shadow */
}

.search-container .search-bar:focus {
    outline: none;
    border-color: #bb86fc;
    box-shadow: 0 5px 10px rgba(187, 134, 252, 0.4); /* Enhanced Highlight Shadow */
}

.search-container .search-btn {
    padding: 1.3rem 2rem;
    background-color: #bb86fc;
    border: none;
    border-radius: 10px;
    color: #212121;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Smooth Transition */
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.6); /* Enhanced Subtle Shadow */
    letter-spacing: 0.5px;
}

.search-container .search-btn:hover {
    background-color: #a78bfa;
    transform: translateY(-3px); /* Enhanced Lift Effect */
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.7); /* Stronger Hover Shadow */
}

/* Subjects grid styling */
.subjects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased minmax */
    gap: 3rem; /* Increased gap */
    margin-top: 5rem;
}

.subjects-grid .subject-card {
    background-color: #303030; /* Deeper Color */
    padding: 3rem; /* Increased padding */
    border-radius: 15px; /* Increased roundness */
    text-align: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7); /* Enhanced Shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid #424242;
}

.subjects-grid .subject-card i {
    font-size: 3rem; /* Increased icon size */
    margin-bottom: 1.5rem;
    color: #bb86fc;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8); /* Enhanced Icon Shadow */
}

.subjects-grid .subject-card:hover {
    transform: translateY(-7px); /* More Pronounced Lift */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8); /* Stronger Hover Shadow */
    border-color: #bb86fc;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 2rem;
    }

    header {
        flex-direction: column;
        text-align: center;
        gap: 1.8rem;
        padding: 1rem;
    }

    .logo {
        font-size: 2.3rem;
    }

    .login-section {
        flex-direction: column;
        gap: 1rem;
    }

    .login-section a,
    .login-section button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }

    .hero {
        padding: 3rem;
        margin-top: 4rem;
        margin-bottom: 5rem;
    }

    .hero h1 {
        font-size: 3.3rem;
    }

    .search-container {
        flex-direction: column;
        margin: 3rem auto;
        padding: 0 1rem;
    }

    .search-container .search-bar,
    .search-container .search-btn {
        width: 100%;
        padding: 1.1rem;
        font-size: 1rem;
    }

    .subjects-grid {
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        gap: 2rem;
        margin-top: 4rem;
    }

    .subjects-grid .subject-card {
        padding: 2rem;
        font-size: 1.2rem;
    }

    .subjects-grid .subject-card i {
        font-size: 2.3rem;
        margin-bottom: 1rem;
    }
}
