/* Landing Page 3D Styles - Matching Avenlo Theme */

@import './variables.css';

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, var(--darker) 0%, var(--dark) 50%, var(--secondary) 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* Background 3D Elements */
.bg-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    perspective: 1000px;
}

/* Floating Cubes */
.cube {
    position: absolute;
    transform-style: preserve-3d;
    animation: float 8s ease-in-out infinite;
}

.cube::before,
.cube::after {
    content: '';
    position: absolute;
    inset: 0;
}

.cube-1 {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 10%;
    background: linear-gradient(135deg, rgba(235, 22, 22, 0.3), rgba(235, 22, 22, 0.1));
    border: 1px solid rgba(235, 22, 22, 0.4);
    animation-delay: 0s;
    transform: rotateX(45deg) rotateY(45deg);
}

.cube-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 15%;
    background: linear-gradient(135deg, rgba(108, 114, 147, 0.3), rgba(108, 114, 147, 0.1));
    border: 1px solid rgba(108, 114, 147, 0.4);
    animation-delay: -2s;
    transform: rotateX(-30deg) rotateY(60deg);
}

.cube-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    background: linear-gradient(135deg, rgba(25, 28, 36, 0.6), rgba(25, 28, 36, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation-delay: -4s;
    transform: rotateX(60deg) rotateZ(30deg);
}

/* Floating Spheres */
.sphere {
    position: absolute;
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.sphere-1 {
    width: 120px;
    height: 120px;
    top: 25%;
    right: 20%;
    background: radial-gradient(circle at 30% 30%, rgba(235, 22, 22, 0.4), rgba(235, 22, 22, 0.1));
    box-shadow: 
        inset -10px -10px 20px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(235, 22, 22, 0.3);
    animation-delay: -1s;
}

.sphere-2 {
    width: 80px;
    height: 80px;
    bottom: 30%;
    left: 8%;
    background: radial-gradient(circle at 30% 30%, rgba(108, 114, 147, 0.4), rgba(108, 114, 147, 0.1));
    box-shadow: 
        inset -8px -8px 16px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(108, 114, 147, 0.2);
    animation-delay: -3s;
}

/* Rings */
.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: rotate 20s linear infinite;
}

.ring-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -100px;
    border-top-color: rgba(235, 22, 22, 0.3);
    border-right-color: rgba(235, 22, 22, 0.1);
}

.ring-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
    border-bottom-color: rgba(108, 114, 147, 0.3);
    border-left-color: rgba(108, 114, 147, 0.1);
    animation-direction: reverse;
}

/* Particles */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

/* Profile Section */
.profile-section {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.profile-trigger {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-trigger:hover {
    transform: scale(1.1);
}

.profile-trigger img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(235, 22, 22, 0.4);
}

.profile-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #28a745;
    border: 2px solid var(--secondary);
}

.profile-status.offline {
    background: #6c757d;
}

.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(235, 22, 22, 0.1);
    color: var(--primary);
}

.dropdown-content a i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-user-info {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 5px;
}

.dropdown-user-info .user-name {
    font-weight: 600;
    color: var(--text);
}

.dropdown-user-info .user-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Middle Section */
.middle-section {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.middle-section.scrolled-away {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-8px);
}

/* Logo Section */
.logo-section {
    position: fixed;
    top: 20px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100;
}

.logo-3d {
    width: 40px;
    height: 40px;
    animation: logo-pulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(235, 22, 22, 0.5));
}

.logo-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(235, 22, 22, 0.5);
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
    padding: 120px 5% 60px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0;
}

.hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.title-line {
    display: block;
}

.title-line.highlight {
    background: linear-gradient(135deg, var(--primary), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(235, 22, 22, 0.5));
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.typing-text {
    color: var(--primary);
    border-right: 2px solid var(--primary);
    animation: blink 0.7s step-end infinite;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #c41212);
    color: white;
    box-shadow: 0 10px 30px rgba(235, 22, 22, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(235, 22, 22, 0.5);
}

.btn-navigate {
    background: transparent;
    color: var(--text);
}

.btn-navigate:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
}

.btn-3d::before {
    content: '';
    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 ease;
}

.btn-3d:hover::before {
    left: 100%;
}

/* Features Section */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 80px 0;
    perspective: 1000px;
}

.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(235, 22, 22, 0.2);
    border-color: rgba(235, 22, 22, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(235, 22, 22, 0.2), rgba(235, 22, 22, 0.05));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transform: translateZ(30px);
}

.feature-card h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 60px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Roboto', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(235, 22, 22, 0.4);
}

.stat-suffix {
    font-family: 'Roboto', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* Footer */
.landing-footer {
    position: relative;
    z-index: 11;
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 12px;
}

.landing-footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.landing-footer-link:hover {
    color: var(--primary);
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateX(45deg) rotateY(45deg);
    }
    50% {
        transform: translateY(-30px) rotateX(55deg) rotateY(55deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes logo-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(235, 22, 22, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(235, 22, 22, 0.8));
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-section {
        left: 15px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .profile-section {
        top: 15px;
        right: 15px;
    }
    
    .profile-trigger {
        width: 42px;
        height: 42px;
    }
    
    .main-content {
        padding: 100px 4% 40px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .features-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 50px 0;
    }
    
    .stats-section {
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d41414;
}
/* ========================================
   Landing Page Blog Carousel Section
   ======================================== */
.landing-blog-section {
    padding: 80px 5%;
    position: relative;
    z-index: 10;
}

.landing-blog-header {
    text-align: center;
    margin-bottom: 48px;
}

.landing-blog-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.landing-blog-title span {
    background: linear-gradient(135deg, #eb1616, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-blog-subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.landing-blog-carousel {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.lbc-track-wrapper {
    flex: 1;
    overflow: hidden;
    border-radius: 16px;
}

.lbc-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.lbc-card {
    flex: 0 0 calc(33.333% - 14px);
    min-width: calc(33.333% - 14px);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.lbc-card:hover {
    transform: translateY(-6px);
    border-color: rgba(235,22,22,0.35);
    box-shadow: 0 12px 40px rgba(235,22,22,0.15);
}

.lbc-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.lbc-card-body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.lbc-card-cat {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #eb1616;
    background: rgba(235,22,22,0.1);
    padding: 3px 10px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 10px;
}

.lbc-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbc-card-excerpt {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.lbc-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

.lbc-card-meta i { color: rgba(235,22,22,0.6); }

.lbc-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.lbc-btn:hover {
    background: rgba(235,22,22,0.2);
    border-color: rgba(235,22,22,0.4);
    color: #eb1616;
    transform: scale(1.1);
}

.lbc-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.lbc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lbc-dot.active {
    width: 24px;
    border-radius: 4px;
    background: #eb1616;
}

@media (max-width: 900px) {
    .lbc-card {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 600px) {
    .lbc-card {
        flex: 0 0 100%;
        min-width: 100%;
    }
    .landing-blog-section { padding: 60px 4%; }
}
