/* CIEA - Custom Styles with Soft Human Touches */

:root {
    --ciea-teal: #4FD1C7;
    --ciea-dark: #1a1a1a;
    --ciea-gray: #6B7280;
    --ciea-light: #F8FAFC;
    --neon-blue: #00D4FF;
    --neon-purple: #B794F6;
    --cyber-green: #00FF88;
    --warm-gold: #E6B88A;
    --trust-blue: #4A90E2;
    --gentle-green: #7ED321;
}

/* Event Card Image Synchronisation */
.event-card-image {
    position: relative;
    height: 12rem; /* h-48 */
    background: linear-gradient(135deg, rgba(75, 85, 99, 0.1) 0%, rgba(107, 114, 128, 0.05) 100%);
    overflow: hidden;
}

.event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
}

.event-card-image .fallback-bg {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
}

.event-card-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.event-card-label {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}



/* Enhanced Futuristic Background Effects for Dark Theme */
.blockchain-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Major grid lines */
        linear-gradient(rgba(79, 209, 199, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 209, 199, 0.2) 1px, transparent 1px),
        /* Minor grid lines */
        linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        /* Accent grid lines */
        linear-gradient(rgba(147, 51, 234, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 51, 234, 0.08) 1px, transparent 1px);
    background-size: 
        50px 50px,
        50px 50px,
        25px 25px,
        25px 25px,
        100px 100px,
        100px 100px;
    background-position:
        0 0,
        0 0,
        12.5px 12.5px,
        12.5px 12.5px,
        0 0,
        0 0;
    animation: gridMove 20s linear infinite;
    opacity: 0.4;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Circuit Grid Pattern for Dark Theme */
.circuit-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Horizontal data flow lines */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 15px,
            rgba(79, 209, 199, 0.15) 15px,
            rgba(79, 209, 199, 0.15) 17px,
            transparent 17px,
            transparent 30px,
            rgba(59, 130, 246, 0.12) 30px,
            rgba(59, 130, 246, 0.12) 32px
        ),
        /* Vertical data flow lines */
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(147, 51, 234, 0.12) 20px,
            rgba(147, 51, 234, 0.12) 22px,
            transparent 22px,
            transparent 40px,
            rgba(79, 209, 199, 0.15) 40px,
            rgba(79, 209, 199, 0.15) 42px
        );
    animation: circuitFlow 15s linear infinite;
    opacity: 0.3;
}

@keyframes circuitFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 30px); }
}

/* Data Node Points for Dark Theme */
.data-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(79, 209, 199, 0.3) 2px, transparent 3px),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.25) 2px, transparent 3px),
        radial-gradient(circle at 70% 70%, rgba(147, 51, 234, 0.25) 2px, transparent 3px),
        radial-gradient(circle at 30% 80%, rgba(16, 185, 129, 0.25) 2px, transparent 3px),
        radial-gradient(circle at 50% 50%, rgba(79, 209, 199, 0.3) 2px, transparent 3px);
    background-size: 80px 80px, 90px 90px, 70px 70px, 85px 85px, 100px 100px;
    animation: nodesPulse 8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes nodesPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

/* Scanning Lines for Dark Theme Futuristic Effect */
.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(79, 209, 199, 0.04) 2px,
        rgba(79, 209, 199, 0.04) 4px
    );
    animation: scanMove 12s linear infinite;
    opacity: 0.4;
}

@keyframes scanMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Tech Border Patterns for Dark Theme */
.tech-borders {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Corner accents */
        linear-gradient(45deg, rgba(79, 209, 199, 0.2) 0%, transparent 15%),
        linear-gradient(-45deg, rgba(59, 130, 246, 0.15) 0%, transparent 15%),
        linear-gradient(135deg, rgba(147, 51, 234, 0.15) 0%, transparent 15%),
        linear-gradient(-135deg, rgba(16, 185, 129, 0.15) 0%, transparent 15%);
    background-size: 60px 60px;
    background-position: 
        top left,
        top right,
        bottom left,
        bottom right;
    background-repeat: no-repeat;
    opacity: 0.3;
    animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Digital Grid Overlay for Dark Theme */
.digital-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* Primary grid */
        linear-gradient(rgba(79, 209, 199, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 209, 199, 0.15) 1px, transparent 1px),
        /* Secondary grid offset */
        linear-gradient(rgba(59, 130, 246, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.12) 1px, transparent 1px);
    background-size: 
        30px 30px,
        30px 30px,
        60px 60px,
        60px 60px;
    background-position:
        0 0,
        0 0,
        15px 15px,
        15px 15px;
    animation: digitalShift 12s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes digitalShift {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(5px, 5px); }
    50% { transform: translate(0, 10px); }
    75% { transform: translate(-5px, 5px); }
}

/* Very Light Grid Background for Content Sections */
.light-grid-bg {
    position: relative;
    background: linear-gradient(135deg, rgba(249, 250, 251, 1) 0%, rgba(243, 244, 246, 0.8) 50%, rgba(249, 250, 251, 1) 100%);
}

.light-grid-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Light but visible main grid */
        linear-gradient(rgba(79, 209, 199, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 209, 199, 0.08) 1px, transparent 1px),
        /* Secondary grid */
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    background-size: 
        40px 40px,
        40px 40px,
        80px 80px,
        80px 80px;
    background-position:
        0 0,
        0 0,
        20px 20px,
        20px 20px;
    pointer-events: none;
    opacity: 0.7;
    z-index: 1;
}

.light-grid-bg > * {
    position: relative;
    z-index: 2;
}

.light-grid-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(79, 209, 199, 0.04) 100px, transparent 200px),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.03) 150px, transparent 250px),
        radial-gradient(circle at 50% 80%, rgba(147, 51, 234, 0.02) 120px, transparent 220px);
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Enhanced floating elements for dark theme */
.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(79, 209, 199, 0.2) 0%, rgba(79, 209, 199, 0.08) 40%, transparent 70%);
    border-radius: 50%;
    animation: floatUpDown 6s ease-in-out infinite;
    box-shadow: 0 0 30px rgba(79, 209, 199, 0.15);
}

.floating-elements::before {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    top: 60%;
    right: 10%;
    animation-delay: 3s;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.15);
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

/* Neon glow effects */
.neon-glow {
    box-shadow: 
        0 0 5px var(--ciea-teal),
        0 0 10px var(--ciea-teal),
        0 0 15px var(--ciea-teal),
        0 0 20px var(--ciea-teal);
}

/* Holographic text effect */
.holographic-text {
    background: linear-gradient(45deg, 
        var(--ciea-teal) 0%, 
        var(--neon-blue) 25%, 
        var(--neon-purple) 50%, 
        var(--ciea-teal) 75%, 
        var(--neon-blue) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: holographicShift 3s ease-in-out infinite;
}

@keyframes holographicShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Cyber pulse animation */
.cyber-pulse {
    animation: cyberPulse 2s ease-in-out infinite;
}

@keyframes cyberPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(79, 209, 199, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(79, 209, 199, 0.6);
        transform: scale(1.02);
    }
}

/* Digital matrix rain effect */
.matrix-rain {
    position: relative;
    overflow: hidden;
}

.matrix-rain::before {
    content: '01001001011001';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 200%;
    color: var(--ciea-teal);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    opacity: 0.1;
    animation: matrixFall 10s linear infinite;
    white-space: pre-wrap;
    word-break: break-all;
}

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

/* Slow spin animation for icons */
.animate-spin-slow {
    animation: spin 8s linear infinite;
}

/* Blockchain connection lines */
.blockchain-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.connection-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ciea-teal), transparent);
    animation: connectionPulse 3s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; transform: scaleX(0.8); }
    50% { opacity: 1; transform: scaleX(1); }
}

/* Futuristic card hover effects */
.futuristic-card {
    background: linear-gradient(145deg, 
        rgba(26, 26, 26, 0.9) 0%, 
        rgba(75, 85, 99, 0.7) 50%, 
        rgba(26, 26, 26, 0.9) 100%);
    border: 1px solid rgba(79, 209, 199, 0.3);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.futuristic-card:hover {
    border-color: var(--ciea-teal);
    box-shadow: 
        0 0 30px rgba(79, 209, 199, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) scale(1.02);
}

/* Holographic background */
.holographic-bg {
    background: linear-gradient(45deg, 
        rgba(79, 209, 199, 0.1) 0%,
        rgba(59, 130, 246, 0.1) 25%,
        rgba(147, 51, 234, 0.1) 50%,
        rgba(79, 209, 199, 0.1) 75%,
        rgba(59, 130, 246, 0.1) 100%);
    background-size: 300% 300%;
    animation: holographicMove 8s ease infinite;
}

@keyframes holographicMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Digital scanner effect */
.digital-scanner {
    position: relative;
    overflow: hidden;
}

.digital-scanner::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(79, 209, 199, 0.3), 
        transparent);
    animation: scan 15s ease-in-out infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Advanced holographic effects */
.hero-title {
    position: relative;
    display: inline-block;
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(79, 209, 199, 0.3) 50%, transparent 70%);
    animation: holographicSweep 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes holographicSweep {
    0%, 100% { transform: translateX(-100%) skewX(-25deg); opacity: 0; }
    50% { transform: translateX(100%) skewX(-25deg); opacity: 1; }
}

/* Blockchain node connections */
.blockchain-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--ciea-teal);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--ciea-teal);
    animation: nodeGlow 2s ease-in-out infinite;
}

@keyframes nodeGlow {
    0%, 100% { 
        box-shadow: 0 0 10px var(--ciea-teal);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px var(--ciea-teal), 0 0 30px var(--ciea-teal);
        transform: scale(1.2);
    }
}

/* Futuristic text glow */
.cyber-glow-text {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 15px currentColor,
        0 0 20px currentColor;
}

/* Loading sequence animation */
.loading-sequence {
    position: relative;
    overflow: hidden;
}

.loading-sequence::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ciea-teal), transparent);
    animation: loadingBar 2s ease-in-out infinite;
}

@keyframes loadingBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Team profile enhancements */
.team-profile-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--ciea-teal), var(--neon-blue), var(--neon-purple), var(--ciea-teal));
    animation: ringRotate 8s linear infinite;
    opacity: 0.6;
}

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

/* Profile avatar hover effect */
.profile-avatar {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-avatar:hover {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.profile-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(79, 209, 199, 0.3), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-avatar:hover::after {
    opacity: 1;
}

/* LinkedIn button enhancement */
.linkedin-connect {
    position: relative;
    overflow: hidden;
}

.linkedin-connect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.linkedin-connect:hover::before {
    left: 100%;
}

/* Team section background effects */
.team-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.neural-connection {
    position: absolute;
    width: 2px;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--ciea-teal), transparent);
    opacity: 0.3;
    animation: neuralPulse 4s ease-in-out infinite;
}

.neural-connection:nth-child(1) { left: 20%; animation-delay: 0s; }
.neural-connection:nth-child(2) { left: 40%; animation-delay: 1s; }
.neural-connection:nth-child(3) { left: 60%; animation-delay: 2s; }
.neural-connection:nth-child(4) { left: 80%; animation-delay: 3s; }

@keyframes neuralPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.8); }
    50% { opacity: 0.8; transform: scaleY(1.2); }
}

/* Logo specific styling */
.ciea-logo {
    height: 160px;
    width: auto;
    max-width: none;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Navigation logo positioning */
nav .ciea-logo {
    height: 160px;
    margin-right: 2rem;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1)) contrast(1.2) brightness(1.05) saturate(1.1);
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

nav .ciea-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

/* Footer logo styling */
footer .ciea-logo {
    height: 120px;
    filter: brightness(0) invert(1) contrast(1.1);
    transition: all 0.3s ease;
}

footer .ciea-logo:hover {
    filter: brightness(0) invert(1) contrast(1.2);
}

/* Logo container styling */
nav .flex.items-center {
    min-width: 450px;
}

/* Logo link styling */
nav a[href="#home"] {
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

nav a[href="#home"]:hover {
    background-color: rgba(79, 209, 199, 0.05);
}

/* Ensure logo is readable on all backgrounds */
@media (max-width: 768px) {
    nav .ciea-logo {
        height: 100px;
    }
    
    footer .ciea-logo {
        height: 90px;
    }
    
    nav .flex.items-center {
        min-width: 320px;
    }
    
    nav .flex.justify-between.items-center {
        height: 8rem;
        padding: 1rem 0;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    nav .ciea-logo {
        height: 90px;
    }
    
    footer .ciea-logo {
        height: 80px;
    }
    
    nav .flex.items-center {
        min-width: 280px;
    }
    
    nav .flex.justify-between.items-center {
        height: 7rem;
        padding: 0.75rem 0;
    }
}

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

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Hero section enhancements */
.hero-bg {
    background: linear-gradient(135deg, var(--ciea-light) 0%, rgba(255, 255, 255, 1) 50%, rgba(79, 209, 199, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(79, 209, 199, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 209, 199, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Glassmorphism effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, var(--ciea-teal), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom button hover effects */
.btn-primary {
    background: linear-gradient(135deg, var(--ciea-teal), #3B82F6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

/* Service card enhancements */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 199, 0.05), rgba(59, 130, 246, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Progress bar animations */
.progress-bar {
    transition: width 1s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Mobile navigation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu.active {
    max-height: 400px;
}

/* Scroll indicators */
.section-indicator {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.section-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(107, 114, 128, 0.3);
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.section-dot.active {
    background: var(--ciea-teal);
    transform: scale(1.2);
}

/* Typography enhancements */
.text-gradient {
    background: linear-gradient(135deg, var(--ciea-teal), #3B82F6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Loading animations */
.loading-bar {
    height: 3px;
    background: var(--ciea-teal);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
    animation: loading 2s ease-out forwards;
}

@keyframes loading {
    to {
        transform: scaleX(1);
    }
}

/* Particle background for hero */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--ciea-teal);
    border-radius: 50%;
    opacity: 0.1;
    animation: particle-float 8s infinite linear;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
    }
}

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

::-webkit-scrollbar-track {
    background: var(--ciea-light);
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3AB5B0;
}

/* Form styling */
.form-input {
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: var(--ciea-teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(79, 209, 199, 0.1);
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--ciea-dark);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ciea-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 10px);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .print-break {
        page-break-before: always;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .service-card {
        border: 2px solid var(--ciea-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--ciea-dark);
    }
}

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

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --ciea-light: #1f2937;
        --ciea-gray: #9ca3af;
    }
}

/* Soft Islamic Human Touch Elements */

/* Gentle Hand Gesture Silhouettes */
.hand-gesture {
    position: relative;
    display: inline-block;
}

.hand-gesture::before {
    content: '🤝';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2em;
    opacity: 0;
    animation: gentleHandshake 3s ease-in-out infinite;
    filter: sepia(1) saturate(2) hue-rotate(180deg);
}

@keyframes gentleHandshake {
    0%, 70%, 100% { opacity: 0; transform: translateY(5px); }
    10%, 60% { opacity: 0.7; transform: translateY(0px); }
}

/* Warm Trust Indicators */
.trust-indicator {
    position: relative;
    overflow: hidden;
}

.trust-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(230, 184, 138, 0.15) 20%,
        rgba(74, 144, 226, 0.15) 50%,
        rgba(126, 211, 33, 0.15) 80%,
        transparent 100%);
    animation: trustWave 4s ease-in-out infinite;
}

@keyframes trustWave {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Soft Human Silhouettes */
.human-silhouette {
    position: relative;
}

.human-silhouette::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(ellipse at center, 
        rgba(230, 184, 138, 0.3) 0%,
        rgba(74, 144, 226, 0.2) 50%,
        transparent 100%);
    border-radius: 50% 50% 45% 55% / 60% 70% 30% 40%;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    animation: gentleBreathe 4s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes gentleBreathe {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.6; }
    50% { transform: translateX(-50%) scale(1.05); opacity: 0.8; }
}

/* Warm Community Circles */
.community-circle {
    position: relative;
    display: inline-block;
}

.community-circle::before,
.community-circle::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(230, 184, 138, 0.1);
    animation: communityPulse 3s ease-in-out infinite;
}

.community-circle::before {
    width: 20px;
    height: 20px;
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.community-circle::after {
    width: 15px;
    height: 15px;
    top: -7px;
    right: -7px;
    background: rgba(74, 144, 226, 0.1);
    animation-delay: 1.5s;
}

@keyframes communityPulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

/* Gentle Prayer/Reflection Posture */
.reflection-posture {
    position: relative;
}

.reflection-posture::before {
    content: '🙏';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8em;
    opacity: 0.4;
    animation: gentleReflection 5s ease-in-out infinite;
    filter: sepia(0.5) saturate(0.8) brightness(1.1);
}

@keyframes gentleReflection {
    0%, 90%, 100% { opacity: 0; transform: scale(0.8); }
    45%, 55% { opacity: 0.6; transform: scale(1); }
}

/* Soft Handwriting Script Effect */
.handwritten-touch {
    font-family: 'Brush Script MT', cursive;
    position: relative;
}

.handwritten-touch::after {
    content: attr(data-handwritten);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: var(--warm-gold);
    opacity: 0;
    transform: translateY(-3px);
    animation: handwrittenAppear 3s ease-in-out infinite;
    pointer-events: none;
    font-size: 0.9em;
}

@keyframes handwrittenAppear {
    0%, 70%, 100% { opacity: 0; transform: translateY(-3px); }
    20%, 50% { opacity: 0.3; transform: translateY(0); }
}

/* Caring Touch Indicators - Subtle Text Enhancement Only */
.caring-touch {
    position: relative;
}

.caring-touch::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(230, 184, 138, 0.02) 0%,
        rgba(74, 144, 226, 0.02) 50%,
        rgba(126, 211, 33, 0.02) 100%);
    opacity: 0;
    animation: subtleCaring 4s ease-in-out infinite;
    pointer-events: none;
    border-radius: inherit;
}

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

/* Warm Welcome Gestures */
.welcome-gesture {
    position: relative;
    overflow: visible;
}

.welcome-gesture::after {
    content: '👐';
    position: absolute;
    top: 50%;
    left: -40px;
    transform: translateY(-50%);
    font-size: 1.2em;
    opacity: 0;
    animation: welcomeWave 4s ease-in-out infinite;
    filter: sepia(0.2) saturate(1.1);
}

@keyframes welcomeWave {
    0%, 60%, 100% { opacity: 0; transform: translateY(-50%) translateX(-10px); }
    30% { opacity: 0.6; transform: translateY(-50%) translateX(0); }
}

/* Gentle Protection Aura */
.protection-aura {
    position: relative;
}

.protection-aura::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid rgba(230, 184, 138, 0.2);
    border-radius: inherit;
    animation: protectionGlow 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes protectionGlow {
    0%, 100% { 
        opacity: 0.3; 
        box-shadow: 0 0 10px rgba(230, 184, 138, 0.1);
        transform: scale(1);
    }
    50% { 
        opacity: 0.6; 
        box-shadow: 0 0 20px rgba(230, 184, 138, 0.2);
        transform: scale(1.02);
    }
}

/* Soft Connection Lines */
.connection-lines {
    position: relative;
}

.connection-lines::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(230, 184, 138, 0.3) 30%,
        rgba(74, 144, 226, 0.3) 70%,
        transparent 100%);
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    animation: connectionPulse 3s ease-in-out infinite;
}

@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; height: 30px; }
    50% { opacity: 0.7; height: 35px; }
}

/* Enhanced CIEA Logo with Human Touch */
.ciea-logo {
    height: 120px;
    width: auto;
    max-width: 300px;
    transition: all 0.3s ease;
    position: relative;
    filter: drop-shadow(0 0 5px rgba(230, 184, 138, 0.2));
}

.ciea-logo:hover {
    filter: drop-shadow(0 0 10px rgba(230, 184, 138, 0.4));
    transform: scale(1.02);
}

/* Soft Human-Centered Cards */
.human-centered-card {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.9) 0%,
        rgba(230, 184, 138, 0.03) 50%,
        rgba(74, 144, 226, 0.03) 100%);
    border: 1px solid rgba(230, 184, 138, 0.1);
}

.human-centered-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(230, 184, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.8;
}

/* Responsive Human Touch Elements */
@media (max-width: 768px) {
    .hand-gesture::before,
    .welcome-gesture::after {
        font-size: 1em;
    }
    
    .human-silhouette::before {
        width: 30px;
        height: 30px;
    }
    
    .ciea-logo {
        height: 100px;
        max-width: 250px;
    }
}

/* FAQ Animation Styles */
.animate-fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

.transition-transform {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

