/* PixelWave Solutions - Enhanced Animated Stylesheet */

/* CSS Variables for consistent theming */
:root {
    --primary-blue: #2563eb;
    --secondary-blue: #3b82f6;
    --accent-red: #ef4444;
    --dark-red: #dc2626;
    --light-gray: #f8fafc;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --white: #ffffff;
    --shadow-light: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-medium: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --shadow-heavy: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --gradient-primary: linear-gradient(135deg, var(--primary-blue), var(--secondary-blue));
    --gradient-hero: linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(59, 130, 246, 0.8), rgba(99, 102, 241, 0.7));
    --border-radius: 12px;
    --transition-fast: 0.2s ease-out;
    --transition-medium: 0.4s ease-out;
    --transition-slow: 0.6s ease-out;
}

/* Global Styles with smooth scrolling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    overflow-x: hidden;
}

/* Loading Animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Container with subtle animations */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    transition: transform var(--transition-medium);
}

/* Enhanced Header with glass effect */
header {
    background: rgba(37, 99, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-medium);
    animation: slideDown 0.8s ease-out;
}

header.scrolled {
    background: rgba(37, 99, 235, 0.98);
    box-shadow: var(--shadow-medium);
    padding: 0.5rem 0;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Animated Logo */
.logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

@keyframes logoGlow {
    0% { text-shadow: 0 0 10px rgba(255,255,255,0.3); }
    100% { text-shadow: 0 0 20px rgba(255,255,255,0.6); }
}

/* Navigation with smooth animations */
nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--border-radius);
    position: relative;
    transition: all var(--transition-medium);
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left var(--transition-medium);
}

nav a:hover::before {
    left: 100%;
}

nav a:hover, nav a.active {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Spectacular Hero Section */
.hero {
    background: var(--gradient-hero), url('../images/ui_ux_design_workspa_d21338aa.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    text-align: center;
    padding: 150px 0 100px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(37, 99, 235, 0.1) 100%);
    animation: heroGlow 4s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.3s both;
    background: linear-gradient(45deg, #ffffff, #e0f2fe, #ffffff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: heroText 3s ease-in-out infinite, fadeInUp 1s ease-out 0.3s both;
}

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

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out 0.6s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Enhanced Buttons with amazing animations */
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-red), #f59e0b);
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-medium);
    animation: fadeInUp 1s ease-out 0.9s both;
    margin: 0.5rem;
}

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

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

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(45deg, #dc2626, #f59e0b);
}

.btn:active {
    transform: translateY(-1px) scale(1.02);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.8);
    backdrop-filter: blur(15px);
}

/* Secondary button on light background */
.section .btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.section .btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-heavy);
}

/* Main Content with scroll animations */
main {
    padding: 4rem 0;
    position: relative;
}

.section {
    margin-bottom: 6rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section.animate {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: fadeInUp 0.8s ease-out;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 80px; }
}

/* Beautiful Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Stunning Cards with hover effects */
.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-medium);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: cardAppear 0.6s ease-out;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(37, 99, 235, 0.3);
}

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

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 4px);
    margin-bottom: 1.5rem;
    transition: all var(--transition-medium);
    filter: brightness(1) saturate(1);
}

.card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) saturate(1.2);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    transition: all var(--transition-fast);
}

.card:hover h3 {
    color: var(--accent-red);
    transform: scale(1.05);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-blue), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #60a5fa;
    position: relative;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(96, 165, 250, 0.5); }
    to { text-shadow: 0 0 15px rgba(96, 165, 250, 0.8); }
}

.footer-section p, .footer-section a {
    color: #d1d5db;
    text-decoration: none;
    line-height: 1.8;
    transition: all var(--transition-fast);
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #9ca3af;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Enhanced Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--text-dark);
    transition: all var(--transition-fast);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: all var(--transition-medium);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

/* Floating animations */
.floating {
    animation: float 3s ease-in-out infinite;
}

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

/* Parallax effects */
.parallax {
    transform: translateZ(0);
    transition: transform 0.1s;
}

/* Enhanced Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    padding: 1.5rem;
    text-align: center;
    z-index: 1000;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner.show {
    display: block;
}

.cookie-banner p {
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.cookie-banner button {
    margin: 0 0.5rem;
    animation: fadeIn 0.8s ease-out 0.6s both;
}

/* Responsive Design with smooth transitions */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul {
        margin-top: 1rem;
        justify-content: center;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .card {
        padding: 2rem;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
    loading: lazy;
    transition: all var(--transition-medium);
}

/* Legal pages styling with animations */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out;
}

.legal-content h2 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.legal-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    animation: fadeIn 0.6s ease-out;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.contact-info {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(224, 242, 254, 0.8));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin: 2rem 0;
    border-left: 4px solid var(--primary-blue);
    box-shadow: var(--shadow-light);
    transition: all var(--transition-medium);
    animation: slideInUp 0.8s ease-out;
}

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

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform-origin: left;
    transform: scaleX(0);
    z-index: 9999;
    transition: transform 0.1s;
}

/* Additional animations for enhanced experience */
.bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Smooth page transitions */
.page-transition {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

.page-transition.loaded {
    opacity: 1;
}