/* Color Variables */
:root {
    --primary-bg: #0F0F11;  /* Soft off-black background */
    --secondary-bg: #1A1A1E; /* Slightly lighter dark background for sections */
    --text-color: #ffffff;  /* White text */
    --accent-color: #2E1A47; /* Dark purple accent */
    --accent-hover: #4B2A6E; /* Medium purple for hover states */
    --gradient-accent: linear-gradient(135deg, #2E1A47, #C7A2F3); /* Purple gradient */
    --card-bg: #1F1F23; /* Dark card background */
    --light-bg: #232328; /* Lighter background for alternate sections */
    --footer-bg: #0A0A0C; /* Darkest background for footer */
    --shadow-color: rgba(0, 0, 0, 0.2);
    --home-link-color: #ffffff; /* Pink/red color for home link as shown in screenshot */
    --active-link-color: #C7A2F3; /* Light purple for active links in navigation */
    --cta-hover-color: #E9D8FC; /* Light lavender for CTA hover text */
    --border-radius: 12px; /* Rounded corners for all UI components */
    --box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    --animation-duration: 0.8s; /* Base duration for animations */
}

/* Micro-animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-bg);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

main {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 1 !important;
}

section {
    padding: 80px 0;
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: none !important;
}

h1, h2, h3 {
    margin-bottom: 20px;
    color: var(--text-color);
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 800;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

h2::after {
    display: none;
}

h2.animate, section.in-view h2 {
    opacity: 1;
    transform: translateY(0);
}

h2.animate::after {
    width: 80px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease;
}

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

/* Button Animation */
.btn, .cta-button {
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.btn:hover, .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.btn::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: var(--border-radius);
}

.btn:hover::before, .cta-button:hover::before {
    opacity: 0.8;
}

/* Navigation */
header {
    background-color: #000919; /* Dark navy/black background as in image */
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    margin-left: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-image {
    width: 45px;
    height: auto;
    margin-right: 12px;
    animation: pulse 6s infinite ease-in-out;
}

.logo-text {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
    white-space: nowrap;
}

/* Right side navigation group */
.nav-group {
    display: flex;
    align-items: center;
    margin-right: 80px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* Even spacing between nav items */
    margin: 0; /* Remove default margin */
}

.nav-links li {
    margin: 0; /* Remove default spacing */
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

/* Highlight the "Home" link with pink color */
.nav-links li:first-child a,
.nav-links a[href="#home"] {
    color: var(--home-link-color); /* Using the variable instead of hardcoded color */
    font-weight: 600; /* Make it slightly bolder */
}

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

/* Active link highlighting - make sure Home stays pink when active */
.nav-links a.active {
    color: var(--active-link-color);
    font-weight: 600;
}

/* Home link should stay pink even when active */
.nav-links li:first-child a.active,
.nav-links a[href="#home"].active {
    color: var(--home-link-color);
}

/* After element for active links */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Special active indicator for home link */
.nav-links li:first-child a.active::after,
.nav-links a[href="#home"].active::after {
    background: var(--home-link-color);
}

/* Burger Menu */
.burger {
    display: none;
    cursor: pointer;
    z-index: 30;
    margin-right: 20px;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Nav Active Class for Mobile Menu Toggle */
.nav-active {
    transform: translateX(0%) !important;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
}

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

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0px);
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 120px 0;
    text-align: center;
    overflow: hidden;
    background-image: url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0.95;
    z-index: 1;
    mix-blend-mode: multiply; /* Creates a rich overlay effect */
}

.hero {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.2s ease-out, slideUp 1.2s ease-out;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideUp 1s ease-out 0.2s backwards;
}

.hero .cta-button {
    margin-top: 20px;
    padding: 16px 32px;
    font-size: 1.05rem;
    letter-spacing: 0.05em;
    animation: slideUp 1s ease-out 0.4s backwards;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 15px 25px;
    background: var(--gradient-accent);
    color: white;
    font-weight: 600;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

/* Remove the background change on hover that causes flashing */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    z-index: -1;
}

.cta-button .btn-arrow {
    display: inline-block;
    transform: translateX(0);
    transition: transform 0.3s ease;
}

.cta-button:hover .btn-arrow {
    transform: translateX(5px);
}

/* Gradient shimmer effect on CTA button */
.cta-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0;
    transform: rotate(30deg);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-button:hover::after {
    opacity: 1;
    animation: shimmer 1.5s infinite;
}

/* Service, Feature and Review Cards */
.feature, .service, .review {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.5s ease, box-shadow 0.5s ease, opacity 0.5s ease;
}

.feature:hover, .service:hover, .review:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

section.in-view .feature, 
section.in-view .service, 
section.in-view .review {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered card reveal animation */
section.in-view .feature:nth-child(1),
section.in-view .service:nth-child(1),
section.in-view .review:nth-child(1) {
    transition-delay: 0.1s;
}

section.in-view .feature:nth-child(2),
section.in-view .service:nth-child(2),
section.in-view .review:nth-child(2) {
    transition-delay: 0.2s;
}

section.in-view .feature:nth-child(3),
section.in-view .service:nth-child(3),
section.in-view .review:nth-child(3) {
    transition-delay: 0.3s;
}

section.in-view .feature:nth-child(4),
section.in-view .service:nth-child(4) {
    transition-delay: 0.4s;
}

section.in-view .feature:nth-child(5),
section.in-view .service:nth-child(5) {
    transition-delay: 0.5s;
}

section.in-view .feature:nth-child(6),
section.in-view .service:nth-child(6) {
    transition-delay: 0.6s;
}

/* Section Divider */
.section-divider {
    height: 4px;
    width: 0;
    margin: 0 auto 40px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius);
    transition: width 1s ease;
}

section.in-view .section-divider {
    width: 80px;
}

/* About Section, Services Section, etc. */
.about-section, 
.why-choose-section,
.reviews-section,
.services-section,
.contact-section {
    background-color: var(--primary-bg);
    position: relative;
}

.about-section:nth-child(odd),
.reviews-section,
.contact-section {
    background-color: var(--secondary-bg);
}

.about-content,
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
}

.about-text, 
.contact-info {
    flex: 1;
    min-width: 300px;
}

.about-image, 
.map {
    flex: 1;
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: float 8s infinite ease-in-out;
}

.about-image:hover, 
.map:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.features,
.services-grid,
.reviews-container {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

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

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

.reviews-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Stars Rating */
.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
    animation: pulse 3s infinite ease-in-out;
}

/* BBB Badge */
.bbb-badge {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 100;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    animation: float 6s infinite ease-in-out;
}

.bbb-image {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
    border-radius: var(--border-radius);
}

.bbb-badge:hover {
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    padding: 50px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo-container {
    display: inline-flex;
    align-items: center;
}

.footer-logo-image {
    width: 50px;
    height: auto;
    margin-right: 15px;
    transition: transform 0.3s ease;
    animation: float 5s infinite ease-in-out;
}

.footer-logo-text {
    font-family: 'Inter', 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text-color);
}

/* Contact Link, Accent Link, etc. */
.contact-link {
    display: inline-block;
    color: var(--home-link-color);
    position: relative;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #fff;
}

.accent-link {
    color: var(--home-link-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.accent-link:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -3px;
    left: 0;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.accent-link:hover {
    color: var(--accent-hover);
}

.accent-link:hover:after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.reviews-link {
    display: block;
    margin: 30px auto 0;
    text-align: center;
    width: fit-content;
    color: var(--home-link-color);
    font-weight: 500;
    position: relative;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.reviews-link:hover {
    background-color: rgba(199, 162, 243, 0.1);
    transform: translateY(-3px);
    color: #ffffff;
}

/* Form Elements */
input, textarea, select, button {
    font-family: 'Inter', 'Roboto', sans-serif;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    width: 100%;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--home-link-color);
    box-shadow: 0 0 0 2px rgba(199, 162, 243, 0.2);
    animation: pulse 1s ease-in-out;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
    .features,
    .services-grid,
    .reviews-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .logo-text {
        font-size: 1rem;
    }

    .logo {
        margin-left: 40px;
    }

    .nav-group {
        margin-right: 40px;
    }
}

@media screen and (max-width: 768px) {
    .logo {
        margin-left: 20px;
    }
    
    .nav-group {
        margin-right: 20px;
    }
    
    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        background-color: #000919;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 250px;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        z-index: 200;
        gap: 25px;
        padding: 80px 0;
        margin: 0;
    }
    
    .burger {
        display: block;
        z-index: 201;
        margin-left: 20px;
    }
    
    .nav-links li {
        opacity: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .features,
    .services-grid,
    .reviews-container {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
}

