/* IFPBlock Custom CSS - Dark Theme Optimized */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    --radius: 0.5rem;
    --primary-purple: #a855f7;
    --primary-blue: #60a5fa;
    --background-dark: rgb(9, 9, 11);
    --foreground-light: rgb(250, 250, 250);
    --text-muted: rgb(156, 163, 175);
    --glass-bg: rgba(0, 0, 0, 0.4);
    --glass-hover: rgba(0, 0, 0, 0.6);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
    background: var(--background-dark);
    color: var(--foreground-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grid background pattern */
.grid-background {
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Glass morphism cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    background: var(--glass-hover);
    transform: translateY(-4px);
    box-shadow: 
        0 0 30px rgba(96, 165, 250, 0.3),
        0 10px 25px rgba(0, 0, 0, 0.5);
}

/* Button styles */
.hero-gradient-btn {
    background: linear-gradient(135deg, #a0d9f8 0%, #3a5bbf 100%);
    box-shadow: 
        inset 0 0 0 1px rgba(170, 202, 255, 0.2), 
        inset 0 0 16px 0 rgba(170, 202, 255, 0.1), 
        inset 0 -3px 12px 0 rgba(170, 202, 255, 0.15), 
        0 1px 3px 0 rgba(0, 0, 0, 0.5), 
        0 4px 12px 0 rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-gradient-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-gradient-btn:hover::after {
    width: 300px;
    height: 300px;
}

.hero-gradient-btn:hover {
    transform: scale(1.02);
    box-shadow: 
        inset 0 0 0 1px rgba(170, 202, 255, 0.3), 
        inset 0 0 20px 0 rgba(170, 202, 255, 0.2), 
        0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-gradient-btn:active {
    transform: scale(0.975);
}

/* Secondary buttons */
.learn-more-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.learn-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.2), transparent);
    transition: left 0.5s ease;
}

.learn-more-btn:hover::before {
    left: 100%;
}

.learn-more-btn:hover {
    transform: scale(1.02);
    background: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

/* Contact button */
.contact-btn {
    background: linear-gradient(135deg, #a0d9f8 0%, #3a5bbf 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #7cc7f0 0%, #2a3f8f 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(96, 165, 250, 0.4);
}

.contact-btn span {
    position: relative;
    z-index: 1;
}

/* Header styles */
.header-glass {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer styles */
.footer-glass {
    background: rgba(0, 0, 0, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text gradient effects */
.text-gradient {
    background: linear-gradient(135deg, #e5e5e5 0%, #9ca3af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.text-gradient:hover {
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

/* Logo animations */
.logo-ift span {
    transition: transform 0.3s ease;
}

.logo-ift:hover span {
    transform: scale(1.1);
}

.logo-ift .text-purple-500 {
    color: var(--primary-purple);
}

.logo-ift .text-blue-400 {
    color: var(--primary-blue);
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #9333ea, #3b82f6);
}

/* Animation keyframes */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Focus states for accessibility */
button:focus,
.glass-card:focus,
.learn-more-btn:focus,
.hero-gradient-btn:focus,
.contact-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    word-wrap: break-word;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #10b981;
}

.notification.error {
    background: #ef4444;
}

.notification.warning {
    background: #f59e0b;
}

.notification.info {
    background: #3b82f6;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .glass-card {
        margin-bottom: 1rem;
    }
    
    .hero-gradient-btn,
    .contact-btn {
        width: 100%;
        text-align: center;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .py-24 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .h-\[40rem\] {
        height: 25rem;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .glass-card:hover {
        transform: none;
    }
    
    .hero-gradient-btn:hover {
        transform: none;
    }
    
    .learn-more-btn:hover {
        transform: none;
    }
    
    .contact-btn:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        border: 2px solid white;
        background: black;
    }
    
    .text-gradient {
        -webkit-text-fill-color: white;
        background: none;
    }
    
    button {
        border: 2px solid white;
    }
}

/* Selection styles */
::selection {
    background: var(--primary-blue);
    color: white;
}

::-moz-selection {
    background: var(--primary-blue);
    color: white;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}