/* 
   StudyBuddy Website Styles
   Author: Owen Wright
   Version: 1.0
*/

/* ======= Reset & Base Styles ======= */
:root {
    --primary-color: #3a86ff;
    --primary-dark: #2667cc;
    --primary-light: #61a0ff;
    --secondary-color: #8338ec;
    --accent-color-green: #4cc9a9;
    --accent-color-orange: #ffbe0b;
    --dark-color: #2b2d42;
    --text-color: #555b6e;
    --text-color-light: #8d99ae;
    --light-color: #f8f9fa;
    --gray-color: #edf2f4;
    --success-color: #4cc9a9;
    --danger-color: #ef476f;
    --warning-color: #ffd166;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ======= Typography ======= */
h1, h2, h3, h4, h5, h6 {
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

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

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    color: var(--text-color-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ======= Buttons ======= */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
}

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

/* ======= Navigation ======= */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 1.5rem;
}

.nav-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.nav-menu a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover:after,
.nav-menu a.active:after {
    width: 100%;
}

.nav-menu a.btn-small {
    color: white;
}

.nav-menu a.btn-small:after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======= Hero Section ======= */
.hero {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f1 100%);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 550px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    max-width: 50%;
}

.hero-image img {
    max-height: 500px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.15));
}

/* ======= Features Section ======= */
.features {
    padding: 5rem 0;
    background-color: white;
}

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

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-icon.blue {
    background-color: var(--primary-color);
}

.feature-icon.purple {
    background-color: var(--secondary-color);
}

.feature-icon.green {
    background-color: var(--accent-color-green);
}

.feature-icon.orange {
    background-color: var(--accent-color-orange);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

/* ======= How It Works Section ======= */
.how-it-works {
    padding: 5rem 0;
    background-color: var(--gray-color);
}

.steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
}

.steps:before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-light);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background-color: var(--gray-color);
    padding: 0 1rem;
    text-align: center;
    flex: 1;
    min-width: 200px;
    margin-bottom: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
    font-size: 1.25rem;
}

.step h3 {
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-color-light);
    margin-bottom: 0;
}

/* ======= Testimonials Section ======= */
.testimonials {
    padding: 5rem 0;
    background-color: white;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content:before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 3rem;
    color: var(--primary-light);
    opacity: 0.3;
}

.testimonial-content p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.testimonial-author p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-color-light);
}

/* ======= CTA Section ======= */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

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

.cta .btn-primary:hover {
    background-color: var(--light-color);
}

/* ======= Footer ======= */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-col .logo {
    margin-bottom: 1rem;
}

.footer-col .logo span {
    color: white;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.contact-info li i {
    margin-right: 0.75rem;
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ======= Privacy & Terms Pages ======= */
.page-header {
    background-color: var(--gray-color);
    padding: 3rem 0;
    text-align: center;
}

.page-content {
    padding: 4rem 0;
}

.page-content .container {
    max-width: 800px;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.legal-section p {
    margin-bottom: 1.5rem;
}

.legal-date {
    margin-bottom: 2rem;
    font-style: italic;
    color: var(--text-color-light);
}

/* ======= Support Page ======= */
.support-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.support-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: var(--transition);
}

.support-card:hover {
    transform: translateY(-5px);
}

.support-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.support-icon i {
    font-size: 1.75rem;
    color: white;
}

.support-card h3 {
    margin-bottom: 1rem;
}

.support-card p {
    color: var(--text-color-light);
    margin-bottom: 1.5rem;
}

.faq-section {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-color);
    padding-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: var(--transition);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    color: var(--text-color);
    display: none;
}

.faq-answer.active {
    display: block;
}

/* ======= Features Page ======= */
.features-page {
    padding: 4rem 0;
}

.feature-block {
    display: flex;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-block:nth-child(even) {
    flex-direction: row-reverse;
}

.feature-block-image {
    flex: 1;
    padding: 2rem;
}

.feature-block-content {
    flex: 1;
    padding: 2rem;
}

.feature-block-content h2 {
    margin-bottom: 1.5rem;
    position: relative;
}

.feature-block-content h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.feature-block-content p {
    margin-bottom: 1.5rem;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--success-color);
    margin-right: 0.75rem;
    margin-top: 5px;
}

/* ======= Responsive Styles ======= */
@media (max-width: 991px) {
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        max-width: 100%;
        justify-content: center;
    }
    
    .feature-block, 
    .feature-block:nth-child(even) {
        flex-direction: column;
    }
    
    .steps:before {
        display: none;
    }
    
    .step {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: white;
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1.5rem 0;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons a {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
