:root {
    --navy: #1e3a8a;
    --professional-blue: #3b82f6;
    --gold: #f59e0b;
    --warm-gray: #6b7280;
    --light-gray: #f8fafc;
    --white: #ffffff;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
}

/* General text justification for content sections - Updated for proper display */
.section p {
    text-align: justify !important;
}

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

/* Modal Styles */
.modal {
    display: block;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 25px;
    border-radius: 15px;
    width: 90%;
    max-width: 550px;
    box-shadow: var(--shadow);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-logo {
    text-align: center;
    margin-bottom: 15px;
}

.modal-logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.modal h2 {
    color: var(--navy);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.modal p {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.4;
}

.modal ol {
    margin: 15px 0;
    padding-left: 18px;
}

.modal li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.3;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    flex: 1;
}

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

.btn-primary:hover {
    background-color: #1e40af;
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}

.btn-secondary:hover {
    background-color: var(--navy);
    color: white;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--navy);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--professional-blue) 100%);
    color: white;
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.1"><polygon points="36 34 24 34 30 24"/><polygon points="36 34 30 24 30 14"/></g></g></svg>');
    background-size: 60px 60px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--gold);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    background: var(--gold);
    color: var(--navy);
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-icon i {
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--warm-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

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

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify !important;
}

.countries {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

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

.flag {
    width: 50px;
    height: 35px;
    border-radius: 5px;
    margin-bottom: 8px;
}

/* India Flag - Saffron, White, Green with blue chakra */
.flag.india { 
    background: linear-gradient(to bottom, #ff9933 33%, #ffffff 33%, #ffffff 66%, #128807 66%);
    position: relative;
}
.flag.india::after {
    content: '⚙';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000080;
    font-size: 12px;
    font-weight: bold;
}

/* Sri Lanka Flag - Golden lion on maroon with stripes */
.flag.sri-lanka { 
    background: linear-gradient(to right, #228b22 15%, #ff8c00 15%, #ff8c00 30%, #8b0000 30%);
    position: relative;
}
.flag.sri-lanka::after {
    content: '🦁';
    position: absolute;
    top: 50%;
    right: 25%;
    transform: translate(50%, -50%);
    font-size: 14px;
}

/* Nepal Flag - Distinctive double triangle with blue and red */
.flag.nepal { 
    background: linear-gradient(135deg, #003893 0%, #dc143c 50%, #dc143c 100%);
    position: relative;
    clip-path: polygon(0 0, 80% 0, 50% 40%, 80% 40%, 80% 100%, 0 70%);
}
.flag.nepal::after {
    content: '☾☀';
    position: absolute;
    top: 30%;
    left: 20%;
    color: white;
    font-size: 8px;
}

/* Bangladesh Flag - Red circle on green background */
.flag.bangladesh { 
    background: #006a4e;
    position: relative;
}
.flag.bangladesh::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 45%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #dc143c;
}

.experience-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    margin-top: -50px;
    z-index: 10;
}

.experience-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--navy);
}

/* Practice Areas Grid */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.practice-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.practice-icon {
    background: var(--navy);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
}

.practice-card h3 {
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.practice-card p {
    text-align: justify !important;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.team-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.team-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center top;
}

.team-info {
    padding: 20px;
}

.team-info h3 {
    color: var(--navy);
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.team-info p {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

/* Events Grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

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

.event-header {
    height: 150px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--professional-blue) 100%);
}

.event-content {
    padding: 25px;
}

.event-content h3 {
    color: var(--navy);
    margin-bottom: 15px;
}

.event-content p {
    text-align: justify !important;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--warm-gray);
}

.event-detail i {
    color: var(--gold);
    width: 16px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-card {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contact-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-icon {
    background: var(--navy);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Contact info styling - inline labels and values */
.contact-info {
    line-height: 2;
}

.contact-info h4 {
    color: var(--navy);
    font-weight: 600;
    display: inline;
    margin-right: 8px;
    margin-bottom: 0;
}

.contact-info h4 i {
    margin-right: 8px;
    color: var(--gold);
    width: 16px;
    text-align: center;
}

.contact-info p, 
.contact-info a {
    color: var(--warm-gray);
    text-decoration: none;
    display: inline;
    margin-bottom: 0;
}

.contact-info a:hover {
    color: var(--navy);
}

/* Create line breaks between different contact items */

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        gap: 40px;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .about-content {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 15px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
    
    .countries {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .practice-grid,
    .team-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
}

.hidden {
    display: none !important;
}