/* 
   =========================================
   OPTAG MODERN PREMIUM CSS Design System 
   =========================================
*/

:root {
    /* Premium Color Palette - More curated HSL values */
    --primary: #00d2ff;
    --primary-alt: #3a7bd5;
    --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    --secondary-gradient: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --bg-color: #0b0e14;
    --bg-card: rgba(23, 28, 36, 0.4);
    
    --text-main: #f0f6fc;
    --text-muted: #919eb1;
    
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --transition-fast: all 0.2s ease;
    --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

/* =========================================
   BACKGROUND EFFECTS (Blob Blurs)
   ========================================= */
.bg-blur {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: #ff416c;
    bottom: -150px;
    right: -150px;
}

/* =========================================
   NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary-gradient);
    transition: var(--transition);
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 220px;
    background: rgba(15, 20, 28, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    list-style: none;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    margin-top: 15px; /* Gap for hover trigger */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0.5rem 1.5rem;
}

.dropdown-menu a::after { display: none; }
.dropdown-menu a:hover { padding-left: 5px; }

/* Buttons */
.btn {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid white;
}
.btn-outline:hover {
    background: white;
    color: black;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1.2s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 1.4s ease-out;
}

/* =========================================
   DESTINATION / PLACEHOLDER PAGES
   ========================================= */
.page-hero {
    padding: 7rem 10% 3rem;
}

.page-hero .hero-content {
    max-width: 850px;
}

.page-hero .hero-title {
    font-size: 4rem;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.72) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero .hero-subtitle {
    max-width: 760px;
    color: #b5c0d0;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.content-section {
    padding: 1rem 10% 5rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.info-card,
.cta-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(16px);
}

.info-card {
    padding: 1.6rem;
    scroll-margin-top: 120px;
}

.info-card i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.22);
    border-radius: 14px;
    font-size: 1.3rem;
}

.info-card h2,
.info-card h3 {
    margin-bottom: 0.7rem;
}

.info-card p {
    color: var(--text-muted);
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 2rem;
}

.cta-panel p {
    color: var(--text-muted);
    max-width: 720px;
}

@media (max-width: 760px) {
    .page-hero {
        padding: 5rem 6% 2rem;
    }

    .page-hero .hero-title {
        font-size: 2.6rem;
    }

    .content-section {
        padding: 1rem 6% 4rem;
    }

    .cta-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Glassmorphism Cards */
.glass-decoration {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: float 6s ease-in-out infinite;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--glass-shadow);
    transform: perspective(1000px) rotateY(-15deg);
    transition: var(--transition);
}

.stat-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}

.stat-card i {
    font-size: 2.5rem;
    color: var(--primary);
}

.stat-card h3 {
    font-size: 1.5rem;
}

.stat-card p {
    color: var(--text-muted);
}

/* =========================================
   SIDEBAR CHATBOT
   ========================================= */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: white;
    border: none;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.5);
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
}

.chatbot-fab:hover {
    transform: scale(1.1) rotate(15deg);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.sidebar.active {
    transform: translateX(-400px);
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
}

#close-sidebar {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

#close-sidebar:hover {
    color: white;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollbar styling for chat */
.sidebar-body::-webkit-scrollbar {
    width: 6px;
}
.sidebar-body::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 3px;
}

.message {
    padding: 1rem;
    border-radius: 12px;
    max-width: 85%;
    line-height: 1.4;
    font-size: 0.95rem;
    animation: fadeIn 0.3s ease-out;
}

.ai-message {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.user-message {
    background: var(--primary-gradient);
    color: white;
    align-self: flex-end;
    border-top-right-radius: 0;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.input-container {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 0.5rem 1rem;
}

.input-container input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    outline: none;
    font-family: inherit;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0.5rem;
}

.icon-btn:hover {
    color: var(--primary);
}

.send-btn i {
    color: var(--primary);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* =========================================
   TYPING INDICATOR (animated dots)
   ========================================= */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.85rem 1rem;
    width: fit-content;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    animation: typingBounce 1.2s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* =========================================
   VOICE RECORDING ACTIVE STATE
   ========================================= */
.icon-btn.recording {
    color: #ff4b2b;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1);    opacity: 1; }
    50%       { transform: scale(1.25); opacity: 0.7; }
}

/* =========================================
   CONTACT PAGE (Hero Style)
   ========================================= */
.contact-hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6rem 5% 4rem;
    min-height: calc(100vh - 100px);
}

.contact-hero-section .hero-content {
    max-width: 800px;
    margin-bottom: 3rem;
}

.contact-highlights {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 500;
}

.highlight-item i {
    font-size: 1.4rem;
    color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.centered-card {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: var(--glass-shadow);
    animation: fadeInUp 1s ease-out;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-group.full-width {
        grid-column: span 1;
    }
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    color: white;
    outline: none;
    transition: var(--transition-fast);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 4px rgba(0, 210, 255, 0.1);
}

select.form-control option {
    background: #171c24;
    color: white;
}

textarea.form-control {
    resize: none;
    height: 130px;
}

#contact-status {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    min-height: 1.5em;
    padding: 0.8rem;
    border-radius: 8px;
}

.status-success { 
    color: #52c41a; 
    background: rgba(82, 196, 26, 0.1);
    border: 1px solid rgba(82, 196, 26, 0.2);
}

.status-error { 
    color: #ff4d4f; 
    background: rgba(255, 77, 79, 0.1);
    border: 1px solid rgba(255, 77, 79, 0.2);
}
