:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #facc15;
    /* Electric Yellow */
    --accent-glow: rgba(250, 204, 21, 0.4);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --white: #ffffff;
    --gradient-text: linear-gradient(135deg, #facc15 0%, #fbbf24 100%);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 4px 20px rgba(250, 204, 21, 0.2);
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--accent-glow);
    color: var(--primary);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(15, 23, 42, 0.8) 60%, rgba(15, 23, 42, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 204, 21, 0.1);
    border: 1px solid rgba(250, 204, 21, 0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-btns {
    display: flex;
    gap: 16px;
}

/* Info Bar */
.info-bar {
    background: var(--primary-light);
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent);
    background: rgba(250, 204, 21, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.status-open {
    color: #4ade80;
    /* Green */
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Services */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--primary-light);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-card);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

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

/* Trust Banner */
.trust-banner {
    background: linear-gradient(135deg, var(--accent) 0%, #ca8a04 100%);
    color: var(--primary);
    padding: 60px 0;
}

.trust-banner .container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.trust-item {
    text-align: center;
}

.trust-item .count {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.trust-item .label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Gallery */
.gallery {
    background: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: var(--shadow-card);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0) 100%);
    transform: translateY(100px);
    transition: 0.3s;
    opacity: 0;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
    opacity: 1;
}

.gallery-caption h4 {
    color: var(--accent);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: var(--white);
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--accent);
}

.feature-item h4 {
    font-size: 1.2rem;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--primary-light);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.review-card::before {
    content: '\f10d';
    /* quote-left icon */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.05);
}

.stars {
    color: #fbbf24;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.review-card p {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
}

.author {
    font-weight: 600;
    color: var(--accent);
    font-size: 0.9rem;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--primary-light);
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.contact-row:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(10px);
}

.c-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.map-container {
    height: 400px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid var(--primary-light);
}

/* Footer */
footer {
    background: #020617;
    padding: 50px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Floating Actions */
.floating-actions {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column-reverse;
    /* Stack upwards: Phone (bottom), WhatsApp, AI (top) */
    gap: 15px;
    z-index: 900;
    align-items: center;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn::after {
    /* Tooltip */
    content: attr(aria-label);
    position: absolute;
    right: 70px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    transform: translateX(10px);
}

.float-btn:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.float-btn.call-btn {
    background: var(--accent);
    color: var(--primary);
}

.float-btn.whatsapp-btn {
    background: #25D366;
}

.float-btn.ai-btn {
    background: #3b82f6;
    /* Blue for AI */
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.float-btn.ai-btn:hover {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.8);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.chat-widget.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.chat-title {
    font-weight: 600;
    font-family: var(--font-head);
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 5px #4ade80;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.95rem;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
}

.message.bot-message {
    background: rgba(255, 255, 255, 0.1);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

/* Reviews Update */
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.review-header div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.author {
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
}

.date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.g-logo {
    width: 24px;
    height: 24px;
}

.review-card::before {
    display: none;
    /* Remove big quote icon */
}

/* Chat Input */
.message.user-message {
    background: var(--accent);
    color: var(--primary);
    align-self: flex-end;
    font-weight: 500;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 25px;
    color: white;
    outline: none;
    font-family: var(--font-body);
}

.chat-input-area input:focus {
    border-color: var(--accent);
}

.chat-input-area button {
    background: var(--accent);
    color: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.chat-input-area button:hover {
    transform: scale(1.1);
}

/* Pulse Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(250, 204, 21, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(250, 204, 21, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Portfolio Section */
.portfolio {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 100px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: rgba(30, 41, 59, 0.6);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.portfolio-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.portfolio-meta span {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.portfolio-meta i {
    color: var(--accent);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links,
    .btn-primary.nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        text-align: center;
        justify-content: flex-end;
        padding-bottom: 60px;
        background: linear-gradient(0deg, var(--primary) 0%, rgba(15, 23, 42, 0.6) 80%), url('hero_bg.jpg');
        background-size: cover;
        background-position: center;
    }

    .hero-bg {
        display: none;
        /* Use simplified bg for mobile perfs or layout control */
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
    }

    .hero-btns .btn-primary,
    .hero-btns .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .contact-wrapper,
    .about-container {
        grid-template-columns: 1fr;
    }

    .floating-actions {
        bottom: 20px;
        right: 20px;
        /* Make them horizontal on very small mobile? No, stack is fine */
    }

    /* Mobile Menu Overlay Styles */
    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(15, 23, 42, 0.98);
        z-index: 2000;
        display: none;
        /* Toggled by JS */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
    }

    .mobile-menu-overlay.active {
        display: flex;
        animation: fadeIn 0.3s;
    }

    .mobile-link {
        font-family: var(--font-head);
        font-size: 1.5rem;
        color: var(--white);
    }

    .close-menu-btn {
        position: absolute;
        top: 30px;
        right: 30px;
        background: none;
        border: none;
        color: var(--white);
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}