/* General Variables */
:root {
    --primary-blue: #0A192F;
    --accent-blue: #00F0FF;
    --accent-red: #FF003C;
    --dark-bg: #020A1A;
    --dark-surface: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(0, 240, 255, 0.2);
    --text-main: #E2E8F0;
    --text-muted: #94A3B8;
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(255, 0, 60, 0.05), transparent 25%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-red);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(90deg, var(--accent-blue), #0088ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-red {
    background: linear-gradient(90deg, var(--accent-red), #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-futuristic {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    color: var(--accent-blue);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    border: 1px solid var(--accent-blue);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}

.btn-futuristic::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.4), transparent);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn-futuristic:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}

.btn-futuristic:hover::before {
    left: 100%;
}

.btn-red {
    color: var(--accent-red);
    border-color: var(--accent-red);
}
.btn-red::before {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 60, 0.4), transparent);
}
.btn-red:hover {
    background: rgba(255, 0, 60, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 60, 0.5);
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--dark-surface);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, border-bottom 0.3s ease;
}

.site-header.scrolled {
    background: rgba(2, 10, 26, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.site-branding .logo-text {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-navigation a {
    color: var(--text-main);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-navigation a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.header-actions {
    display: flex;
    gap: 15px;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&q=80&w=2600') no-repeat center center/cover;
    opacity: 0.15;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--dark-bg) 30%, transparent 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(40px, 5vw, 70px);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-shape {
    position: absolute;
    right: -10%;
    bottom: -10%;
    width: 50vw;
    height: 50vw;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 100px rgba(0, 240, 255, 0.05);
    z-index: -1;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Title */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Services */
.services-section {
    padding: 100px 5%;
    background-color: var(--primary-blue);
    position: relative;
    border-top: 1px solid var(--glass-border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

.service-card {
    padding: 30px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: 14px;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 40px rgba(0, 240, 255, 0.18);
    border-color: var(--accent-blue);
}

.service-card .service-icon {
    font-size: 42px;
    color: var(--accent-blue);
    margin-bottom: 20px;
    display: block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--accent-red);
    transform: scale(1.15);
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Hint text */
.service-detail-hint {
    display: inline-block;
    margin-top: 14px;
    font-size: 12px;
    color: var(--accent-blue);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    letter-spacing: 0.5px;
}

.service-card:hover .service-detail-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ========= SERVICE MODAL ========= */
.service-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 10, 26, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.service-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.service-modal-box {
    max-width: 680px;
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { transform: translateY(30px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,0,60,0.15);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: background 0.2s ease;
}
.modal-close-btn:hover {
    background: var(--accent-red);
    color: #fff;
}

.modal-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    border-radius: 12px 12px 0 0;
}

.modal-content-body {
    padding: 30px;
}

.modal-content-body h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-content-body p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

/* Logo */
.site-logo {
    height: 55px;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
    box-shadow: 0 0 15px rgba(0,240,255,0.3);
    transition: transform 0.3s ease;
}

.site-logo:hover {
    transform: scale(1.05);
}

/* Appointments & Calendar */
.appointment-section {
    padding: 100px 5%;
    position: relative;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-wrapper {
    padding: 30px;
}

.form-wrapper {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--accent-blue);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(2, 10, 26, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: #fff;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

/* Contact & Map */
.location-section {
    padding: 100px 5%;
    background-color: var(--primary-blue);
}
.map-container {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    height: 450px;
    width: 100%;
}
.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(85%);
}

/* Footer */
.site-footer {
    padding: 60px 5% 30px;
    border-top: 1px solid var(--glass-border);
    background-color: var(--dark-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-col p, .footer-col li {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.footer-socials a:hover {
    background: var(--accent-blue);
    color: var(--dark-bg);
    border-color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 13px;
}

/* Float WhatsApp */
.float-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.float-wa:hover {
    transform: scale(1.1);
    color: white;
}

/* Float AI Chatbot */
.float-ai {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-blue);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.4);
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}
.float-ai:hover {
    transform: scale(1.1);
}

/* Chatbot Window */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 100px;
    width: 350px;
    height: 500px;
    background: var(--dark-surface);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-blue);
    border-radius: 15px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.ai-chat-window.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.chat-header {
    padding: 15px 20px;
    background: rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 18px;
}
.chat-close:hover {
    color: var(--accent-red);
}

.chat-body {
    flex-grow: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
}

.chat-msg.bot {
    background: rgba(0, 240, 255, 0.1);
    color: var(--text-main);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}

.chat-msg.user {
    background: var(--primary-blue);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    border: 1px solid var(--glass-border);
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex-grow: 1;
    background: var(--dark-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 10px;
    border-radius: 20px;
    font-family: var(--font-primary);
}
.chat-input input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.chat-input button {
    background: var(--accent-blue);
    color: var(--dark-bg);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}
.chat-input button:hover {
    background: #fff;
}

/* Responsive */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--dark-surface);
        backdrop-filter: blur(15px);
        padding: 20px;
        flex-direction: column;
        display: none;
        border-bottom: 1px solid var(--accent-blue);
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .appointment-container {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        display: none;
    }
    
    .ai-chat-window {
        right: 20px;
        width: 300px;
    }
}
@media (max-width: 500px) {
    .ai-chat-window {
        right: 10px;
        left: 10px;
        width: auto;
        bottom: 90px;
    }
}

/* Status Messages */
#form-message {
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
    display: none;
    font-weight: 600;
}
#form-message.success {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    border: 1px solid #25D366;
    display: block;
}
#form-message.error {
    background: rgba(255, 0, 60, 0.1);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
    display: block;
}

/* Logo hero display — visible on right side of hero on desktop */
.hero-logo {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 8px;
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.25), 0 0 120px rgba(255, 0, 60, 0.1);
    z-index: 2;
    animation: logoPulse 4s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(0,240,255,0.25), 0 0 80px rgba(255,0,60,0.1); }
    50%       { box-shadow: 0 0 80px rgba(0,240,255,0.5), 0 0 160px rgba(255,0,60,0.2); }
}

@media (max-width: 991px) {
    .hero-logo {
        display: none;
    }
}

/* Form wrapper centering for single-col form */
.form-wrapper {
    padding: 35px;
}

/* Textarea rows */
select.form-control {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%2300F0FF' d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 12px;
    padding-right: 40px;
}
