@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,700&f[]=switzer@400,600&display=swap');

:root {
    --bg-deep: #102542;
    --accent: #f5a623;
    --text-light: #fff8e8;
    --glass: rgba(255, 248, 232, 0.05);
    --glass-border: rgba(255, 248, 232, 0.1);
    --heading-font: 'Clash Display', sans-serif;
    --body-font: 'Switzer', sans-serif;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Navbar: Double-Border Cyber Mesh (ID 10) --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1400px;
    z-index: 1000;
    background: rgba(16, 37, 66, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--accent);
    opacity: 0.3;
    pointer-events: none;
    clip-path: polygon(0 0, 20px 0, 20px 1px, 1px 1px, 1px 20px, 0 20px, 0 0, 100% 0, 100% 20px, calc(100% - 1px) 20px, calc(100% - 1px) 1px, calc(100% - 20px) 1px, calc(100% - 20px) 0, 100% 0, 100% 100%, calc(100% - 20px) 100%, calc(100% - 20px) calc(100% - 1px), calc(100% - 1px) calc(100% - 1px), calc(100% - 1px) calc(100% - 20px), 100% calc(100% - 20px), 100% 100%, 0 100%, 0 calc(100% - 20px), 1px calc(100% - 20px), 1px calc(100% - 1px), 20px calc(100% - 1px), 20px 100%, 0 100%);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.nav-cta {
    background: var(--accent);
    color: var(--bg-deep);
    padding: 10px 25px;
    font-weight: 700;
    text-decoration: none;
    clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
    transition: 0.3s;
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(245, 166, 35, 0.4);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Logo Styling */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 5px 0;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

.footer-logo {
    width: auto;
    height: 80px;
    max-width: 280px;
    object-fit: contain;
    margin-bottom: 25px;
    display: block;
    border-radius: 4px;
}

/* --- Hero: Kinetic Variable Typo Reveal (ID 2) --- */
.hero {
    height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(rgba(16, 37, 66, 0.8), rgba(16, 37, 66, 0.8)), url('../img/1.jpg');
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    transition: transform 10s linear;
}

.hero:hover .hero-bg {
    transform: scale(1);
}

.hero-h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 20px;
    transition: font-weight 0.5s, letter-spacing 0.5s;
}

.hero-h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-light);
}

.hero-h1 .solid {
    color: var(--text-light);
    -webkit-text-stroke: 0;
}

.hero-h1:hover {
    font-weight: 400;
    letter-spacing: 10px;
}

.hero-p {
    font-size: 1.2rem;
    max-width: 600px;
    color: var(--accent);
    margin-bottom: 40px;
    font-weight: 600;
}

/* --- Bento Grid Services (ID 4) --- */
.services {
    padding: 100px 5%;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 25px;
}

.bento-item {
    background: linear-gradient(135deg, rgba(255, 248, 232, 0.05) 0%, rgba(255, 248, 232, 0.02) 100%);
    border: 1px solid var(--glass-border);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border-radius: 24px;
}

.bento-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(245, 166, 35, 0.1), transparent 60%);
    opacity: 0;
    transition: 0.5s;
}

.bento-item:hover {
    background: rgba(255, 248, 232, 0.08);
    border-color: var(--accent);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(245, 166, 35, 0.1);
}

.bento-item:hover::before {
    opacity: 1;
}

.bento-item i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: auto;
    transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.bento-item:hover i {
    transform: scale(1.1) rotate(-10deg);
    filter: drop-shadow(0 0 10px var(--accent));
}

.bento-item h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.bento-item p {
    font-size: 0.95rem;
    opacity: 0.6;
    position: relative;
    z-index: 1;
    transition: 0.3s;
}

.bento-item:hover p {
    opacity: 0.9;
}

.item-1 { grid-column: span 2; grid-row: span 1; }
.item-2 { grid-column: span 2; }
.item-3 { grid-column: span 1; }
.item-4 { grid-column: span 1; }
.item-5 { grid-column: span 2; }

/* --- Detail Section 1: Split-Screen Kinetic (ID 18) --- */
.detail-1 {
    display: flex;
    min-height: 100vh;
}

.detail-sticky {
    width: 40%;
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10%;
    background: var(--accent);
    color: var(--bg-deep);
}

.detail-content {
    width: 60%;
    padding: 10%;
}

.detail-image {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    margin-bottom: 50px;
    border: 1px solid var(--glass-border);
}

/* --- CTA Strip: Glass-Bridge Floating Strip (ID 2) --- */
.cta-strip {
    margin: 50px 5%;
    background: rgba(255, 248, 232, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 100px;
}

.cta-strip h2 {
    font-size: 2.5rem;
}

/* --- Area Section: Neon Data-Grid (ID 2) --- */
.areas {
    padding: 100px 5%;
}

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.area-chip {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 15px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
    position: relative;
}

.area-chip::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse 2s infinite;
}

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

.area-chip:hover {
    background: var(--accent);
    color: var(--bg-deep);
}

/* --- FAQ: Mechanical Slat Accordion (ID 2) --- */
.faq {
    padding: 100px 5%;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 10px;
}

.faq-question {
    padding: 30px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    padding: 0 30px;
    opacity: 0.7;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 30px;
}

/* --- Contact: Radial Spotlight Map (ID 9) --- */
.contact-section {
    padding: 100px 5%;
    background: #081221;
    position: relative;
}

.contact-container {
    display: flex;
    gap: 50px;
    align-items: center;
}

.map-wrapper {
    flex: 1;
    height: 600px;
    position: relative;
    overflow: hidden;
    clip-path: circle(30% at 50% 50%);
    transition: clip-path 0.5s;
}

.map-wrapper:hover {
    clip-path: circle(100% at 50% 50%);
}

.contact-info-card {
    flex: 1;
    background: var(--glass);
    padding: 60px;
    border: 1px solid var(--accent);
}

/* --- Footer: Oversized Branding V2 (ID 18) --- */
.footer {
    padding: 100px 5% 50px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 100px;
}

.footer-brand {
    flex: 2;
}

.footer-brand h2 {
    font-size: 12vw;
    line-height: 0.8;
    margin-bottom: 40px;
    color: rgba(255, 248, 232, 0.03);
    -webkit-text-stroke: 1px rgba(255, 248, 232, 0.1);
}

.footer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-bottom {
    padding: 30px 5%;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 991px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .footer { flex-direction: column; gap: 50px; }
    .contact-container { flex-direction: column; }
    .detail-1 { flex-direction: column; }
    .detail-sticky { width: 100%; height: auto; position: static; padding: 60px 5%; }
    .detail-content { width: 100%; padding: 60px 5%; }
    .detail-2 > div { flex-direction: column; padding: 60px 20px !important; gap: 40px !important; }
    .detail-3 > div:nth-child(2) { flex-direction: column; align-items: center; gap: 30px !important; }
    .detail-3 > div:nth-child(2) > div { transform: none !important; width: 100% !important; max-width: 100%; height: 350px !important; }
    #about > div { flex-direction: column; gap: 40px !important; }
    #about [style*="height: 500px"] { height: 350px !important; }
}

@media (max-width: 768px) {
    .navbar { width: 80%; left: 46%; padding: 15px 20px; border-radius: 15px; }
    .nav-links { 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(16, 37, 66, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 20px;
        display: none;
        border: 1px solid var(--glass-border);
        border-top: none;
        border-radius: 0 0 15px 15px;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .navbar .nav-cta { display: none; }
    .logo-img {
        height: 58px;
        max-width: 200px;
    }
    .footer-logo {
        height: 60px;
        max-width: 220px;
    }
    .hero-h1 { font-size: 2.5rem; }
    .hero-p { font-size: 1rem; }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .item-1, .item-2, .item-5 { grid-column: span 1; }
    .cta-strip { flex-direction: column; text-align: center; gap: 30px; border-radius: 20px; padding: 40px 20px; }
    .cta-strip h2 { font-size: 1.5rem; }
    .cta-strip a { font-size: 1.2rem !important; width: 100%; }
    .detail-2 h3 { font-size: 1.8rem !important; }
    .area-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-info-card { padding: 40px 20px; }
    .footer-brand h2 { font-size: 20vw; }
}

/* Micro-Particle Trail */
.particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.7;
    transition: transform 0.2s, opacity 0.5s;
}
