/* ===================================================================
   Master Apex Website Stylesheet
   Theme: Quantum Gradient (Upgraded)
   Version: 10.1 (Full-page Background Fix)
   =================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@300;400;500&display=swap');

/* --- 1. Root Variables & Global Styles --- */
:root {
    --primary-color: #8A2BE2;   /* A vibrant purple */
    --secondary-color: #00E5EE; /* A bright teal/cyan */
    --dark-bg: #111827;         /* Deep navy blue */
    --surface-color: #1F2937;   /* Dark slate gray for cards */
    --surface-alpha: rgba(31, 41, 55, 0.5); /* Surface color with transparency */
    --dark-bg-alpha: rgba(17, 24, 39, 0.5); /* Darker bg with transparency */
    --text-primary: #F9FAFB;    /* Off-white for headings */
    --text-secondary: #9CA3AF;  /* Light gray for body text */
    --border-color: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-text: linear-gradient(90deg, #a78bfa, #5eead4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color: var(--dark-bg);
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

#vanta-background {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    background-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

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

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }

/* --- 2. Header & Navigation --- */
header {
    background: rgba(17, 24, 39, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

header .logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

header .logo-dot {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links { list-style: none; display: flex; margin: 0; padding: 0; align-items: center; }
.nav-links li { margin-left: 35px; }
.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}
.nav-links li a:hover { color: var(--secondary-color); }
.nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after { width: 100%; }
.menu-toggle { display: none; font-size: 1.8rem; color: var(--secondary-color); cursor: pointer; }

/* --- 3. Buttons & CTAs --- */
.cta-button {
    background: var(--gradient-main);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.2);
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(138, 43, 226, 0.3);
}

.cta-button-outline {
    background: transparent;
    color: var(--secondary-color);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--secondary-color);
    display: inline-block;
    margin-top: auto;
}
.cta-button-outline:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    box-shadow: 0 0 15px rgba(0, 229, 238, 0.5);
}

/* --- 4. Page Sections --- */
section { 
    padding: 100px 0; 
    /* NEW: Add background properties to sections */
    background: var(--surface-alpha);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Hero section should be fully transparent */
    backdrop-filter: none;
    border: none;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-weight: 400;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

/* --- 4a. Client Logo Carousel --- */
.client-logos {
    padding: 60px 0;
    background: var(--dark-bg-alpha); /* Darker transparent background */
}
.client-logos h5 {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 40px;
}
.logo-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
    mask-image: linear-gradient(to right, transparent, white 20%, white 80%, transparent);
}
.logo-slide {
    display: flex;
    align-items: center;
    gap: 60px;
    animation: scroll 20s linear infinite;
    width: fit-content;
}
.logo-slide img { 
    max-height: 40px; 
    opacity: 0.6; 
    transition: opacity 0.3s ease; 
    filter: brightness(0) invert(1);
}
.logo-slide img:hover { opacity: 1; }

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Section Backgrounds - REMOVED solid colors, now handled by general 'section' tag */

/* Card Style */
.service-card, .pricing-card, .testimonial-card, .portfolio-item, .process-step, .faq-item {
    background: var(--surface-alpha); /* Using transparent surface color for cards */
    border: 1px solid var(--border-color);
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card {
    padding: 40px;
    text-align: center;
    border-color: transparent;
    background-clip: padding-box;
    border: 1px solid transparent;
    position: relative;
    background: var(--dark-bg-alpha);
}
.service-card:hover {
    transform: translateY(-10px);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: -1;
    margin: -1px;
    border-radius: inherit;
    background: var(--gradient-main);
}
.service-card .icon-large { font-size: 3rem; margin-bottom: 20px; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.service-card h3 { margin-bottom: 15px; font-size: 1.5rem; }
.learn-more {
    color: var(--secondary-color); text-decoration: none; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; transition: transform 0.3s ease, color 0.3s ease;
}
.learn-more:hover { transform: translateX(5px); color: #fff; }

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

/* --- 4b. Our Process Section --- */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    position: relative;
    margin-top: 40px;
}
.process-step {
    text-align: center;
    padding: 30px;
    /* background already defined in shared card styles */
}
.process-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    color: #fff;
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}
.process-step h3 { font-size: 1.4rem; margin-bottom: 10px; }


/* Portfolio Section */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.portfolio-item { position: relative; overflow: hidden; }
.portfolio-item img { width: 100%; display: block; height: 250px; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.05); }
.portfolio-item .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(17, 24, 39, 0.9); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity 0.4s ease; text-align: center; }
.portfolio-item:hover .overlay { opacity: 1; }
.portfolio-item .overlay h3 { font-size: 1.8rem; margin-bottom: 10px; color: #fff; }
.portfolio-item .overlay p { font-size: 1.1rem; margin-bottom: 20px; color: #e0e0e0; }
.portfolio-item .overlay .view-project { background: var(--gradient-main); color: #fff; padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; transition: transform 0.3s ease; }
.portfolio-item .overlay .view-project:hover { transform: scale(1.05); }

/* Pricing Section */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: stretch; }
.pricing-card { padding: 30px; text-align: center; position: relative; display: flex; flex-direction: column; height: 100%; background: var(--dark-bg-alpha);}
.pricing-card.featured { transform: scale(1.05); z-index: 10; border-color: transparent; background-clip: padding-box; border: 2px solid transparent; }
.pricing-card.featured::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; margin: -2px; border-radius: 15px; background: var(--gradient-main); }
.pricing-card.featured:hover { transform: scale(1.08) translateY(-10px); }

.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gradient-main); color: #fff; padding: 5px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; }
.pricing-header i { font-size: 2.5rem; margin-bottom: 15px; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pricing-header h3 { font-size: 1.8rem; margin-bottom: 10px; }
.pricing-header p { min-height: 40px; color: var(--text-secondary); }
.price-tag { margin: 25px 0; padding: 20px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.price-tag h4 { font-size: 2rem; margin: 5px 0 0 0; color: var(--text-primary); }
.features-list { list-style: none; padding: 0; text-align: left; margin-bottom: 30px; flex-grow: 1; }
.features-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.features-list li i { width: 20px; }
.features-list .fa-check { color: #22c55e; }
.features-list .fa-times { color: #ef4444; }
.features-list li.disabled { color: #6b7280; }

/* Testimonials Section */
.testimonial-slider { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; justify-content: center; }
.testimonial-card { padding: 30px; display: flex; flex-direction: column; }
.testimonial-card .quote { font-style: italic; font-size: 1.1rem; margin-bottom: 25px; color: var(--text-primary); flex-grow: 1; border-left: 3px solid var(--primary-color); padding-left: 20px; }
.testimonial-card .client-info { display: flex; align-items: center; gap: 15px; margin-top: auto; }
.testimonial-card .client-info img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--secondary-color); }
.testimonial-card .client-info h4 { margin: 0; font-size: 1.2rem; color: var(--text-primary); }
.testimonial-card .client-info span { font-size: 0.9rem; color: var(--text-secondary); }

/* --- 4c. FAQ Section --- */
.faq-accordion { max-width: 800px; margin: 40px auto 0; }
.faq-item {
    margin-bottom: 15px;
    overflow: hidden;
    background: var(--dark-bg-alpha);
}
.faq-question {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-align: left;
}
.faq-question i {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--secondary-color);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
    padding: 0 20px 20px;
    margin: 0;
}
.faq-item.active .faq-answer {
    max-height: 200px; /* Adjust if answers are longer */
}

/* Bottom CTA Section */
.cta-bottom { background: var(--gradient-main); color: #fff; padding: 80px 0; border: none; backdrop-filter: none; }
.cta-bottom h2 { color: #fff; font-size: 3rem; margin-bottom: 20px; }
.cta-bottom p { font-size: 1.2rem; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.cta-button-alt { background: #fff; color: var(--primary-color); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; border: none; display: inline-flex; align-items: center; gap: 8px; }
.cta-button-alt:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); }

/* Contact Section */
.contact p.text-center { margin: -30px auto 40px auto; font-size: 1.1rem; }
.contact form { max-width: 800px; margin: 0 auto 20px auto; display: flex; flex-direction: column; gap: 20px; padding: 40px; background: var(--dark-bg-alpha); border-radius: 15px; border: 1px solid var(--border-color); }
.contact .form-group { display: flex; gap: 20px; }
.contact input, .contact textarea { padding: 18px; border-radius: 8px; border: 1px solid var(--border-color); color: var(--text-primary); background-color: var(--surface-color); font-size: 1rem; width: 100%; box-sizing: border-box; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.contact input:focus, .contact textarea:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(0, 229, 238, 0.2); outline: none; }
.contact textarea { resize: vertical; }
.contact form .cta-button { align-self: flex-start; margin-top: 10px; }
#form-message { padding-top: 15px; text-align: left; font-weight: 500; min-height: 24px; }
#form-message.success { color: #22c55e; }
#form-message.error { color: #ef4444; }
#form-message.sending { color: var(--text-secondary); }
.contact-info { margin-top: 50px; display: flex; flex-direction: column; gap: 15px; font-size: 1.1rem; }
.contact-info p i { color: var(--secondary-color); margin-right: 10px; width: 20px; }

/* --- 5. Footer --- */
footer { background: #000; padding: 60px 0 20px 0; color: var(--text-secondary); font-size: 0.95rem; border: none; backdrop-filter: none; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo h3, .footer-links h4, .footer-social h4 { color: #fff; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a, .footer-social a { color: var(--text-secondary); text-decoration: none; transition: color 0.3s ease; }
.footer-links ul li a:hover { color: var(--secondary-color); }
.footer-social a { font-size: 1.5rem; margin-right: 15px; }
.footer-social a:hover { color: #fff; }
.footer-bottom { text-align: center; padding-top: 30px; border-top: 1px solid var(--border-color); margin-top: 30px; }

/* --- 6. Animations --- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-up { opacity: 0; animation: fadeInUp 0.8s ease-out forwards; }
.fade-in-up.delay-1 { animation-delay: 0.2s; }
.fade-in-up.delay-2 { animation-delay: 0.4s; }

.reveal { opacity: 0; transform: translateY(30px) scale(0.98); transition: opacity 0.6s ease-out, transform 0.6s ease-out; will-change: opacity, transform; }
.reveal.revealed { opacity: 1; transform: translateY(0) scale(1); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }

/* --- 7. Responsive Design --- */
@media (max-width: 992px) {
    .nav-links { display: none; flex-direction: column; width: 100%; background: var(--dark-bg); position: absolute; top: 100%; left: 0; text-align: center; padding: 20px 0; box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1); }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; }
    .nav-links li a { font-size: 1.1rem; padding: 10px 0; display: block; }
    .menu-toggle { display: block; }
    
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2.2rem; }
    .contact .form-group { flex-direction: column; gap: 15px; }
    .cta-bottom h2 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
    section { padding: 80px 0; }
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}

/* --- 10. Floating Social Buttons --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 110px;
    right: 40px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.4);
}
.youtube-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #FF0000 0%, #c4302b 100%);
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 28px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.youtube-float:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 2px 2px 20px rgba(255, 0, 0, 0.4);
}
@media (max-width: 768px) {
    .whatsapp-float, .youtube-float { width: 50px; height: 50px; right: 20px; font-size: 24px; }
    .whatsapp-float { bottom: 80px; }
    .youtube-float { bottom: 20px; }
}
/* Add this CSS to your style.css file */

.logo img {
    height: 50px; /* You can adjust this value to make the logo bigger or smaller */
    width: auto; /* Keeps the logo's proportions correct */
    vertical-align: middle; /* Helps align the logo with the navigation links */
}

