/* ==============================
   DataMindX - Custom Styles
   Bright & Vibrant Theme
   ============================== */

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: #0D9488;
    color: white;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0D9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14B8A6;
}

/* ---- Navbar ---- */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .nav-link {
    color: #475569;
}

#navbar.scrolled .nav-link:hover,
#navbar.scrolled .nav-link.active {
    color: #0D9488;
}

#navbar.scrolled .font-heading {
    color: #0F233D;
}

#navbar.scrolled #lang-toggle {
    border-color: #cbd5e1;
    color: #475569;
}

#navbar.scrolled #lang-toggle:hover {
    border-color: #0D9488;
    color: #0D9488;
}

#navbar.scrolled #mobile-menu-btn {
    color: #475569;
}

.nav-link {
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0D9488, #14B8A6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #0D9488;
}

/* ---- Typing Cursor ---- */
.typing-cursor {
    animation: blink 1s infinite;
    color: #14B8A6;
    font-weight: 300;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ---- Floating Circles ---- */
.floating-circle {
    animation: float 8s ease-in-out infinite;
}

.floating-circle-delay {
    animation: float 10s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02);
    }
}

/* ---- Hover Lift ---- */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.15), 0 8px 16px rgba(13, 148, 136, 0.08);
}

/* ---- Filter Buttons ---- */
.filter-btn {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.filter-btn:hover {
    background: #f1f5f9;
    color: #0D9488;
    border-color: #0D9488;
}

.filter-btn.active {
    background: linear-gradient(135deg, #0D9488, #14B8A6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

/* ---- Tech Pills ---- */
.tech-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.1);
    color: #0D9488;
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-pill:hover {
    background: rgba(13, 148, 136, 0.18);
    border-color: rgba(13, 148, 136, 0.35);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(13, 148, 136, 0.18);
}

/* ---- Service Card Animation ---- */
.service-card {
    transition: all 0.4s ease;
}

.service-card.hidden-card {
    opacity: 0;
    transform: scale(0.8);
    position: absolute;
    pointer-events: none;
}

.service-card.visible-card {
    opacity: 1;
    transform: scale(1);
    position: relative;
    pointer-events: auto;
}

/* ---- Gradient Text ---- */
.gradient-text {
    background: linear-gradient(135deg, #0D9488, #F59E0B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ---- Form Styles ---- */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #f8fafc inset !important;
    -webkit-text-fill-color: #1e293b !important;
}

/* ---- Back to Top ---- */
#back-to-top {
    transition: all 0.3s ease;
}

#back-to-top.visible {
    display: flex;
}

/* ---- Pulse Glow ---- */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(13, 148, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(13, 148, 136, 0.4);
    }
}

/* ---- Responsive Fixes ---- */
@media (max-width: 768px) {
    .font-heading {
        letter-spacing: -0.02em;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.5rem;
    }
}

/* ---- Loading Spinner for Form ---- */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- Smooth Section Transitions ---- */
section {
    position: relative;
}

/* ---- Print Styles ---- */
@media print {
    #navbar,
    #back-to-top,
    .floating-circle,
    .floating-circle-delay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}
