/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --bg-white: #ffffff;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 70px;
    --transition-speed: 0.3s;
    --offset-color-text: #afc5ec;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    transition: width var(--transition-speed) ease;
    z-index: 1000;
    overflow-x: hidden;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
    transition: opacity var(--transition-speed);
}

.sidebar.collapsed .sidebar-header h2 {
    opacity: 0;
    pointer-events: none;
}

.toggle-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform var(--transition-speed);
}

.toggle-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    transition: all var(--transition-speed);
}

.toggle-btn:hover {
    transform: scale(1.1);
}

.nav-links {
    list-style: none;
    padding: 1rem 0;
}

.nav-links li {
    margin: 0.5rem 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: white;
    text-decoration: none;
    transition: all var(--transition-speed);
    white-space: nowrap;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

.sidebar.collapsed .nav-links a {
    padding: 1rem;
    justify-content: center;
}

.sidebar.collapsed .nav-links a:hover {
    padding-left: 1rem;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-speed) ease;
    min-height: 100vh;
}

.sidebar.collapsed ~ .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
}

.hero-description {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Styles */
.section {
    padding: 5rem 2rem;
}

.bg-light {
    background: var(--bg-light);
}

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

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-align: center;
}

.section-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 3rem;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.tool-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

/* Research Stats */
.research-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* Form Feedback Messages */
.form-feedback {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
}

.form-feedback-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.form-feedback-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar-header h2 {
        opacity: 0;
    }

    .main-content {
        margin-left: var(--sidebar-collapsed-width);
    }

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

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 4rem 1rem;
    }

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

    .section {
        padding: 3rem 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Margin for Anchors */
section {
    scroll-margin-top: 2rem;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.body-content {
    padding: 2rem;
    display:grid;
    grid-template-columns: 1fr 3fr;
    gap : 2rem;
}
#account-nav {
    background-color: var(--secondary-color);
    padding: 1rem;
    border-radius: 0.5rem; 
    padding: 2rem 1rem; 
}

#account-nav ul {
    list-style: none;
}

#account-nav ul li {
    margin: 0rem .5rem;
}

.menu-account-roll {
    margin: -12rem 0rem 0rem 0rem;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
}
.menu-account-roll h2 {
    margin-bottom: 1rem;
    color: var(--offset-color-text)
}

.profile-overview .content{
    margin: 0rem 2.5rem;
    display: flex;
    flex-direction: column;
    width: 20rem;
}
.profile-overview .content input[type="text"], .profile-overview .content input[type="email"], .profile-overview .content input[type="password"] {
    margin-bottom: 1rem;
    padding: .5rem;
    padding-left: 1rem;
    border-style: none;
    background-color: var(--accent-color);
    color: white;
    border-radius: 2rem;
}

.profile-overview .content input[type="text"]::placeholder,
.profile-overview .content input[type="email"]::placeholder,
.profile-overview .content input[type="password"]::placeholder {
    color: var(--offset-color-text);
}

.profile-overview .content input:focus[type="text"],
.profile-overview .content input:focus[type="email"],
.profile-overview .content input:focus[type="password"] {
    outline: none;
    background-color: var(--primary-color);
}

.profile-overview .content input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: .75rem 1.5rem;
    border-radius: 2rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.profile-overview .content input[type="submit"]:hover {
    background-color: var(--accent-color);
}

.profile-overview .content hr {
    padding: 1rem;
}

.profile-overview .content label{
    margin-left: .5rem;
    margin-bottom: .5rem;
}