/* CC Forum - Minimal Black & White Shadow Play */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --pure-black: #000000;
    --deep-black: #0a0a0a;
    --soft-white: #f0f0f0;
    --light-gray: #1a1a1a;
    --medium-gray: #2a2a2a;
    --dark-gray: #888888;
    --text-primary: #cccccc;
    --text-secondary: #666666;
    --shadow-soft: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.5);
    --shadow-hard: rgba(0, 0, 0, 0.7);
}

body {
    font-family: 'Rajdhani', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pure-black);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
    position: relative;
}

/* Minimal Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px var(--shadow-soft);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
}

.logo {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo::before {
    content: '';
    width: 24px;
    height: 16px;
    background: linear-gradient(135deg, #000000 40%, #ffffff 40%, #000000 60%);
    border-radius: 3px;
    display: inline-block;
    margin-right: 5px;
    position: relative;
    overflow: hidden;
}

.logo::before::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #ffd700;
    border-radius: 50%;
}

.logo::after {
    display: none;
}

.logo:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.logo:hover::after {
    width: 100%;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    font-size: 15px;
    transition: all 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Main Content */
.main-content {
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    position: relative;
}

/* Hero Section */
.section-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--pure-black);
    overflow: hidden;
}

/* Falling Cards Animation */
.falling-cards {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.card {
    position: absolute;
    width: 20px;
    height: 28px;
    background: var(--medium-gray);
    border: 1px solid var(--text-secondary);
    border-radius: 3px;
    opacity: 0.6;
    animation: fall linear forwards;
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 1px;
    opacity: 0.5;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    height: 6px;
    background: var(--text-secondary);
    border-radius: 1px;
    opacity: 0.3;
}

@keyframes fall {
    0% {
        transform: translateY(-100px) rotate(0deg);
        opacity: 0;
    }
    5% {
        opacity: 0.6;
    }
    95% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
}

.hero-title {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 400;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

/* Minimal Buttons */
.btn {
    padding: 18px 40px;
    background: var(--soft-white);
    color: var(--pure-black);
    border: none;
    border-radius: 50px;
    font-weight: 400;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow-soft);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--light-gray);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.btn:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--soft-white);
    border: 2px solid var(--soft-white);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--soft-white);
    color: var(--pure-black);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.feature-card {
    text-align: center;
    padding: 30px 25px;
    background: var(--light-gray);
    border-radius: 20px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 4px 20px var(--shadow-soft);
    opacity: 0;
    transform: translateY(40px);
}

.feature-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
}

.feature-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.feature-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px var(--shadow-medium);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--text-primary);
    opacity: 0.8;
}

.feature-title {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: var(--light-gray);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--dark-gray), transparent);
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    text-align: center;
}

.stat-item {
    padding: 25px 15px;
    background: var(--medium-gray);
    border-radius: 15px;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px var(--shadow-soft);
    opacity: 0;
    transform: translateY(30px);
}

.stat-item:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.stat-item:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.stat-item:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.stat-item:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px var(--shadow-medium);
}

.stat-number {
    font-size: 48px;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Forms */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    background: var(--light-gray);
    border: 1px solid var(--medium-gray);
    border-radius: 8px;
    color: var(--pure-black);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--dark-gray);
    background: var(--soft-white);
    box-shadow: 0 0 0 3px var(--shadow-soft);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Alerts */
.alert {
    padding: 20px 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--soft-white);
    color: var(--pure-black);
    box-shadow: 0 4px 20px var(--shadow-soft);
    opacity: 0;
    transform: translateY(20px);
    animation: slideDown 0.5s ease-out forwards;
}

.alert-success {
    border-left: 4px solid #28a745;
}

.alert-error {
    border-left: 4px solid #dc3545;
}

.alert-info {
    border-left: 4px solid #007bff;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-links {
        gap: 25px;
    }
    
    .nav {
        padding: 20px 0;
        padding-left: 30px;
        padding-right: 30px;
    }
    
    .logo {
        font-size: 24px;
    }
    
    .hero-title {
        font-size: 56px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 0;
    }
    
    .feature-card {
        padding: 40px 30px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-item {
        padding: 30px 15px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .main-content {
        margin-top: 80px;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Enhanced Select Styles */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 20px;
    padding-right: 44px;
}

/* Modern Table Styles */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

th {
    background: rgba(37, 37, 65, 0.6);
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    padding: 20px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

td {
    padding: 20px;
    border-bottom: 1px solid rgba(37, 37, 65, 0.3);
    color: var(--text-secondary);
}

tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* Modern Code Blocks */
code {
    background: rgba(37, 37, 65, 0.6);
    color: var(--primary-color);
    padding: 4px 8px;
    border-radius: 8px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 14px;
    border: 1px solid var(--border-color);
}

/* Modern Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Enhanced Focus States */
.btn:focus,
.form-control:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Modern Tooltips */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    margin-bottom: 8px;
}

/* Add SVG Gradient Definition */
.svg-gradient-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(135, 206, 250, 0.3);
    border-top: 4px solid #87ceeb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
