/* 
  CVS Companies - Premium Modern Business Theme 
  Author: CVS Companies
*/

/* --- Variables --- */
:root {
    --bg-main: #FFFFFF;
    --bg-alt: #F8FAFC;
    /* Light gray for section contrast */
    --text-main: #0F172A;
    --text-muted: #334155;

    /* Brand Accents unified to a Professional Blue palette */
    --accent-blue: #1E3A8A; /* Deep Corporate Blue */
    --accent-blue-hover: #172554;
    --accent-red: #3B82F6; /* Lighter Blue instead of Red */
    --accent-yellow: #93C5FD; /* Pastel Blue instead of Yellow */

    --border-color: #E2E8F0;

    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* --- Utilities --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

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

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

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1rem auto 3rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    border-radius: 2px;
    margin-bottom: 2rem;
}

.title-underline.center {
    margin: 0 auto 2rem;
}

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

.mt-4 {
    margin-top: 1.5rem;
}

.white-text {
    color: white !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--accent-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    transform: translateY(-2px);
}

.white-btn {
    background-color: transparent !important;
    border-color: white !important;
    color: white !important;
}

.white-btn:hover {
    background-color: white !important;
    color: var(--text-main) !important;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 0.5rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

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

.nav-menu {
    display: block;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

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

.btn-nav {
    background-color: var(--accent-blue);
    color: white !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.btn-nav:hover {
    background-color: var(--accent-blue-hover);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 10rem;
    padding-bottom: 8rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.7));
    z-index: 1;
}

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

.hero-title {
    font-size: 4rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

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

.global-presence {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--accent-blue);
}

.global-presence i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.global-presence span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.image-box {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-box img {
    transition: transform 0.5s ease;
}

.image-box:hover img {
    transform: scale(1.05);
}

.overlay-box {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.overlay-box h3 {
    color: white;
    margin-bottom: 0.25rem;
}

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

.service-card {
    background-color: var(--bg-alt);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

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

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

/* --- Pricing Section --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pricing-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 138, 0.2);
}

.pricing-card.popular {
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-md);
    transform: scale(1.03);
}

.pricing-card.popular:hover {
    transform: scale(1.03) translateY(-5px);
}

.popular-badge {
    position: absolute;
    top: 1.5rem;
    right: -2rem;
    background-color: var(--accent-blue);
    color: white;
    padding: 0.25rem 3rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: var(--shadow-sm);
    z-index: 10;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2.5rem;
}

.pricing-features ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.pricing-features ul li i {
    color: var(--accent-blue);
    margin-top: 0.25rem;
}

.w-100 {
    width: 100%;
}

.pricing-footer p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* --- Why Choose Us --- */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.why-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.why-list {
    margin-top: 2rem;
}

.why-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.why-list .icon {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.why-list .info h4 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.why-list .info p {
    color: var(--text-muted);
}

/* --- Testimonial Section --- */
.testimonial-block {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--accent-blue);
    position: relative;
    margin-top: 2rem;
}

.testimonial-content {
    margin-bottom: 1.5rem;
    position: relative;
}

.testimonial-content i {
    font-size: 2.5rem;
    color: rgba(30, 58, 138, 0.05); /* Very subtle blue */
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
    z-index: 0;
}

.testimonial-content p {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-main);
    padding-left: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.testimonial-author strong {
    color: var(--accent-blue);
    font-weight: 700;
}

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

/* --- CEO Section --- */
.ceo-content {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--accent-yellow);
}

.ceo-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background-color: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
}

.ceo-placeholder {
    font-size: 3rem;
    color: var(--accent-blue);
}

.ceo-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.ceo-quote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.ceo-skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    background-color: var(--bg-alt);
    color: var(--accent-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
}

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

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-overlay p {
    color: var(--accent-yellow);
    transform: translateY(20px);
    transition: transform 0.3s ease 0.1s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
}

/* --- Contact Section --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-info {
    background: linear-gradient(135deg, var(--text-main), #1e293b);
    color: white;
    padding: 3rem;
}

.contact-info h3 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.contact-desc {
    color: #cbd5e1;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-yellow);
}

.info-text h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-text p,
.info-text a {
    color: #cbd5e1;
}

/* Professional Contact Cards Upgrade */
.direct-contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.btn-pro-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
}

.btn-pro-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.whatsapp-official:hover {
    border-color: #25D366;
}

.email-official:hover {
    border-color: var(--accent-blue);
}

.pro-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    flex-shrink: 0;
}

.bg-wa {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.bg-email {
    background: linear-gradient(135deg, var(--accent-blue), #1e40af);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.pro-text {
    display: flex;
    flex-direction: column;
}

.pro-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pro-title {
    font-size: 1.25rem;
    color: var(--text-main);
    font-weight: 800;
    font-family: var(--font-heading);
}

.contact-form-wrapper {
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.input-group input,
.input-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.submit-btn {
    align-self: flex-start;
    padding: 0.8rem 2rem;
    margin-top: 1rem;
}

/* --- Footer --- */
.footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 400px;
}

.footer-links h4,
.footer-legal h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links ul li,
.footer-legal ul li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-legal a {
    color: #94a3b8;
}

.footer-links a:hover,
.footer-legal a:hover {
    color: var(--accent-yellow);
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 1rem;
}

.footer-social {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.footer-social:hover {
    background: var(--accent-yellow);
    color: var(--text-main);
    transform: translateY(-3px);
}

.footer-bottom {
    background-color: #020617;
    padding: 1.5rem 0;
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up {
    transform: translateY(40px);
}

.slide-right {
    transform: translateX(-50px);
}

.slide-left {
    transform: translateX(50px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {

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

    .hero-title {
        font-size: 3rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-wrapper {
        order: 1;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        transition: 0.3s;
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
        gap: 1.5rem;
        text-align: center;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero {
        padding-top: 8rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    /* Boost touch targets & readability for mobile */
    .btn {
        width: 100%;
        margin-bottom: 0.75rem;
        padding: 1rem 1.5rem; /* Larger tap area */
    }

    .hero-subtitle {
        font-size: 1.15rem; /* readable base font */
    }
}

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

    .hero-buttons {
        flex-direction: column;
    }
}
