:root {
    --bg-color: #000000;
    /* Pure Black */
    --text-color: #e0e0e0;
    --primary-color: #D4AF37;
    /* Metallic Gold */
    --secondary-color: #8A6E24;
    /* Darker Gold/Bronze */
    --accent-color: #ffffff;
    /* White accent for contrast */
    --glass-bg: rgba(20, 20, 20, 0.6);
    /* Darker glass */
    --glass-border: rgba(212, 175, 55, 0.3);
    /* Gold tint border */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Glow */
.background-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
    animation: pulse 10s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    /* Reduced horizontal padding to move logo left */
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.menu-toggle {
    display: none;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 55px;
    /* Increased size */
    width: auto;
}

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

.lang-btn {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
}

.lang-btn:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-links .btn-primary {
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    color: var(--primary-color);
}

.nav-links .btn-primary:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 5% 0;
    /* Added top padding to clear the navbar */
    position: relative;
    overflow: hidden;
}

.brand-logo {
    height: 55px;
    /* Increased from 30px */
    width: auto;
}

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

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero .gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: #000000;
    /* Black text on gold button for contrast */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-visual {
    position: relative;
    width: 40%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-orb {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--secondary-color), transparent);
    border-radius: 50%;
    filter: blur(50px);
    animation: orb-float 6s ease-in-out infinite;
}

@keyframes orb-float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Services Section */
.services,
.news-section,
.philosophy,
.tech-stack {
    padding: 5rem 5%;
}

.tech-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.tech-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
    background: rgba(30, 30, 30, 0.6);
}

.tech-card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.tech-card h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.tech-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-top: -2rem;
}

.detail-card {
    border-color: rgba(138, 110, 36, 0.3);
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.9) 100%);
}

.news-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.news-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.news-snippet {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.news-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-link:hover {
    text-decoration: underline;
}

.loading-news {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-color);
    font-size: 1.2rem;
    padding: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

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

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

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

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

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: rgba(0, 0, 0, 0.2);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-info .info-item {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
}

.contact-info .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.1em;
}

.contact-info .value {
    font-size: 1.5rem;
    font-family: var(--font-heading);
}

.contact-form {
    background: var(--glass-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group select option {
    background-color: #000000;
    color: var(--text-color);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    text-align: center;
    min-height: 1.5em;
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
        text-align: center;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    /* Mobile Menu */
    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 1001;
        /* Ensure it is above the menu */
    }

    .menu-toggle .bar {
        display: block;
        width: 30px;
        /* Slightly wider */
        height: 3px;
        margin: 6px auto;
        -webkit-transition: all 0.3s ease-in-out;
        transition: all 0.3s ease-in-out;
        background-color: var(--primary-color);
        /* Gold for visibility */
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
        /* Shadow for contrast */
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        /* Full screen menu */
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        /* Center items vertically */
        background-color: rgba(0, 0, 0, 0.98);
        /* Almost solid black */
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: none;
        padding: 0;
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links a,
    .nav-links .lang-btn,
    .nav-links .btn-primary {
        margin: 1rem auto;
        display: block;
        font-size: 1.5rem;
        /* Larger font for mobile touch */
        width: 80%;
        /* Wider hit area */
        text-align: center;
    }

    .nav-links .btn-primary {
        display: inline-block;
        width: auto;
        padding: 1rem 2rem;
        margin-top: 2rem;
    }

    .lang-btn {
        margin: 1.5rem auto;
        display: inline-block;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}