/* 
NetflowIQ - Educational platform for distributed data structures analysis
Main stylesheet
*/

/* Base Styles & CSS Reset */
:root {
    --primary-color: #3366cc;
    --secondary-color: #ff7f50;
    --accent-color: #4caf50;
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --background-color: #ffffff;
    --background-light: #f5f7f9;
    --background-dark: #eaeef2;
    --border-color: #dddddd;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --container-width: 1200px;
    --header-height: 80px;
    --footer-color: #2c3e50;
}

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

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 2.8rem;
}

h3 {
    font-size: 2.2rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--secondary-color);
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.primary-btn:hover {
    background-color: #2a56ad;
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.secondary-btn {
    background-color: var(--background-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background-color: var(--background-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 3rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.7rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    background-color: var(--background-light);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    background-color: var(--background-light);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.multilingual-greeting {
    background-color: rgba(51, 102, 204, 0.1);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.hero-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
    background-color: white;
}

.features h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.feature-card {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(51, 102, 204, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    color: var(--primary-color);
}

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

/* Recent Posts Section */
.recent-posts {
    background-color: var(--background-light);
}

.recent-posts h2 {
    text-align: center;
    margin-bottom: 4rem;
}

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

.post-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

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

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
}

.post-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    color: var(--text-lighter);
    font-size: 1.4rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.read-more:hover {
    color: var(--secondary-color);
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

/* CTA Section */
.cta {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
}

.cta p {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Summary Section */
.summary {
    background-color: var(--background-light);
    padding: 4rem 0;
    text-align: center;
}

.summary h2 {
    margin-bottom: 2rem;
}

.summary p {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Styles */
footer {
    background-color: var(--footer-color);
    color: white;
    padding: 5rem 0 2rem;
}

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

.footer-logo img {
    height: 50px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-links h3, .footer-legal h3, .footer-contact h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.footer-links ul, .footer-legal ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a, .footer-legal a {
    color: #ccc;
    transition: var(--transition);
}

.footer-links a:hover, .footer-legal a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

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

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(44, 62, 80, 0.95);
    padding: 1.5rem;
    z-index: 1000;
    display: none;
}

.cookie-content {
    max-width: var(--container-width);
    margin: 0 auto;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.cookie-btn {
    padding: 0.8rem 1.6rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.cookie-btn.accept {
    background-color: var(--success-color);
    color: white;
}

.cookie-btn.customize {
    background-color: var(--warning-color);
    color: white;
}

.cookie-btn.reject {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-policy-link {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Blog Page Styles */
.page-header {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 10rem 0 4rem;
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 3rem;
}

/* Subscribe Section */
.subscribe {
    background-color: var(--secondary-color);
    color: white;
}

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

.subscribe h2, .subscribe p {
    color: white;
}

.subscribe-form {
    display: flex;
    margin-top: 2rem;
    gap: 1rem;
}

.subscribe-form input {
    flex: 1;
    padding: 1.2rem 1.6rem;
    border-radius: var(--border-radius);
    border: none;
    font-size: 1.6rem;
}

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

/* About Page Styles */
.about-mission, .about-story {
    padding: 6rem 0;
}

.mission-content, .story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.mission-image, .story-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.mission-text h2, .story-text h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Team Section */
.team-section {
    background-color: var(--background-light);
    text-align: center;
    padding: 6rem 0;
}

.team-intro {
    max-width: 700px;
    margin: 0 auto 4rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 3rem;
}

.team-member {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-5px);
}

.team-member img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.team-member h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--background-light);
    color: var(--primary-color);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Values Section */
.values {
    text-align: center;
    padding: 6rem 0;
}

.values h2 {
    margin-bottom: 4rem;
}

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

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

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

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

/* Testimonials */
.testimonials {
    background-color: var(--primary-color);
    color: white;
    padding: 6rem 0;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 4rem;
    color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.testimonial-content p {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 2rem;
}

.author-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1.4rem;
    opacity: 0.8;
}

/* Contact Page Styles */
.contact-content {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    background-color: var(--background-light);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.contact-info h2 {
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    gap: 1.5rem;
}

.info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.additional-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.additional-info p {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.contact-form-container {
    background-color: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-form-container h2 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-form-container p {
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.6rem;
    font-family: inherit;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
}

.map-section {
    background-color: var(--background-light);
    padding: 4rem 0 6rem;
}

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

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

/* FAQ Section */
.faq-section {
    padding: 6rem 0;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.faq-item {
    background-color: var(--background-light);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.faq-item h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Thank You Modal */
.thank-you-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.thank-you-content {
    background-color: white;
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

.thank-you-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem;
    color: var(--success-color);
}

.thank-you-content h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.thank-you-content p {
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .hero .container,
    .mission-content, 
    .story-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image,
    .mission-image,
    .story-image {
        order: -1;
    }
    
    .posts-grid,
    .blog-grid,
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    header {
        height: auto;
        padding: 1.5rem 0;
    }
    
    header .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .feature-card,
    .post-card,
    .team-member {
        padding: 1.5rem;
    }
    
    .subscribe-form {
        flex-direction: column;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo,
    .social-icons {
        justify-content: center;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 50%;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    h2 {
        font-size: 2.4rem;
    }
    
    .hero {
        padding: 10rem 0 4rem;
    }
    
    .features-grid,
    .posts-grid,
    .blog-grid,
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .post-image {
        height: 180px;
    }
    
    section {
        padding: 4rem 0;
    }
    
    .thank-you-content {
        padding: 2.5rem;
    }
}
