/* =========================================
   ELPEEDA TECHNOLOGIES
   CUSTOM STYLES
   Tailwind handles most styling.
   This file contains only custom effects,
   animations and reusable components.
========================================= */


/* =========================================
   GLOBAL
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}


/* =========================================
   CUSTOM FONT
========================================= */

.font-display {
    font-family: "Playfair Display", serif;
}


/* =========================================
   GLASS EFFECT
========================================= */

.glass {
    background: rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(16px);

    -webkit-backdrop-filter: blur(16px);

    border: 1px solid rgba(255, 255, 255, 0.12);
}


.glass-light {
    background: rgba(255, 255, 255, 0.85);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border: 1px solid rgba(255, 255, 255, 0.6);
}


/* =========================================
   GRADIENT TEXT
========================================= */

.gradient-text {
    background: linear-gradient(
        135deg,
        #00C2FF 0%,
        #0057FF 50%,
        #00C2FF 100%
    );

    -webkit-background-clip: text;

    background-clip: text;

    -webkit-text-fill-color: transparent;
}


/* =========================================
   BUTTON EFFECTS
========================================= */

.btn-primary {
    position: relative;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.btn-primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 15px 40px rgba(0, 87, 255, 0.35);
}


.btn-primary:active {
    transform: translateY(0);
}


/* =========================================
   OUTLINE BUTTON
========================================= */

.btn-outline {
    transition:
        transform 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}


.btn-outline:hover {
    transform: translateY(-2px);

    background: #ffffff;

    box-shadow:
        0 10px 30px rgba(0, 87, 255, 0.12);
}


.btn-outline:active {
    transform: translateY(0);
}


/* =========================================
   HERO PARTICLE CANVAS
========================================= */

#particles-canvas {
    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

    pointer-events: none;

    opacity: 0.7;
}

/* =========================================
   FLOATING ANIMATION
========================================= */

.float {
    animation: floating 6s ease-in-out infinite;
}


.float-delay {
    animation: floating 6s ease-in-out 2s infinite;
}


.float-delay-2 {
    animation: floating 6s ease-in-out 4s infinite;
}


@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

}


/* =========================================
   REVEAL ON SCROLL
========================================= */
.reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}


.reveal.active {
    opacity: 1;

    transform: translateY(0);
}


.reveal-delay-1 {
    transition-delay: 0.1s;
}


.reveal-delay-2 {
    transition-delay: 0.2s;
}


.reveal-delay-3 {
    transition-delay: 0.3s;
}


.reveal-delay-4 {
    transition-delay: 0.4s;
}


/* =========================================
   PREMIUM SHADOW
========================================= */

.premium-shadow {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.18);
}


/* =========================================
   BLUE GLOW
========================================= */

.blue-glow {
    box-shadow:
        0 0 60px rgba(0, 87, 255, 0.25);
}


/* =========================================
   SERVICE CARD
========================================= */

.service-card {
    position: relative;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}


.service-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 25px 60px rgba(0, 87, 255, 0.12);
}


/* =========================================
   ANIMATED TOP BORDER
========================================= */

.gradient-border::before {
    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 3px;

    background: linear-gradient(
        90deg,
        #0057FF,
        #00C2FF,
        #0057FF
    );

    opacity: 0;

    transition: opacity 0.3s ease;
}


.gradient-border:hover::before {
    opacity: 1;
}


/* =========================================
   MARQUEE
========================================= */

.marquee {
    width: 100%;

    overflow: hidden;

    white-space: nowrap;
}


.marquee-inner {
    display: inline-flex;

    align-items: center;

    width: max-content;

    animation: marqueeScroll 30s linear infinite;
}


@keyframes marqueeScroll {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}


.marquee:hover .marquee-inner {
    animation-play-state: paused;
}


/* =========================================
   PORTFOLIO CARD
========================================= */

.portfolio-card {
    position: relative;

    overflow: hidden;

    transition: transform 0.4s ease;
}


.portfolio-card img {
    transition: transform 0.6s ease;
}


.portfolio-card:hover {
    transform: translateY(-6px);
}


.portfolio-card:hover img {
    transform: scale(1.08);
}


/* =========================================
   PORTFOLIO OVERLAY
========================================= */

.portfolio-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    padding: 1.5rem;

    background:
        linear-gradient(
            to top,
            rgba(2, 8, 16, 0.95),
            rgba(2, 8, 16, 0.05)
        );

    opacity: 0;

    transition: opacity 0.4s ease;
}


.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}


/* =========================================
   TESTIMONIAL CARD
========================================= */

.testimonial-card {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.testimonial-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.08);
}


/* =========================================
   NAVIGATION
========================================= */

.nav-link {
    position: relative;

    transition: color 0.3s ease;
}


.nav-link::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: -6px;

    width: 0;

    height: 2px;

    background: #0057FF;

    transition: width 0.3s ease;
}


.nav-link:hover::after,
.nav-link.active-nav::after {
    width: 100%;
}


/* =========================================
   FOOTER LINKS
========================================= */

.footer-link {
    transition:
        color 0.3s ease,
        padding-left 0.3s ease;
}


.footer-link:hover {
    color: #00C2FF;

    padding-left: 4px;
}


/* =========================================
   CUSTOM SCROLLBAR
========================================= */

::-webkit-scrollbar {
    width: 8px;
}


::-webkit-scrollbar-track {
    background: #f1f5f9;
}


::-webkit-scrollbar-thumb {
    background: linear-gradient(
        #0057FF,
        #00C2FF
    );

    border-radius: 20px;
}


::-webkit-scrollbar-thumb:hover {
    background: #0057FF;
}


/* =========================================
   COUNTER ANIMATION SUPPORT
========================================= */

.counter {
    display: inline-block;
}


/* =========================================
   MOBILE OPTIMIZATION
========================================= */

@media (max-width: 768px) {

    .reveal {
        transform: translateY(20px);
    }


    .service-card:hover {
        transform: translateY(-4px);
    }


    .portfolio-card:hover {
        transform: translateY(-3px);
    }


    .marquee-inner {
        animation-duration: 22s;
    }

}


/* =========================================
   REDUCE MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

    }

}
/* =========================================
   HEADER SCROLL EFFECT
========================================= */

#site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 10px 40px rgba(5, 14, 31, 0.08);
}
/* =========================================
   HEADER INITIAL STATE
========================================= */

#site-header {
    background: transparent;
}


/* =========================================
   HEADER AFTER SCROLL
========================================= */

#site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.95);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 10px 40px rgba(5, 14, 31, 0.08);
}


/* Change navigation color after scroll */

#site-header.header-scrolled .nav-header-link {
    color: rgba(5, 14, 31, 0.7);
}


#site-header.header-scrolled .nav-header-link:hover {
    color: #0057FF;
}


/* Logo text after scroll */

#site-header.header-scrolled .logo-link {
    color: #050E1F;
}


/* Mobile menu button */

#site-header.header-scrolled #mobile-toggle {
    background: #ffffff;
}