/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%),
                url('./hero-background.png');
    background-size: 100%;
    background-position: center center;
    background-blend-mode: overlay;
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    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;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="academic-workflow" patternUnits="userSpaceOnUse" width="400" height="200"><g opacity="0.15"><rect x="20" y="20" width="80" height="60" fill="none" stroke="%23ffffff" stroke-width="1.5" rx="5"/><text x="60" y="40" font-family="serif" font-size="8" fill="%23ffffff" text-anchor="middle">Research</text><text x="60" y="52" font-family="serif" font-size="8" fill="%23ffffff" text-anchor="middle">Paper</text><path d="M25,25 L95,25 M25,35 L85,35 M25,45 L90,45 M25,55 L80,55 M25,65 L88,65" stroke="%23ffffff" stroke-width="0.5" opacity="0.8"/><circle cx="115" cy="35" r="15" fill="none" stroke="%23ff6b6b" stroke-width="1.5"/><path d="M107,35 L123,35" stroke="%23ff6b6b" stroke-width="1"/><text x="115" y="60" font-family="sans-serif" font-size="7" fill="%23ff6b6b" text-anchor="middle">Proofread</text><rect x="150" y="20" width="80" height="60" fill="none" stroke="%2351c878" stroke-width="1.5" rx="5"/><text x="190" y="40" font-family="serif" font-size="8" fill="%2351c878" text-anchor="middle">Published</text><text x="190" y="52" font-family="serif" font-size="8" fill="%2351c878" text-anchor="middle">Article</text><circle cx="190" cy="65" r="3" fill="%2351c878"/><path d="M110,50 Q125,60 140,50" stroke="%23ffffff" stroke-width="1" fill="none" opacity="0.6"/><path d="M240,50 Q255,60 270,50" stroke="%23ffffff" stroke-width="1" fill="none" opacity="0.6"/></g></pattern><pattern id="paper-texture" patternUnits="userSpaceOnUse" width="1200" height="30"><line x1="100" y1="25" x2="1100" y2="25" stroke="%23ffffff" stroke-width="0.3" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23paper-texture)"/><rect width="100%" height="100%" fill="url(%23academic-workflow)"/></svg>');
    background-size: cover;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.2) 0%, rgba(52, 73, 94, 0.15) 100%);
    z-index: 2;
}







.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.hero-tagline {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #f8f9fa;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: #667eea;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #3498db;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
    color: #555;
    line-height: 1.8;
}

/* Services Section */
.services {
    padding: 80px 0;
    background-color: #ffffff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.learn-more {
    color: #3498db;
    font-weight: 600;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .learn-more {
    opacity: 1;
}

/* Service-specific backgrounds */
.service-card[data-service="manuscript-preparation"] {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="manuscript-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><path d="M2,2 L18,2 M2,6 L18,6 M2,10 L15,10 M2,14 L17,14" stroke="%2339b463" stroke-width="0.5" opacity="0.3" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23manuscript-pattern)"/></svg>');
    background-size: cover, 20px 20px;
}

.service-card[data-service="journal-submissions"] {
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1) 0%, rgba(41, 128, 185, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="journal-pattern" patternUnits="userSpaceOnUse" width="25" height="25"><rect x="3" y="3" width="19" height="15" fill="none" stroke="%233498db" stroke-width="0.8" opacity="0.2"/><circle cx="8" cy="8" r="1" fill="%233498db" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23journal-pattern)"/></svg>');
    background-size: cover, 25px 25px;
}

.service-card[data-service="academic-editing"] {
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.1) 0%, rgba(142, 68, 173, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="editing-pattern" patternUnits="userSpaceOnUse" width="30" height="30"><path d="M5,5 Q15,10 25,5" stroke="%239b59b6" stroke-width="1" opacity="0.2" fill="none"/><circle cx="10" cy="15" r="2" fill="%239b59b6" opacity="0.15"/><path d="M8,20 L22,20" stroke="%239b59b6" stroke-width="0.5" opacity="0.25"/></pattern></defs><rect width="100%" height="100%" fill="url(%23editing-pattern)"/></svg>');
    background-size: cover, 30px 30px;
}

.service-card[data-service="peer-review-support"] {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(211, 84, 0, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="review-pattern" patternUnits="userSpaceOnUse" width="35" height="35"><circle cx="10" cy="10" r="6" fill="none" stroke="%23e67e22" stroke-width="1" opacity="0.2"/><path d="M7,10 L13,10 M10,7 L10,13" stroke="%23e67e22" stroke-width="0.8" opacity="0.3"/><rect x="18" y="18" width="8" height="8" fill="none" stroke="%23e67e22" stroke-width="0.5" opacity="0.15"/></pattern></defs><rect width="100%" height="100%" fill="url(%23review-pattern)"/></svg>');
    background-size: cover, 35px 35px;
}

.service-card[data-service="scientific-illustrations"] {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="illustration-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><polygon points="8,8 12,16 20,16 14,22 16,30 8,26 0,30 2,22 -4,16 4,16" fill="%23e74c3c" opacity="0.15"/><circle cx="25" cy="25" r="3" fill="none" stroke="%23e74c3c" stroke-width="0.8" opacity="0.2"/><path d="M30,10 Q35,15 30,20" stroke="%23e74c3c" stroke-width="1" opacity="0.2" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23illustration-pattern)"/></svg>');
    background-size: cover, 40px 40px;
}

.service-card[data-service="grant-proposal-assistance"] {
    background: linear-gradient(135deg, rgba(241, 196, 15, 0.1) 0%, rgba(243, 156, 18, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grant-pattern" patternUnits="userSpaceOnUse" width="32" height="32"><rect x="4" y="8" width="12" height="8" fill="none" stroke="%23f1c40f" stroke-width="1" opacity="0.2"/><circle cx="10" cy="20" r="1.5" fill="%23f39c12" opacity="0.3"/><path d="M18,4 L22,8 L18,12" stroke="%23f39c12" stroke-width="0.8" opacity="0.25" fill="none"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grant-pattern)"/></svg>');
    background-size: cover, 32px 32px;
}

.service-card[data-service="data-visualization"] {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.1) 0%, rgba(22, 160, 133, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="data-pattern" patternUnits="userSpaceOnUse" width="28" height="28"><rect x="2" y="10" width="4" height="8" fill="%231abc9c" opacity="0.2"/><rect x="8" y="6" width="4" height="12" fill="%231abc9c" opacity="0.25"/><rect x="14" y="12" width="4" height="6" fill="%231abc9c" opacity="0.2"/><rect x="20" y="4" width="4" height="14" fill="%231abc9c" opacity="0.3"/><circle cx="12" cy="22" r="1" fill="%2316a085" opacity="0.4"/></pattern></defs><rect width="100%" height="100%" fill="url(%23data-pattern)"/></svg>');
    background-size: cover, 28px 28px;
}

.service-card[data-service="plagiarism-checking"] {
    background: linear-gradient(135deg, rgba(71, 71, 71, 0.1) 0%, rgba(44, 62, 80, 0.05) 100%),
                url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="plagiarism-pattern" patternUnits="userSpaceOnUse" width="26" height="26"><path d="M8,8 L18,8 L18,18 L8,18 Z" fill="none" stroke="%23474747" stroke-width="0.8" opacity="0.2"/><circle cx="13" cy="13" r="2" fill="none" stroke="%232c3e50" stroke-width="0.6" opacity="0.3"/><path d="M10,20 L16,20" stroke="%23474747" stroke-width="0.5" opacity="0.25"/><circle cx="6" cy="6" r="1" fill="%232c3e50" opacity="0.2"/></pattern></defs><rect width="100%" height="100%" fill="url(%23plagiarism-pattern)"/></svg>');
    background-size: cover, 26px 26px;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 40px;
    height: 40px;
    color: white;
    stroke-width: 2;
}

.service-card:hover .service-icon {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.85) 100%),
                url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h6 {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.contact-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.contact-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.7);
}

/* Service Pages Styles */
.service-hero {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.85) 0%, rgba(52, 73, 94, 0.85) 100%),
                url('https://images.unsplash.com/photo-1559757148-5c350d0d3c56?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center center;
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.service-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.service-icon-large {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.service-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    line-height: 1.6;
}

.service-details {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.service-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.service-description h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.service-description h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 2.5rem 0 1rem 0;
}

.service-description h4 {
    font-size: 1.3rem;
    color: #34495e;
    margin-bottom: 0.5rem;
}

.service-description p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.service-features li:last-child {
    border-bottom: none;
}

.process-steps {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.step-number {
    background-color: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.benefits, .expertise-areas, .quality-standards, .success-factors {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.benefit, .expertise, .standard, .factor {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.editing-levels, .illustration-types, .funding-sources, .visualization-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.editing-level, .illustration-type, .funding-category, .viz-category {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.timeline {
    margin-top: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    background-color: #e74c3c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    white-space: nowrap;
    min-width: 80px;
    text-align: center;
}

.service-sidebar {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-box {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%),
                url('https://images.unsplash.com/photo-1554475901-4538ddfbccc2?ixlib=rb-4.0.3&auto=format&fit=crop&w=400&q=80');
    background-size: cover;
    background-position: center center;
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.cta-box h3 {
    margin-bottom: 1rem;
    color: white;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.related-services, .turnaround-times, .deliverables, .success-stats {
    margin-bottom: 2rem;
}

.related-services h3, .turnaround-times h3, .deliverables h3, .success-stats h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.related-services ul, .turnaround-times ul, .deliverables ul {
    list-style: none;
    padding: 0;
}

.related-services li, .turnaround-times li, .deliverables li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.related-services a {
    color: #3498db;
    text-decoration: none;
}

.related-services a:hover {
    text-decoration: underline;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.stat .number {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.stat .label {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Logo link styling */
.logo-text {
    text-decoration: none;
    color: inherit;
}

.logo-text:hover {
    color: #3498db;
}



/* 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.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #ffffff;
    margin: 3% auto;
    border-radius: 15px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9) 0%, rgba(52, 73, 94, 0.9) 100%),
                url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center center;
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 15px 15px 0 0;
    position: relative;
}

.modal-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.modal-icon svg {
    width: 50px;
    height: 50px;
    color: white;
    stroke-width: 2;
}

.modal-header h2 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 1.5rem 2rem;
    line-height: 1.5;
    color: #333;
    flex: 1;
    overflow-y: auto;
}

.modal-body h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 1rem 0 0.5rem 0;
}

.modal-body h4 {
    color: #34495e;
    font-size: 1rem;
    margin: 0 0 0.3rem 0;
}

.modal-body p {
    margin-bottom: 0.8rem;
    color: #555;
    font-size: 0.95rem;
}

.modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.modal-body li {
    margin-bottom: 0.5rem;
    color: #555;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.feature-item {
    background-color: #f8f9fa;
    padding: 0.8rem;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.feature-item h4 {
    margin: 0 0 0.3rem 0;
    color: #2c3e50;
    font-size: 0.9rem;
}

.feature-item p {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.3;
}

.modal-footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background-color: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.modal-cta {
    display: inline-block;
    padding: 12px 30px;
    background-color: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-cta:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-tagline {
        font-size: 1.4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .about,
    .services,
    .contact {
        padding: 60px 0;
    }

    /* Service pages responsive */
    .service-hero {
        padding: 100px 0 40px;
    }

    .service-hero h1 {
        font-size: 2rem;
    }

    .service-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-sidebar {
        position: static;
        margin-top: 2rem;
    }

    .editing-levels, .illustration-types, .funding-sources, .visualization-types {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-marker {
        margin-bottom: 0.5rem;
    }

    /* Modal responsive */
    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 80vh;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-body p {
        font-size: 0.9rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .feature-item {
        padding: 0.6rem;
    }

    .close {
        right: 10px;
        top: 10px;
        font-size: 1.3rem;
        width: 30px;
        height: 30px;
    }
}