/* Custom Styles for Surgilys */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #0B0F17;
    color: #F4F7FB;
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Glass Card Effect */
.glass-card {
    background: rgba(26, 31, 46, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glow Effect */
.glow-cyan {
    box-shadow: 0 0 60px rgba(46, 192, 208, 0.15);
}

/* Navbar scrolled state */
.navbar-scrolled {
    background: rgba(11, 15, 23, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Button styles */
.btn-primary {
    background-color: #2EC0D0;
    color: #0B0F17;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover {
    background-color: rgba(46, 192, 208, 0.9);
}

.btn-outline {
    background: transparent;
    color: #F4F7FB;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Form inputs */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(26, 31, 46, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.5rem;
    color: #F4F7FB;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2EC0D0;
    box-shadow: 0 0 0 2px rgba(46, 192, 208, 0.2);
}

.form-input::placeholder {
    color: rgba(244, 247, 251, 0.4);
}

.form-textarea {
    resize: none;
    min-height: 120px;
}

/* Label */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #F4F7FB;
    margin-bottom: 0.5rem;
}

/* Metric tile animation */
.metric-tile {
    transform: translateY(0);
    opacity: 1;
}

/* Chart line animation */
.chart-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 0;
}

/* Solution card hover */
.solution-card {
    transition: all 0.3s;
}

.solution-card:hover {
    border-color: rgba(46, 192, 208, 0.3);
}

.solution-card:hover .icon-wrapper {
    transform: scale(1.1);
}

/* Integration icon hover */
.integration-icon {
    transition: all 0.3s;
}

.integration-icon:hover {
    border-color: rgba(46, 192, 208, 0.3);
}

/* Compliance item */
.compliance-item {
    transition: all 0.2s;
}

/* Feature image */
.feature-image {
    transition: all 0.3s;
}

/* Scroll indicator */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(5px);
    }
}

/* Mobile menu animation */
#mobileMenu.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Word animation for hero */
.word {
    display: inline-block;
}

/* Pinned section base */
.pinned-section {
    will-change: transform, opacity;
}

/* GSAP ScrollTrigger pin fix - ensure navbar stays on top */
.pin-spacer,
.pin-spacer > * {
    z-index: auto !important;
}

#navbar {
    z-index: 9999 !important;
    isolation: isolate;
}

/* Ensure sections don't overlap navbar */
section {
    position: relative;
    z-index: auto;
}

main {
    position: relative;
    z-index: 1;
    isolation: isolate;
}

/* Force navbar to be above all pinned content */
body > nav {
    z-index: 9999 !important;
}

/* Pulse animation for live indicator */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .glass-card {
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
}

/* Success message animation */
.success-message {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading spinner */
.spinner {
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-left-color: #2EC0D0;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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