/* CSS Variables */
:root {
    --bg-dark: #0B1120;
    --bg-card: #1E293B;
    --primary: #38BDF8;
    /* Electric Blue */
    --primary-glow: rgba(56, 189, 248, 0.3);
    --secondary: #64748B;
    /* Slate */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-gradient: linear-gradient(135deg, #38BDF8 0%, #0EA5E9 100%);
    --font-main: 'Outfit', sans-serif;
    --nav-height: 80px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

/* Language Switching Logic */
.tr-lang {
    display: none;
}

/* When TR is active */
body.show-tr .en {
    display: none !important;
}

body.show-tr .tr-lang {
    display: inline;
    /* Default */
}

/* Helper for block level tr elements */
body.show-tr span.tr-lang {
    display: inline;
}

body.show-tr div.tr-lang,
body.show-tr p.tr-lang,
body.show-tr h1.tr-lang,
body.show-tr h2.tr-lang,
body.show-tr h3.tr-lang,
body.show-tr li.tr-lang {
    display: block;
}

/* When EN is active (default usually, but explicit here) */
body.show-en .tr-lang {
    display: none !important;
}


/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}


/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 5px;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-primary-small {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 20px var(--primary-glow);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    margin-left: 15px;
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
}

.btn-primary-small {
    background: var(--accent-gradient);
    padding: 8px 20px;
    font-size: 0.9rem;
    border-radius: 4px;
}

/* Language Switcher */
.lang-switch {
    margin-left: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: 0.3s;
}

.lang-btn.active,
.lang-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Header */
.header {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(11, 17, 32, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--primary);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-list a:not(.btn-primary-small):hover {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(11, 17, 32, 0.7), rgba(11, 17, 32, 0.9)), url('../assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
}

/* Stats Section */
.stats {
    padding: 40px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    text-align: center;
    min-width: 150px;
}

.stat-item .number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-item .label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Services */
.section {
    padding: 100px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    /* Wider cards for more detail */
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--primary);
}

.service-details ul {
    margin-top: 15px;
    list-style: none;
}

.service-details li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.service-details li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* Detailed About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.about-section {
    background: rgba(30, 41, 59, 0.3);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.placeholder-box {
    border: 2px dashed rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    font-style: italic;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 50px;
}

.feature-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary);
}

/* Visual Abstract */
.visual-abstract {
    width: 100%;
    height: 400px;
    position: relative;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.5), rgba(11, 17, 32, 0));
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath fill="%2338BDF8" fill-opacity="0.2" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: 50% 100%;
    animation: flow 10s linear infinite;
    pointer-events: none;
}

.w2 {
    bottom: 10px;
    opacity: 0.5;
    animation-duration: 15s;
    animation-direction: reverse;
}

.w3 {
    bottom: 20px;
    opacity: 0.2;
    animation-duration: 7s;
}

@keyframes flow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-details .item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(11, 17, 32, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Footer */
.footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
        /* Slightly smaller for better fit */
        padding: 0 15px;
        /* Prevent edge touching */
    }

    .hero-content p {
        padding: 0 15px;
    }

    .nav {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: rgba(11, 17, 32, 0.95);
        /* Better visibility */
        padding: 30px 20px;
        flex-direction: column;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(15px);
        /* Stronger blur */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        display: flex;
        /* Flex to align items better */
        animation: slideDown 0.3s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-list {
        flex-direction: column;
        gap: 25px;
        width: 100%;
        text-align: center;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        font-size: 1.2rem;
        padding: 10px;
    }

    .lang-switch {
        margin-left: 0;
        margin-top: 15px;
        justify-content: center;
    }

    .lang-btn {
        padding: 8px 20px;
        font-size: 1rem;
    }

    .mobile-toggle {
        display: block;
        font-size: 1.8rem;
        /* Larger touch target */
        margin-right: 15px;
    }

    /* Stack grids vertically */
    .feature-grid,
    .contact-wrapper,
    .services-grid,
    .stats-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Adjust spacing */
    .section {
        padding: 60px 0;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn-secondary {
        margin-left: 0;
        /* Remove margin for stack */
    }

    .visual-img-container,
    .service-img-box {
        height: 250px;
        /* Smaller images on mobile */
    }
}

/* Animations */
.animate-up,
.fade-in,
.fade-in-left,
.fade-in-right {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.show-animate {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}