/* Fikraa Tech - Main Stylesheet */

/* ===================================
   COLOR THEME SYSTEM
   ===================================
   
   Purple/Blue Tech Theme
   Modern gradient-based color scheme for technology brand
   
   =================================== */

:root {
    /* Purple/Blue Gradient Theme */
    --primary-color: #7C3AED;
    --primary-hover: #6D28D9;
    --primary-light: rgba(124, 58, 237, 0.1);
    --primary-shadow: rgba(124, 58, 237, 0.4);
    --primary-glow: rgba(124, 58, 237, 0.3);
    --secondary-color: #3B82F6;
    --gradient-start: #7C3AED;
    --gradient-end: #3B82F6;
}

body {
    font-family: 'Montserrat', sans-serif;
}

/* Custom Color Classes */
.custom-navy { color: #002B5B; }
.bg-custom-navy { background-color: #002B5B; }
.custom-steel { color: #4F4F4F; }
.bg-custom-steel { background-color: #4F4F4F; }
.custom-purple { color: var(--primary-color); }
.bg-custom-purple { background-color: var(--primary-color); }
.custom-purple-light { color: #A78BFA; }

/* Override Tailwind Colors with Theme Color */
.hover\:text-purple-600:hover { color: var(--primary-color) !important; }
.hover\:text-purple-400:hover { color: #A78BFA !important; }
.hover\:bg-purple-600:hover { background-color: var(--primary-hover) !important; }
.text-purple-400 { color: #A78BFA; }

/* Background Images */
.hero-bg {
    background: linear-gradient(rgba(0, 43, 91, 0.7), rgba(124, 58, 237, 0.7)),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-banner-bg {
    background: linear-gradient(rgba(0, 43, 91, 0.8), rgba(124, 58, 237, 0.8)),
                url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80');
    background-size: cover;
    background-position: center;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

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

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #2563EB);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-shadow);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-glow);
}

/* Image loading fallback */
img {
    background-color: #f3f4f6;
    transition: opacity 0.3s ease;
}

/* Modern animations for Features section */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

.animate-float-delayed-2 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-float-delayed-3 {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

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

.pulse-glow {
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Newsletter Section */
.newsletter-bg {
    background: linear-gradient(135deg, #002B5B, var(--primary-color), #3B82F6);
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: #A78BFA;
    background: rgba(255, 255, 255, 0.2);
}

/* Contact Form Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Feature Card Improvements */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    transition: left 0.5s ease;
}

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

/* Project Card Styles */
.project-card {
    transition: all 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.project-card.hidden {
    opacity: 0;
    transform: translateY(20px);
    display: none;
}

/* Filter Button Styles */
.filter-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Tech Stack Icons */
.tech-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.tech-icon:hover {
    transform: scale(1.1);
}

/* Floating Action Buttons */
.float-button {
    position: fixed;
    bottom: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    color: white;
}

.float-button:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.float-button i {
    color: white;
}

/* WhatsApp Button - Bottom Right (First) */
.whatsapp-float {
    right: 20px;
    background: #25D366;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
}

/* Contact Button - Bottom Right (Second, above WhatsApp) */
.contact-float {
    right: 20px;
    bottom: 90px;
    background: linear-gradient(135deg, #7C3AED, #3B82F6);
    animation: contact-pulse 2s infinite 0.5s;
}

.contact-float:hover {
    background: linear-gradient(135deg, #6D28D9, #2563EB);
}

/* Pulse animations */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

@keyframes contact-pulse {
    0% {
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(124, 58, 237, 0.7), 0 0 0 10px rgba(124, 58, 237, 0.1);
    }
    100% {
        box-shadow: 0 4px 12px rgba(124, 58, 237, 0.4);
    }
}

/* Service Details Page */
.service-detail-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-detail-card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-bg {
        background-attachment: scroll;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .float-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
    }
    
    .whatsapp-float {
        right: 15px;
    }
    
    .contact-float {
        right: 15px;
        bottom: 75px;
    }
}

/* Code Block Styling */
pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-switcher a {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.language-switcher a.active {
    background: linear-gradient(135deg, #7C3AED, #3B82F6);
    color: white;
}

.language-switcher a:hover:not(.active) {
    background: rgba(124, 58, 237, 0.1);
}

.language-switcher span {
    color: #9CA3AF;
}

