/* Modern Creative CSS for ONE IT CONSULTING LIMITED */

/* Import modern fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* Root Variables - Creative Color Palette */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --tech-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-gradient: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    --neon-gradient: linear-gradient(135deg, #12c2e9 0%, #c471ed 50%, #f64f59 100%);
    
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #f093fb;
    --accent-color: #4facfe;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --danger-color: #f56565;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --glass-bg: rgba(255, 255, 255, 0.1);
    
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Space Grotesk', sans-serif;
    
    --shadow-soft: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-hover: 0 15px 35px rgba(31, 38, 135, 0.2);
    --shadow-neon: 0 0 20px rgba(102, 126, 234, 0.6);
    
    --border-radius: 20px;
    --border-radius-lg: 30px;
    --border-radius-sm: 10px;
}

/* Base Styles - Modern Foundation */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    padding-top: 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

/* Creative Background Animations */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(102,126,234,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

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

/* Custom Scrollbar - Glassmorphism Style */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-gradient);
    box-shadow: var(--shadow-neon);
}

/* Navigation - Glassmorphism Design */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(30px);
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.navbar-brand img {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 8px rgba(102, 126, 234, 0.3));
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 8px 16px rgba(102, 126, 234, 0.5));
}

.nav-link {
    font-weight: 600;
    font-family: var(--font-secondary);
    color: var(--dark-color) !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 5px;
    padding: 8px 16px !important;
    border-radius: var(--border-radius-sm);
}

.nav-link:hover {
    color: white !important;
    background: var(--primary-gradient);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neon-gradient);
    opacity: 0;
    z-index: -1;
    border-radius: var(--border-radius-sm);
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

/* Hero Section - 3D Creative Design */
.hero-section {
    background: var(--neon-gradient);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { 
        transform: translateX(0%) rotate(0deg); 
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: translateX(5%) rotate(2deg); 
        filter: hue-rotate(30deg);
    }
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    opacity: 0.4;
    animation: floatBackground 25s ease-in-out infinite;
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Hero Content 3D Effects */
.hero-content {
    transform-style: preserve-3d;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-10px) rotateX(2deg); }
}

.hero-section h1 {
    font-family: var(--font-secondary);
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #e0e7ff, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { 
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 30px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
    to { 
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 40px rgba(102, 126, 234, 0.5);
        transform: scale(1.02);
    }
}

/* Floating geometric shapes */
.hero-section .geometric-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.1;
    animation: geometricFloat 20s ease-in-out infinite;
}

.hero-section .shape-1 {
    top: 10%;
    left: 10%;
    width: 80px;
    height: 80px;
    background: var(--tech-gradient);
    border-radius: 50%;
    animation-delay: 0s;
}

.hero-section .shape-2 {
    top: 70%;
    right: 10%;
    width: 60px;
    height: 60px;
    background: var(--secondary-gradient);
    transform: rotate(45deg);
    animation-delay: 7s;
}

.hero-section .shape-3 {
    top: 40%;
    right: 20%;
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation-delay: 14s;
}

@keyframes geometricFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.1;
    }
    50% { 
        transform: translateY(-50px) rotate(180deg) scale(1.2); 
        opacity: 0.3;
    }
}

/* Page Headers - Creative Design */
.page-header {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tech-gradient);
    opacity: 0.8;
    z-index: 1;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--light-color);
    clip-path: polygon(0 100%, 100% 100%, 100% 30%, 50% 0%, 0 30%);
    z-index: 2;
}

.page-header .container {
    position: relative;
    z-index: 3;
}

/* Cards - Glassmorphism & 3D Effects */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neon-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: rgba(102, 126, 234, 0.3);
}

.card:hover::before {
    opacity: 0.1;
}

.card-body {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

/* Animated Cards */
.card.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.card.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Special Card Effects */
.card.card-hover-gradient {
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1), 
        rgba(255, 255, 255, 0.05)
    );
}

.card.card-hover-gradient:hover {
    background: linear-gradient(45deg, 
        rgba(102, 126, 234, 0.1), 
        rgba(118, 75, 162, 0.1)
    );
}

/* Buttons - Futuristic 3D Design */
.btn {
    border-radius: var(--border-radius);
    font-weight: 600;
    font-family: var(--font-secondary);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: none;
    padding: 12px 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn::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:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
    background: var(--neon-gradient);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover), var(--shadow-neon);
    color: white;
}

.btn-outline-light {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    color: white;
}

.btn-light {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-color);
    backdrop-filter: blur(20px);
}

.btn-light:hover {
    background: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
    color: var(--dark-color);
}

/* Special gradient buttons */
.btn-gradient {
    background: var(--neon-gradient);
    color: white;
    position: relative;
    z-index: 1;
}

.btn-gradient::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--tech-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    border-radius: var(--border-radius);
}

.btn-gradient:hover::after {
    opacity: 1;
}

/* Loading button animation */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Forms - Glassmorphism Design */
.form-control, .form-select {
    border-radius: var(--border-radius);
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    font-family: var(--font-primary);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-soft), var(--shadow-neon);
    transform: scale(1.02) translateY(-2px);
    outline: none;
}

.form-control::placeholder {
    color: rgba(26, 32, 44, 0.6);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-family: var(--font-secondary);
}

/* Footer - Creative Gradient */
footer {
    background: var(--dark-gradient) !important;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--neon-gradient);
    opacity: 0.1;
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer a {
    transition: all 0.3s ease;
    position: relative;
}

footer a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(79, 172, 254, 0.5);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

.display-4, .display-5, .display-6 {
    font-family: var(--font-secondary);
    font-weight: 800;
}

/* Special Text Effects */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-neon {
    background: var(--neon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textPulse 2s ease-in-out infinite alternate;
}

@keyframes textPulse {
    from { filter: brightness(1); }
    to { filter: brightness(1.2); }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Timeline */
.timeline-marker {
    width: 40px;
    height: 40px;
    font-size: 0.875rem;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.3);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

/* Icons */
.fa, .fas, .far {
    transition: all 0.3s ease;
}

.fa:hover, .fas:hover, .far:hover {
    transform: scale(1.1);
}

/* Contact Items */
.contact-item {
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.contact-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Responsive Images */
img {
    transition: all 0.3s ease;
}

img:hover {
    transform: scale(1.02);
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Accessibility */
.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;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .card {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .timeline-marker {
        width: 35px;
        height: 35px;
        font-size: 0.75rem;
    }
    
    .card-body.p-5 {
        padding: 2rem !important;
    }
    
    .cookie-banner .col-md-9,
    .cookie-banner .col-md-3 {
        text-align: center;
        margin-bottom: 0.5rem;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--dark-color);
    }
    
    .btn-primary {
        background: var(--dark-color);
        border-color: var(--dark-color);
    }
}

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

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #343a40;
        --dark-color: #f8f9fa;
    }
}
