/*
 * Components CSS - Alternative Investments Limited
 * Navigation, preloader, and reusable UI components
 */

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0a0e27;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    overflow: hidden;
}

.preloader::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(42, 82, 152, 0.3) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite;
}

.preloader::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 70% 50%, rgba(59, 107, 168, 0.3) 0%, transparent 50%);
    animation: gradientShift 8s ease-in-out infinite reverse;
}

@keyframes gradientShift {
    0%, 100% { transform: translate(-10%, -10%) rotate(0deg); }
    50% { transform: translate(10%, 10%) rotate(180deg); }
}

.preloader.complete {
    animation: slideUp 0.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
    }
}

/* Content Container */
.loader-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

/* Logo Mark */
.logo-mark {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px;
    position: relative;
}

.hexagon {
    width: 80px;
    height: 80px;
    position: relative;
    animation: rotateHex 3s linear infinite;
}

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

.hexagon svg {
    width: 100%;
    height: 100%;
}

.hex-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 2;
}

.hex-progress {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 2;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: hexFill 2.5s ease-in-out forwards;
    filter: drop-shadow(0 0 20px rgba(42, 82, 152, 0.8));
}

@keyframes hexFill {
    to { stroke-dashoffset: 0; }
}

.inner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    opacity: 0;
    animation: fadeInScale 0.5s ease 1s forwards;
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.inner-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

/* Company Name */
.company-name {
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.company-name h1 {
    font-size: 28px;
    font-weight: 300;
    color: white;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.company-name .highlight {
    font-weight: 700;
    background: linear-gradient(135deg, #4a7fff 0%, #3b6ba8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-container {
    width: 300px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.5s forwards;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a7fff 0%, #3b6ba8 100%);
    width: 0%;
    animation: progressFill 3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    box-shadow: 0 0 10px rgba(74, 127, 255, 0.5);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
    animation: shimmer 1s ease-in-out infinite;
}

@keyframes progressFill {
    to { width: 100%; }
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Loading Text */
.loading-text {
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    opacity: 0;
    animation: fadeIn 0.5s ease 0.7s forwards;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #4a7fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

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

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 15s; opacity: 0.5; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 10s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 13s; opacity: 0.7; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 14s; opacity: 0.6; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 10s; opacity: 0.8; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(10) { left: 95%; animation-delay: 6s; animation-duration: 11s; opacity: 0.4; }

@keyframes float-up {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.8rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-light);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.logo img {
    height: 95px !important;
    width: auto;
    display: block;
}

.logo:hover {
    color: var(--primary-medium);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition-fast);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: var(--primary-medium);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--shadow-medium);
    border-radius: var(--border-radius-small);
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-fast);
    z-index: 1000;
    border: 1px solid var(--neutral-medium);
}

.nav-menu li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    padding: 0.75rem 1.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--neutral-light);
    transition: var(--transition-fast);
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--neutral-light);
    color: var(--primary-medium);
    transform: translateX(5px);
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    color: var(--primary-medium);
}

.nav-menu li:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.cta-btn {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(43, 108, 176, 0.3);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-dark);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-medium);
    border-radius: 0 0 var(--border-radius-small) var(--border-radius-small);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu .nav-menu {
    flex-direction: column;
    gap: 0;
    padding: 1rem;
}

.mobile-menu .nav-menu a {
    padding: 1rem;
    border-bottom: 1px solid var(--neutral-light);
}

.mobile-menu .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: var(--neutral-light);
    margin-top: 0.5rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-medium) 100%);
    color: white;
    padding: 220px 0 80px !important;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><path d="M0,50 Q250,0 500,50 T1000,50 L1000,100 L0,100 Z"/></svg>') repeat-x;
    background-size: 1000px 100px;
    animation: wave 20s linear infinite;
}

@keyframes wave {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1000px); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 50%, transparent 70%);
    border-radius: 50%;
    animation: floatBackwards 15s ease-in-out infinite reverse;
    z-index: 1;
}

@keyframes floatBackwards {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) rotate(90deg);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) translateX(-15px) rotate(180deg);
        opacity: 0.4;
    }
    75% { 
        transform: translateY(15px) translateX(5px) rotate(270deg);
        opacity: 0.7;
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    color: white;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Video Background Section */
.video-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

#bgVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 1;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.8), rgba(43, 108, 176, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 2rem;
}

.video-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    color: white;
}

.video-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
    color: rgba(255, 255, 255, 0.9);
}

.btn-video {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-large);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.btn-video:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: #0f172a;
    color: #e2e8f0;
    padding: 4rem 0 2rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    max-width: 180px;
    height: auto;
}

.footer-description {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1e293b;
    color: #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1;
    flex-shrink: 0;
    padding: 0;
}

.social-links a:hover {
    background: #2b6cb0;
    transform: translateY(-3px);
}

.social-links i {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: #2b6cb0;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #2b6cb0;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #2b6cb0;
    transform: translateX(3px);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1rem;
}

.newsletter-form input {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 4px;
    background: #1e293b;
    color: #e2e8f0;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: #94a3b8;
}

.newsletter-form button {
    padding: 0.8rem 1rem;
    background: #2b6cb0;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background: #1a365d;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 2rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.license-info {
    font-size: 0.8rem;
    color: #64748b;
}

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .video-content h2 {
        font-size: 2.5rem;
    }
    
    #bgVideo {
        display: none;
    }
    
    .video-section {
        background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .video-content h2 {
        font-size: 2rem;
    }
    
    .preloader-logo {
        font-size: 2rem;
    }
    
    .progress-bar {
        width: 250px;
    }
}