/* Custom Styles for Codeshift */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

/* Language Switcher */
#languageSwitcher {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

#languageSwitcher:focus {
    border-color: var(--warning-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: rgba(255, 255, 255, 0.2);
}

#languageSwitcher option {
    background: var(--dark-color);
    color: white;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-graphic {
    padding: 2rem 0;
}

.hero-icon {
    font-size: 4rem;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Sections */
section {
    padding: 80px 0;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* About Stats */
.stat-item {
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: 0.5px;
}

.stat-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-icon i {
    opacity: 0.9;
}

/* Contact Form */
#contactForm .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: border-color 0.3s ease;
}

#contactForm .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Contact Info */
.contact-info {
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Social Links */
.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--warning-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .hero-graphic {
        margin-top: 2rem;
    }
    
    .hero-icon {
        font-size: 3rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .stat-item {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .hero-icon {
        font-size: 2.5rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--info-color) 100%);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Event-Driven Architecture Animation */
.event-animation-container {
    position: relative;
    height: 60px;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(90deg, #e3f2fd 0%, #f3e5f5 50%, #e8f5e8 100%);
}

.moving-envelope {
    position: absolute;
    top: 50%;
    left: -50px;
    transform: translateY(-50%);
    font-size: 2rem;
    color: var(--primary-color);
    animation: moveEnvelope 4s ease-in-out infinite;
}

@keyframes moveEnvelope {
    0% {
        left: -50px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 50%;
        transform: translateX(-50%) translateY(-50%) scale(1.2);
    }
    90% {
        opacity: 1;
    }
    100% {
        left: calc(100% + 50px);
        opacity: 0;
        transform: translateY(-50%) scale(1);
    }
}

.event-arrows {
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0.3;
}

.event-arrows i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* Development Banner */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    color: white;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    border-bottom-right-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    animation: devPulse 2s ease-in-out infinite;
}

.dev-banner i {
    margin-right: 6px;
    animation: devSpin 2s linear infinite;
}

@keyframes devPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes devSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Adjust navbar when dev banner is present */
body.dev-mode .navbar {
    top: 36px;
}

body.dev-mode section {
    scroll-margin-top: 120px;
}

/* Contact form security - hide honeypot better */
.honeypot {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}