/* Base Styles and Variables */
:root {
    --primary-color: #6e00ff;
    --secondary-color: #00c2ff;
    --dark-bg: #0e0e16;
    --darker-bg: #070710;
    --lighter-bg: #161626;
    --text-primary: #ffffff;
    --text-secondary: #a8b1ff;
    --text-tertiary: #7a7a98;
    --accent-purple: #a742ff;
    --accent-blue: #3b82f6;
    --accent-pink: #f472b6;
    --glow-blue: 0 0 15px rgba(0, 194, 255, 0.7);
    --glow-purple: 0 0 15px rgba(110, 0, 255, 0.7);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--darker-bg), var(--dark-bg));
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(110, 0, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 194, 255, 0.1) 0%, transparent 30%);
    z-index: -1;
    pointer-events: none;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all var(--transition-speed);
}

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

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.6rem;
}

h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 6rem;
    height: 0.4rem;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-top: 1.5rem;
}

h3 {
    font-size: 2.4rem;
}

h4 {
    font-size: 2rem;
}

p {
    margin-bottom: 1.6rem;
}

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

ul, ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

/* Custom List Style */
.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
}

.custom-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: var(--glow-blue);
}

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

/* Header and Navigation */
header {
    background-color: rgba(14, 14, 22, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-right: 1.5rem;
    box-shadow: var(--glow-purple);
}

header h1 {
    font-size: 2.4rem;
    margin-bottom: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin-bottom: 0;
    padding-left: 0;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.6rem;
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

nav a:hover, nav a.active {
    color: var(--text-primary);
}

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 8rem 5%;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 60rem;
}

.hero-content h2 {
    font-size: 5rem;
    margin-bottom: 2rem;
    background: linear-gradient(to right, var(--text-primary), var(--accent-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.hero-image {
    flex: 1;
    max-width: 50rem;
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(110, 0, 255, 0.2) 0%, transparent 70%);
    z-index: -1;
}

/* Custom Border for Images */
.custom-border {
    border: 2px solid transparent;
    background: 
        linear-gradient(to right, var(--dark-bg), var(--dark-bg)), 
        var(--gradient-primary);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-border:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-blue), var(--box-shadow);
}

/* Buttons */
.glow-button {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.6rem;
    text-align: center;
    border-radius: 3rem;
    box-shadow: var(--glow-blue);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.glow-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 194, 255, 0.9);
    color: var(--text-primary);
}

.read-more {
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    color: var(--secondary-color);
    position: relative;
    transition: all 0.3s ease;
}

.read-more:hover {
    padding-left: 5px;
}

/* Features Section */
.features {
    padding: 8rem 5%;
    background-color: var(--lighter-bg);
}

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

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

.feature-card {
    background: var(--dark-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(110, 0, 255, 0.05), rgba(0, 194, 255, 0.05));
    z-index: 0;
}

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

.feature-icon {
    width: 5rem;
    height: 5rem;
    fill: var(--accent-blue);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    position: relative;
    z-index: 1;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.feature-card p {
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
    font-size: 1.5rem;
}

/* Blog Posts Section */
.latest-posts {
    padding: 8rem 5%;
}

.latest-posts h2, .blog-header h2 {
    text-align: center;
    margin-bottom: 5rem;
}

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

.post-card {
    background: var(--lighter-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.post-card img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.post-card.full {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

.post-card.full img {
    height: 25rem;
}

.post-content {
    padding: 2rem;
}

.post-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.post-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

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

.view-all a {
    font-size: 1.6rem;
    font-weight: 500;
    padding: 1rem 2rem;
    background: var(--lighter-bg);
    color: var(--text-secondary);
    border-radius: 3rem;
    transition: all 0.3s ease;
}

.view-all a:hover {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--glow-blue);
}

/* Blog Page */
.blog-header {
    text-align: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.blog-header p {
    max-width: 60rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.8rem;
}

.blog-posts {
    padding: 4rem 5% 8rem;
}

/* About Page */
.about-header {
    text-align: center;
    padding: 8rem 5% 4rem;
}

.about-header p {
    max-width: 60rem;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.8rem;
}

.about-story {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 4rem 5%;
}

.about-content {
    flex: 1;
}

.about-image {
    flex: 1;
}

.mission-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
    gap: 3rem;
    padding: 4rem 5%;
    background: var(--lighter-bg);
}

.mission, .vision {
    padding: 3rem;
    border-radius: var(--border-radius);
    background: var(--dark-bg);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.values {
    padding: 8rem 5%;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.value-card {
    background: var(--lighter-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.value-icon {
    width: 4rem;
    height: 4rem;
    fill: var(--accent-blue);
    margin: 0 auto 2rem;
}

.team {
    padding: 8rem 5%;
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--lighter-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 2rem;
}

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

.team-card img {
    width: 100%;
    height: 30rem;
    object-fit: cover;
}

.team-card h3 {
    margin: 2rem 0 0.5rem;
    font-size: 2rem;
}

.team-card p {
    padding: 0 2rem;
    color: var(--text-secondary);
}

.team-card p:first-of-type {
    color: var(--accent-blue);
    font-weight: 500;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-header {
    text-align: center;
    padding: 8rem 5% 4rem;
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
    gap: 5rem;
    padding: 4rem 5%;
}

.contact-info {
    background: var(--lighter-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.contact-icon {
    width: 2.4rem;
    height: 2.4rem;
    fill: var(--accent-blue);
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.social-contact {
    margin-top: 3rem;
}

.social-contact h4 {
    margin-bottom: 1.5rem;
}

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

.social-icon {
    width: 2.4rem;
    height: 2.4rem;
    fill: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-icon:hover {
    fill: var(--secondary-color);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-container {
    background: var(--lighter-bg);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

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

.form-group label {
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 1.2rem;
    background-color: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1.6rem;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.submit-button {
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.6rem;
    padding: 1.2rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-blue);
    margin-top: 1rem;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(0, 194, 255, 0.9);
}

/* Map Section */
.map-section {
    padding: 4rem 5% 8rem;
    text-align: center;
}

.map-section h3 {
    margin-bottom: 3rem;
}

.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
}

.map-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-tertiary);
    background: rgba(14, 14, 22, 0.8);
    padding: 1rem 2rem;
    border-radius: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: var(--darker-bg);
    margin: 10% auto;
    padding: 4rem;
    width: 90%;
    max-width: 50rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: modalFade 0.3s ease-out;
}

@keyframes modalFade {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 3rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-primary);
}

.thank-you-message {
    text-align: center;
}

.success-icon {
    width: 6rem;
    height: 6rem;
    fill: var(--accent-blue);
    margin: 0 auto 2rem;
    animation: success 0.5s ease-out;
}

@keyframes success {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.close-button {
    margin-top: 3rem;
    padding: 1rem 3rem;
    background: var(--gradient-primary);
    color: var(--text-primary);
    font-weight: 500;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-button:hover {
    box-shadow: var(--glow-blue);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 6rem 5% 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo {
    margin-bottom: 1.5rem;
}

.footer-logo p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-links h3, .footer-contact h3, .footer-social h3 {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom p {
    color: var(--text-tertiary);
    margin-bottom: 0;
}

.legal-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.legal-links a {
    color: var(--text-tertiary);
    font-size: 1.4rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--text-primary);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(22, 22, 38, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    transition: transform 0.5s ease;
}

.cookie-content {
    max-width: 120rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cookie-content p {
    margin-bottom: 0;
    color: var(--text-secondary);
}

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

.cookie-button {
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
}

.cookie-button.accept {
    background: var(--gradient-primary);
    color: var(--text-primary);
}

.cookie-button.customize, .cookie-button.reject {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
}

.cookie-button:hover {
    transform: translateY(-3px);
}

.cookie-button.accept:hover {
    box-shadow: var(--glow-blue);
}

.cookie-policy-link {
    color: var(--text-tertiary);
    font-size: 1.4rem;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 992px) {
    html {
        font-size: 56.25%;
    }
    
    .hero {
        flex-direction: column;
        gap: 4rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-image {
        max-width: 100%;
    }
    
    .about-story {
        flex-direction: column;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 50%;
    }
    
    header {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    nav ul {
        gap: 1.5rem;
    }
    
    .feature-grid, .post-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-vision {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-content {
        text-align: center;
    }
    
    .cookie-buttons {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .team-card img {
        height: 25rem;
    }
}
