/* ============================================
   COMPONENT STYLES
   Strictly Reproducing Tailwind Classes
   ============================================ */

/* ----------------------------------
   Notice Bar
   ---------------------------------- */
.notice-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    height: 2.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
    background-image: var(--gradient-blue-purple);
}

.notice-bar-content {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.025em;
    padding-left: 1rem;
    padding-right: 1rem;
    animation: marquee 30s linear infinite;
}

.notice-bar:hover .notice-bar-content {
    animation-play-state: paused;
}

@media (min-width: 640px) {
    .notice-bar-content {
        font-size: 0.875rem;
    }
}

/* ----------------------------------
   Header
   ---------------------------------- */
.header {
    position: fixed;
    top: 2.5rem;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all 0.5s;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.header.base-state {
    background-color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
    border-radius: 1rem;
    border: 1px solidhsl(var(--secondary));
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(4px);
}

@media (min-width: 640px) {
    .header.base-state {
        margin-left: 2rem;
        margin-right: 2rem;
    }
}

.header.scrolled-state {
    background-color: white;
    box-shadow: var(--shadow-xl);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 0;
    border-radius: 0;
    top: 0;
}

.nav-link {
    font-weight: 700;
    font-size: 0.75rem;
    color: #475569;
    transition: all 0.3s;
    position: relative;
}

@media (min-width: 1024px) {
    .nav-link {
        font-size: 0.875rem;
    }
}

.nav-link:hover {
    color: hsl(221.2, 83.2%, 53.3%);
    /* blue-600 */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0;
    background-color: hsl(221.2, 83.2%, 53.3%);
    border-radius: 9999px;
    transition: all 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background-color: transparent;
    /* managed by JS/layout */
    z-index: 40;
    display: none;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: var(--shadow-xl);
    border-bottom: 1px solid #e5e7eb;
}

/* ----------------------------------
   Hero Section
   ---------------------------------- */
.hero-section {
    min-height: 50vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 12rem;
    padding-bottom: 2rem;
    transition: background-color 1s;
}

@media (min-width: 768px) {
    .hero-section {
        min-height: 85vh;
    }
}

.hero-bg-blur-1 {
    position: absolute;
    top: -50%;
    right: -25%;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to bottom right, rgba(96, 165, 250, 0.2), transparent);
    border-radius: 9999px;
    filter: blur(64px);
    animation: pulse-scale 8s infinite ease-in-out;
}

.hero-bg-blur-2 {
    position: absolute;
    bottom: -50%;
    left: -25%;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top right, rgba(192, 132, 252, 0.2), transparent);
    border-radius: 9999px;
    filter: blur(64px);
    animation: pulse-scale 10s infinite ease-in-out 1s;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    color: #0f172a;
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ----------------------------------
   Common Card Styles
   ---------------------------------- */
.glass-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-lg);
}

.glass-card-hover {
    transition: transform 0.3s;
}

.glass-card-hover:hover {
    transform: translateY(-10px);
}

/* ----------------------------------
   Services Section
   ---------------------------------- */
.service-icon-wrapper {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 3rem;
    height: 3rem;
    background-image: var(--gradient-blue-purple);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

/* ----------------------------------
   Portfolio Section
   ---------------------------------- */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid #e5e7eb;
    box-shadow: var(--shadow-xl);
    transition: transform 0.3s;
}

.portfolio-card:hover {
    transform: scale(1.02) translateY(-10px);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.5), transparent);
    opacity: 0.8;
    transition: opacity 0.3s;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 0.9;
}

/* ----------------------------------
   Testimonials Section
   ---------------------------------- */
.testimonial-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid #e5e7eb;
}

@media (min-width: 768px) {
    .testimonial-card {
        padding: 3rem;
    }
}

/* ----------------------------------
   Scheduler & Contact Code
   ---------------------------------- */
.scheduler-card {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid #e5e7eb;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px #3b82f6;
}

.btn-gradient {
    background-image: var(--gradient-blue-purple);
    color: white;
    transition: all 0.3s;
}

.btn-gradient:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
    /* if needed */
    box-shadow: var(--shadow-lg);
}

/* ----------------------------------
   Chatbot
   ---------------------------------- */
.chatbot-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    background-color: white;
    border: 2px solid #2563eb;
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.chatbot-btn:hover {
    transform: scale(1.1);
}

.chatbot-window {
    position: fixed;
    bottom: 6rem;
    right: 1.5rem;
    z-index: 50;
    width: 24rem;
    max-width: calc(100vw - 3rem);
    background-color: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-2xl);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform-origin: bottom right;
    transition: all 0.3s ease-out;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    pointer-events: none;
}

.chatbot-window.open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

.chatbot-messages {
    height: 24rem;
    overflow-y: auto;
    padding: 1rem;
    background-color: #f9fafb;
    /* gray-50 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 75%;
    padding: 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.message-user {
    align-self: flex-end;
    background-image: var(--gradient-blue-purple);
    color: white;
    border-bottom-right-radius: 0;
}

.message-assistant {
    align-self: flex-start;
    background-color: white;
    color: #1f2937;
    border-bottom-left-radius: 0;
    border: 1px solid #e5e7eb;
}

/* ----------------------------------
   Popup
   ---------------------------------- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.popup-content {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 42rem;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s;
}

.popup-overlay.open .popup-content {
    transform: scale(1) translateY(0);
}

/* ----------------------------------
   Footer
   ---------------------------------- */
.footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #1f2937;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.footer-social-link:hover {
    background-color: #2563eb;
} 
 