/* 
    Thesis Consultants - Global Styles (Light Theme)
    Vibe: Clean, Professional, Blended with Logo
*/

:root {
    --primary-bg: #FFFFFF;
    --secondary-bg: #F8FAFC;
    --accent-color: #0A192F; /* Deep Navy from logo */
    --accent-light: #1E3A8A;
    --text-main: #0F172A;
    --text-muted: #475569;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --section-padding: 80px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Content Protection */
html, body {
    overflow-x: hidden;
    width: 100%;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form inputs and textareas for usability */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--white);
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.15);
}

/* Navigation */
nav {
    height: 100px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: var(--primary-bg);
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    height: 80px; 
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    height: 70px; 
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.1;
    white-space: nowrap;
}

.brand-tagline {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
}

nav.scrolled .logo img {
    height: 55px;
}

nav.scrolled .brand-name {
    font-size: 1.4rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-directions {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-directions:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 25, 47, 0.15);
}

.nav-links {
    display: flex;
    gap: 25px;
    flex-wrap: nowrap;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.menu-toggle span {
    width: 28px;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Sections */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.section-title span {
    color: var(--accent-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%), 
                url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    padding-top: 160px; /* Increased from 120px to account for the 140px navbar */
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.vision-statement {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-main);
    padding: 20px;
    background: var(--secondary-bg);
    border-left: 4px solid var(--accent-color);
    margin-bottom: 40px;
}

/* USP Section */
.usps {
    background-color: var(--white);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.usp-card {
    background: var(--primary-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.usp-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.usp-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 24px;
}

.usp-card h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.usp-card p {
    color: var(--text-muted);
}

/* Services */
.services {
    background-color: var(--secondary-bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--white);
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.card-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.service-card ul li {
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    display: flex;
    gap: 10px;
}

.service-card ul li::before {
    content: '•';
    color: var(--accent-color);
    font-weight: bold;
}

/* Trust Counters */
.trust {
    background-color: var(--accent-color);
    color: var(--white);
}

.trust .section-title {
    color: var(--white);
}

.trust .section-title::after {
    background: var(--white);
}

.counter-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.counter-item {
    text-align: center;
}

.counter-item .count {
    font-size: 3.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.contact-info p {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
}

.contact-info i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1);
}

/* Footer */
footer {
    background: var(--secondary-bg);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--secondary-bg) 0%, #FFFFFF 100%);
    padding: 200px 0 100px; /* Space for the bigger navbar */
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Detailed Sections */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.25rem;
    margin-bottom: 24px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    border: 1px solid var(--border-color);
}

.stat-card h3 {
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    font-weight: 600;
    margin-top: 15px;
    font-size: 0.95rem;
}

.btn-link:hover {
    gap: 12px;
    color: var(--accent-light);
}

/* Responsive Improvements */
@media (max-width: 1100px) {
    .nav-links { gap: 15px; }
    .nav-links a { font-size: 0.85rem; }
    .nav-right { gap: 15px; }
}

@media (max-width: 992px) {
    .brand-tagline { display: none; }
    .nav-links { gap: 10px; }
    .hero-content h1 { font-size: 3.25rem; }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 850px) {
    .nav-links { 
        display: flex;
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--white);
        width: 80%;
        max-width: 300px;
        height: 100vh;
        padding: 100px 30px 40px;
        transition: 0.4s ease-in-out;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 5px;
    }

    .nav-links a {
        font-size: 1.05rem;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .menu-toggle { display: flex; }
    .nav-right { gap: 10px; }
    
    .btn-directions {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 850px) {
    nav { height: 80px; }
    .section-title { font-size: 2.25rem; }
    .hero-content h1 { font-size: 2.75rem; }
}

@media (max-width: 480px) {
    .brand-name { font-size: 1.1rem; }
    .logo img { height: 45px; }
    .logo a { gap: 8px; }
    .btn-directions span { display: none; } /* Show only icon on very small screens */
    .btn-directions { padding: 8px 12px; }
    .nav-links { width: 100%; }
    .nav-right { gap: 8px; }
    nav .container { padding: 0 12px; }
}

@media (max-width: 360px) {
    .brand-name { font-size: 1rem; }
    .logo img { height: 40px; }
    .nav-right { gap: 5px; }
}

/* Navigation Dropdowns */
.nav-links li {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 8px;
    border-top: 4px solid var(--accent-color);
    padding: 12px 0;
    z-index: 1100;
    pointer-events: none;
}

.nav-links li:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown li {
    width: 100%;
}

.nav-dropdown a {
    padding: 10px 20px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-color);
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    background: var(--secondary-bg);
    color: var(--accent-color);
    padding-left: 25px;
}

/* FAQ Accordion */
.faq-section {
    background: var(--secondary-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px 25px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--secondary-bg);
}

.faq-question i {
    transition: var(--transition);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px;
    max-height: 500px;
}

/* Process Steps */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    font-size: 1.2rem;
}

.step-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Lead Form Section */

/* Service Banner */
.service-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--white);
    padding: 40px;
    border-radius: 10px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.service-banner h3 {
    color: var(--white);
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.service-banner p {
    color: rgba(255,255,255,0.8);
}

/* WhatsApp Floating Icon Update */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: #FFF !important;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    color: #FFF !important;
}

@media (max-width: 850px) {
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
        padding-left: 20px;
    }
    
    .nav-links li.active .nav-dropdown {
        display: block;
    }
    
    .sticky-cta {
        display: none;
    }
}

/* Research Marquee Section */
.research-marquee-section {
    background: var(--accent-color);
    padding: 60px 0;
    overflow: hidden;
}

.marquee-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.marquee-header h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.marquee-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.notice-badge {
    display: inline-block;
    padding: 6px 15px;
    background: #ff4757;
    color: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.marquee-container {
    height: 350px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    overflow: hidden;
    position: relative;
}

.marquee-container::before,
.marquee-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 50px;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    top: 0;
    background: linear-gradient(to bottom, var(--accent-color) 0%, transparent 100%);
}

.marquee-container::after {
    bottom: 0;
    background: linear-gradient(to top, var(--accent-color) 0%, transparent 100%);
}

.marquee-content {
    display: flex;
    flex-direction: column;
    animation: verticalMarquee 60s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes verticalMarquee {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.marquee-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.marquee-list span {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.marquee-list span:hover {
    background: rgba(255, 255, 255, 0.15);
    border-left-color: #ff4757;
    transform: translateX(5px);
}

/* Research Expert Floating Widget */
.research-widget {
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 280px;
    background: var(--white);
    border-left: 5px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: widgetSlideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition: var(--transition);
}

@keyframes widgetSlideUp {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.research-widget p {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.4;
    font-weight: 500;
}

.btn-widget {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-widget:hover {
    background-color: var(--accent-light);
    transform: translateY(-2px);
}

.widget-close {
    position: absolute;
    top: 5px;
    right: 8px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.widget-close:hover {
    color: var(--accent-color);
}

@media (max-width: 850px) {
    .research-widget {
        width: calc(100% - 80px);
        right: 40px;
        bottom: 110px;
    }
}
