/* ========================================
   CUSTOM CSS FOR AMAN PORTFOLIO
   ======================================== */

:root {
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --secondary: #ec4899;
    --secondary-rgb: 236, 72, 153;
    --dark: #0a0a0a;
    --darker: #050505;
    --dark-card: #1a1a1a;
    --muted: #9ca3af;
    --white-5: rgba(255, 255, 255, 0.05);
    --white-10: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 90px;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5558e0;
}

/* Utilities */
.bg-dark {
    background-color: var(--dark) !important;
}

.bg-darker {
    background-color: var(--darker) !important;
}

.bg-dark-card {
    background-color: var(--dark-card) !important;
}

.bg-dark-input {
    background-color: var(--dark-card) !important;
    color: #fff !important;
}

.bg-dark-blur {
    background-color: rgba(10, 10, 10, 0.8) !important;
    backdrop-filter: blur(10px);
}

.bg-primary-5 {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
}

.bg-primary-10 {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
}

.bg-secondary-10 {
    background-color: rgba(var(--secondary-rgb), 0.1) !important;
}

.border-white-5 {
    border-color: var(--white-5) !important;
}

.border-white-10 {
    border-color: var(--white-10) !important;
}

.border-primary-20 {
    border-color: rgba(var(--primary-rgb), 0.2) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.8) !important;
    border-bottom: 1px solid var(--white-10);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--muted) !important;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

.nav-link:hover {
    color: #fff !important;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.35rem;
}

.navbar-nav .dropdown-menu {
    background: rgba(12, 12, 26, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 0.75rem 0;
    box-shadow: 0 25px 45px rgba(5, 5, 30, 0.65);
    backdrop-filter: blur(18px);
    min-width: 220px;
}

.navbar-nav .dropdown-item {
    color: #d3d3f0;
    padding: 0.65rem 1.25rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    color: #fff;
    background: rgba(99, 102, 241, 0.08);
}

.dropdown-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    font-size: 0.9rem;
}

.navbar-nav .dropdown:hover > .dropdown-menu,
.navbar-nav .dropdown:focus-within > .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Glass Card */
.glass-card {
    background: rgba(26, 26, 26, 0.5) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--white-5) !important;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--white-10) !important;
    transform: translateY(-2px);
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hover-primary:hover {
    color: var(--primary) !important;
}

.hover-bg-white-5:hover {
    background-color: var(--white-5) !important;
}

/* Icon Box */
.icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Avatar Circle */
.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    color: #fff;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding-top: clamp(90px, 10vw, 150px);
    padding-bottom: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1) 0%, rgba(var(--secondary-rgb), 0.1) 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800"><defs><filter id="blur"><feGaussianBlur stdDeviation="3"/></filter></defs><circle cx="400" cy="400" r="300" fill="%236366f1" opacity="0.1" filter="url(%23blur)"/></svg>') center/cover no-repeat;
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.hero-visual {
    position: relative;
    height: 600px;
}

@media (max-width: 992px) {
    .hero-section {
        padding-top: clamp(110px, 14vw, 180px);
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: clamp(120px, 16vw, 200px);
    }
}

.floating-card {
    position: absolute;
    width: 320px;
    animation: float 6s ease-in-out infinite;
    z-index: 10;
}

.floating-card img {
    width: 100%;
    height: auto;
    border: 1px solid var(--white-10);
}

.floating-card:nth-child(1) {
    top: 40px;
    right: 0;
    transform: rotate(-6deg);
}

.floating-card:nth-child(2) {
    top: 128px;
    left: 40px;
    transform: rotate(3deg);
    z-index: 20;
}

.floating-card-ai {
    position: absolute;
    bottom: 80px;
    right: 40px;
    width: 288px;
    z-index: 30;
    animation: float 5s ease-in-out infinite;
}

.pulse-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

.progress-bar-custom {
    height: 8px;
    width: 100%;
    background-color: var(--white-10);
    border-radius: 4px;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

.notice-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

.notice-card-glow {
    position: absolute;
    inset: -20% -10% auto;
    height: 120%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.45), transparent 60%);
    filter: blur(30px);
    pointer-events: none;
}

.notice-card a {
    font-weight: 600;
}

.notice-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    margin: 1rem 0;
}

.notice-bullets {
    margin-bottom: 0.25rem;
}

.notice-bullets p {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.notice-bullets .notice-feature-dot {
    color: rgba(255, 255, 255, 0.75);
}

.notice-badge {
    background: rgba(236, 72, 153, 0.15);
    padding: 0.2rem 0.65rem;
    border-radius: 0.65rem;
    color: #fbcfe8;
    font-weight: 700;
    border: 1px solid rgba(236, 72, 153, 0.8);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.25);
}

.contact-box {
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

.contact-box i {
    font-size: 1.25rem;
    color: var(--primary);
}

.contact-cta-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(59, 130, 246, 0.35));
    border-radius: 1.25rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.5rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
}

.contact-cta {
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
    font-size: 1rem;
    line-height: 1.4;
}

.contact-cta span {
    color: rgba(255, 255, 255, 0.9);
}

.contact-cta-text a {
    font-weight: 700;
    color: #fff;
}

.waitlist-pitch {
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 520px;
}

.waitlist-pitch .btn-warning {
    background: linear-gradient(135deg, #f97316, #facc15);
    border: none;
    box-shadow: 0 15px 40px rgba(251, 135, 26, 0.4);
}

.waitlist-top-right {
    position: absolute;
    top: 40px;
    right: 0;
    width: 300px;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    text-align: left;
    z-index: 5;
}

.waitlist-top-right .btn-warning {
    background: linear-gradient(135deg, #f97316, #fde68a);
    color: #1f2937;
}

.waitlist-modal-form .form-control {
    border-radius: 0.75rem;
}

.waitlist-modal-form textarea {
    resize: vertical;
}

@media (max-width: 992px) {
    .waitlist-top-right {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        margin-bottom: 1.5rem;
        max-height: 200px;
        overflow-y: auto;
        background: rgba(15, 23, 42, 0.9);
    }
}

.notice-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.notice-feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notice-feature-dot {
    color: var(--secondary);
    font-size: 1rem;
}

.notice-header {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
}

.automation-image {
    height: 220px;
}

.automation-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.automation-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

.automation-image {
    height: 220px;
    cursor: pointer;
}

.automation-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0.75));
}

.automation-image:hover .automation-overlay,
.automation-image:focus-visible .automation-overlay {
    opacity: 1;
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

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

/* Sections */
.py-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* Project Image Overlay */
.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    min-height: 240px;
}

.project-dj-cover {
    background-image: linear-gradient(135deg, rgba(15, 15, 40, 0.85), rgba(15, 15, 40, 0.85)), url('https://images.unsplash.com/photo-1506157786151-b8491531f063?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-dj-text {
    text-align: center;
    padding: 1.5rem;
}

.project-dj-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.project-dj-text p {
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.project-card {
    display: flex;
    flex-direction: column;
}

.project-card .card-body {
    flex: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.1);
}

.project-image:hover .project-overlay {
    opacity: 1;
}

/* Glow Effects */
.glow-effect {
    position: absolute;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.glow-primary {
    background-color: rgba(var(--primary-rgb), 0.2);
    top: -40px;
    right: -40px;
}

.glow-secondary {
    background-color: rgba(var(--secondary-rgb), 0.2);
    bottom: -40px;
    left: -40px;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    background-color: var(--dark-card) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-rgb), 0.25) !important;
    color: #fff !important;
}

.form-control::placeholder {
    color: var(--muted);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: #5558e0;
    border-color: #5558e0;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* Modal */
.modal-content {
    background-color: var(--dark-card);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Z-index utility */
.z-2 {
    z-index: 2;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-visual {
        display: none;
    }
    
    .py-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}

@media (max-width: 767px) {
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
}

/* Loading States */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 0.2em;
}

/* Scrollbar Hide for Specific Elements */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   CHATBOT WIDGET (bottom right)
   ======================================== */
.chatbot-widget {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    font-family: inherit;
}

.chatbot-toggle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary) 0%, #5558e0 100%);
    color: #fff;
    border: none;
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5), 0 0 0 0 rgba(99, 102, 241, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: chatbot-pulse 2s ease-in-out infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.6), 0 0 0 8px rgba(99, 102, 241, 0.15);
}

@keyframes chatbot-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5), 0 0 0 0 rgba(99, 102, 241, 0.3); }
    50% { box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55), 0 0 0 12px rgba(99, 102, 241, 0); }
}

.chatbot-panel {
    position: absolute;
    bottom: calc(72px + 0.75rem);
    right: 0;
    width: 380px;
    max-width: calc(100vw - 2rem);
    height: 420px;
    background: var(--dark-card);
    border: 1px solid var(--white-10);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chatbot-panel-header {
    padding: 0.75rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border-bottom: 1px solid var(--white-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-panel-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
}

.chatbot-close:hover {
    color: #fff;
}

.chatbot-contact-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.chatbot-contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chatbot-msg {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chatbot-msg.user {
    align-self: flex-end;
    background: var(--primary);
    color: #fff;
}

.chatbot-msg.assistant {
    align-self: flex-start;
    background: var(--white-10);
    color: #fff;
    white-space: pre-wrap;
}

.chatbot-visitor-form {
    padding: 1rem;
    border-bottom: 1px solid var(--white-10);
}

.chatbot-visitor-form .chatbot-input {
    width: 100%;
}

#chatbot-chat-area {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chatbot-input-wrap {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--white-10);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.chatbot-input {
    flex: 1;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--white-10);
    border-radius: 8px;
    background: var(--darker);
    color: #fff;
    font-size: 0.9rem;
}

.chatbot-input::placeholder {
    color: var(--muted);
}

.chatbot-input:focus {
    outline: none;
    border-color: var(--primary);
}

.chatbot-send {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.chatbot-send:hover {
    background: #5558e0;
}

.chatbot-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

