/**
 * slider.css
 * Modern fullpage slider - Ocean Blue Theme
 */

/* CSS Variables for slider */
:root {
    --slider-primary: #0077B6;
    --slider-secondary: #00B4D8;
    --slider-accent: #48CAE4;
    --slider-dark: #0A1628;
    --slider-light: #F0F8FF;
}

/* Slider Mode */
body.slider-mode {
    overflow: hidden;
    height: 100vh;
}

.slider-container {
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.slider-container .section-content {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 80px 0 40px;
    will-change: transform, opacity;
    scroll-behavior: smooth;
}

/* Center content when it fits, stay at top when it overflows */
.slider-container .section-content > .container {
    flex-shrink: 0;
    width: 100%;
    margin-top: auto;
    margin-bottom: auto;
}

/* Hide scrollbar but allow scroll */
.slider-container .section-content::-webkit-scrollbar {
    display: none;
}
.slider-container .section-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Slide Animations */
.slide-out {
    animation: slideOut 0.4s ease-in forwards;
}

.slide-out-down {
    animation-name: slideOutDown;
}

.slide-out-up {
    animation-name: slideOutUp;
}

.slide-in {
    animation: slideIn 0.4s ease-out forwards;
}

.slide-in-down {
    animation-name: slideInDown;
}

.slide-in-up {
    animation-name: slideInUp;
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-100px) scale(0.95);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(100px) scale(0.95);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(-100px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Navigation Dots - Ocean Blue */
.slider-dots {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(0, 119, 182, 0.2);
    border: 2px solid var(--slider-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.slider-dot:hover {
    background: var(--slider-primary);
    transform: scale(1.3);
    box-shadow: 0 0 20px var(--slider-primary);
}

.slider-dot.active {
    background: var(--slider-primary);
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--slider-primary);
}

.slider-dot.active::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px solid var(--slider-primary);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Dot Tooltip */
.dot-tooltip {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.dot-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--primary-color);
}

.slider-dot:hover .dot-tooltip {
    opacity: 1;
    visibility: visible;
    right: 30px;
}

/* Progress Indicator - Hidden */
.slider-progress {
    display: none !important;
}

.slider-progress-bar {
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.slider-progress-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 20%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    transition: width 0.5s ease;
}

.slider-progress-text {
    font-size: 13px;
    color: white;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}

/* Entrance Animations */
.animate-entrance {
    animation: entranceAnimation 0.8s ease forwards;
}

@keyframes entranceAnimation {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for children */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
    animation: staggerIn 0.6s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Parallax effect - Ocean Theme */
.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(180deg, var(--light-color) 0%, #E8F4F8 100%);
}

.parallax-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.parallax-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--slider-primary), var(--slider-secondary));
    opacity: 0.06;
    animation: float 20s infinite ease-in-out;
}

.parallax-shape:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.parallax-shape:nth-child(2) {
    width: 300px;
    height: 300px;
    top: 50%;
    right: -50px;
    animation-delay: -5s;
}

.parallax-shape:nth-child(3) {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(-15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-40px) rotate(3deg);
    }
}

/* Scroll Hint Animation */
.scroll-hint {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    font-size: 11px;
    animation: fadeInOut 3s infinite;
    z-index: 999;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    position: relative;
}

.scroll-hint-icon::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollDown 1.5s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Magnetic Button Effect */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s ease;
}

.btn-magnetic:hover {
    transform: scale(1.05);
}

/* Glowing effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--primary-color));
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowRotate 3s linear infinite;
}

.glow-effect:hover::after {
    opacity: 1;
}

@keyframes glowRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Text reveal animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to {
        transform: translateY(0);
    }
}

/* Card hover 3D effect */
.card-3d-hover {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
}

.card-3d-hover:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 25px 50px rgba(0, 119, 182, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .slider-dots {
        right: 15px;
        gap: 12px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .dot-tooltip {
        display: none;
    }
    
    .slider-progress {
        bottom: 20px;
        padding: 8px 15px;
    }
    
    .slider-progress-bar {
        width: 60px;
    }
    
    .slider-progress-text {
        font-size: 11px;
    }
    
    .slider-container .section-content {
        padding: 80px 0 40px;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .slider-dot {
    background: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .slider-progress {
    background: rgba(0, 0, 0, 0.7);
}

body.dark-theme .parallax-shape {
    opacity: 0.03;
}

/* Smooth scroll behavior override for slider mode */
body.slider-mode {
    scroll-behavior: auto;
}

body.slider-mode::-webkit-scrollbar {
    display: none;
}

body.slider-mode {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
