/* DreamBridge Media - Main Styles */

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #6366f1, #ec4899);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #4f46e5, #db2777);
}

/* Dark mode scrollbar */
.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

/* Hook Section Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(-10px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
}

.transform-step {
    animation: fade-in-up 0.6s ease-out forwards;
}

.transform-step:nth-child(2) {
    animation-delay: 0.2s;
}

.transform-step:nth-child(3) {
    animation-delay: 0.4s;
}

/* Navigation Styles */
#navbar {
    transition: all 0.3s ease;
}

#navbar.hidden {
    transform: translateY(-100%);
}

.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-logo,
.tagline-carousel,
.hero-description {
    animation: fadeInUp 1s ease-out forwards;
}

.hero-logo {
    animation-delay: 0.2s;
}

.tagline-carousel {
    animation-delay: 0.4s;
}

.hero-description {
    animation-delay: 0.6s;
}

/* Tagline Carousel */
.tagline-carousel {
    position: relative;
    overflow: hidden;
}

.tagline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.tagline.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Indicator */
.scroll-indicator {
    animation: bounce 2s infinite;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.dark .service-card {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 24px;
}

.service-card:hover::before {
    opacity: 1;
}

.service-orb {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-orb {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(236, 72, 153, 0.3));
}

.know-more-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.know-more-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 ease;
}

.know-more-btn:hover::before {
    left: 100%;
}

/* Floating Images */
.floating-images {
    position: relative;
    height: 500px;
}

.floating-img {
    position: absolute;
    width: 250px;
    height: 180px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.floating-img-1 {
    top: 0;
    left: 0;
    z-index: 3;
    animation: float1 6s ease-in-out infinite;
}

.floating-img-2 {
    top: 50px;
    right: 0;
    z-index: 2;
    animation: float2 7s ease-in-out infinite;
}

.floating-img-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: float3 8s ease-in-out infinite;
}

/* Vision Pillars */
.pillar {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.dark .pillar {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

.pillar:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pillar-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pillar:hover .pillar-icon {
    transform: scale(1.2) rotate(15deg);
}

/* Floating Words */
.floating-words {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    font-size: 1.5rem;
    font-weight: 600;
    opacity: 0.3;
    animation: floatWord 15s linear infinite;
    color: #6366f1;
}

.floating-word:nth-child(even) {
    color: #ec4899;
    animation-duration: 18s;
}

.floating-word:nth-child(3n) {
    color: #06b6d4;
    animation-duration: 12s;
}

/* Contact Form */
.bridge-form {
    position: relative;
    overflow: hidden;
}

.bridge-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(99, 102, 241, 0.1), transparent, rgba(236, 72, 153, 0.1), transparent);
    animation: rotate 20s linear infinite;
    opacity: 0.5;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.5s ease-out;
}

.path-toggle .toggle-container {
    position: relative;
}

.path-btn {
    transition: all 0.3s ease;
}

.path-btn.active {
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

/* Stats Animation */
.stat-item {
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.1);
}

/* Button Styles */
.cta-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #6366f1, #ec4899);
}

.cta-button::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 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

/* Service Modal */
.modal-backdrop {
    backdrop-filter: blur(10px);
}

.modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

/* Cursor Trail */
#cursor-trail {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.8), rgba(236, 72, 153, 0.4));
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
    pointer-events: none;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
}

/* Process Timeline */
.timeline-line {
    background: linear-gradient(to bottom, #6366f1, #ec4899, #06b6d4, #f59e0b);
}

.step-icon {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}

.dark .step-icon {
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 1);
}

/* Feature Items */
.feature-item {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateX(8px);
}

.dark .feature-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.feature-icon {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-img {
        width: 200px;
        height: 140px;
    }
    
    .floating-images {
        height: 400px;
    }
    
    .floating-img-1,
    .floating-img-2,
    .floating-img-3 {
        position: relative;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .pillar {
        padding: 1.5rem;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-content,
    .step-visual {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 1rem;
    }
    
    .timeline-line {
        left: 2rem !important;
        width: 2px;
    }
    
    .step-icon {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        margin: 1rem auto;
    }
}

/* Print Styles */
@media print {
    .fixed,
    nav,
    footer,
    .cta-button,
    .floating-word {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .pillar,
    .bridge-form {
        background: white !important;
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-img,
    .floating-word,
    .scroll-indicator {
        animation: none !important;
    }
}

/* Focus Styles */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card,
    .pillar,
    .bridge-form {
        border: 2px solid #000;
        background: #fff;
    }
    
    .dark .service-card,
    .dark .pillar,
    .dark .bridge-form {
        border: 2px solid #fff;
        background: #000;
    }
}

