/* =============================================
   ADWORTHS - Main Stylesheet
   Version: 1.0
   ============================================= */

/* ----- CSS Variables ----- */
:root {
    --primary-blue: #1a6eff;
    --primary-dark: #0d47a1;
    --secondary-blue: #e8f1ff;
    --dark-text: #1a1a2e;
    --body-text: #4a4a68;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--body-text);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

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

section {
    padding: 80px 0;
}

.section-subtitle {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-description {
    color: var(--body-text);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ----- Buttons ----- */
.btn {
    padding: 12px 28px;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

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

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-outline-light {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.btn-white {
    background-color: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.btn-white:hover {
    background-color: var(--secondary-blue);
    color: var(--primary-dark);
}

/* ----- Navigation ----- */
.navbar {
    padding: 15px 0;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    height: 32px;
}

.navbar-brand i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.navbar-nav .nav-link {
    color: #000;
    font-weight: 700;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue);
    background-color: var(--secondary-blue);
}

.navbar-toggler {
    border: none;
    padding: 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ----- Hero Section ----- */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary-blue) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary-blue);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--body-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

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

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Hero Variant - Dark Background */
.hero-dark {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-dark .hero-title,
.hero-dark .hero-description {
    color: var(--white);
}

.hero-dark .hero-title span {
    color: #60a5fa;
}

/* ----- Our Story Section ----- */
.story-section {
    background-color: var(--white);
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.story-content p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--body-text);
}

/* ----- Core Values Section ----- */
.values-section {
    background-color: var(--light-gray);
}

.value-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 1.75rem;
    color: var(--primary-blue);
}

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

.value-card p {
    color: var(--body-text);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ----- Scientific Approach Section ----- */
.approach-section {
    background-color: #1a1a2e;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.approach-content h2 {
    color: var(--white);
}

.approach-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.step-number {
    width: 32px;
    height: 32px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0;
}

.approach-visual {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-placeholder {
    width: 100%;
    max-width: 300px;
}

/* ----- Team Section ----- */
.team-section {
    background-color: var(--white);
}

.team-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-image {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    background-color: var(--light-gray);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h4 {
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
}

.team-card .role {
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 500;
}

/* ----- Services Section ----- */
.services-section {
    background-color: var(--light-gray);
}

.service-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--secondary-blue);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

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

.service-card p {
    color: var(--body-text);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card .learn-more {
    color: var(--primary-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-card .learn-more:hover {
    gap: 12px;
}

/* CRO Highlight Card */
.cro-card {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.cro-card h3,
.cro-card p {
    color: var(--white);
}

.cro-card .service-icon {
    background-color: rgba(255, 255, 255, 0.2);
}

.cro-card .service-icon i {
    color: var(--white);
}

/* ----- Portfolio Section ----- */
.portfolio-section {
    background-color: var(--white);
}

.portfolio-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background-color: var(--white);
    color: var(--body-text);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--white);
}

.portfolio-card {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.portfolio-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.portfolio-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.portfolio-content {
    padding: 24px;
}

.portfolio-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.portfolio-content p {
    font-size: 0.9rem;
    color: var(--body-text);
    margin-bottom: 1rem;
}

.portfolio-result {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.875rem;
}

.portfolio-result i {
    font-size: 1rem;
}

/* ----- Testimonials Section ----- */
.testimonials-section {
    background-color: var(--light-gray);
}

.testimonial-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: var(--body-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--light-gray);
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

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

/* ----- Contact Section ----- */
.contact-section {
    background-color: var(--white);
}

.contact-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: var(--white);
    padding: 100px 0 60px;
    text-align: center;
}

.contact-hero h1 {
    color: var(--white);
}

.contact-hero p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-wrapper {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-control {
    padding: 14px 18px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 110, 255, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.contact-info-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: var(--secondary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.contact-info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.whatsapp-card {
    background-color: #25D366;
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 24px;
}

.whatsapp-card h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 8px;
}

.whatsapp-card p {
    font-size: 0.9rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.whatsapp-btn {
    background-color: var(--white);
    color: #25D366;
    padding: 10px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.whatsapp-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: #25D366;
}

.map-container {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 200px;
    margin-top: 24px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ----- FAQ Section ----- */
.faq-section {
    background-color: var(--light-gray);
}

.accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important;
    margin-bottom: 16px;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--dark-text);
    padding: 20px 24px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--secondary-blue);
    color: var(--primary-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--border-color);
}

.accordion-body {
    padding: 20px 24px;
    color: var(--body-text);
}

/* ----- CTA Section ----- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* ----- Footer ----- */
.footer {
    background-color: #1a1a2e;
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 0;
}

.footer-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.footer-brand i {
    color: var(--primary-blue);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    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(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary-blue);
}

.footer h5 {
    color: var(--white);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 8px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 18px;
    border: none;
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--primary-blue);
    border: none;
    border-radius: var(--border-radius);
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
    margin-top: 40px;
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom a:hover {
    color: var(--white);
}

/* ----- Sticky CTA Button ----- */
.fixed-cta {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
}

.fixed-cta .btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    padding: 0;
}

.fixed-cta .btn i {
    font-size: 1.5rem;
}

/* Talk to Us Button */
.talk-btn {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 998;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.talk-btn:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ----- Page Headers ----- */
.page-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 100%);
    color: var(--white);
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* ----- Utility Classes ----- */
.text-primary {
    color: var(--primary-blue) !important;
}

.bg-light-blue {
    background-color: var(--secondary-blue);
}

.mb-6 {
    margin-bottom: 4rem;
}

/* ----- Animations ----- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ----- Responsive Styles ----- */
@media (max-width: 1199px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .hero-title {
        font-size: 3rem;
    }
    
    section {
        padding: 60px 0;
    }
}

@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--white);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 16px;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
    }
    
    .hero-section {
        padding: 80px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .cro-card {
        padding: 30px;
    }
    
    .contact-form-wrapper,
    .contact-info-card {
        padding: 24px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-header h1 {
        font-size: 2.25rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .talk-btn {
        bottom: 90px;
        right: 16px;
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .fixed-cta {
        bottom: 20px;
        right: 16px;
    }
}
