/* Base Typography */
h1 { font-size: clamp(3rem, 6vw, 5.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2.5rem, 4vw, 3.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.5rem, 2vw, 2rem); }
p { color: var(--text-muted); font-size: clamp(1rem, 1.2vw, 1.125rem); }

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-accent);
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
}
.cursor-follower {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, background 0.3s;
    transform: translate(-50%, -50%); /* Centered by JS */
}
.cursor-follower.hovering {
    width: 60px; height: 60px;
    background: rgba(0, 240, 255, 0.1);
}

/* Page Transition Overlay */
.page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    pointer-events: none;
    justify-content: center;
    align-items: center;
}
.transition-layer {
    position: absolute;
    width: 100%;
    height: 33.4vh;
    background: var(--bg-main);
    border-top: 1px solid var(--accent);
    transform: scaleX(0);
    transform-origin: left;
}
.layer-1 { top: 0; }
.layer-2 { top: 33.33vh; }
.layer-3 { top: 66.66vh; }
.transition-text {
    position: relative;
    z-index: 10001;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    color: white;
    opacity: 0;
    transform: translateY(20px);
}

/* Odoo-style Typography & Hover Effects */
.animated-text {
    display: inline-block;
    transition: var(--transition-smooth);
}
.animated-text:hover {
    color: var(--accent);
    transform: translateX(5px);
    letter-spacing: 1px;
}

/* 3D Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
    color: var(--accent);
}
.btn-primary {
    background: transparent;
    border: 1px solid var(--accent);
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%; height: 100%;
    background: var(--accent);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-primary:hover::before {
    width: 100%;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0,240,255,0.4);
}
.btn-primary:hover .btn-text {
    color: #000;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--border-subtle);
}
.btn-outline .btn-text {
    color: var(--text-main);
}
.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0%; height: 100%;
    background: var(--bg-secondary);
    z-index: -1;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.btn-outline:hover::before {
    width: 100%;
}
.btn-outline:hover .btn-text {
    color: var(--text-main);
}

/* Department Tabs */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.tab-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab-btn:hover {
    border-color: var(--accent);
    color: var(--text-main);
}
.tab-btn.active {
    background: var(--accent);
    color: var(--bg-main);
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0,240,255,0.3);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-out forwards;
}
.tab-content.active {
    display: grid;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header */
.main-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s, backdrop-filter 0.3s;
}
.main-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem 0;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}
.main-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
}
.main-nav a:hover {
    color: var(--accent);
}
/* Mega Menu (Simple) */
.has-dropdown { position: relative; }
.mega-menu {
    position: absolute;
    top: 100%; left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem;
    width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(10px);
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.mega-menu h4 {
    font-size: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.mega-menu a {
    display: block;
    padding: 0.5rem 0;
    font-weight: 400;
    color: var(--text-main);
}
.mobile-menu-toggle { display: none; }

/* Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 2.5rem;
}
.text-gradient {
    background: linear-gradient(90deg, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.text-gradient-accent {
    background: linear-gradient(90deg, var(--accent), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
