/* GLOBAL VARIABLES & RESET */
:root {
    --color-bg: #0b4073;
    --color-bg-secondary: #082d52;
    --color-bg-glass: rgba(8, 45, 82, 0.7);
    --color-accent: #02b2bf;
    --color-accent-hover: #03c7d6;
    --color-text: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-border: #1e293b;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 70px;
}

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

body {
    background: radial-gradient(circle at center top, #145b95 0%, #062b50 100%);
    background-attachment: fixed;
    color: var(--color-text);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 700;
}

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

a:hover {
    color: var(--color-accent);
}

.text-gradient {
    background: linear-gradient(90deg, #ffffff, var(--color-accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* TYPOGRAPHY */
.page-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* LAYOUT UTILITIES */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}
.pt-nav {
    padding-top: calc(var(--nav-height) + 2rem);
}
.grid {
    display: grid;
    gap: 2rem;
}
.cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* NAVIGATION */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--color-bg-glass);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    z-index: 1000;
    transition: var(--transition-smooth);
}
.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}
.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.logo img {
    height: 45px !important;
    max-width: 250px !important;
}
.logo-icon {
    color: var(--color-accent);
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.2rem;
    flex-wrap: nowrap;
    align-items: center;
}
.nav-links li {
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.nav-links a {
    font-size: 1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
}
.highlight-link {
    color: var(--color-accent) !important;
    border: 1px solid var(--color-accent);
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}
.highlight-link:hover {
    background: rgba(0, 240, 255, 0.1);
}

/* DROPDOWN MENU */
.dropdown {
    position: relative;
}
.dropbtn {
    display: flex;
    align-items: center;
}
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-bg-secondary);
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    margin-top: 15px;
}
.dropdown::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: -15px;
    left: 0;
}
.dropdown-content a {
    padding: 12px 16px;
    display: block !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.dropdown-content a:last-child {
    border-bottom: none;
}
.dropdown-content a:hover {
    background-color: rgba(2, 178, 191, 0.1);
    color: var(--color-accent);
}
@media (hover: hover) {
    .dropdown:hover .dropdown-content {
        display: block;
        animation: dropFadeIn 0.2s ease-out;
    }
}
@keyframes dropFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-menu-toggle {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}
.mobile-menu-toggle svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-text);
}

/* BUTTONS */
.btn {
    padding: 0.8rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
}
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-bg);
}
.btn-primary:hover {
    background-color: var(--color-accent-hover);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}
.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* SPA PAGES */
.page {
    display: none;
    min-height: 100vh;
}
.page.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    background: radial-gradient(circle at center, #112240 0%, var(--color-bg) 70%);
}
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}
.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* CARDS */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.card-image {
    height: 200px;
    background-color: #1e293b;
    background-size: cover;
    background-position: center;
}
.placeholder-img-1 { background-image: linear-gradient(45deg, #0f172a, #1e293b); }
.placeholder-img-2 { background-image: linear-gradient(135deg, #0f172a, #1e293b); }
.placeholder-img-3 { background-image: linear-gradient(225deg, #0f172a, #1e293b); }
.placeholder-img-4 { background-image: linear-gradient(315deg, #0f172a, #1e293b); }

.card-content {
    padding: 1.5rem;
}
.card-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.card-content p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* 3D EXPERIENCE PAGE */
.page-fullscreen {
    padding: 0;
    position: relative;
    height: 100vh;
    overflow: hidden;
}
#canvas-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.experience-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    padding: calc(var(--nav-height) + 2rem) 2rem 2rem 2rem;
    display: flex;
    justify-content: space-between;
}
.exp-left-panel, .exp-right-panel {
    background: var(--color-bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    width: 350px;
    pointer-events: auto;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.exp-title {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 0.2rem;
}
.exp-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.exp-specs .spec-item {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
}
.exp-specs .spec-item span {
    color: var(--color-text-muted);
}
.exp-controls {
    margin-top: 2rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.exp-right-panel.hidden {
    display: none;
}
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.panel-header h3 {
    font-size: 1.5rem;
}
.close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
}
.close-btn:hover {
    color: var(--color-accent);
}
.panel-body p {
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
.panel-spec-list {
    list-style: none;
}
.panel-spec-list li {
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--color-border);
}

/* GLOBALS */
.hidden { display: none !important; }

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Process Flow (How we work) */
.process-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.process-step {
    flex: 1;
    min-width: 200px;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
}

.process-step:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.process-step .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 150, 175, 0.1);
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.process-arrow {
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
    }
    .process-arrow {
        transform: rotate(90deg);
        margin: 1rem 0;
    }
}

/* === MOBILE RESPONSIVENESS OVERRIDES === */
@media (max-width: 992px) {
    .nav-logo-img, .logo img {
        max-width: 180px !important;
        height: auto !important;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: var(--color-bg-secondary);
        flex-direction: column;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    .nav-links.active {
        left: 0;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .feature-split {
        flex-direction: column;
    }
    .feature-text, .feature-image {
        min-width: 100% !important;
    }
    #canvas-container {
        height: 50vh;
    }
    .grid {
        grid-template-columns: 1fr !important;
    }
    /* Mobile Dropdown */
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        background-color: transparent;
        margin-top: 0;
        border: none;
        border-left: 2px solid var(--color-border);
        border-radius: 0;
        padding-left: 0.5rem;
        width: 100%;
        margin-left: 1rem;
    }
    .dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    .dropdown.active .dropdown-content {
        display: block;
    }
    .dropdown::after {
        display: none;
    }
    .nav-links li {
        width: 100%;
        flex-direction: column;
        align-items: flex-start !important;
        justify-content: flex-start;
        padding: 0 2rem;
        margin-bottom: 1.5rem;
    }
    .nav-links a {
        font-size: 1.3rem !important;
    }
    .dropbtn {
        width: 100%;
        justify-content: space-between;
    }
    .dropdown-content a {
        font-size: 1.1rem !important;
        padding: 1rem 1rem !important;
    }
    .highlight-link {
        margin-top: 1rem;
    }
}

/* GLOBAL FOOTER */
.global-footer {
    background-color: var(--color-bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem 1rem 2rem;
    margin-top: 4rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2rem;
}
.footer-social {
    display: flex;
    flex-direction: column;
}
.social-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    color: var(--color-text);
    background-color: rgba(2, 178, 191, 0.05);
    transition: var(--transition-smooth);
}
.social-icon-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background-color: rgba(2, 178, 191, 0.15);
}
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
    }
}
