/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* --- Reset & Variables --- */
:root {
    --primary-color: #5c24ff;
    --secondary-color: #24b8ff;
    --text-light: #f8f9fa;
    --text-muted: #a0aab2;
    --text-dark: #1a1a1a;
    --glass-bg: rgba(18, 18, 25, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-light);
    overflow-x: hidden;
    background-color: #06040a; 
    min-height: 100vh;
    line-height: 1.6;
    cursor: url('../img/logo.png'), auto;
}

a, button, .btn-corporate {
    cursor: url('../img/logo.png'), pointer;
}

/* --- Animated Gradient Background (Corporate & Subtle) --- */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -999;
    background: radial-gradient(circle at top right, rgba(36, 17, 84, 0.5), transparent 50%),
                radial-gradient(circle at bottom left, rgba(16, 26, 66, 0.5), transparent 50%);
    background-color: #080612;
    animation: pulseBg 15s ease-in-out infinite alternate;
    pointer-events: none; /* Prevents background from blocking clicks */
}

@keyframes pulseBg {
    0% { opacity: 0.8; }
    100% { opacity: 1; }
}

/* --- Layout & Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.main-content {
    padding-top: 120px;
    min-height: calc(100vh - 80px);
    position: relative;
    z-index: 1;
}

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(8, 6, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: var(--transition);
    pointer-events: auto;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-logo {
    max-height: 40px; /* Adjust based on actual logo proportion */
    width: auto;
    display: block;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* --- Lang Switcher --- */
.lang-switcher {
    display: flex;
    gap: 15px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.lang-btn.active {
    color: #fff;
}

.lang-btn::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.lang-btn.active::after, .lang-btn:hover::after {
    width: 100%;
}

/* --- Hamburger Menu --- */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1002; /* Must be higher than sidebar */
    position: relative;
}

.hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: absolute;
    left: 0;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 11px; }
.hamburger span:nth-child(3) { top: 22px; }

/* The "Vacuum/Spray" hover effect */
.hamburger:not(.active):hover span:nth-child(1) {
    animation: vacuumSpray 0.6s forwards;
}
.hamburger:not(.active):hover span:nth-child(2) {
    animation: vacuumSpray 0.6s forwards 0.1s;
}
.hamburger:not(.active):hover span:nth-child(3) {
    animation: vacuumSpray 0.6s forwards 0.2s;
}

@keyframes vacuumSpray {
    0% { transform: scaleX(1); opacity: 1; transform-origin: left; }
    30% { transform: scaleX(0.1) translateX(-5px); opacity: 0; transform-origin: left; }
    50% { transform: scaleX(0.1) translateX(20px); opacity: 0; transform-origin: right; }
    70% { transform: scaleX(1.2) translateX(0); opacity: 1; transform-origin: right; }
    100% { transform: scaleX(1); opacity: 1; transform-origin: center; }
}

/* Transform to X when active */
.hamburger.active span:nth-child(1) {
    top: 11px;
    transform: rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}
.hamburger.active span:nth-child(3) {
    top: 11px;
    transform: rotate(-45deg);
}

/* --- Sidebar Menu (Dropdown Style) --- */
.sidebar-menu {
    position: fixed;
    top: 90px; 
    right: max(40px, calc(50vw - 660px)); /* Perfectly aligns with hamburger on all ultra-wide screens */
    width: 350px;
    height: auto;
    max-height: calc(100vh - 120px);
    background: rgba(11, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    z-index: 10000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
    overflow-y: auto;
    
    /* Vacuum / Spray Dropdown Animation with EXTREME 3D Bending */
    transform-origin: top right;
    transform: perspective(600px) scale(0.1) rotateX(-80deg) rotateY(45deg) translateY(-60px) translateX(30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.75s cubic-bezier(0.68, -0.4, 0.265, 1.5);
}

.sidebar-menu.active {
    transform: perspective(800px) scale(1) rotateX(0) rotateY(0) translateY(0) translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.sidebar-content {
    padding: 40px 30px;
    position: relative;
}

.close-btn {
    display: none; /* Hide close button as it acts like a dropdown now */
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 30px;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-muted);
    display: inline-block;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
}

.has-submenu .submenu {
    list-style: none;
    margin-top: 0;
    margin-left: 20px;
    border-left: 1px solid var(--glass-border);
    padding-left: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-submenu:hover .submenu {
    max-height: 500px;
    opacity: 1;
    margin-top: 15px;
}

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

.submenu li {
    margin-bottom: 15px;
}

.submenu a {
    font-size: 1.1rem;
}

/* --- Sections & Corporate Cards --- */
.section-padding {
    padding: 80px 40px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px; /* Less rounded for corporate look */
    padding: 50px 40px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(25, 25, 35, 0.8);
}

.glass-card:hover::before {
    opacity: 1;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #fff;
    font-weight: 300;
    letter-spacing: -0.5px;
}

/* --- Hero Section (Home) --- */
.hero {
    height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 600px;
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* --- Content Typography --- */
.content-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

/* --- Contact Section Corporate Redesign --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info-wrap {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    padding: 30px;
    border-left: 2px solid var(--glass-border);
    transition: var(--transition);
}

.contact-item:hover {
    border-left-color: var(--secondary-color);
    background: rgba(255, 255, 255, 0.02);
}

.contact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.contact-value {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 400;
}

.contact-map {
    height: 100%;
    min-height: 400px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

/* --- Footer --- */
.footer {
    background: #050408;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    text-align: center;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom a {
    color: #fff;
}

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

/* --- Utilities --- */
.btn-corporate {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-corporate:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .sidebar-menu {
        width: calc(100% - 60px);
        right: 30px;
    }
    .hero-logo {
        max-width: 80%;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-padding {
        padding: 50px 20px;
    }
    .glass-card {
        padding: 30px 20px;
    }
}
