/* Base Styles & Reset */
:root {
    --bg-dark: #09090b; /* Near-black for main background */
    --bg-card: #131316; /* Slightly lighter for cards */
    --text-primary: #f9f9fb; /* Off-white for main text */
    --text-secondary: #a1a1aa; /* Light gray for secondary text */
    --highlight-color: #7c3aed; /* Violet/Purple for main highlight */
    --highlight-glow: rgba(124, 58, 237, 0.4); /* Soft glow for highlight */
    --border-color: #27272a; /* Dark border color */
    --radius: 12px;
    --transition-duration: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 7vw, 5.5rem);
    margin-bottom: 0.5rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.highlight {
    color: var(--highlight-color);
    text-shadow: 0 0 10px var(--highlight-glow);
}

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

.section {
    padding: 6rem 0;
    min-height: auto; /* Adjusted min-height for more content */
    position: relative;
    z-index: 5;
}

/* --- Navigation --- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(9, 9, 11, 0.7);
    border-bottom: 1px solid var(--border-color);
    transition: transform var(--transition-duration) ease-out;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--highlight-color);
}

nav {
    display: flex;
    align-items: center; /* vertical centering for all nav items */
    gap: 1.5rem; /* spacing between items */
    box-sizing: border-box;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-duration), text-shadow var(--transition-duration);
    display: flex; /* ensures inline-flex behavior inside nav */
    align-items: center;
}


nav a:hover {
    color: var(--text-primary);
    text-shadow: 0 0 5px var(--highlight-glow);
}

.contact-btn {
    border: 1px solid var(--highlight-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--highlight-color);
    background: transparent;
}

.contact-btn:hover {
    background: var(--highlight-glow);
    color: var(--text-primary);
    box-shadow: 0 0 15px var(--highlight-glow);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.subheadline {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    margin: 1.5rem auto 3rem;
    max-width: 600px;
}

.headline {
    position: relative;
}

.highlight {
    position: relative;
    display: inline-block;
    color: #7c3aed;
    /* transition: opacity 0.5s ease, transform 0.5s ease; */
}

.service-grid .highlight{
    margin-right: 7px;
    font-weight: 700;
    font-size: 20px;
}

.headline .highlight::after {
    content: '';
    position: absolute;
    right: 0px;      /* a little space after text */
    top: 10%;
    width: 0.05em;
    height: 80%;
    background-color: var(--text-secondary);
    vertical-align: bottom;
}

/* blinking cursor only */
.blink::after {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.3s, background 0.3s;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--highlight-color);
    color: var(--text-primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--highlight-glow);
}

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

.secondary-btn:hover {
    border-color: var(--highlight-color);
    color: var(--text-primary);
    background-color: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

/* --- Clients Section --- */
.clients-section {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: #111113;
}
.client-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.client-logos {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.logo-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: opacity 0.3s;
}
.logo-item:hover {
    opacity: 1;
    color: var(--text-primary);
}


/* --- Cards and Grid Layouts --- */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem;
    /* transition: transform 0.3s, box-shadow 0.3s; */
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--highlight-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.icon-indicator {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--highlight-color);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

.service-features {
    list-style: none;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}
.service-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}


/* Projects */
.projects-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #0c0c0e 100%);
}


.project-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    height: 450px; /* Taller cards */
    display: flex;
    align-items: flex-end;
    padding: 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    /* cursor: pointer; */
    transition: width 1s ease;
    width: 80%;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.project-logo {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}

.project-logo > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(9, 9, 11, 0.95), rgba(9, 9, 11, 0.2));
    z-index: 2;
}

.project-content {
    max-width: 600px;   /* ← adjust to your preferred text width */
    width: 100%;
}

.project-card[data-project="convert"] {
    /* Dark background with a corporate, data-driven look */
    background: #000000 url('/images/convert/convert.png') center / cover;
    background-size: cover;
    background-position: center;
}

.project-card[data-project="instan"] {
    /* Dark background with a corporate, data-driven look */
    background: #000000 url('/images/instan/elnara.webp') center / cover;
    background-size: cover;
    background-position: right;
}

.project-card[data-project="indental"] {
    /* Dark background with a corporate, data-driven look */
    background: #000000 url('/images/indental/indental.webp') center / cover;
    background-size: cover;
    background-position: right;
}

.project-card[data-project="rtgstudio"] {
    /* Dark background with a corporate, data-driven look */
    background: #000000 url('/images/rtgstudio/rtgstudio.png') center / cover;
    background-size: cover;
    background-position: right;
}

.project-card[data-project="mojamara"] {
    /* Dark background with a corporate, data-driven look */
    background: #000000 url('/images/mojamara/mojamara.png') center / cover;
    background-size: cover;
    background-position: right;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    /* Soft black gradient for contrast */
    background: linear-gradient(to top, rgba(9, 9, 11, 0.95), rgba(9, 9, 11, 0.2));
    transition: all 0.4s ease;
}

.project-card:hover .project-overlay {
    background: linear-gradient(to top, rgba(9, 9, 11, 0.98), rgba(9, 9, 11, 0.4));
}

.link-tag-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-tag {
    display: inline-block;
    color: var(--highlight-color);
    background-color: rgba(124, 58, 237, 0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    position: relative;
    right: 0;
}

.project-overlay h4 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}
.project-desc {
    font-size: 1rem;
    margin-bottom: 1rem;
}
.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--highlight-color);
}
.project-link:hover {
    color: var(--highlight-color);
}


/* About Section */
.about-section {
    text-align: center;
}
.about-content {
    max-width: 900px;
    margin: 0 auto;
}
.about-text {
    margin: 0 auto 3rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--highlight-color);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Contact Section */
.contact-section {
    min-height: auto;
    text-align: center;
}

#contact-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    padding: 2.5rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    border-radius: var(--radius);
    transition: border-color var(--transition-duration), box-shadow var(--transition-duration);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--highlight-color);
    outline: none;
    box-shadow: 0 0 5px var(--highlight-glow);
}

.submit-btn {
    width: 100%;
    margin-top: 1.5rem;
}

.form-status {
    margin-top: 1rem;
    font-weight: 600;
}


/* --- Background Gradient Blobs (Animated & Blurred) --- */
.blob-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    filter: blur(100px); /* Increased blur */
    z-index: 1;
    opacity: 0.5;
}

.blob {
    position: absolute;
    width: 500px; /* Larger blobs */
    height: 500px;
    border-radius: 50%;
    opacity: 0.9;
    transition: transform 10s ease-out;
}

.blob-1 {
    background: radial-gradient(circle, #7c3aed, transparent 70%);
    top: 15%;
    left: 10%;
    animation: blob-move-1 15s infinite alternate;
}

.blob-2 {
    background: radial-gradient(circle, #0e7490, transparent 70%);
    top: 55%;
    right: 8%;
    animation: blob-move-2 20s infinite alternate-reverse;
}

.blob-3 {
    background: radial-gradient(circle, #be185d, transparent 70%);
    bottom: 5%;
    left: 30%;
    animation: blob-move-3 18s infinite alternate;
}

.showVideoButton {
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.showVideoButton svg {
    transition: transform 0.2s;
    width: 50px;
    height: 50px;
}

.showVideoButton:hover svg{
    transform: scale(1.1);
}

@keyframes blob-move-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(180px, 120px) scale(1.1); }
}
@keyframes blob-move-2 {
    0% { transform: translate(0, 0) scale(1.1); }
    100% { transform: translate(-120px, -170px) scale(0.95); }
}
@keyframes blob-move-3 {
    0% { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(100px, -100px) scale(1.05); }
}

/* --- Animation Classes --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0s;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility to add delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }


/* Footer */
/* footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
} */

/* Footer layout */
.footer-grid {
    display: grid;
    grid-template-columns: 1fr .8fr .5fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

.footer-col p {
    margin: 0.4rem 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.footer-title {
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

/* Brand */
.footer-logo {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.footer-note {
    color: var(--text-secondary);
    max-width: 280px;
}

/* Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-legal {
    text-align: right;
}

.language-switcher {
    display: inline-flex; /* inline with nav items */
    align-items: center;
    position: relative;   /* required for dropdown absolute positioning */
    cursor: pointer;
}

.lang-dropdown .current-flag {
    display: block;
    width: 20px;
    aspect-ratio: 24 / 16;
    border-radius: 2px;
}

.lang-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: -10px;
    background-color: rgba(0,0,0,0.9);
    border-radius: 5px;
    overflow: hidden;
    z-index: 1000;
    white-space: nowrap;
}

.lang-dropdown-content a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    justify-content: center;
}

.lang-dropdown-content a:hover {
    background-color: rgba(255,255,255,0.1);
}

.lang-dropdown:hover .lang-dropdown-content {
    display: block;
}

.lang-dropdown-content .flag {
    width: 20px;
    aspect-ratio: 24 / 16;
    border-radius: 2px;
}





/* --- Responsiveness --- */
@media (max-width: 900px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    .client-logos {
        justify-content: center;
        gap: 2rem;
    }

    .project-content {
        max-width: 400px;   /* ← adjust to your preferred text width */
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        text-align: center;
    }
    nav {
        margin-top: 0.5rem;
        gap: 1rem;
    }
    nav a {
        font-size: 0.9rem;
    }
    .contact-btn {
        padding: 0.3rem 0.8rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .stats-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .project-card {
        height: 250px;
    }
    .project-overlay {
        padding: 10px; /* Adjust height for smaller screens */
    }
    .project-content {
        max-width: 300px;   /* ← adjust to your preferred text width */
    }
    .container {
        padding: 0 .5rem;
    }
    .nav-content {
        padding: 1rem;
    }
    .project-tag {
        padding: 0.1rem 0.4rem;
        font-size: 0.6rem;
    }

    .project-overlay h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    .project-desc {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
    .project-link {
        font-size: 0.7rem;
    }

    .project-logo {
        width: 30px;
        height: 30px;
        top: .5rem;
        right: .5rem;
        padding: 5px;
    }

    .showVideoButton {
        top: .5rem;
        left: .5rem;
    }
    .showVideoButton svg {
        width: 20px;
        height: 20px;
    }
    .project-grid {
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-note {
        margin: 0 auto;
        max-width: 500px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.6rem;
        text-align: center;
    }

    .footer-legal {
        text-align: center;
    }

    .hero-section {
        padding-top: 9rem;
    }
}