/* ====================================
   SynerData Technologies - Main Styles
   ==================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* ====================================
   Global Variables
   ==================================== */
:root {
    --primary-green: #3fb950;
    --hover-green: #2d7a3b;
    --dark-text: #24292f;
    --light-text: #57606a;
    --border-color: #d0d7de;
    --bg-light: #f6f8fa;
    --white: #ffffff;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 6px 20px rgba(0,0,0,0.12);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background: var(--white);
}

p, li {
    font-weight: 400;
    max-width: 700px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

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

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

/* ====================================
   Header & Navigation
   ==================================== */
.header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--dark-text);
    font-weight: 400;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-green);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.4rem 0.8rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: var(--light-text);
    border-radius: 6px;
    transition: var(--transition);
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-text);
}

/* ====================================
   Hero Section
   ==================================== */
.hero {
    background: linear-gradient(135deg, #2d7a3b 0%, #3fb950 50%, #4ac959 100%);
    color: var(--white);
    padding: 6rem 2rem;
    text-align: center;
}

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

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto 2rem;
    max-width: 700px;
    font-weight: 300;
}

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

/* ====================================
   Buttons
   ==================================== */
.btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: var(--primary-green);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

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

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

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

/* ====================================
   Container & Sections
   ==================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section {
    padding: 4rem 2rem;
}

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

.section-title h2 {
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

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

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

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

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

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

.card p {
    color: var(--light-text);
}

/* ====================================
   Statistics Section
   ==================================== */
.stats-section {
    background: var(--bg-light);
    padding: 4rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-green);
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin: 0 auto;
}

/* ====================================
   CTA Section
   ==================================== */
.cta-section {
    background: linear-gradient(135deg, #3fb950 0%, #2d7a3b 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

/* ====================================
   Blog Section
   ==================================== */
.blog-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.blog-meta {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-green);
    font-weight: 600;
    margin-top: auto;
}

.read-more:hover {
    text-decoration: underline;
}

/* ====================================
   Article Page
   ==================================== */
.article-header {
    text-align: center;
    padding: 4rem 2rem 2rem;
    background: var(--bg-light);
}

.article-header h1 {
    max-width: 800px;
    margin: 0 auto 1rem;
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.article-content img {
    width: 100%;
    border-radius: var(--border-radius);
    margin: 2rem 0;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-green);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}

.article-content ul, .article-content ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* ====================================
   Contact Form
   ==================================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

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

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-text);
}

.form-group input,
.form-group textarea {
    padding: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(63, 185, 80, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

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

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-green);
}

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

.contact-item-icon {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.map-container {
    margin-top: 3rem;
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: var(--border-radius);
}

/* ====================================
   FAQ Section
   ==================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-light);
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: #eef2f5;
}

.faq-question.active {
    background: var(--primary-green);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.active {
    max-height: 500px;
}

.faq-answer-content {
    padding: 1.5rem;
}

/* ====================================
   Footer
   ==================================== */
.footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.footer-section p,
.footer-section a {
    color: #c9d1d9;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-green);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

/* ====================================
   Cookie Banner
   ==================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-text);
    color: var(--white);
    padding: 1.5rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

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

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.cookie-accept {
    background: var(--primary-green);
    color: var(--white);
}

.cookie-accept:hover {
    background: var(--hover-green);
}

.cookie-decline {
    background: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.cookie-decline:hover {
    background: rgba(255,255,255,0.1);
}

/* ====================================
   Responsive Design
   ==================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.7rem; }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-section {
        grid-template-columns: 1fr;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        gap: 1rem;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.4rem; }
    
    .hero {
        padding: 4rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .container, .section {
        padding: 2rem 1.5rem;
    }
}

/* Desktop large (min 1200px) - limit columns to 3 */
@media (min-width: 1200px) {
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
