/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #ffffff;
}

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

/* Typography - Further reduced font sizes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.75rem;
    color: #1e3a8a;
}

h2 {
    font-size: 1.25rem;
    color: #1e3a8a;
}

h3 {
    font-size: 1.1rem;
    color: #1e3a8a;
}

p {
    margin-bottom: 1rem;
    color: #4b5563;
    font-size: 0.85rem;
}

/* Header */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo img {
    height: 35px;
    width: auto;
    transition: transform 0.3s ease;
}

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

/* Navigation */
nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-links a:hover,
.nav-links a.active {
    color: #1e3a8a;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #4b5563;
    transition: 0.3s;
    position: absolute;
    left: 2.5px;
}

.bar:nth-child(1) {
    top: 8px;
}

.bar:nth-child(2) {
    top: 13.5px;
}

.bar:nth-child(3) {
    top: 19px;
}

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

.primary-btn {
    background-color: #1e3a8a;
    color: #ffffff;
}

.primary-btn:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: transparent;
    color: #1e3a8a;
    border: 2px solid #1e3a8a;
}

.secondary-btn:hover {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* Hero Section - Smaller text */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e3a8a;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    opacity: 0.95;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-logo {
    margin-bottom: 2rem;
}

.hero-logo img {
    max-width: 300px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.hero-logo img:hover {
    transform: scale(1.02);
}

.hero h1 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero p {
    color: #e5e7eb;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Sections */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

/* Services Section - Enhanced with Interactive Elements */
.services {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
    position: relative;
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a8a;
    font-size: 1.25rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.service-card i {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: block;
}

.service-card:hover i {
    transform: scale(1.1) rotate(3deg);
}

.service-card h3 {
    color: #1e3a8a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: #3b82f6;
}

.service-card p {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* Large screens - 1x4 layout */
@media (min-width: 1200px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        max-width: clamp(800px, 90vw, 1200px);
    }
    
    .service-card {
        padding: 1.8rem 1rem;
    }
    
    .service-card i {
        font-size: 2.2rem;
    }
    
    .service-card h3 {
        font-size: 0.95rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
}

/* Medium screens - 2x2 layout */
@media (max-width: 1199px) and (min-width: 769px) {
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        max-width: clamp(600px, 80vw, 800px);
    }
}

/* Tablet - 2x2 layout */
@media (max-width: 768px) {
    .services {
        padding: 60px 0;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: clamp(500px, 85vw, 600px);
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .service-card i {
        font-size: 2rem;
    }
    
    .service-card h3 {
        font-size: 0.9rem;
    }
    
    .service-card p {
        font-size: 0.8rem;
    }
}

/* Mobile - 1x4 layout */
@media (max-width: 480px) {
    .services {
        padding: 40px 0;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: clamp(300px, 90vw, 350px);
    }
    
    .service-card {
        padding: 1.2rem 1rem;
    }
    
    .service-card i {
        font-size: 1.8rem;
    }
    
    .service-card h3 {
        font-size: 0.85rem;
    }
    
    .service-card p {
        font-size: 0.75rem;
    }
}

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

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Projects */
.projects {
    background-color: #ffffff;
    padding: 60px 0;
}

.projects h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

/* Mosaic Projects Section - True Mosaic Layout */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 8px;
    gap: 0.4rem;
    margin-top: 2.5rem;
}

.mosaic-item {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s, transform 0.3s;
    box-shadow: 0 2px 10px rgba(30,58,138,0.08);
    background: #fff;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.mosaic-item:hover {
    box-shadow: 0 8px 32px rgba(30,58,138,0.16);
    transform: translateY(-4px) scale(1.01);
}

.mosaic-item:hover img {
    transform: scale(1.03);
}

.mosaic-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30,58,138,0.7);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    transition: opacity 0.35s cubic-bezier(.4,2,.6,1), transform 0.35s cubic-bezier(.4,2,.6,1);
    transform: translateY(16px);
    pointer-events: none;
    border-radius: 14px;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mosaic-content {
    color: #fff;
    padding: 0.8rem 0.9rem 0.7rem 0.9rem;
    text-align: left;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s 0.1s, transform 0.3s 0.1s;
}

.mosaic-item:hover .mosaic-content {
    opacity: 1;
    transform: translateY(0);
}

.mosaic-content h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.mosaic-content p {
    font-size: 0.75rem;
    color: #e0e7ef;
    margin-bottom: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Mosaic Sizing: Use grid-row-end for height control */
.mosaic-item.large {
    grid-row-end: span 40;
    grid-column-end: span 2;
}
.mosaic-item.medium {
    grid-row-end: span 26;
    grid-column-end: span 1;
}
.mosaic-item.small {
    grid-row-end: span 18;
    grid-column-end: span 1;
}

/* Responsive: 2 columns on tablet */
@media (max-width: 900px) {
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    .mosaic-item.large {
        grid-row-end: span 36;
        grid-column-end: span 2;
    }
    .mosaic-item.medium {
        grid-row-end: span 22;
    }
    .mosaic-item.small {
        grid-row-end: span 14;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 600px) {
    .mosaic-grid {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }
    .mosaic-item,
    .mosaic-item.large,
    .mosaic-item.medium,
    .mosaic-item.small {
        grid-column-end: span 1;
        grid-row-end: span 18;
    }
    .mosaic-content {
        padding: 0.7rem 0.7rem 0.5rem 0.7rem;
    }
    .mosaic-content h3 {
        font-size: 0.92rem;
    }
    .mosaic-content p {
        font-size: 0.68rem;
    }
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
    margin-top: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    position: relative;
}

.masonry-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 58, 138, 0.9));
    color: #ffffff;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.masonry-overlay h3 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.masonry-overlay p {
    color: #e5e7eb;
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 1.5rem;
    }

    .masonry-item {
        margin-bottom: 1.5rem;
    }

    .masonry-overlay {
        padding: 1.25rem;
    }

    .masonry-overlay h3 {
        font-size: 0.85rem;
    }

    .masonry-overlay p {
        font-size: 0.7rem;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .projects {
        padding: 40px 0;
    }

    .masonry-grid {
        column-count: 1;
        column-gap: 1rem;
    }

    .masonry-item {
        margin-bottom: 1rem;
    }

    .masonry-overlay {
        padding: 1rem;
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(30, 58, 138, 0.95));
    }

    .masonry-overlay h3 {
        font-size: 0.8rem;
    }

    .masonry-overlay p {
        font-size: 0.65rem;
    }
}

/* Ensure proper spacing for varying image heights */
.masonry-item:nth-child(odd) img {
    min-height: 250px;
}

.masonry-item:nth-child(even) img {
    min-height: 300px;
}

.masonry-item:nth-child(3n) img {
    min-height: 280px;
}

.masonry-item:nth-child(3n+1) img {
    min-height: 320px;
}

.masonry-item:nth-child(3n+2) img {
    min-height: 260px;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background-color: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #4b5563;
    font-size: 0.75rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 6px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.75rem;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.contact-form .btn {
    padding: 6px 12px;
    font-size: 0.75rem;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-item i {
    font-size: 1.1rem;
    color: #1e3a8a;
    width: 20px;
}

.info-item p {
    font-size: 0.75rem;
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #1e3a8a;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
}

/* Footer - Updated colors */
footer {
    background-color: #1e3a8a;
    color: #e5e7eb;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-logo p {
    color: #cbd5e1;
    font-size: 0.75rem;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
    padding: 0;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.75rem;
    display: block;
    padding: 0.2rem 0;
    position: relative;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-contact p {
    color: #cbd5e1;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    margin-right: 0.5rem;
    color: #60a5fa;
}

/* Footer bottom - Updated text with specific targeting */
.footer-bottom {
    border-top: 1px solid #3b82f6;
    padding-top: 1rem;
    text-align: center;
    color: #cbd5e1;
    font-size: 0.7rem;
    line-height: 1.5;
}

.footer-bottom p {
    margin-bottom: 0.25rem;
    color: #cbd5e1;
}

.footer-bottom a {
    color: #60a5fa;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #93c5fd;
}

/* Team page specific styles */
.team-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e3a8a;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    opacity: 0.95;
    z-index: 1;
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero h1 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.team-hero p {
    color: #e5e7eb;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

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

.team-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.join-us {
    background-color: #f8fafc;
    text-align: center;
}

.join-content {
    max-width: 800px;
    margin: 0 auto;
}

.join-content h2 {
    margin-bottom: 2rem;
}

.join-content p {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.join-cta {
    margin: 2rem 0;
}

.join-cta .btn {
    font-size: 0.85rem;
    padding: 10px 20px;
}

.join-cta i {
    margin-right: 0.5rem;
}

.join-note {
    font-style: italic;
    color: #6b7280;
    font-size: 0.75rem;
}

/* Mobile Responsiveness - Even smaller on mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    /* Mobile Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

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

    .nav-links li {
        margin: 0.5rem 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile Grid Adjustments */
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .team-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Mobile Spacing */
    section {
        padding: 60px 0;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .team-hero {
        padding: 100px 0 60px;
    }

    .hero h1,
    .team-hero h1 {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }

    .hero p,
    .team-hero p {
        font-size: 0.8rem;
        padding: 0 1rem;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .logo img {
        height: 28px;
    }

    .hero-logo img {
        max-width: 200px;
    }

    .portfolio-overlay h3 {
        font-size: 0.85rem;
    }

    .portfolio-overlay p {
        font-size: 0.7rem;
    }

    .lightbox-info h3 {
        font-size: 1rem;
    }

    .lightbox-info p {
        font-size: 0.75rem;
    }

    .footer-links {
        text-align: center;
    }
    
    .footer-links ul {
        display: inline-block;
        text-align: left;
        min-width: 120px;
    }
    
    .footer-links li {
        margin-bottom: 0.3rem;
        text-align: left;
    }
    
    .footer-links a {
        padding: 0.15rem 0;
        text-align: left;
    }
}

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

    h1 {
        font-size: 1.1rem;
    }

    .hero h1,
    .team-hero h1 {
        font-size: 1.1rem;
    }

    .hero p,
    .team-hero p {
        font-size: 0.75rem;
    }

    .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .logo img {
        height: 25px;
    }

    .hero-logo img {
        max-width: 150px;
    }

    .portfolio-overlay h3 {
        font-size: 0.8rem;
    }

    .portfolio-overlay p {
        font-size: 0.65rem;
    }

    .lightbox-info h3 {
        font-size: 0.9rem;
    }

    .lightbox-info p {
        font-size: 0.7rem;
    }

    .footer-links ul {
        min-width: 100px;
    }
    
    .footer-links li {
        margin-bottom: 0.25rem;
    }
    
    .footer-links a {
        font-size: 0.7rem;
        padding: 0.1rem 0;
    }
}

/* More precise X animation */
.mobile-menu-toggle .bar.active:nth-child(1) {
    transform: rotate(45deg);
    top: 13.5px;
}

.mobile-menu-toggle .bar.active:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle .bar.active:nth-child(3) {
    transform: rotate(-45deg);
    top: 13.5px;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.portfolio-card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(30, 58, 138, 0.9));
    color: #ffffff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    transform: translateY(0);
}

.portfolio-overlay h3 {
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.portfolio-overlay p {
    color: #e5e7eb;
    font-size: 0.75rem;
    margin-bottom: 0;
    line-height: 1.3;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .portfolio-card img {
        height: 200px;
    }

    .portfolio-overlay {
        padding: 1.5rem 1rem 1rem;
    }

    .portfolio-overlay h3 {
        font-size: 0.85rem;
    }

    .portfolio-overlay p {
        font-size: 0.7rem;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .portfolio-card img {
        height: 220px;
    }

    .portfolio-overlay {
        padding: 1.25rem 1rem 1rem;
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(30, 58, 138, 0.95));
    }

    .portfolio-overlay h3 {
        font-size: 0.8rem;
    }

    .portfolio-overlay p {
        font-size: 0.65rem;
    }
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-close i {
    font-size: 1.2rem;
}

#lightbox-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.lightbox-info {
    padding: 1.5rem;
    background: #ffffff;
}

.lightbox-info h3 {
    color: #1e3a8a;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.lightbox-info p {
    color: #4b5563;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Mobile Lightbox Adjustments */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
    }

    .lightbox-close i {
        font-size: 1rem;
    }

    .lightbox-info {
        padding: 1rem;
    }

    .lightbox-info h3 {
        font-size: 1rem;
    }

    .lightbox-info p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        max-width: 98%;
        max-height: 98%;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }

    .lightbox-info {
        padding: 0.75rem;
    }

    .lightbox-info h3 {
        font-size: 0.9rem;
    }

    .lightbox-info p {
        font-size: 0.7rem;
    }
}

/* Stats Section - Enhanced Visibility */
.stats {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(147, 197, 253, 0.3) 0%,
        rgba(147, 197, 253, 0.2) 30%,
        rgba(147, 197, 253, 0.1) 60%,
        transparent 80%
    ),
    radial-gradient(
        circle at 70% 30%,
        rgba(191, 219, 254, 0.25) 0%,
        rgba(191, 219, 254, 0.15) 40%,
        rgba(191, 219, 254, 0.05) 70%,
        transparent 90%
    );
    opacity: 0;
    transition: opacity 1s ease;
}

.stats:hover::before {
    opacity: 1;
}

.stats h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 1);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    margin-bottom: 1rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: #1e3a8a;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon i {
    color: #3b82f6;
    transform: scale(1.1);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-number {
    color: #3b82f6;
}

.stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.stat-card:hover .stat-label {
    color: #1e3a8a;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats {
        padding: 60px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-content: center;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-icon i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .stats {
        padding: 40px 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-card {
        padding: 1.2rem 1rem;
    }
    
    .stat-icon i {
        font-size: 1.8rem;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}

/* Partners Section */
.partners {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
}

.partners h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    align-items: center;
    justify-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
}

.partner-logo {
    padding: 1rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    max-width: 250px;
    width: 100%;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.partner-logo img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.partner-logo:hover img {
    filter: grayscale(0%);
}

/* Materials Section */
.materials {
    background-color: #ffffff;
    padding: 60px 0;
    border-top: 1px solid #e5e7eb;
}

.materials h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #1e3a8a;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.material-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.material-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #1e3a8a;
    background: #ffffff;
}

.material-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #1e3a8a;
    border-radius: 50%;
    flex-shrink: 0;
}

.material-icon i {
    color: #ffffff;
    font-size: 1.2rem;
}

.material-info h3 {
    color: #1e3a8a;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.material-info p {
    color: #4b5563;
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Tablet Responsive */
@media (max-width: 768px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .material-badge {
        padding: 1rem;
    }

    .material-icon {
        width: 40px;
        height: 40px;
    }

    .material-icon i {
        font-size: 1rem;
    }

    .material-info h3 {
        font-size: 0.9rem;
    }

    .material-info p {
        font-size: 0.75rem;
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .materials {
        padding: 40px 0;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .material-badge {
        padding: 0.75rem;
    }

    .material-icon {
        width: 35px;
        height: 35px;
    }

    .material-icon i {
        font-size: 0.9rem;
    }

    .material-info h3 {
        font-size: 0.85rem;
    }

    .material-info p {
        font-size: 0.7rem;
    }
}

/* Fade-in animation styles */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional: Add a subtle delay for staggered effect */
.partners-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.fade-in-section.visible .partners-grid {
    opacity: 1;
    transform: translateY(0);
}

/* Stats section with fade-in animation */
.stats.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.stats.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation for stat cards */
.stats-grid {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.fade-in-section.visible .stats-grid {
    opacity: 1;
    transform: translateY(0);
}

/* Individual stat card animations */
.stat-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-section.visible .stat-card:nth-child(1) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.fade-in-section.visible .stat-card:nth-child(2) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.fade-in-section.visible .stat-card:nth-child(3) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

.fade-in-section.visible .stat-card:nth-child(4) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.6s;
}

/* Call-To-Action Section with Hover Effect */
.cta-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    padding: 80px 0;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(147, 197, 253, 0.3) 0%,
        rgba(147, 197, 253, 0.2) 30%,
        rgba(147, 197, 253, 0.1) 60%,
        transparent 80%
    ),
    radial-gradient(
        circle at 70% 30%,
        rgba(191, 219, 254, 0.25) 0%,
        rgba(191, 219, 254, 0.15) 40%,
        rgba(191, 219, 254, 0.05) 70%,
        transparent 90%
    );
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.cta-section:hover::before {
    opacity: 1;
}

.cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
    color: #ffffff;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.cta-benefits li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.cta-benefits i {
    color: #10b981;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cta-benefits span {
    color: #ffffff;
}

.cta-button {
    background: #ffffff;
    color: #1e3a8a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #f8fafc;
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

.cta-image {
    text-align: center;
}

.cta-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .cta-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-benefits li {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .cta-section {
        padding: 40px 0;
    }
    
    .cta-text h2 {
        font-size: 1.3rem;
    }
    
    .cta-benefits li {
        font-size: 0.85rem;
        gap: 0.8rem;
    }
    
    .cta-benefits i {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }
} 

.highlight-info {
    background: linear-gradient(90deg, #f8fafc 0%, #e0e7ef 100%);
    padding: 50px 0 40px 0;
    text-align: center;
    margin-bottom: 0;
}
.highlight-info h3 {
    color: #1e3a8a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}
.highlight-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 1px;
}
.highlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}
.highlight-list li {
    color: #1e3a8a;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding-left: 1.5em;
}
.highlight-list li::before {
    content: '✓';
    color: #3b82f6;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1em;
}
.cemex-official {
    color: #2563eb;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 1.5rem;
    letter-spacing: 0.5px;
    padding: 1rem 1.5rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    display: inline-block;
}
.cemex-official strong {
    color: inherit;
} 

.team-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin: 3rem 0 2rem 0;
}
.team-image-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-style: italic;
    position: sticky;
    top: 100px;
}
.team-blocks-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.team-block {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 30px;
    box-shadow: 
        0 4px 20px rgba(30,58,138,0.08),
        0 2px 8px rgba(0,0,0,0.04),
        0 8px 32px rgba(30, 58, 138, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.8);
    padding: 1.5rem;
    border: none;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.team-block::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
    border-radius: 35px;
    z-index: -1;
}
.team-block h3 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(59, 130, 246, 0.9) 100%);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-align: left;
    box-shadow: 
        0 2px 8px rgba(30, 58, 138, 0.2),
        0 1px 3px rgba(0,0,0,0.1);
    position: relative;
}
.team-block h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
}
.team-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.team-block li {
    color: #374151;
    font-size: 0.98rem;
    line-height: 1.5;
    position: relative;
    padding-left: 1.2em;
}
.team-block li::before {
    content: '\2022';
    color: #3b82f6;
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0.1em;
}
@media (max-width: 900px) {
    .team-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .team-image-placeholder {
        min-height: 200px;
        position: static;
    }
} 

.team-description {
    padding: 80px 0;
    background-color: #ffffff;
}
.company-intro {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 4rem auto;
    padding: 0 1rem;
}
.company-intro h2 {
    color: #1e3a8a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    text-align: center;
}
.company-intro h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e3a8a, #3b82f6);
    border-radius: 2px;
}
.company-intro p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
} 