/* 
 * Main CSS - Alternative Investments Limited
 * Core styles and layout system
 */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* CSS Variables for Color System */
:root {
    --primary-dark: #1a365d;
    --primary-medium: #2b6cb0;
    --primary-light: #4299e1;
    --neutral-light: #f8fafc;
    --neutral-medium: #e2e8f0;
    --neutral-dark: #374151;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #9ca3af;
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition-fast: all 0.3s ease;
    --border-radius-small: 8px;
    --border-radius-medium: 15px;
    --border-radius-large: 30px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid System */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Flex Utilities */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-1 { gap: 1rem; }
.gap-2 { gap: 2rem; }
.gap-3 { gap: 3rem; }

/* Button System */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: #2b6cb0;
    color: white;
    border: 2px solid transparent;
}

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

.btn-secondary {
    background: transparent;
    color: #1a365d;
    border: 2px solid #1a365d;
}

.btn-secondary:hover {
    background: white;
    color: #1a365d;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    color: #2b6cb0;
    border: 2px solid #2b6cb0;
}

.btn-outline:hover {
    background: #2b6cb0;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Card System */
.card {
    background: white;
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-light);
    transition: var(--transition-fast);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.card-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid var(--neutral-medium);
}

.card-body {
    padding: 2rem;
}

.card-footer {
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid var(--neutral-medium);
    background: var(--neutral-light);
}

/* Icon System */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
}

.icon-small {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}

.icon-medium {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

.icon-large {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.icon-primary {
    background: linear-gradient(135deg, var(--primary-medium), var(--primary-dark));
    color: white;
}

.icon-secondary {
    background: var(--neutral-light);
    color: var(--primary-dark);
}

/* Animation System */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-dark); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }
.text-white { color: white; }

.bg-primary { background: var(--primary-dark); }
.bg-gradient { background: linear-gradient(135deg, var(--primary-dark), var(--primary-medium)); }
.bg-light { background: var(--neutral-light); }
.bg-white { background: white; }

.rounded-small { border-radius: var(--border-radius-small); }
.rounded-medium { border-radius: var(--border-radius-medium); }
.rounded-large { border-radius: var(--border-radius-large); }

.shadow-light { box-shadow: var(--shadow-light); }
.shadow-medium { box-shadow: var(--shadow-medium); }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .grid-2, .grid-3, .grid-4, .grid-auto {
        grid-template-columns: 1fr;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .flex-wrap {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f7fafc;
        --text-secondary: #e2e8f0;
        --text-light: #a0aec0;
        --neutral-light: #2d3748;
        --neutral-medium: #4a5568;
        --neutral-dark: #1a202c;
    }
    
    body {
        background: var(--neutral-dark);
        color: var(--text-primary);
    }
    
    .card {
        background: var(--neutral-light);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .video-section {
        display: none;
    }
    
    body {
        color: black;
        background: white;
    }
    
    .section {
        padding: 20px 0;
    }
}