/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--accent-blue);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    padding: 0;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 40px;
}

.modal-date {
    color: var(--accent-cyan);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

#m-title {
    font-size: 2rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.modal-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
    white-space: pre-line;
    /* Handle line breaks */
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-blue);
    border-radius: 4px;
}

/* Card Pointer */
.blog-card {
    cursor: pointer;
}


/* Color Palette */
:root {
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;

    /* Glassmorphism */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--accent-blue), var(--accent-cyan));
    border-radius: 2px;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-blue);
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.btn-primary:hover {
    background: var(--accent-cyan);
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.6);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-blue);
    color: white;
    background: rgba(59, 130, 246, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--accent-cyan);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
}

@keyframes heroCinematic {
    0% {
        transform: scale(1.05) translate(0, 0);
    }

    50% {
        transform: scale(1.15) translate(-1%, -1%);
    }

    100% {
        transform: scale(1.05) translate(0, 0);
    }
}

.hero-bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('hero_fluid_8k.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    opacity: 1;
    animation: heroCinematic 20s ease-in-out infinite;
    /* HDR / 8K Effect Simulation */
    filter: contrast(1.25) saturate(1.2) brightness(1.1) drop-shadow(0 0 0 rgba(0, 0, 0, 0));
    transform: translateZ(0);
    /* Force GPU */
    backface-visibility: hidden;
    perspective: 1000px;
}


/* Gradient Overlay */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.6) 40%, #0f172a 100%);
    z-index: 0;
    pointer-events: none;
}

.hero-container {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #f8fafc;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: rgba(15, 23, 42, 0.4);
    padding: 10px 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Layout */
.section {
    padding: 100px 0;
}

.grid {
    display: grid;
    gap: 30px;
}

.services-grid,
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Cards (Glassmorphism) */
.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(5px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Advantages */
.advantages-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.advantages-text {
    flex: 1;
}

.advantages-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-box {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--bg-darker), var(--accent-blue));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.3);
    animation: morph 8s ease-in-out infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.advantages-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    /* Turn list items into glass cards */
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(5px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.advantages-list li:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.check-icon {
    color: var(--accent-cyan);
    font-weight: bold;
    font-size: 1.2rem;
}

/* Value Items (Career Page) */
.value-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    backdrop-filter: blur(5px);
    transition: transform var(--transition-fast), border-color var(--transition-fast);
    height: 100%;
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    box-shadow: 0 5px 30px rgba(59, 130, 246, 0.2);
}

/* Team */
.member-photo {
    width: 100%;
    height: 250px;
    background-color: #2b3544;
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.member-photo::after {
    content: 'Photo';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.2);
}

.member-role {
    color: var(--accent-blue);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Blog */
.blog-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-cyan);
    font-weight: 600;
}

.read-more:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent-blue);
    transition: transform 0.3s;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
}

.faq-answer p {
    padding-bottom: 20px;
}

.faq-disclaimer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
}

/* Footer & Contact Form */
.footer {
    background-color: var(--bg-darker);
    padding: 80px 0 20px;
    border-top: 1px solid var(--glass-border);
}

/* About Section - Revised */
.about {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.about-mission {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.mission-text {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.team-grid {
    display: flex;
    /* Can be grid if more employees added later */
    justify-content: center;
    gap: 30px;
}

.team-card {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.team-photo {
    flex: 0 0 35%;
    position: relative;
    min-height: 400px;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    left: 0;
    top: 0;
}

.founder-signature {
    width: 180px !important;
    /* Override generic img width if needed */
    height: auto !important;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 10;
    opacity: 0.9;
    /* Blue glow effect as requested */
    filter: drop-shadow(0 0 8px var(--accent-blue)) drop-shadow(0 0 15px rgba(59, 130, 246, 0.5)) invert(1);
    /* Invert if the uploaded image is black text on transparent/white.
       If it's already white, remove invert(1). Assuming standard signature is black ink. */
    mix-blend-mode: screen;
    /* Helps blend if there's a background */
}

.team-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-content h3 {
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent-cyan);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    font-weight: 600;
}

.bio-intro {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 25px;
    font-style: italic;
    border-left: 3px solid var(--accent-blue);
    padding-left: 15px;
}

.experience-list {
    list-style: none;
    padding: 0;
}

.experience-list li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 20px;
}

.experience-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-blue);
    font-weight: bold;
}

.experience-list strong {
    color: white;
    display: block;
    margin-bottom: 3px;
    font-size: 1.05rem;
}

.experience-list span {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.contacts-list {
    margin-top: 30px;
}

.footer-form-wrapper {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.footer-form-wrapper h3 {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .header-container {
        position: relative;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-darker);
        padding: 20px;
        display: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .advantages-content {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text .section-title {
        text-align: center !important;
        left: auto !important;
        transform: none !important;
    }

    .about-values {
        flex-direction: column;
        gap: 15px;
    }

    .founder-image {
        height: 300px;
    }

    .about-mission {
        margin-bottom: 40px;
    }

    .team-card {
        flex-direction: column;
        max-width: 400px;
    }

    .team-photo {
        min-height: 300px;
        flex: 0 0 300px;
    }

    .team-content {
        padding: 30px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}