:root {
    --bg-color: #030014;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.05);
    
    /* Vibrant Neon Colors */
    --neon-pink: #ff2e93;
    --neon-blue: #00f0ff;
    --neon-purple: #8a2be2;
    --neon-orange: #ff8c00;
    
    --primary-gradient: linear-gradient(135deg, var(--neon-pink), var(--neon-orange));
    --secondary-gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    
    --input-bg: rgba(10, 10, 25, 0.6);
    --input-border: rgba(255, 255, 255, 0.15);
    --shadow-glow: 0 0 30px rgba(0, 240, 255, 0.3);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* subtle grid background for a tech feel */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
}

/* Background Animated Orbs for WOW factor */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.6;
    animation: float 15s infinite alternate ease-in-out;
}

.blob.pink {
    top: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--neon-pink) 0%, transparent 60%);
    animation-delay: 0s;
}

.blob.blue {
    bottom: -20%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--neon-purple) 0%, var(--neon-blue) 60%, transparent 80%);
    animation-delay: -3s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 80px) scale(1.2); }
    100% { transform: translate(-50px, -40px) scale(0.9); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInDown 1s ease-out forwards;
}

/* Navbar Premium */
.site-navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: 110px;
    background: rgba(3, 0, 20, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.navbar-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.navbar-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    z-index: 1;
    transition: opacity 0.4s ease;
    filter: blur(15px);
}

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

.logo-wrapper:hover .logo-glow {
    opacity: 1;
    animation: pulseGlow 2s infinite alternate;
}

.navbar-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 700;
}

.status-dot {
    width: 8px; height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-blue);
    animation: blink 1.5s infinite;
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; background: radial-gradient(circle, rgba(255, 46, 147, 0.4) 0%, transparent 70%); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--primary-gradient);
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Section with Glowing Border */
.search-section {
    width: 100%;
    max-width: 700px;
    margin-bottom: 5rem;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
    position: relative;
}

/* Animated glow border for search box */
.search-section::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 55px;
    background: linear-gradient(90deg, var(--neon-pink), var(--neon-blue), var(--neon-purple), var(--neon-pink));
    background-size: 400% 400%;
    animation: gradientMove 8s ease infinite;
    z-index: -1;
    filter: blur(10px);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.search-section:focus-within::before {
    opacity: 1;
    filter: blur(15px);
}

.search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.8rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.search-icon {
    width: 26px;
    height: 26px;
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--neon-blue);
    transform: scale(1.1);
}

#searchInput {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-family: inherit;
    padding: 1rem 1.5rem;
    font-weight: 400;
}

#searchInput::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.clear-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-main);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.clear-btn:hover {
    background: var(--neon-pink);
    color: white;
    box-shadow: 0 0 15px var(--neon-pink);
    transform: rotate(90deg);
}

.clear-btn.visible {
    opacity: 1;
    visibility: visible;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* AI Section */
.ai-section {
    width: 100%;
    max-width: 800px;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.ai-container {
    background: rgba(10, 10, 25, 0.6);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.ai-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--secondary-gradient);
}

.ai-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-header h2 {
    font-size: 1.8rem;
    color: #fff;
    font-weight: 700;
}

.ai-container > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.ai-input-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#aiInput {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
}

#aiInput:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.ai-btn {
    align-self: flex-end;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 46, 147, 0.4);
}

.ai-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 46, 147, 0.6);
}

.ai-response {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.ai-typing {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 240, 255, 0.05);
    border-radius: 12px;
    width: fit-content;
}

.ai-typing .dot {
    width: 8px;
    height: 8px;
    background: var(--neon-blue);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.ai-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.ai-typing .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.ai-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 240, 255, 0.05);
    border-left: 4px solid var(--neon-blue);
    border-radius: 8px;
}

.ai-recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Results Section */
.results-section {
    width: 100%;
    position: relative;
    perspective: 1000px; /* For 3D tilt */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    width: 100%;
}

/* Premium Card Design */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    animation: cardEntrance 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Glass reflection effect */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

.card:hover::after {
    left: 200%;
}

.card:hover {
    transform: translateY(-15px) scale(1.03);
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 
                inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Animated border top for cards */
.card-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: currentColor;
    opacity: 0;
    transition: opacity 0.4s ease, height 0.4s ease;
}

.card:hover .card-indicator {
    opacity: 1;
    height: 6px;
    box-shadow: 0 0 20px currentColor;
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-icon svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.card-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    color: white;
}

.card-category {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.2rem;
    font-weight: 700;
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-desc {
    color: #a0aec0;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 300;
}

/* Utilities & Animations */
.hidden {
    display: none !important;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border-top-color: var(--neon-blue);
    border-right-color: var(--neon-pink);
    animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.no-results {
    text-align: center;
    padding: 4rem;
    color: var(--text-main);
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

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

@keyframes cardEntrance {
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Banner Gallery */
.banner-gallery {
    width: 100vw;
    max-width: 100%;
    margin-bottom: 4rem;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.gallery-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: scroll 40s linear infinite;
    padding: 0 1rem;
}

.gallery-track:hover {
    animation-play-state: paused;
}

.gallery-track img {
    height: 250px;
    width: 350px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(40%) brightness(0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-track img:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.1);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.2);
    z-index: 10;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5 - 1.5rem * 5)); } /* Approximate width of 5 images + gaps */
}

/* Video Section */
.video-section {
    width: 100%;
    max-width: 900px;
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1s ease-out forwards;
}

.video-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.video-container {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(138, 43, 226, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-purple);
}

/* Accessibility Focus */
*:focus-visible {
    outline: 2px solid var(--neon-blue);
    outline-offset: 3px;
}

.card:focus-visible, .team-card:focus-visible {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 240, 255, 0.3);
    outline: 3px solid var(--neon-blue);
}

/* Footer */
.site-footer {
    width: 100%;
    margin-top: 6rem;
    padding: 3rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    text-align: center;
    color: var(--text-muted);
}
.site-footer p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.site-footer span {
    color: var(--neon-pink);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .title { font-size: 2.5rem; }
    .subtitle { font-size: 1.1rem; }
    .container { padding: 2rem 1.5rem; }
    .search-box { padding: 0.6rem 1.5rem; }
    .gallery-track img { height: 160px; width: 240px; }
    .video-title { font-size: 1.8rem; }
    .services-grid, .team-grid { grid-template-columns: 1fr; }
}
