/* CLMGH Technologies - Main CSS */
/* Built during the legendary 10-day AI empire sprint 🚀 */

/* CSS Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }

p {
    margin-bottom: 1rem;
    color: #cccccc;
}

a {
    color: #dc3545;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ff4757;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, #dc3545, #ff4757);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.3);
    color: white;
}

.btn-primary {
    background: linear-gradient(45deg, #dc3545, #ff4757);
    color: white;
    position: relative;
}

.btn-primary .btn-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover .btn-glow {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #dc3545;
}

.btn-secondary:hover {
    background: #dc3545;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline:hover {
    background: #dc3545;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* Header */
.clmgh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
}

.clmgh-header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.clmgh-header.header-hidden {
    transform: translateY(-100%);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.5rem;
    margin: 0;
    color: white;
}

.logo-highlight {
    color: #dc3545;
    font-weight: 700;
}

.tagline {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: #cccccc;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #dc3545;
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #dc3545;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(ellipse at center, rgba(220, 53, 69, 0.1) 0%, rgba(10, 10, 10, 1) 70%);
    overflow: hidden;
}

.hero-background {
    position: relative;
    width: 100%;
    z-index: 1;
}

.hero-content {
    text-align: center;
    padding: 2rem 0;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.title-main {
    display: block;
    color: white;
    font-weight: 700;
}

.title-sub {
    display: block;
    color: #dc3545;
    font-size: 2rem;
    font-weight: 400;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    color: #bbbbbb;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc3545;
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.floating-card {
    position: absolute;
    background: rgba(220, 53, 69, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    width: 200px;
    text-align: center;
    animation: float 6s ease-in-out infinite;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: rgba(220, 53, 69, 0.2);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.3);
}

.floating-card:nth-child(1) {
    top: 8%;
    left: 15%;  /* Plugins - top left */
    animation-delay: 0s;
}

.floating-card:nth-child(2) {
    top: 70%;
    right: 8%;
    animation-delay: 1s;
}

.floating-card:nth-child(3) {
    top: 25%;
    right: 2%;
    animation-delay: 2s;
}

.floating-card:nth-child(4) {
    bottom: 35%;
    left: 2%;  /* Support - bottom left */
    animation-delay: 3s;
}

.floating-card:nth-child(5) {
    top: 8%;
    right: 15%;  /* Move AI Tools LEFT (between text and Custom) */
    animation-delay: 4s;
}

.floating-card:nth-child(6) {
    bottom: 5%;
    left: 15%;  /* Security - bottom left (spread them apart) */
    animation-delay: 5s;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.floating-card h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.floating-card p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: rgba(15, 15, 15, 0.8);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    color: white;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #aaaaaa;
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: white;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #bbbbbb;
    line-height: 1.6;
}

/* Products Preview Section */
.products-preview-section {
    padding: 5rem 0;
    background: rgba(10, 10, 10, 0.9);
}

.products-tabs {
    max-width: 1000px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 8px;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn:hover,
.tab-btn.active {
    background: rgba(220, 53, 69, 0.2);
    color: white;
    transform: translateY(-2px);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    background: rgba(220, 53, 69, 0.1);
    box-shadow: 0 15px 30px rgba(220, 53, 69, 0.2);
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-icon {
    font-size: 2rem;
}

.product-meta {
    text-align: right;
}

.product-price {
    display: block;
    color: #dc3545;
    font-weight: 600;
    font-size: 1.1rem;
}

.product-downloads {
    display: block;
    color: #888;
    font-size: 0.8rem;
}

.product-card h4 {
    color: white;
    margin-bottom: 1rem;
}

.product-card p {
    color: #bbbbbb;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

.custom-solutions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.solution-item {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 2rem;
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-item h4 {
    color: white;
    margin-bottom: 1rem;
}

.solution-item p {
    color: #bbbbbb;
    margin-bottom: 1.5rem;
}

.solution-item ul {
    list-style: none;
    padding: 0;
}

.solution-item li {
    color: #cccccc;
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.coming-soon {
    text-align: center;
    padding: 3rem;
    color: #bbbbbb;
}

.section-cta {
    text-align: center;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(10, 10, 10, 0.9) 100%);
    text-align: center;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: #bbbbbb;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.clmgh-footer {
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid rgba(220, 53, 69, 0.2);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #dc3545;
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-description {
    color: #bbbbbb;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #bbbbbb;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #dc3545;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(220, 53, 69, 0.1);
    color: #888;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    z-index: 1000;
    pointer-events: none;
    white-space: nowrap;
}

/* Modal */
.modal-open {
    overflow: hidden;
}

#plugin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    padding: 2rem;
}

.plugin-details-content {
    background: #1a1a1a;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Loading States */
.loading-content {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #dc3545;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 0.5rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.mobile-active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        padding: 1rem;
        border-top: 1px solid rgba(220, 53, 69, 0.2);
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-sub {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .floating-card {
        width: 150px;
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .floating-card h4 {
        font-size: 0.9rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-solutions {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .floating-card {
        display: none;
    }
    
    .tab-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Page Transitions */
.page-transitioning {
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.3s ease;
}

/* Scroll Animations */
.in-view {
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #dc3545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ff4757;
}