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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.8rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    letter-spacing: -0.5px;
}

.logo-img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    position: relative;
}

.nav-links a:hover {
    color: #3B9FD9;
    background: rgba(59, 159, 217, 0.1);
}

.nav-links a.active {
    color: #3B9FD9;
    background: rgba(59, 159, 217, 0.15);
    font-weight: 600;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 28px;
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-nav.active {
    max-height: 400px;
}

.mobile-nav ul {
    list-style: none;
    padding: 1rem 0;
}

.mobile-nav ul li {
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav ul li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.mobile-nav ul li a:hover {
    background: #f8f9fa;
    color: #3B9FD9;
}

.mobile-nav ul li a i {
    width: 20px;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    color: white;
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #3B9FD9;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

/* Stats Section */
.stats {
    background: white;
    padding: 2rem;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1.2rem;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.05) 0%, rgba(77, 191, 167, 0.05) 100%);
    border: 2px solid rgba(59, 159, 217, 0.1);
    transition: all 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 159, 217, 0.15);
    border-color: #4DBFA7;
}

.stat-item h3 {
    font-size: 2.2rem;
    margin-bottom: 0.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 3rem 2rem;
    background: white;
}

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

.about-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
    width: calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 380px;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 159, 217, 0.15);
    border-color: #4DBFA7;
}

.about-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 159, 217, 0.3);
}

.about-content h3 {
    color: #333;
    font-size: 1.3rem;
    margin: 0 0 0.8rem 0;
    font-weight: 700;
}

.about-content p {
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: #333;
    font-weight: 700;
}

/* Why Choose Peace Systems Limited Section */
.why-choose {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.why-choose-container {
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.why-choose-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
    width: calc(25% - 1.2rem);
    min-width: 240px;
    max-width: 280px;
    text-align: center;
}

.why-choose-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 159, 217, 0.15);
    border-color: #4DBFA7;
}

.why-choose-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 8px 20px rgba(59, 159, 217, 0.3);
}

.why-choose-card h3 {
    color: #333;
    font-size: 1.2rem;
    margin: 0 0 0.8rem 0;
    font-weight: 700;
}

.why-choose-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Services Section */
.services {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

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

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    width: calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 380px;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 159, 217, 0.15);
    border-color: #4DBFA7;
}

.service-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    color: white;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #333;
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.learn-more {
    color: #3B9FD9;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more i {
    transition: transform 0.3s;
}

.service-card:hover .learn-more i {
    transform: translateX(5px);
}

/* Products Section */
.products {
    padding: 3rem 2rem;
    background: white;
}

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

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.05rem;
    max-width: 700px;
    margin: -1rem auto 2.5rem;
    line-height: 1.7;
}

.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-tile {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    width: calc(50% - 0.75rem);
    max-width: 600px;
    cursor: pointer;
}

.product-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 159, 217, 0.15);
    border-color: #4DBFA7;
}

.product-tile-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(59, 159, 217, 0.3);
}

.product-tile-content {
    flex: 1;
    min-width: 0;
}

.product-tile-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.2rem;
}

.product-tile-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.1) 0%, rgba(77, 191, 167, 0.1) 100%);
    color: #3B9FD9;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

.product-tile-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.product-tile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.product-tile-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #555;
    background: #f4f6f8;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
}

.product-tile-highlights span i {
    font-size: 0.7rem;
    color: #3B9FD9;
}

.product-tile-arrow {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.08) 0%, rgba(77, 191, 167, 0.08) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #3B9FD9;
    flex-shrink: 0;
    transition: all 0.3s;
}

.product-tile:hover .product-tile-arrow {
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 159, 217, 0.3);
    transform: translateX(3px);
}

/* Team Section */
.team {
    padding: 3rem 2rem;
    background: white;
}
.team-container {
    max-width: 1200px;
    margin: 0 auto;
}

.team-segment {
    margin-bottom: 3rem;
}

.team-segment:last-child {
    margin-bottom: 0;
}

.team-segment-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 0.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.team-segment-title::before,
.team-segment-title::after {
    content: '';
    height: 2px;
    width: 60px;
    background: linear-gradient(135deg, #4FB3E8, #2E9D8F);
    border-radius: 2px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 2rem;
    text-align: center;
    width: calc(33.333% - 1.5rem);
    min-width: 260px;
    max-width: 320px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 159, 217, 0.2);
    border-color: #4DBFA7;
}

.team-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    display: block;
    border: 5px solid white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.team-card:hover .team-photo {
    box-shadow: 0 12px 35px rgba(59, 159, 217, 0.3);
    transform: scale(1.05);
}

.team-info {
    padding: 0;
    text-align: center;
}

.team-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #333;
}

.team-role {
    color: #3B9FD9;
    font-weight: 600;
    margin-bottom: 0.4rem; /* tighter spacing */
    font-size: 0.9rem;
    line-height: 1.3;
}

.team-subrole {
    display: block;
    font-size: 0.85rem;
    font-weight: 500; /* not too light */
    color: #4DBFA7; /* use your secondary brand color */
    margin-top: 2px;
    letter-spacing: 0.2px;
}
.team-subrole-modal{
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #ffffff;   /* white text */
    margin-top: 2px;
    letter-spacing: 0.2px;
}
.team-bio {
    color: #666;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Contact Section */
.contact {
    padding: 3rem 2rem;
    background: #f8f9fa;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    background: white;
    padding: 1.8rem;
    border-radius: 15px;
    border: 2px solid transparent;
    transition: all 0.3s;
    flex: 1;
    min-width: 240px;
    max-width: 300px;
}

.contact-item:hover {
    border-color: #4DBFA7;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 159, 217, 0.1);
}

.contact-item i {
    font-size: 1.8rem;
    color: #3B9FD9;
    margin-bottom: 0.8rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    font-size: 0.95rem;
}

.contact-item a {
    color: #3B9FD9;
    text-decoration: none;
    font-weight: 600;
}

.contact-item a:hover {
    color: #4DBFA7;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2a3b47 0%, #1a2630 100%);
    color: white;
    padding: 2rem 2rem 1.2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.2rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    max-width: 800px;
    max-height: 85vh;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    color: white;
    padding: 3rem 2rem 2rem;
    text-align: center;
    position: relative;
    flex-shrink: 0;
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
}

.modal-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.modal-body {
    padding: 2.5rem;
    color: #555;
    line-height: 1.8;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    margin-bottom: 1.5rem;
}

.modal-body h4 {
    color: #2a3b47;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.modal-body ul {
    list-style: none;
    margin: 1.5rem 0;
}

.modal-body ul li {
    color: #555;
    margin-bottom: 1.2rem;
    padding-left: 2rem;
    position: relative;
    line-height: 1.7;
}

.modal-body ul li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
    color: #3B9FD9;
    font-size: 1.2rem;
}

.modal-body ul li strong {
    color: #2a3b47;
}

.close-modal {
    color: white;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

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

/* Responsive Design */
@media (max-width: 968px) {
    .services-grid {
        justify-content: center;
    }
    
    .service-card {
        width: calc(50% - 1rem);
    }

    .team-grid {
        justify-content: center;
    }

    .team-card {
        width: calc(50% - 1rem);
    }

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

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

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

    .mobile-nav {
        display: block;
    }

    .logo-title {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 400px;
    }

    .team-grid {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 100%;
        max-width: 350px;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        max-width: 100%;
        width: 100%;
    }

    .modal-content {
        margin: 5% 1rem;
        max-width: 95%;
        max-height: 90vh;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .about-body {
        padding: 2rem 1.5rem 1.5rem;
    }

    .about-features-section {
        padding: 2rem 1.5rem;
        margin: 0 -1.5rem;
    }

    .about-card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .product-tile {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
        padding: 1.8rem 1.5rem;
        width: 100%;
        max-width: 400px;
    }

    .product-tile-arrow {
        display: none;
    }

    .product-tile-highlights {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-title {
        font-size: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }

    .team-photo {
        width: 140px;
        height: 140px;
    }

    .stat-item h3 {
        font-size: 1.8rem;
    }

    .about-header {
        padding: 2rem 1.5rem;
    }

    .about-header .section-title {
        font-size: 1.8rem;
    }

    .about-tagline {
        font-size: 1rem;
    }

    .about-intro {
        font-size: 0.95rem;
    }
}

/* ========================================
   Product Detail Page Styles
   ======================================== */

/* Product Hero */
.product-hero {
    margin-top: 70px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    color: white;
    padding: 5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.product-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
}

.product-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-hero-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    flex-shrink: 0;
}

.product-hero-title h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.product-hero-title .tagline {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 400;
}

.product-hero-badges {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.18);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-hero-desc {
    max-width: 850px;
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.product-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.8rem;
    border-radius: 14px;
}

.hero-stat .number {
    font-size: 1.8rem;
    font-weight: 700;
    display: block;
}

.hero-stat .label {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
}

/* Back Link */
.back-link-bar {
    background: white;
    border-bottom: 1px solid #eee;
    padding: 0.8rem 2rem;
}

.back-link-bar a {
    max-width: 1200px;
    margin: 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3B9FD9;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link-bar a:hover {
    color: #4DBFA7;
}

/* Detail Sections */
.detail-section {
    padding: 3.5rem 2rem;
}

.detail-section:nth-child(odd) {
    background: white;
}

.detail-section:nth-child(even) {
    background: #f8f9fa;
}

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

.detail-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.detail-section-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.7;
}

/* Architecture Cards */
.arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.arch-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s;
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
}

.arch-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 159, 217, 0.12);
    border-color: rgba(77, 191, 167, 0.3);
}

.arch-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}

.arch-card h4 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 0.4rem;
}

.arch-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Module Grid */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.module-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(59, 159, 217, 0.12);
    border-color: rgba(77, 191, 167, 0.3);
}

.module-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.module-card-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    flex-shrink: 0;
}

.module-card h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 700;
}

.module-card p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 0.8rem;
}

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

.module-card ul li {
    font-size: 0.85rem;
    color: #555;
    padding: 0.3rem 0 0.3rem 1.4rem;
    position: relative;
    line-height: 1.5;
}

.module-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
}

/* Integration Grid */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.integration-item {
    background: white;
    padding: 1.5rem 1.2rem;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 2px solid transparent;
    transition: all 0.3s;
}

.integration-item:hover {
    transform: translateY(-3px);
    border-color: rgba(77, 191, 167, 0.3);
    box-shadow: 0 8px 25px rgba(59, 159, 217, 0.1);
}

.integration-item i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.6rem;
    display: block;
}

.integration-item h4 {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 0.3rem;
}

.integration-item p {
    font-size: 0.78rem;
    color: #888;
    margin: 0;
    line-height: 1.4;
}

/* Tech Stack Detail — Premium Grouped Cards */
.tech-stack-section {
    background: #f8f9fa !important;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.tech-stack-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 1.5rem;
}

.tech-group {
    background: white;
    border: 2px solid transparent;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s;
}

.tech-group:hover {
    border-color: #4DBFA7;
    box-shadow: 0 10px 35px rgba(59, 159, 217, 0.12);
    transform: translateY(-3px);
}

.tech-group-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(59, 159, 217, 0.08);
}

.tech-group-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(59, 159, 217, 0.3);
}

.tech-group-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0;
}

.tech-group-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tech-chip {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.03) 0%, rgba(77, 191, 167, 0.03) 100%);
    border: 1px solid rgba(59, 159, 217, 0.06);
    border-radius: 12px;
    transition: all 0.3s;
}

.tech-chip:hover {
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.08) 0%, rgba(77, 191, 167, 0.08) 100%);
    border-color: rgba(59, 159, 217, 0.18);
    transform: translateX(4px);
}

.tech-chip-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.1) 0%, rgba(77, 191, 167, 0.1) 100%);
    border: 1px solid rgba(59, 159, 217, 0.12);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #3B9FD9;
    flex-shrink: 0;
    transition: all 0.3s;
}

.tech-chip:hover .tech-chip-icon {
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(59, 159, 217, 0.3);
}

.tech-chip-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tech-chip-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tech-chip-desc {
    font-size: 0.75rem;
    color: #888;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Horizontal Timeline */
.h-timeline-track {
    position: relative;
}

.h-timeline-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
}

.h-timeline-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Phase badge — sits at the top */
.h-phase {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 159, 217, 0.1) 0%, rgba(77, 191, 167, 0.1) 100%);
    color: #3B9FD9;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.6rem;
}

/* Dot — connector between badge and card */
.h-timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    border: 3px solid white;
    box-shadow: 0 0 0 3px rgba(59, 159, 217, 0.2);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-bottom: 0.6rem;
}

/* Horizontal connecting line through the dots */
.h-timeline-track::after {
    content: '';
    position: absolute;
    /* phase badge height (~24px) + margin (0.6rem ≈ 10px) + half dot (8px) */
    top: calc(24px + 0.6rem + 8px - 1.5px);
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B9FD9 0%, #4DBFA7 100%);
    border-radius: 2px;
    z-index: 1;
}

/* Card body — below the dot */
.h-timeline-body {
    background: white;
    border-radius: 14px;
    padding: 1.3rem 1.1rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
    transition: all 0.3s;
    width: 100%;
}

.h-timeline-card:hover .h-timeline-body {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(59, 159, 217, 0.14);
    border-color: #4DBFA7;
}

.h-timeline-card:hover .h-timeline-dot {
    box-shadow: 0 0 0 5px rgba(59, 159, 217, 0.3);
}

.h-timeline-body h4 {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.h-duration {
    font-size: 0.75rem;
    color: #3B9FD9;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.h-timeline-body p {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Tablet: wrap into rows, hide connector */
@media (max-width: 1100px) {
    .h-timeline-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .h-timeline-track::after {
        display: none;
    }
}

/* Mobile: horizontal scroll */
@media (max-width: 768px) {
    .h-timeline-grid {
        grid-template-columns: none;
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .h-timeline-card {
        min-width: 210px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .h-timeline-track::after {
        display: none;
    }
}

/* Product CTA Section */
.product-cta-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #3B9FD9 0%, #4DBFA7 100%);
    text-align: center;
    color: white;
}

.product-cta-section h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.product-cta-section p {
    font-size: 1.05rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.cta-btn-white {
    display: inline-block;
    background: white;
    color: #3B9FD9;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cta-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

/* Detail page responsive */
@media (max-width: 768px) {
    .product-hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .product-hero-top {
        flex-direction: column;
        text-align: center;
    }

    .product-hero-title h1 {
        font-size: 1.8rem;
    }

    .product-hero-badges {
        justify-content: center;
    }

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

    .product-hero-desc {
        text-align: center;
    }

    .detail-section {
        padding: 2.5rem 1.5rem;
    }

    .detail-section-title {
        font-size: 1.5rem;
    }

    .arch-grid {
        grid-template-columns: 1fr;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }

    .integration-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-stack-groups {
        grid-template-columns: 1fr;
    }

    .tech-chip-name {
        white-space: normal;
    }

    .tech-chip-desc {
        white-space: normal;
    }

    .product-cta-section h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .product-hero-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .hero-stat {
        padding: 0.8rem 1.2rem;
    }

    .hero-stat .number {
        font-size: 1.4rem;
    }

    .integration-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tech-stack-groups {
        grid-template-columns: 1fr;
    }

    .tech-group {
        padding: 1.3rem;
    }

    .tech-chip {
        padding: 0.6rem 0.8rem;
    }
}
