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

:root {
    --primary-color: #ed1c24;
    --secondary-color: #0772ba;
    --primary-dark: #d01118;
    --secondary-dark: #065a94;
    --text-dark: #1a1a1a;
    --text-gray: #6b7280;
    --bg-light: #f8f9fa;
    --bg-section: #ffffff;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-section);
    margin: 0; /* Ensure no margin */
    padding: 0; /* Ensure no padding */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 20px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.logo {
    height: 60px;          /* ↑ from 45px */
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: transform 0.3s ease;
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-cta {
    font-size: 0.9rem !important;
    padding: 0.6rem 1.8rem !important;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(237, 28, 36, 0.2);
    border: none;
    text-decoration: none;
    border-radius: 8px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.3);
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    position: relative;
    z-index: 1001;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.03) 0%, rgba(7, 114, 186, 0.03) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    white-space: nowrap; /* Prevent line break */
}

.stat p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(237, 28, 36, 0.1), rgba(7, 114, 186, 0.1));
    pointer-events: none;
}

/* Client Stories */
.client-stories {
    padding: 60px 0;
    background: var(--bg-light);
}

.testimonials-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.client-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.testimonial-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.8;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    padding: 0 1rem; /* Add padding for mobile */
}

.section-lead {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    text-align: center;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: justify;
}

/* Unified Section Header Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.title-decoration span {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.title-decoration i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Remove duplicate styles and ensure consistency */
.about-header,
.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

/* Client Stories specific adjustments */
.client-stories .section-header {
    margin-bottom: 3rem;
}

/* Services specific adjustments */
.services .section-header {
    margin-bottom: 3rem;
}

.services .section-lead {
    margin-bottom: 0;
}

/* Publications specific adjustments */
.publications .section-header {
    margin-bottom: 3rem;
}

/* Contact specific adjustments */
.contact .section-header {
    margin-bottom: 4rem;
}

.contact .section-lead {
    margin-bottom: 0;
}

/* Remove old section-subtitle class */
.section-subtitle {
    /* Use section-lead instead */
    display: none;
}

/* Responsive adjustments for section headers */
@media (max-width: 768px) {
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-label {
        font-size: 0.8rem;
        padding-left: 30px;
    }
    
    .section-label::before {
        width: 20px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-lead {
        font-size: 1rem;
    }
    
    .title-decoration {
        margin: 1.5rem 0 2rem;
    }
    
    .title-decoration span {
        width: 40px;
    }
    
    .title-decoration i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .title-decoration {
        gap: 0.75rem;
    }
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafb 100%);
    position: relative;
    overflow: hidden;
}

.about-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(237, 28, 36, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(7, 114, 186, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(237, 28, 36, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.about-bg-pattern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-100px, -100px) rotate(360deg); }
}

.section-label {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.title-decoration span {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.title-decoration i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-main {
    display: block;
    margin-bottom: 4rem;
}

.about-text-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.info-block {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.info-block:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.info-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(237, 28, 36, 0.3);
}

.info-block p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-gray);
    margin: 0;
}

.achievements-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05), rgba(7, 114, 186, 0.05));
    border-radius: 20px;
    margin-top: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.achievement-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    text-align: center;
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.achievement-item i {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.achievement-item span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Enhanced Mission Vision Cards */
.mission-vision-premium {
    position: relative;
    margin-top: 5rem;
}

.mv-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.mission-card-premium,
.vision-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 400px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.mission-card-premium:hover,
.vision-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 100%);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mission-card-premium .card-bg {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05) 0%, rgba(237, 28, 36, 0.02) 100%);
}

.vision-card-premium .card-bg {
    background: linear-gradient(135deg, rgba(7, 114, 186, 0.05) 0%, rgba(7, 114, 186, 0.02) 100%);
}

.card-content {
    position: relative;
    padding: 3rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.mv-icon-premium {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.mv-icon-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0.1;
}

.mv-icon-premium i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.mission-card-premium h3,
.vision-card-premium h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.card-decoration {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.mission-card-premium:hover .card-decoration,
.vision-card-premium:hover .card-decoration {
    transform: scaleX(1);
}

.values-section {
    text-align: center;
    padding: 3.5rem;
    background: white;
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* Responsive Design for Premium About Section */
@media (max-width: 1024px) {
    .achievements-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 80px 0;
    }
    
    .info-block {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .info-icon {
        margin: 0 auto;
    }
    
    .achievements-strip {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .achievement-item {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
        text-align: left;
    }
    
    .achievement-item i {
        font-size: 2rem;
        margin-bottom: 0;
    }
    
    .mv-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .achievement-item {
        flex-direction: column;
        text-align: center;
    }
    
    .values-section {
        padding: 2rem 1.5rem;
    }
}

/* Enhanced Services Section */
.services {
    padding: 80px 0;
    background: var(--bg-light);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--white), transparent);
    pointer-events: none;
}

.services-grid {
    display: grid;
    gap: 2.5rem;
    margin-top: 3rem;
}

.service-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: grid;
    grid-template-columns: 320px 1fr;
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

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

.service-item:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-8px);
}

.service-item:nth-child(even) {
    grid-template-columns: 1fr 320px;
}

.service-item:nth-child(even) .service-image {
    order: 2;
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.9), rgba(7, 114, 186, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-overlay i {
    font-size: 3.5rem;
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

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

.service-item:hover .service-overlay i {
    transform: translateY(0);
}

.service-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.service-content::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 2.5rem;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

.service-content h3 {
    color: var(--text-dark);
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    font-weight: 600;
}

.service-content p {
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.service-link:hover::after {
    width: calc(100% - 25px);
}

.service-link:hover {
    gap: 1rem;
    color: var(--primary-dark);
}

/* Enhanced Publications Section */
.publications {
    padding: 80px 0;
    background: var(--white);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.publication-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}

.publication-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    transform: scaleY(0);
    transition: transform 0.4s ease;
    transform-origin: bottom;
}

.publication-card:hover::after {
    transform: scaleY(1);
}

.publication-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

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

.publication-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.publication-card:hover .publication-image::before {
    opacity: 1;
}

.publication-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.publication-card:hover .publication-image img {
    transform: scale(1.1);
}

.publication-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.publication-content h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
}

.publication-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex: 1;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: calc(100% - 25px);
}

.read-more:hover {
    gap: 1rem;
    color: var(--secondary-dark);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

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

.info-card i {
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-card div {
    flex: 1;
}

.info-card h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form button[type="submit"] {
    align-self: flex-start;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #2d3748 100%);
    color: var(--white);
    padding: 4rem 0 0;
    position: relative; /* Add position context */
    z-index: 10; /* Ensure footer is above other elements */
}

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

.footer-logo {
    height: 55px;          /* ↑ from 40px */
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer ul {
    list-style: none;
}

.footer li {
    margin-bottom: 0.8rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Simplified Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(237, 28, 36, 0.1);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease infinite;
}

/* Ensure multi-line modal titles are fully visible */
.modal-title {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;        /* new – keeps last line clear */
}

/* Extra space on mobile where clipping is most common */
@media (max-width: 768px) {
    .modal-title {
        padding-bottom: 10rem;  /* new – pushes content down slightly */
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.modal-title {
    font-size: 2rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.modal-body {
    padding: 3rem;
    overflow-y: auto;
    flex: 1;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
}

.modal-description::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.modal-features {
    margin-bottom: 2.5rem;
}

.modal-features h3 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-features h3::before {
    content: '✨';
    font-size: 1.2rem;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.features-list li {
    padding: 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--text-gray);
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.features-list li:hover {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05), rgba(7, 114, 186, 0.05));
    transform: translateX(5px);
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.modal-cta {
    background: linear-gradient(135deg, rgba(237, 28, 36, 0.05), rgba(7, 114, 186, 0.05));
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(237, 28, 36, 0.1);
}

/* Publication Modal Specific Styles */
.publication-modal-content {
    max-width: 1000px;
}

.publication-modal-header {
    overflow: hidden;
    position: relative;
}

.publication-modal-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--white), transparent);
}

.publication-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.publication-modal-content .modal-body {
    padding: 2rem 3rem 3rem;
}

.publication-modal-title {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.publication-date {
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.publication-full-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.publication-full-content h3 {
    margin: 2rem 0 1rem;
    color: var(--text-dark);
    font-size: 1.4rem;
}

.publication-full-content p {
    margin-bottom: 1.5rem;
}

.publication-full-content ul {
    margin: 1rem 0 1.5rem 2rem;
}

.publication-full-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.publication-tags {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-light);
    color: var(--text-gray);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    transform: translateY(-2px);
}

/* Cookie Notice - Enhanced Snackbar Style */
.cookie-notice {
    position: fixed;
    left: 50%;
    bottom: -100px;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 2001;
    min-width: 320px;
    max-width: calc(100vw - 2rem);
    transition: bottom 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-notice.show {
    bottom: 2rem;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
}

.cookie-notice p {
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
    padding-right: 0.5rem;
}

.cookie-notice .btn-sm {
    background: var(--white);
    color: var(--text-dark);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-notice .btn-sm:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-stats {
        justify-content: center;
    }

    .service-item,
    .service-item:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .service-item:nth-child(even) .service-image {
        order: 0;
    }
    
    .service-image {
        height: 220px;
    }
    
    .publications-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    /* Fix section titles on mobile */
    .section-title {
        font-size: 2rem;
        padding: 0 1.5rem;
        line-height: 1.3;
        word-wrap: break-word; /* Handle long words */
        text-align: center !important; /* Ensure centering */
    }
    
    .section-lead {
        font-size: 1rem;
        padding: 0 1.5rem;
        text-align: center !important; /* Ensure centering */
    }
    
    /* About section mobile fixes */
    .about {
        padding: 60px 0;
    }
    
    .about-header {
        padding: 0 1rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .about-card {
        margin: 0 auto;
        max-width: 500px;
        width: 100%;
        /* Ensure card maintains structure on mobile */
        min-height: auto;
        background-attachment: scroll; /* Fix for mobile scrolling */
    }
    
    /* Client stories mobile improvements */
    .client-stories {
        padding: 60px 0;
    }
    
    .client-stories .section-title {
        margin-bottom: 2rem;
    }
    
    /* Services section mobile improvements */
    .services .section-title,
    .services .section-lead {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Publications section mobile improvements */
    .publications .section-title {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Contact section mobile improvements */
    .contact-header {
        padding: 0 1rem;
    }
    
    .contact-header .section-title,
    .contact-header .section-subtitle {
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: var(--white);
        width: 280px;
        height: 100vh;
        padding: 5rem 0 2rem 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        margin: 0;
    }
    
    .nav-menu.active li {
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-menu.active li:nth-child(6) { transition-delay: 0.35s; }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        font-size: 1rem;
        color: var(--text-dark);
        border-bottom: 1px solid var(--bg-light);
        position: relative;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .nav-link:before {
        content: '';
        width: 6px;
        height: 6px;
        background: var(--primary-color);
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .nav-link:hover:before {
        opacity: 1;
    }
    
    .nav-link:hover {
        background: var(--bg-light);
        color: var(--primary-color);
        padding-left: 2.5rem;
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-cta {
        margin: 2rem 2rem 1rem 2rem !important;
        padding: 0.8rem 1.5rem !important;
        text-align: center !important;
        border-radius: 8px !important;
        font-size: 0.9rem !important;
        box-shadow: 0 4px 15px rgba(237, 28, 36, 0.2) !important;
        border: none !important;
        width: calc(100% - 4rem) !important;
    }
    
    .nav-cta:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 6px 20px rgba(237, 28, 36, 0.3) !important;
    }
    
    /* Enhanced hamburger animation */
    .nav-toggle span {
        transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .nav-menu.active ~ .nav-toggle span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
        background: var(--primary-color);
    }
    
    .nav-menu.active ~ .nav-toggle span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }
    
    .nav-menu.active ~ .nav-toggle span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
        background: var(--primary-color);
    }
}

@media (max-width: 480px) {
    .container { padding: 0 8px; }

    .logo        { height: 46px; }
    .footer-logo { height: 42px; }

    .hero-title    { font-size: 1.6rem; line-height: 1.25; }
    .hero-subtitle { font-size: 0.92rem; }

    /* single-column footer */
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer h4      { font-size: 0.9rem; margin-bottom: 0.8rem; }
    .footer a       { font-size: 0.9rem; }

    /* reduce white-space on small cards */
    .about-card,
    .info-card,
    .service-content,
    .publication-content { padding: 0.9rem; }

    .service-image { height: 160px; }

    /* smaller modal paddings */
    .modal-body { padding: 1rem; }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
    /* iOS only styles */
    .about-card {
        -webkit-transform: translate3d(0, 0, 0); /* Force hardware acceleration */
        transform: translate3d(0, 0, 0);
    }
    
    .modal {
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1500; /* Increase z-index to be above footer */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Add shadow for better visibility */
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Ensure HTML has proper height */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Footer - Enhanced Responsiveness */
@media (max-width: 968px) {
    .footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-logo {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 0;
    }
    
    .footer-content {
        gap: 2rem 1rem;
    }
    
    .footer h4 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .footer li {
        margin-bottom: 0.6rem;
    }
    
    .footer a {
        padding: 0.5rem 0;
        display: inline-block; /* Makes links more touch-friendly */
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-brand {
        grid-column: 1;
        text-align: center;
    }
    
    .footer-logo {
        height: 32px;
        margin: 0 auto 0.8rem;
    }
    
    .footer-links, 
    .footer-services, 
    .footer-contact {
        text-align: center;
    }
    
    .footer h4 {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
    
    .footer a {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        width: 100%;
    }
    
    .footer li {
        margin-bottom: 0.2rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
    
    .footer-bottom {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
    
    .footer a {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        width: 100%;
    }
    
    .footer li {
        margin-bottom: 0.2rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
        text-align: center;
    }
    
    .footer-logo {
        height: 32px;
        margin: 0 auto 0.8rem;
    }
    
    .footer-links, 
    .footer-services, 
    .footer-contact {
        text-align: center;
    }
    
    .footer h4 {
        font-size: 0.95rem;
    }
    
    .footer-bottom {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
    
    .footer a {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        width: 100%;
    }
    
    .footer li {
        margin-bottom: 0.2rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
    
    .footer-bottom {
        padding: 1.2rem 0;
        font-size: 0.85rem;
    }
    
    .footer a {
        font-size: 0.9rem;
        padding: 0.7rem 0;
        width: 100%;
    }
    
    .footer li {
        margin-bottom: 0.2rem;
    }
    
    .footer-brand p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}
