/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --bg-main: #0B0F19;
    --bg-card: #151C2B;
    --bg-hover: #1E283D;
    --gold: #D4AF37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --green: #10B981;
    --red: #EF4444;
    --blue: #3B82F6; /* Added for the new modal theme */
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;
    --border-color: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    letter-spacing: -1px;
}

/* --- GLASSMORPHISM NAVBAR --- */
.glass-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(11, 15, 25, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    z-index: 9999;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 45px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

.nav-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

.search-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

#solution-search {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 15px 10px 40px;
    border-radius: 25px;
    color: white;
    font-size: 0.95rem;
    width: 220px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#solution-search:focus {
    width: 320px;
    border-color: var(--gold);
    outline: none;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px var(--gold-glow);
}

.portal-btn {
    background: linear-gradient(135deg, var(--gold), #B8860B);
    color: #000;
    border: none;
    padding: 10px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--gold-glow);
}

/* --- HERO SECTION --- */
.hero-section {
    padding-top: 100px; 
}

.video-presentation-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    max-width: 1100px;
    margin: 0 auto;
    transition: border-color 0.5s ease;
    position: relative; 
}

.video-presentation-box:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.video-title {
    text-align: center;
    font-size: 2.2rem;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

.intro-video {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    background-color: #000;
}

/* --- CORPORATE IDENTITY --- */
.identity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.identity-card {
    background: rgba(21, 28, 43, 0.4);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 12px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.identity-card h3 {
    color: var(--gold);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 0.5rem;
}

.identity-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.identity-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card);
    border-color: rgba(212, 175, 55, 0.3);
}

.highlight-card {
    border: 1px solid var(--gold);
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(212, 175, 55, 0.05) 100%);
}

.highlight-card p {
    color: white;
    font-size: 1.2rem;
    font-weight: 500;
}

/* --- 7 CATEGORIES GRID & 3D TILT --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem; 
}

.tilt-card {
    display: block;
    text-decoration: none;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
}

.tilt-card:hover {
    border-color: var(--gold);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.25);
    z-index: 5;
}

.card-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; 
    z-index: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tilt-card:hover .card-bg-img {
    transform: scale(1.15) translateZ(-20px);
}

.card-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.4) 40%, rgba(11, 15, 25, 0) 100%);
    z-index: 1;
}

.card-content {
    position: absolute;
    inset: 0;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 2;
    transition: transform 0.3s ease;
}

.tilt-card:hover .card-content {
    transform: translateZ(40px);
}

.solution-grid-card h3 {
    color: white;
    font-size: 2.2rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.9);
    transition: color 0.3s ease;
}

.tilt-card:hover h3 {
    color: var(--gold);
}

.coming-soon-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pulsing-dot {
    width: 10px;
    height: 10px;
    background-color: var(--gold);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
    box-shadow: 0 0 8px var(--gold);
}

.coming-soon-text {
    color: var(--gold);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 800;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.9); 
}

/* --- COLLAPSIBLE SECTIONS --- */
.collapsible-data-section { padding-top: 1rem; }
.framework-intro { text-align: center; color: var(--text-muted); font-size: 1.2rem; margin-bottom: 2rem; }
.accordion-group { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; }

.premium-accordion {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.premium-accordion[open] {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.premium-accordion summary {
    padding: 1.5rem 2.5rem;
    font-size: 1.4rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    transition: background 0.3s ease, color 0.3s ease;
}

.premium-accordion summary::-webkit-details-marker { display: none; }
.premium-accordion summary:hover { background: rgba(212, 175, 55, 0.05); color: var(--gold); }
.premium-accordion summary::after { content: '+'; font-size: 2rem; color: var(--gold); transition: transform 0.3s ease; }
.premium-accordion[open] summary::after { content: '−'; transform: rotate(180deg); }

.accordion-content {
    padding: 0 2.5rem 2rem 2.5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 1rem;
    padding-top: 1.5rem;
    animation: fadeInDown 0.4s ease forwards;
}

.crystal-list { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.crystal-list li {
    display: flex; align-items: center; gap: 15px;
    font-size: 1.1rem; color: var(--text-muted);
    background: rgba(0, 0, 0, 0.3);
    padding: 12px 20px; border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.crystal-list li:hover {
    color: white; background: rgba(212, 175, 55, 0.05);
    border-left-color: var(--gold); transform: translateX(8px);
}
.crystal-list li span { font-size: 1.2rem; }

/* --- STRATEGIC PARTNERS MARQUEE --- */
.partners-section {
    padding: 2rem 0 6rem 0;
    overflow: hidden;
}

.marquee-white-container {
    background: rgba(225, 235, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 4.5rem 0;
    width: 100vw;
    position: relative;
    left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    display: flex;
    overflow: hidden;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    border-top: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
}

.marquee-track {
    display: flex;
    width: max-content;
    flex-wrap: nowrap; /* Forces logos to stay in a row, preventing stacking flash */
    animation: scrollMarquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-items {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 4rem;
    padding-right: 4rem; 
    flex-wrap: nowrap; /* Forces logos to stay in a row */
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto; /* Prevents logos from shrinking */
}

.partner-logo img {
    height: 90px;
    width: auto;
    transition: transform 0.4s ease;
}

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

/* --- FOOTER --- */
.main-footer {
    background: #080B12;
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem;
    text-align: center;
}

.main-footer h2 { color: white; font-size: 2.5rem; margin-bottom: 2rem; }
.contact-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; }

.contact-btn {
    text-decoration: none; padding: 15px 35px; font-size: 1.1rem;
    font-weight: bold; border-radius: 8px; letter-spacing: 1px;
    text-transform: uppercase; transition: all 0.3s ease;
}
.telegram-btn { background-color: #0088cc; color: white; box-shadow: 0 5px 15px rgba(0, 136, 204, 0.2); }
.telegram-btn:hover { background-color: #0099e6; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 136, 204, 0.4); }
.linkedin-btn { background-color: #0077b5; color: white; box-shadow: 0 5px 15px rgba(0, 119, 181, 0.2); }
.linkedin-btn:hover { background-color: #0088cc; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4); }
.copyright { color: var(--text-muted); font-size: 0.95rem; }

/* --- RESTORED: CATEGORY PAGE SKELETON LAYOUT --- */
.skeleton-body {
    padding: 2rem;
}

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

.skeleton-header {
    text-align: center;
    margin-bottom: 4rem;
}

.skeleton-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.skeleton-card.full-width {
    grid-column: 1 / -1;
}

.skeleton-card h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.skeleton-text-block {
    margin-bottom: 2rem;
}

.skeleton-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 12px;
}

.skeleton-line.full { width: 100%; }
.skeleton-line.long { width: 85%; }
.skeleton-line.medium { width: 60%; }

.pending-btn {
    background: transparent;
    border: 1px solid;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.pending-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* --- CUSTOM UI MODALS (AUTH & CATEGORY POPUPS) --- */
.custom-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(11, 15, 25, 0.85); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 10000; opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.custom-modal-overlay.active { opacity: 1; visibility: visible; }

/* Auth Modal Specifics - UPDATED TO BLUE THEME */
.auth-modal {
    background: #111; 
    border: 1px solid var(--blue); /* Blue border */
    padding: 3rem;
    border-radius: 16px; width: 90%; max-width: 450px; text-align: center;
    position: relative; 
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15); /* Blue glow */
    transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-modal-overlay.active .auth-modal { transform: translateY(0) scale(1); }
.close-auth {
    position: absolute; top: 15px; right: 20px; background: none;
    border: none; color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; transition: color 0.3s;
}
.close-auth:hover { color: var(--blue); } /* Blue hover */
.auth-header { margin-bottom: 2rem; }
.auth-icon { font-size: 3rem; margin-bottom: 10px; display: block; }
.auth-header h3 { color: white; font-size: 1.4rem; margin-bottom: 10px; }
.auth-header p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-input {
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--border-color);
    padding: 15px; border-radius: 8px; color: white; font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.auth-input:focus { 
    outline: none; 
    border-color: var(--blue); /* Blue focus border */
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2); /* Blue focus shadow */
}
.auth-submit-btn {
    background: var(--blue); /* Blue button */
    color: white; border: none; padding: 15px;
    border-radius: 8px; font-weight: bold; font-size: 1rem; cursor: pointer;
    transition: background 0.3s, transform 0.3s; text-transform: uppercase;
    letter-spacing: 1px; margin-top: 10px;
}
.auth-submit-btn:hover { 
    background: #2563EB; /* Darker blue on hover */
    transform: translateY(-2px); 
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4); 
}
.dev-alert-box {
    margin-top: 20px; 
    background: rgba(212, 175, 55, 0.1); /* Yellow/Gold background */
    border: 1px solid var(--gold); /* Yellow/Gold border */
    color: var(--gold); /* Yellow/Gold text */
    padding: 15px;
    border-radius: 8px; font-size: 0.9rem; text-align: left;
    display: none; animation: fadeInDown 0.3s ease;
}

/* General Category Modal Specifics */
.custom-modal {
    background: var(--bg-card); border: 1px solid var(--border-color);
    padding: 2.5rem; border-radius: 16px; max-width: 400px; width: 90%;
    text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    transform: translateY(30px) scale(0.95); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.custom-modal-overlay.active .custom-modal { transform: translateY(0) scale(1); }
.modal-icon { font-size: 3rem; margin-bottom: 1rem; }
.custom-modal h3 { font-size: 1.6rem; margin-bottom: 1rem; color: white; }
.custom-modal p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; line-height: 1.6; }
.modal-close-btn {
    background: transparent; border: 1px solid white; padding: 12px 30px;
    border-radius: 8px; font-size: 1rem; cursor: pointer; font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s ease;
}
.modal-yellow { border-top: 4px solid var(--gold); box-shadow: 0 10px 40px rgba(212, 175, 55, 0.15); }
.modal-yellow h3 { color: var(--gold); }
.modal-yellow .modal-close-btn { border-color: var(--gold); color: var(--gold); }
.modal-yellow .modal-close-btn:hover { background: rgba(212, 175, 55, 0.1); box-shadow: 0 0 15px rgba(212, 175, 55, 0.3); }
.modal-red { border-top: 4px solid var(--red); box-shadow: 0 10px 40px rgba(239, 68, 68, 0.15); }
.modal-red h3 { color: var(--red); }
.modal-red .modal-close-btn { border-color: var(--red); color: var(--red); }
.modal-red .modal-close-btn:hover { background: rgba(239, 68, 68, 0.1); box-shadow: 0 0 15px rgba(239, 68, 68, 0.3); }
.modal-green { border-top: 4px solid var(--green); box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15); }
.modal-green h3 { color: var(--green); }
.modal-green .modal-close-btn { border-color: var(--green); color: var(--green); }
.modal-green .modal-close-btn:hover { background: rgba(16, 185, 129, 0.1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.3); }

/* --- ANIMATIONS --- */
@keyframes pulse { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .glass-navbar { padding: 0 1.5rem; flex-direction: column; height: auto; padding-bottom: 15px; gap: 15px; }
    .nav-controls { flex-direction: column; width: 100%; }
    #solution-search { width: 100%; }
    #solution-search:focus { width: 100%; }
    
    .hero-section { padding-top: 150px; }
    
    .section-container {
        padding: 3rem 1.5rem; /* Smoother margins on mobile screen */
    }
    
    /* THE FIX: Re-write grid columns so it perfectly fits screen width on mobile */
    .solutions-grid { 
        grid-template-columns: 1fr; /* This stops the horizontal overflow */
    }
    
    .marquee-items { gap: 2rem; padding-right: 2rem; }
    .partner-logo img { height: 60px; } 
    .skeleton-grid { grid-template-columns: 1fr; }
}
