/* ============================================================
   Zharat — Main Stylesheet
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    box-sizing: border-box;
}

/* --- Animations ------------------------------------------- */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-15px) rotate(2deg); }
}

@keyframes pulse-ring {
    0%   { transform: scale(1);   opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0)   rotate(180deg); opacity: 0.6; }
    50%       { transform: translateY(12px) rotate(180deg); opacity: 1; }
}

/* --- Utility Classes -------------------------------------- */
.electric-glow {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.5), 0 0 40px rgba(0, 212, 255, 0.3);
}

.float-anim        { animation: float 4s ease-in-out infinite; }
.float-anim-delay  { animation: float 4s ease-in-out infinite; animation-delay: 1s; }
.float-anim-delay2 { animation: float 4s ease-in-out infinite; animation-delay: 2s; }

.slide-up    { animation: slide-up 0.8s ease-out forwards; opacity: 0; }
.slide-up-d1 { animation-delay: 0.1s; }
.slide-up-d2 { animation-delay: 0.2s; }
.slide-up-d3 { animation-delay: 0.3s; }
.slide-up-d4 { animation-delay: 0.4s; }
.slide-up-d5 { animation-delay: 0.5s; }
.slide-up-d6 { animation-delay: 0.6s; }

.scroll-indicator { animation: scroll-bounce 2s ease-in-out infinite; }

/* --- Cards ------------------------------------------------ */
.card-hover {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
}
.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.2);
}

.gradient-border {
    background: linear-gradient(135deg, #0a0e1a, #111827) padding-box,
                linear-gradient(135deg, #00d4ff, #7c3aed) border-box;
    border: 1px solid transparent;
}

/* --- Navigation ------------------------------------------- */
.nav-link { position: relative; transition: color 0.3s; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #00d4ff;
    transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

/* --- Decorative ------------------------------------------- */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.wave-divider { position: relative; width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; height: 80px; }

/* --- Scroll Progress Bar ---------------------------------- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #00d4ff, #7c3aed);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
}

/* --- Pulse Ring ------------------------------------------- */
.pulse-ring { position: relative; }
.pulse-ring::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid #00d4ff;
    animation: pulse-ring 2s ease-out infinite;
}

/* --- Counter ---------------------------------------------- */
.counter { transition: all 0.3s; }

/* --- Project Tags ----------------------------------------- */
.project-tag {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
}

/* --- Project Preview (iframe) ----------------------------- */
.project-preview {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: #0d1321;
}

.project-preview iframe {
    width: 160%;
    height: 160%;
    border: none;
    transform: scale(0.625);
    transform-origin: top left;
    pointer-events: none;
}

.project-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(17, 24, 39, 0.95) 100%);
    z-index: 2;
}

.project-preview-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
}
.project-preview:hover .project-preview-link { opacity: 1; }

.project-preview-link a {
    padding: 8px 20px;
    border-radius: 99px;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    letter-spacing: 0.3px;
}
