/* 
   NOVARTE AI - GLOBAL STYLES 
   Strict No-JS Implementation
   Theme: Deep Black (#050505) + Orange (#FF6B00) + Blue (#2952FF)
*/

:root {
    /* Brand Colors */
    --bg-color: #050505;
    --bg-card: #0a0a0a;
    --text-main: #ffffff;
    --text-muted: #e5e5e5;
    /* High contrast requirement */
    --accent-primary: #FF6B00;
    /* Orange */
    --accent-secondary: #2952FF;
    /* Blue */

    /* Functional */
    --border-color: #222;
    --nav-height: 80px;
    --container-width: 1200px;
    --container-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dynamic Background --- */
.dynamic-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background: #050505;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: breathe 10s infinite alternate ease-in-out;
}

/* Star Field / Geometric Grid Layer */
.dynamic-bg::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    background-position: 0 0, 30px 30px;
    animation: galaxyRotate 100s linear infinite;
    z-index: -1;
}

@keyframes galaxyRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    animation-duration: 15s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    animation-duration: 18s;
}

.orb-3 {
    top: 40%;
    left: 40%;
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #4a00e0, transparent 70%);
    opacity: 0.2;
    animation-duration: 12s;
}

@keyframes breathe {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, -20px) scale(1.1);
    }
}

/* --- Resets & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
    color: var(--text-main);
    border-left: 3px solid var(--accent-primary);
    padding-left: 1rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-muted);
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --- Components --- */

/* CTA Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background-color: white;
    color: black;
}

.btn-secondary {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-secondary:hover {
    background: white;
    color: black;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--accent-secondary);
    transform: translateY(-5px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

/* Animations (CSS Only) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* --- Navigation (CSS Only, No JS) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* Dropdown CSS */
.dropdown-parent {
    position: relative;
    cursor: pointer;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 200px;
    display: none;
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dropdown-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-primary);
}

/* Show dropdown on hover (Desktop) */
.dropdown-parent:hover .dropdown-menu {
    display: flex;
    animation: fadeIn 0.2s ease;
}

/* Mobile Menu Logic (Checkbox Hack) */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--border-color);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }

    /* When checkbox is checked, show menu */
    .menu-toggle:checked~.nav-links {
        transform: translateY(0);
    }
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #111;
    color: #666;
    font-size: 0.9rem;
}

/* --- Accordion (CSS Only - Details/Summary) --- */
details {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

summary {
    cursor: pointer;
    padding: 1.5rem 0;
    font-weight: 700;
    list-style: none;
    position: relative;
    font-size: 1.25rem;
    color: white;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 0;
    color: var(--accent-primary);
    font-weight: 300;
    font-size: 1.5rem;
}

details[open] summary::after {
    content: '-';
}

details[open] summary {
    color: var(--accent-primary);
}

details p {
    padding-bottom: 1.5rem;
    animation: fadeIn 0.3s ease;
}