/* TokenCraft AI - Main Styles */

/* CSS Variables - Color Palette */
:root {
    /* Primary Colors */
    --primary-color: #7767ff;
    --secondary-color: #a461f9;
    --accent-color: #039dd0;
    --success-color: #1db476;
    --warning-color: #f29c07;
    
    /* Light Shades */
    --primary-light: #dddffd;
    --secondary-light: #f4ecff;
    --accent-light: #ecfeff;
    --success-light: #bae8d2;
    --warning-light: #fbf2da;
    
    /* Dark Shades */
    --primary-dark: #4a28c3;
    --secondary-dark: #6d42ee;
    --accent-dark: #0985bc;
    --success-dark: #008f5e;
    --warning-dark: #d75f13;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #f9f9f9;
    --gray-300: #d9e6f2;
    --gray-400: #8f98a1;
    --gray-500: #707786;
    --gray-600: #656a78;
    --gray-700: #333943;
    --gray-800: #182133;
    --gray-900: #121e32;
    
    /* Typography */
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 6rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    scroll-behavior: smooth;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Typography Overrides */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: var(--font-size-4xl);
    color: var(--gray-900);
}

h2 {
    font-size: var(--font-size-3xl);
    color: var(--gray-900);
}

h3 {
    font-size: var(--font-size-2xl);
    color: var(--gray-800);
}

h4 {
    font-size: var(--font-size-xl);
    color: var(--gray-800);
}

h5 {
    font-size: var(--font-size-lg);
    color: var(--gray-700);
}

p {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-md);
}

/* Conservative navbar brand size */
.navbar-brand {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px;
    padding: 120px 0 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%23ffffff" opacity="0.1"/></svg>') repeat;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
}

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

.card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* Section Backgrounds */
.bg-light {
    background-color: var(--gray-50);
}

/* Icon Styling */
.fas, .fab {
    color: var(--primary-color);
}

/* Feature Icons */
.text-center .fas {
    margin-bottom: var(--spacing-md);
}

/* Footer - High contrast colors only */
footer {
    background-color: var(--gray-900);
    color: var(--gray-100);
}

footer h5 {
    color: var(--gray-100);
    font-weight: 600;
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Form Styling */
.form-control {
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    padding: var(--spacing-sm) var(--spacing-md);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 114, 255, 0.10);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--spacing-xs);
}

/* Breadcrumb Section */
.breadcrumb-section {
    border-bottom: 1px solid var(--gray-200);
}

/* Space Page */
#space {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary-light) 50%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Team Section */
.team img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin: 0 auto var(--spacing-md);
}

/* Process Section */
.process .rounded-circle {
    font-size: var(--font-size-lg);
    font-weight: 700;
}

/* Gallery */
#gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

#gallery img:hover {
    transform: scale(1.05);
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: var(--font-size-3xl);
    }
    
    h2 {
        font-size: var(--font-size-2xl);
    }
    
    .hero {
        padding-top: var(--spacing-xl);
        padding-bottom: var(--spacing-xl);
    }
    
    /* No animations on mobile per requirements */
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    .card:hover .card-img-top {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Accessibility Improvements */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

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

/* Animation Classes for Sal.js */
[data-sal] {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

[data-sal].sal-animate {
    opacity: 1;
}

/* Ensure no Bootstrap overrides */
.container,
.row,
[class*="col-"] {
    /* Using Bootstrap 5 grid as-is without modifications */
}

/* Utility Classes */
.text-primary {
    color: var(--primary-color);
}

.bg-primary {
    background-color: var(--primary-color);
}

.border-primary {
    border-color: var(--primary-color);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--primary-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.hero h1 {
    padding-top: 80px;
}


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.instagram-link {
    background: rgba(228, 64, 95, 0.9);
}

.instagram-link:hover {
    background: rgba(228, 64, 95, 1);
    box-shadow: 0 8px 30px rgba(228, 64, 95, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
