/* --- CSS Variables & Color Palette --- */
:root {
    --primary-dark: #0A0E27;     /* Dark navy background */
    --accent-blue: #4361EE;      /* Electric blue accent */
    --accent-blue-hover: #344ce3;
    --text-light: #ffffff;
    --text-muted: #a0a8cc;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-blue);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-primary-outline {
    display: inline-block;
    background-color: transparent;
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
}

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

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

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

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover:not(.btn-primary-outline) {
    color: var(--accent-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a8cc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

/* --- Typography & Headings --- */
.section-heading {
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.heading-line {
    width: 60px;
    height: 4px;
    background-color: var(--accent-blue);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.section-heading p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    backdrop-filter: blur(5px);
}

.service-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(67, 97, 238, 0.5);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

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

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

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.project-card .img-wrapper {
    overflow: hidden;
    height: 250px;
}

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

.project-card:hover img {
    transform: scale(1.05);
}

.project-info {
    padding: 1.5rem 0;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
    background-color: rgba(255,255,255,0.05);
    border-radius: 20px;
    color: var(--text-light);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-blue);
    font-weight: 600;
    transition: gap 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
}

/* --- Reviews Section --- */
.reviews-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease-in-out;
}

.review-card {
    min-width: 350px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card .stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Review Submission Form */
.review-submission-box {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
}

.form-control {
    width: 100%;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-blue);
}

.form-group.row-flex {
    display: flex;
    gap: 1rem;
}
.form-group.row-flex > * {
    flex: 1;
}

.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* --- Footer & Contact --- */
.footer {
    background-color: rgba(0,0,0,0.2);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

.email-link {
    font-size: 1.1rem;
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 8px;
    transition: color 0.3s ease;
}

.email-link:hover {
    color: var(--accent-blue);
    text-decoration-color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

/* --- Chat Widget --- */
.chat-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    color: white;
    border: none;
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

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

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: var(--primary-dark);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.chat-widget.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

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

.close-chat {
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}

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

.chat-messages .msg {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
}

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

.msg.user {
    background-color: var(--accent-blue);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

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

.chat-input input {
    flex-grow: 1;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 10px 15px;
    color: white;
    outline: none;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--primary-dark);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hero-title {
        font-size: 3rem;
    }
    
    .chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 100px;
    }
}
