/* Define CSS variable for angle */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

html {
    scroll-behavior: smooth;
}
body {
    font-family: 'DM Sans', sans-serif;
    background-color: #F5F5F7;
    color: #111;
}
.dark body {
    background-color: #05050A;
    color: #E5E7EB;
}

/* --- Modern Card Style --- */
.modern-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.dark .modern-card {
    background: #0E0E13;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.modern-card:hover {
    transform: translateY(-5px);
    border-color: #007BFF;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.3);
}

/* --- Product Card Link --- */
.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card-link:hover {
    text-decoration: none;
    color: inherit;
}
/* Product card link inherits modern-card hover styles */
.product-card-link.modern-card:hover {
    transform: translateY(-5px);
    border-color: #007BFF;
    box-shadow: 0 0 25px rgba(0, 123, 255, 0.3);
}

/* --- Glassmorphism Nav & Elements --- */
.glass-nav {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.dark .glass-nav {
    background: rgba(30, 30, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.glass-placeholder {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
}
.dark .glass-placeholder {
    background: rgba(30, 30, 35, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Team Section specific styling --- */
.team-img-shape {
    border-top-left-radius: 12rem;
}

/* --- Video Glow Abstract --- */
.video-glow-abstract {
    position: relative;
    z-index: 1;
}
.video-glow-abstract::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background-color: rgba(0, 123, 255, 0.1);
    filter: blur(60px);
    border-radius: 1.5rem;
    z-index: -1;
    animation: float 10s ease-in-out infinite;
}
.dark .video-glow-abstract::before {
     background-color: rgba(0, 123, 255, 0.05);
     filter: blur(80px);
}

/* --- Animated Theme Toggle --- */
.sun-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: all 0.3s ease-in-out;
}
.moon-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
    transition: all 0.3s ease-in-out;
}
.dark .sun-icon {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}
.dark .moon-icon {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* --- Scroll Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(90deg, #007BFF, #4c9aff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Animated Button Base --- */
.btn-animated {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease-in-out;
    border-radius: 9999px; /* rounded-full */
    border: 2px solid transparent; /* Crucial: transparent border */
}
.btn-animated::before { /* The gradient border */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%; 
    height: 200%;
    z-index: -2; /* Behind the button content */
    transform: translate(-50%, -50%);
    background: conic-gradient(
        from 0deg,
        transparent 20%, #007BFF, #4c9aff, transparent 80%
    );
    border-radius: 50%;
}
.btn-animated::after { /* The solid bg color inside */
    content: '';
    position: absolute;
    top: 2px; /* This creates the border thickness */
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 9999px; /* Match parent */
    z-index: -1; /* Above the gradient, behind content */
    transition: all 0.3s ease-in-out;
}

/* --- Primary Button (Blue) --- */
.btn-anim-primary::after {
    background: #007BFF; /* brand-blue */
}
.btn-anim-primary:hover::after {
    background: #0069D9; /* Darker blue on hover */
}

/* --- Secondary Button (Transparent) --- */
.btn-anim-secondary::after {
    background: #F5F5F7; /* light-bg */
}
.dark .btn-anim-secondary::after {
    background: #05050A; /* dark-bg */
}
.btn-anim-secondary:hover::after {
    background: #ebebeb; /* light-bg-hover */
}
.dark .btn-anim-secondary:hover::after {
    background: #0E0E13; /* dark-card-bg */
}

/* --- Nav CTA Button (Blue) --- */
.btn-anim-nav::before {
     background: conic-gradient(
        from 0deg,
        transparent 20%, #FFFFFF, #4c9aff, transparent 80% /* Brighter glow */
    );
}
.btn-anim-nav::after {
    background: #007BFF; /* brand-blue */
}
.btn-anim-nav:hover::after {
     background: #0069D9; /* Darker blue on hover */
}

/* --- Abstract Hero BG --- */
.hero-bg-abstract {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -10;
}
.hero-bg-abstract::before,
.hero-bg-abstract::after {
    content: '';
    position: absolute;
    background-color: rgba(0, 123, 255, 0.15);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    animation: float 10s ease-in-out infinite;
}
.hero-bg-abstract::before {
    width: 400px;
    height: 400px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}
.hero-bg-abstract::after {
    width: 300px;
    height: 300px;
    bottom: 15%;
    right: 10%;
    animation-delay: 3s;
    background-color: rgba(0, 123, 255, 0.1);
    filter: blur(80px);
}
.dark .hero-bg-abstract::before,
.dark .hero-bg-abstract::after {
    background-color: rgba(0, 123, 255, 0.1);
}

/* --- Custom Cursor --- */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    transition: all 0.1s ease-out;
    --cursor-color: var(--brand-blue, #007BFF);
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cursor-color);
}
.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--cursor-color);
    opacity: 0.5;
    transition: all 0.2s ease-out;
}
body {
    cursor: none;
}
.cursor-dot.hover {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0.5;
}
.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
}

/* Hide cursor on mobile */
@media (max-width: 767px) {
    .cursor-dot,
    .cursor-outline {
        display: none;
    }
    body {
        cursor: default;
    }
}

/* --- Simple Loader for Query --- */
@keyframes spin {
    0% {
        --angle: 0deg;
    }
    100% {
        --angle: 360deg;
    }
}

@keyframes loader-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.query-loader {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 123, 255, 0.1);
    border-top-color: #007BFF;
    border-right-color: #007BFF;
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
    display: inline-block;
}

.dark .query-loader {
    border-color: rgba(0, 123, 255, 0.2);
    border-top-color: #007BFF;
    border-right-color: #007BFF;
}

/* --- Floating Appointment Button --- */
.floating-appointment-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #007BFF;
}

.dark .floating-appointment-btn {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 123, 255, 0.3);
    color: #4c9aff;
}

.floating-appointment-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.4);
    background: rgba(0, 123, 255, 0.1);
}

.dark .floating-appointment-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.5);
}

.floating-appointment-btn i {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

/* Tooltip */
.floating-appointment-btn::before {
    content: 'Book Appointment';
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #111;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .floating-appointment-btn::before {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-appointment-btn:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-appointment-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .floating-appointment-btn i {
        width: 24px;
        height: 24px;
    }
    
    .floating-appointment-btn::before {
        display: none; /* Hide tooltip on mobile */
    }
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(37, 211, 102, 0.3);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.dark .floating-whatsapp-btn {
    background: rgba(37, 211, 102, 0.85);
    border: 1px solid rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

.floating-whatsapp-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
    background: rgba(37, 211, 102, 1);
}

.dark .floating-whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.95);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp-btn i {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

/* Tooltip */
.floating-whatsapp-btn::before {
    content: 'Chat on WhatsApp';
    position: absolute;
    left: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #111;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark .floating-whatsapp-btn::before {
    background: rgba(30, 30, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5E7EB;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.floating-whatsapp-btn:hover::before {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-whatsapp-btn {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .floating-whatsapp-btn i {
        width: 28px;
        height: 28px;
    }
    
    .floating-whatsapp-btn::before {
        display: none; /* Hide tooltip on mobile */
    }
}

/* --- Appointment Modal Overlay --- */
.appointment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.appointment-modal.active {
    display: flex;
    opacity: 1;
}

.appointment-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.appointment-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1;
}

.dark .appointment-modal-content {
    background: rgba(30, 30, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.appointment-modal.active .appointment-modal-content {
    transform: scale(1) translateY(0);
}

.appointment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.appointment-modal-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111;
    font-family: 'Space Grotesk', sans-serif;
}

.dark .appointment-modal-title {
    color: #E5E7EB;
}

.appointment-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6B7280;
}

.dark .appointment-modal-close {
    background: rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
}

.appointment-modal-close:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007BFF;
    transform: rotate(90deg);
}

.dark .appointment-modal-close:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #4c9aff;
}

.appointment-modal-close i {
    width: 20px;
    height: 20px;
}

/* Scrollbar styling for modal content */
.appointment-modal-content::-webkit-scrollbar {
    width: 6px;
}

.appointment-modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.appointment-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 3px;
}

.appointment-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

/* --- Custom Glass Calendar Picker (for modal and contact page) --- */
.calendar-container {
    position: relative;
}

.calendar-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: none;
    overflow: hidden;
}

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

.calendar-popup.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.dark .calendar-popup {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav-btn {
    background: rgba(0, 123, 255, 0.1);
    border: none;
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    color: #007BFF;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: scale(1.05);
}

.dark .calendar-nav-btn {
    background: rgba(0, 123, 255, 0.2);
    color: #4c9aff;
}

.calendar-month-year {
    font-weight: 600;
    font-size: 1.1rem;
    color: #111;
    font-family: 'Space Grotesk', sans-serif;
}

.dark .calendar-month-year {
    color: #E5E7EB;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    padding: 0.5rem 0.25rem;
    text-transform: uppercase;
    position: relative;
    min-width: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-weekday .weekday-full {
    display: none;
}

.calendar-weekday .weekday-short {
    display: inline;
}

.dark .calendar-weekday {
    color: #9CA3AF;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    width: 100%;
    overflow: hidden;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #111;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.dark .calendar-day {
    color: #E5E7EB;
}

.calendar-day:hover:not(.other-month):not(:disabled) {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.05);
}

.calendar-day.other-month {
    color: #9CA3AF;
    opacity: 0.5;
}

.dark .calendar-day.other-month {
    color: #6B7280;
}

.calendar-day.today {
    background: rgba(0, 123, 255, 0.2);
    color: #007BFF;
    font-weight: 700;
}

.dark .calendar-day.today {
    background: rgba(0, 123, 255, 0.3);
    color: #4c9aff;
}

.calendar-day.selected {
    background: #007BFF;
    color: white;
    font-weight: 700;
}

.calendar-day.selected:hover {
    background: #0069D9;
}

/* --- Custom Glass Time Picker (for modal and contact page) --- */
.time-container {
    position: relative;
}

.time-popup {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: none;
}

.dark .time-popup {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.time-popup.show {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.time-picker-header {
    margin-bottom: 1.5rem;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.time-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.time-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7280;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.dark .time-label {
    color: #9CA3AF;
}

.time-separator {
    font-size: 2rem;
    font-weight: 700;
    color: #111;
    padding-top: 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.dark .time-separator {
    color: #E5E7EB;
}

.time-scroll {
    height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    width: 100%;
    max-width: 80px;
}

#period-scroll,
#period-scroll-modal {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.time-scroll::-webkit-scrollbar {
    width: 4px;
}

.time-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.time-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 2px;
}

.time-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

.time-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 0;
}

#period-options,
#period-options-modal {
    padding: 0;
    gap: 0.5rem;
    height: auto;
    min-height: auto;
}

.time-option {
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #111;
    font-size: 1.25rem;
    min-width: 60px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
}

.dark .time-option {
    color: #E5E7EB;
}

.time-option:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: scale(1.1);
}

.time-option.selected {
    background: #007BFF;
    color: white;
    font-weight: 700;
    transform: scale(1.15);
}

.time-option.selected:hover {
    background: #0069D9;
}

.time-picker-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dark .time-picker-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.time-btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: 'DM Sans', sans-serif;
}

.time-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #6B7280;
}

.dark .time-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #9CA3AF;
}

.time-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.dark .time-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.time-btn-primary {
    background: #007BFF;
    color: white;
}

.time-btn-primary:hover {
    background: #0069D9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* --- Service Card (Vivasoft style) --- */
.service-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
}
.dark .service-card {
    background: #0E0E13;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.service-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #007BFF;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.1);
}
.service-card-arrow {
    transition: transform 0.3s ease;
}
.service-card:hover .service-card-arrow {
    transform: translateX(4px) translateY(-4px);
}

/* --- Portfolio Filter Button --- */
.filter-btn.active {
    background-color: #007BFF;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.3);
}
.dark .filter-btn.active {
     background-color: #007BFF;
     color: white;
}

/* --- Portfolio Project Item --- */
.project-item {
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}
.project-item:hover {
    text-decoration: none;
    color: inherit;
}
.project-item.hidden {
    transform: scale(0.9);
    opacity: 0;
    display: none; 
}

/* --- Custom Select (Contact Form) --- */
.select-button {
    appearance: none;
    -webkit-appearance: none;
}
.select-dropdown {
    transform-origin: top;
    transition: all 0.2s ease-out;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.dark .select-dropdown {
    background: rgba(30, 30, 35, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.select-option {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
}

/* --- Animated Border for Popular Package --- */
.package-popular-animated {
    position: relative;
    overflow: visible;
    border-radius: 1.5rem; /* Match card rounding */
    border: 1px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.2),
                0 0 20px rgba(0, 123, 255, 0.15);
}
.package-popular-animated:hover {
    border-color: rgba(0, 123, 255, 0.5);
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.3),
                0 0 30px rgba(0, 123, 255, 0.25);
}

/* --- Mobile Menu Overlay & Animation --- */
#mobile-menu-overlay {
    position: fixed !important;
    top: -100px !important;
    left: -100px !important;
    right: -100px !important;
    bottom: -100px !important;
    width: calc(100vw + 200px) !important;
    height: calc(100vh + 200px) !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 9998 !important;
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
    box-sizing: border-box !important;
    overflow: hidden;
    transform: none !important;
    border: none !important;
    outline: none !important;
}
#mobile-menu-overlay.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
}

#mobile-menu {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: calc(100% - 2rem);
    z-index: 9999;
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform-origin: top center;
    pointer-events: none;
    display: block;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
}
.dark #mobile-menu {
    background: rgba(14, 14, 19, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}
#mobile-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}
#mobile-menu.hidden {
    display: none !important;
}

/* --- Client Logo Glow Effect --- */
.client-logo-glow {
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3),
                0 0 20px rgba(0, 123, 255, 0.2),
                0 0 30px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}
.dark .client-logo-glow {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.4),
                0 0 25px rgba(0, 123, 255, 0.3),
                0 0 35px rgba(0, 123, 255, 0.2);
}
.client-logo-glow:hover {
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5),
                0 0 30px rgba(0, 123, 255, 0.4),
                0 0 45px rgba(0, 123, 255, 0.3);
    transform: scale(1.1);
}
.dark .client-logo-glow:hover {
    box-shadow: 0 0 20px rgba(0, 123, 255, 0.6),
                0 0 35px rgba(0, 123, 255, 0.5),
                0 0 50px rgba(0, 123, 255, 0.4);
}


/* --- Loading Screen Animation --- */
#loading-screen {
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

/* Greeting fade animation */
#greeting-text {
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Fade-in animation for greeting text */
@keyframes greeting-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#greeting-text.fade-in {
    animation: greeting-fade-in 0.3s ease-out forwards;
    opacity: 1;
}

/* Fade-out animation for greeting text */
@keyframes greeting-fade-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

#greeting-text.fade-out {
    animation: greeting-fade-out 0.2s ease-in forwards;
    opacity: 0;
}

/* Exit animation - fade out panels */
@keyframes fade-out {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.exit-panel {
    width: 100%;
    height: 20.1%; /* Slightly more than 20% to avoid gaps */
    background: #F5F5F7; /* Light background */
    animation: fade-out 0.5s cubic-bezier(0.86, 0, 0.07, 1) forwards;
    position: absolute;
    left: 0;
}

.dark .exit-panel {
    background: #05050A; /* Dark background */
}

.exit-panel:nth-child(1) {
    top: 0;
}

.exit-panel:nth-child(2) {
    top: 20%;
}

.exit-panel:nth-child(3) {
    top: 40%;
}

.exit-panel:nth-child(4) {
    top: 60%;
}

.exit-panel:nth-child(5) {
    top: 80%;
}

/* Content fade-in animation */
@keyframes content-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-content-fade-in {
    animation: content-fade-in 0.8s ease-out forwards;
    opacity: 0;
}

#loading-logo {
    transition: opacity 0.3s ease;
}

.loading-logo-img {
    transition: opacity 0.3s ease;
}

/* --- Screenshot Carousel Styles --- */
.screenshot-carousel-container {
    position: relative;
    width: 100%;
}

.screenshot-carousel-wrapper {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark .screenshot-carousel-wrapper {
    background: rgba(14, 14, 19, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-carousel-track {
    display: flex;
    width: 100%;
    will-change: transform;
    position: relative;
}

.screenshot-carousel-slide {
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    flex-shrink: 0;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
}

.screenshot-carousel-slide .modern-card {
    height: 100%;
    width: 100%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0;
    position: relative;
}

.screenshot-carousel-image {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    border-radius: 0.75rem;
    object-fit: contain;
    margin: 0 auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
    cursor: default !important;
}

/* Navigation Buttons */
.screenshot-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #007BFF;
}

.dark .screenshot-carousel-btn {
    background: rgba(14, 14, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #4c9aff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.screenshot-carousel-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.dark .screenshot-carousel-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.screenshot-carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.screenshot-carousel-prev {
    left: 1rem;
}

.screenshot-carousel-next {
    right: 1rem;
}

/* Indicators */
.screenshot-carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.screenshot-carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
}

.dark .screenshot-carousel-indicator {
    background: rgba(255, 255, 255, 0.2);
}

.screenshot-carousel-indicator:hover {
    background: rgba(0, 123, 255, 0.5);
    transform: scale(1.2);
}

.dark .screenshot-carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.4);
}

.screenshot-carousel-indicator.active {
    background: #007BFF;
    width: 32px;
    border-radius: 6px;
    border-color: #007BFF;
}

.dark .screenshot-carousel-indicator.active {
    background: #4c9aff;
    border-color: #4c9aff;
}

.screenshot-carousel-indicator .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .screenshot-carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .screenshot-carousel-prev {
        left: 0.5rem;
    }
    
    .screenshot-carousel-next {
        right: 0.5rem;
    }
    
    .screenshot-carousel-slide {
        padding: 0.5rem;
    }
    
    .screenshot-carousel-slide img {
        max-height: 400px;
    }
    
    .screenshot-carousel-indicator {
        width: 10px;
        height: 10px;
    }
    
    .screenshot-carousel-indicator.active {
        width: 24px;
    }
}

/* --- Full Size Image Overlay --- */
.screenshot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-overlay:not(.hidden) {
    opacity: 1;
}

.screenshot-overlay.hidden {
    display: none;
}


.screenshot-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.screenshot-overlay-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
}

.screenshot-overlay-img {
    max-width: 100%;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.screenshot-overlay-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #111;
}

.dark .screenshot-overlay-close {
    background: rgba(14, 14, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5E7EB;
}

.screenshot-overlay-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.dark .screenshot-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.screenshot-overlay-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #111;
}

.dark .screenshot-overlay-nav {
    background: rgba(14, 14, 19, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #E5E7EB;
}

.screenshot-overlay-nav:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.dark .screenshot-overlay-nav:hover {
    background: rgba(0, 123, 255, 0.2);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

.screenshot-overlay-prev {
    left: 1rem;
}

.screenshot-overlay-next {
    right: 1rem;
}

.screenshot-carousel-image {
    transition: transform 0.2s ease;
}

.screenshot-carousel-image:hover {
    transform: scale(1.02);
    cursor: pointer;
}

/* Responsive overlay */
@media (max-width: 768px) {
    .screenshot-overlay-content {
        padding: 1rem;
        max-width: 100vw;
        max-height: 100vh;
    }
    
    .screenshot-overlay-img {
        max-height: 90vh;
    }
    
}

/* --- Top Bar with Animated Background --- */
#top-bar {
    height: 40px;
    background: linear-gradient(135deg, #007BFF 0%, #0056b3 50%, #007BFF 100%);
    background-size: 200% 200%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

#top-bar > div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes top-bar-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

#top-bar {
    animation: top-bar-gradient 5s ease infinite;
}

#rotating-text {
    display: inline-block;
    text-align: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin: 0;
    line-height: 1.5;
    vertical-align: middle;
}

#rotating-text.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

#rotating-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Highlight the service name within the text */
#rotating-text {
    position: relative;
}

#rotating-text::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: #FFD700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#rotating-text:hover::after {
    opacity: 0.5;
}

/* Adjust body padding to account for top bar */
body {
    padding-top: 40px;
}

/* Adjust header position to account for top bar */
header {
    top: calc(1.5rem + 40px) !important;
}

/* Hide top bar during loading - will be shown via JavaScript after loading */
#top-bar {
    display: none;
}

/* Adjust loading screen to account for top bar */
#loading-screen {
    top: 0;
}

@media (max-width: 768px) {
    #top-bar {
        height: 36px;
    }
    
    #top-bar p {
        font-size: 0.75rem;
    }
    
    
    body {
        padding-top: 36px;
    }
    
    header {
        top: calc(1.5rem + 36px) !important;
    }
    
    #loading-screen {
        top: 36px;
    }
}

    
    .screenshot-overlay-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .screenshot-overlay-nav {
        width: 44px;
        height: 44px;
    }
    
    .screenshot-overlay-prev {
        left: 0.5rem;
    }
    
    .screenshot-overlay-next {
        right: 0.5rem;
    }
}

/* Universal Popup System - Success, Error, Try Again */
.universal-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.universal-popup.active {
    display: block !important;
}

.universal-popup.hidden {
    display: none !important;
}

.universal-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.universal-popup.active .universal-popup-overlay {
    opacity: 1;
    pointer-events: auto;
}

.universal-popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    -webkit-transform: translate(-50%, -50%) scale(0.5);
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 2;
    box-sizing: border-box;
    margin: 0;
    pointer-events: auto;
}

.universal-popup.active .universal-popup-content {
    transform: translate(-50%, -50%) scale(1) !important;
    -webkit-transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1;
}

@media (min-width: 640px) {
    .universal-popup-content {
        padding: 3rem 2.5rem;
    }
}

.dark .universal-popup-content {
    background: #0E0E13;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.universal-popup.active .universal-popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    animation: iconPulse 0.6s ease-out 0.3s both;
}

.popup-icon-wrapper.success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
}

.popup-icon-wrapper.error {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
}

.popup-icon-wrapper.warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
}

.popup-icon {
    width: 48px;
    height: 48px;
    color: #FFFFFF;
    stroke-width: 3;
    animation: iconCheck 0.5s ease-out 0.5s both;
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
}

.dark .popup-title {
    color: #FFFFFF;
}

.popup-message {
    font-size: 1rem;
    color: #6B7280;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.dark .popup-message {
    color: #9CA3AF;
}

.popup-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.popup-btn {
    padding: 0.75rem 2rem;
    color: #FFFFFF;
    border: none;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'DM Sans', sans-serif;
}

.popup-btn-primary {
    background: #007BFF;
}

.popup-btn-primary:hover {
    background: #0069D9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.popup-btn-secondary {
    background: #6B7280;
}

.popup-btn-secondary:hover {
    background: #4B5563;
    transform: translateY(-2px);
}

.popup-btn:active {
    transform: translateY(0);
}

/* Popup exit animation */
.universal-popup.closing .universal-popup-content {
    animation: popupOut 0.3s ease-in forwards;
}

.universal-popup.closing .universal-popup-overlay {
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes popupOut {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        -webkit-transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
        -webkit-transform: translate(-50%, -50%) scale(0.8);
    }
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes iconCheck {
    0% {
        stroke-dasharray: 0 100;
        opacity: 0;
    }
    100% {
        stroke-dasharray: 100 0;
        opacity: 1;
    }
}


