:root {
    --bg-color: #021223; /* Deepest Navy */
    --bg-alt: #051d38;   /* Rich Navy */
    --text-main: #ffffff;
    --text-secondary: #a0aec0; /* Cool Grey */
    --primary: #FFD700;  /* Pure Gold */
    --secondary: #00ced1; /* Dark Turquoise */
    --accent: #ff4500;    /* Orange Red */
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --card-bg: rgba(5, 29, 56, 0.7); /* Navy Glass */
    --border: rgba(255, 215, 0, 0.1); /* Subtle Gold Border */
    --transition: all 0.3s ease;
}

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

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

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

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

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary); /* Gold */
    animation-delay: 0s;
    opacity: 0.15;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #000080; /* Navy */
    animation-delay: -5s;
    opacity: 0.3;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary); /* Turquoise */
    animation-delay: -10s;
    opacity: 0.1;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

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

ul {
    list-style: none;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    opacity: 0.8;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 60px; /* Adjusted padding */
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero-content .highlight {
    background: -webkit-linear-gradient(0deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 0.9rem;
}

.primary-btn {
    background: var(--gradient);
    color: #fff;
    border: none;
    box-shadow: 0 5px 20px rgba(0, 242, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 242, 234, 0.5);
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-main);
}

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

/* Sections General */
.section {
    padding: 4rem 20px;
}

.bg-alt {
    background-color: var(--bg-alt);
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

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

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

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

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

.project-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

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

.tags span {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 242, 234, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    margin-right: 8px;
    color: var(--primary);
    border: 1px solid rgba(0, 242, 234, 0.2);
}

/* Reviews Carousel */
.reviews-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px; /* Space for buttons */
}

.reviews-viewport {
    overflow: hidden;
    padding: 20px 0; /* Add vertical padding to prevent hover clipping */
    margin: -20px 0; /* Negative margin to maintain layout flow */
}

.reviews-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 2rem;
    padding: 10px 5px; /* Tiny padding inside track */
}

.review-card {
    /* 3 cards per view minus the gap. 
       Formula: (100% - (gap * (items_per_view - 1))) / items_per_view 
       For 3 items with 2rem gap: (100% - 4rem) / 3 */
    min-width: calc((100% - 4rem) / 3);
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 15px;
    transition: var(--transition);
}

.review-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

/* Responsive adjustments for Carousel */
@media (max-width: 992px) {
    .review-card {
        /* 2 cards per view: (100% - 2rem) / 2 */
        min-width: calc((100% - 2rem) / 2);
    }
}

@media (max-width: 768px) {
    .reviews-slider-container {
        padding: 0 40px;
    }

    .review-card {
        /* 1 card per view */
        min-width: 100%;
    }
}

.client-info h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.client-role {
    font-size: 0.85rem;
    color: var(--primary);
}

.stars {
    color: var(--accent);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
    background: rgba(0,0,0,0.2);
}

.faq-answer p {
    padding: 1.5rem 0;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust as needed */
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: var(--secondary);
}

.faq-item.active {
    border-color: var(--primary);
}

/* Contact Details */
.contact-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--primary);
    color: var(--text-main);
    transform: translateY(-3px);
}

.contact-item i {
    color: var(--primary);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.1);
}

.full-width {
    width: 100%;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    background: #000;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Form Message */
.form-message {
    margin-top: 15px;
    font-size: 0.95rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    color: #2ecc71;
}

.form-message.error {
    color: #ff6b6b;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3rem 15px;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.4rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.85rem;
    }

    .nav-links {
        position: absolute;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #000;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 70%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
        z-index: 999;
        padding-top: 5rem;
        border-left: 1px solid var(--border);
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .nav-links li {
        margin: 0.8rem 0;
    }

    .burger {
        display: block;
        cursor: pointer;
        z-index: 1001;
    }
    
    .burger div {
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        margin: 6px;
        transition: all 0.3s ease;
    }

    /* Burger Animation */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .toggle .line2 {
        opacity: 0;
    }
    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .service-card, .project-card, .review-card {
        padding: 1.5rem;
    }

    .cta-buttons {
        gap: 1rem;
    }
}