/* Mano Chandra Dhas Website - Shared Styles */
/* Consistent design system across all pages */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background-color: #fafafa;
    color: #2c3e50;
    margin: 0;
    padding: 0;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.2;
    color: #2c3e50;
}

h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eef2f6;
}

h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin: 1.5rem 0 1rem;
}

p {
    margin: 0 0 1rem;
    color: #45576a;
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin: 0.8rem 0;
    padding: 0.5rem 0;
    color: #45576a;
}

/* Links */
a {
    color: #3498db;
    text-decoration: none;
    transition: all 0.2s ease;
}

a:visited {
    color: #3498db;
}

a:hover {
    color: #2980b9;
    text-decoration: underline;
}

a:active {
    color: #2573a7;
}

/* Layout Components */
header {
    background-color: #ffffff;
    padding: 2rem 0 1.5rem;
    text-align: center;
    position: relative;
    z-index: 1001;
    border-bottom: none;
}

/* Navigation */
nav {
    background-color: #ffffff;
    padding: 0.7rem 0;
    border-bottom: 1px solid #eef2f6;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    width: 100%;
}

nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

nav a {
    color: #546e7a;
    padding: 0.7rem 1.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    border-radius: 4px;
    position: relative;
}

nav a:hover {
    background-color: #f5f8fa;
    color: #2c3e50;
}

nav.scrolled a {
    padding: 0.6rem 1.5rem;
}

nav a.active {
    color: #3498db;
    font-weight: 600;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 30%;
    right: 30%;
    height: 3px;
    background-color: #3498db;
    border-radius: 3px 3px 0 0;
    transition: all 0.3s ease;
}

nav.scrolled a.active::after {
    bottom: -2px;
    height: 2px;
}

nav a:hover::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 40%;
    right: 40%;
    height: 2px;
    background-color: #b7c9d3;
    border-radius: 3px 3px 0 0;
}

/* Contact Link - Prominent Styling */
nav a.contact-link {
    background-color: #3498db;
    color: #ffffff;
    font-weight: 600;
    margin-left: 1rem;
}

nav a.contact-link:hover {
    background-color: #2980b9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

nav a.contact-link::after {
    display: none;
}

/* When contact link is active (on contact page) */
nav a.contact-link.active {
    background-color: #2c3e50;
    color: #ffffff;
}

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 2rem 2rem;
    contain: content;
    content-visibility: auto;
}

section {
    background: #ffffff;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* Grids and Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.service-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    margin-bottom: 1rem;
    font-weight: 500;
    color: #3498db;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 0.3rem 0;
    color: #546e7a;
}

.service-card li:before {
    content: "•";
    color: #3498db;
    margin-right: 0.5rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.contact-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.contact-card i {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.contact-card p {
    color: #546e7a;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:visited {
    color: #3498db;
}

.contact-card a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Services Overview */
.services-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.service-overview-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    border-left: 4px solid #2c3e50;
}

.service-overview-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-overview-card ul {
    list-style: none;
    padding-left: 0;
}

.service-overview-card li {
    padding: 0.25rem 0;
    color: #546e7a;
    font-size: 0.9rem;
}

.service-overview-card li:before {
    content: "•";
    color: #2c3e50;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Dual Approach Layout */
.dual-approach {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.approach-card {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    border-left: 4px solid #3498db;
}

.approach-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.approach-card p {
    color: #546e7a;
    margin: 0;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.destination-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #eef2f6;
    transition: transform 0.3s ease;
}

.destination-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.destination-card h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.destination-card p {
    color: #3498db;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.destination-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.destination-card li {
    padding: 0.2rem 0;
    color: #546e7a;
    font-size: 0.9rem;
}

.destination-card li:before {
    content: "•";
    color: #3498db;
    margin-right: 0.5rem;
}

/* Countries Grid */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.country-item {
    background: #f8fafc;
    padding: 1rem 1.5rem;
    border-radius: 6px;
    border: 1px solid #eef2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.country-item:hover {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.country-item strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.95rem;
}

.country-item span {
    color: #3498db;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Stat Highlight */
.stat-highlight {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
}

.stat-highlight h3 {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #ffffff;
}

.stat-highlight p {
    font-size: 1.1rem;
    margin: 0;
    color: #ecf0f1;
    font-weight: 500;
}

/* Call to Action */
.cta-section {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
    border: 1px solid #eef2f6;
}

.cta-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #546e7a;
}

.cta-button {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.cta-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* Highlight Box */
.highlight-box {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border-left: 4px solid #3498db;
}

.highlight-box p {
    color: #2c3e50;
    font-style: italic;
    margin: 0;
}

/* Location Info */
.location-info {
    background: #f0f4f8;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    border: 1px solid #e3f2fd;
}

.location-info h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-info p {
    color: #546e7a;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    padding: 1rem 0;
    flex-wrap: wrap;
    content-visibility: auto;
    contain-intrinsic-size: 0 50px;
}

.social-links a {
    color: #546e7a;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    background-color: #f5f8fa;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-links a:hover, .social-links a:focus {
    color: #ffffff;
    background-color: #3498db;
    transform: translateY(-3px);
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-links a i {
    position: relative;
    z-index: 2;
    font-size: 1.4rem;
}

.social-links a:visited {
    color: #546e7a;
}

.social-links a:hover:visited, .social-links a:focus:visited {
    color: #ffffff;
}

/* Social platform specific colors */
.social-links a.linkedin:hover {
    background-color: #0077b5;
}

.social-links a.instagram:hover {
    background-color: #e1306c;
}

.social-links a.facebook:hover {
    background-color: #1877f2;
}

.social-links a.twitter:hover {
    background-color: #1da1f2;
}

/* Portrait Image Styles */
.intro-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.intro-text {
    flex: 1;
    min-width: 300px;
}

.intro-image {
    flex: 0 0 auto;
    text-align: center;
}

.intro-image img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.intro-image img:hover {
    transform: scale(1.02);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(20px);
    z-index: 990;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: #2980b9;
    transform: translateY(-3px);
}

/* Quotes/Testimonials */
.quote {
    padding: 1.5rem;
    border-left: 4px solid #3498db;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.quote p {
    margin: 0 0 0.5rem 0;
    font-style: italic;
    color: #2c3e50;
}

.quote-author {
    font-weight: 500;
    color: #3498db;
    font-style: normal;
}

.quote-title {
    font-size: 0.9rem;
    color: #546e7a;
    margin-top: 0.25rem;
}

/* Connect Section */
.websites {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.website-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.website-card:hover {
    transform: translateY(-5px);
}

.website-card h3 {
    margin: 0 0 0.5rem 0;
}

.website-card a {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 500;
    padding: 0.2rem 0;
    color: #3498db;
    text-decoration: none;
}

.website-card a:visited {
    color: #3498db;
}

.website-card a:hover, .website-card a:focus {
    color: #2980b9;
    text-decoration: underline;
}

/* Utility Classes */
.view-more {
    text-align: center;
    margin: 2rem 0;
}

.view-more a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.view-more a:hover, .view-more a:focus {
    background: #2980b9;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    text-decoration: none;
}

.view-more a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subsection {
    margin-bottom: 2rem;
}

.subsection h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-text {
    color: #3498db;
    font-weight: 600;
}

.last-updated {
    color: #66798a;
}

.link-context {
    color: #d3d3d3;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    color: #ffffff;
    margin: 0.5rem 0;
}

footer a {
    color: #ffffff;
    text-decoration: underline;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #e8f4f8;
    text-decoration: underline;
}

footer a:visited {
    color: #f0f8ff;
}

footer .link-context {
    color: #d3d3d3;
}

footer .last-updated {
    color: #b0c4de;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Accessibility improvements */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #3498db;
    color: white;
    padding: 8px;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: none;
}

:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav a {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        margin: 0 0.2rem;
    }

    nav a.contact-link {
        margin-left: 0.2rem;
    }

    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 1rem;
    }

    section {
        padding: 1.5rem;
    }

    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-overview {
        grid-template-columns: 1fr;
    }

    .cta-button {
        display: block;
        margin: 0.5rem 0;
    }

    .intro-container {
        flex-direction: column-reverse;
    }

    .intro-image {
        margin: 0 auto 1.5rem;
    }
}

@media (max-width: 480px) {
    nav a {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    header h1 {
        font-size: 1.8rem;
    }
}