body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff;
    color: #222;
}

.top-bar {
    background-color: #000;
    color: white;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-height: 80px;
    overflow: hidden; /* Prevent child elements from showing outside bounds */
}

.header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.logo-link {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.logo-link:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.logo {
    height: 70px;
    width: auto;
    margin-right: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.logo:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.site-title {
    font-size: 1.4rem;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100vw - 300px); /* Leave space for logo and hamburger menu */
    font-weight: 600;
    color: white;
}

.site-title::after {
    content: "";
}

/* Hide full text and show short version on smaller screens */
@media (max-width: 640px) {
    .site-title {
        font-size: 0 !important;
    }
    
    .site-title::after {
        content: "ProGenOfNE";
        font-size: 1.2rem;
        white-space: nowrap;
    }
}

/* Even more compact for very small screens */
@media (max-width: 480px) {
    .site-title::after {
        font-size: 1.1rem;
    }
}

/* Mobile menu button - Always visible */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    order: 2;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
    transform-origin: center;
}

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

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

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

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    /* Mobile layout by default - will be overridden by navbar positioning */
}

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 1rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s ease;
}

.nav-list a:hover {
    background-color: #444;
}

.hero {
    text-align: center;
    padding: 1rem 1rem 2rem 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #d9531e;
}
.hero h2 {
    color: #d9531e;
    font-size: 2.5rem;
    font-weight: bold;
}
hr {
    border: none;
    border-top: 1px solid #cccccc; /* soft gray */
    width: 90%;
    margin: 2rem auto;
}


.features {
    display: flex;
    justify-content: center;
    padding: 2rem;
    gap: 0.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.feature {
    max-width: 280px;
    text-align: center;
}

.feature img {
    width: 100%;
    height: auto;
    border: 1px solid #ccc;
}


.feature h3 {
    color: #d9531e;
}

.description {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    max-width: 800px;
    margin: 2rem auto;
    padding: 1rem;
    text-align: justify;
}
.description a {
    color: #d9531e;
    font-weight: normal;
    text-decoration: underline;
}

/* Professional Credentials Section */
.credentials-section {
    background-color: #f8f9fa;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.credentials-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 0 2rem;
    flex-wrap: wrap;
}

.credential-badge {
    transition: transform 0.3s ease;
}

.credential-badge:hover {
    transform: translateY(-5px);
}

.credential-badge img {
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Specific sizes for each credential badge */
.credential-badge img.ngs-logo {
    width: 200px !important;
    height: 215px !important;
}

.credential-badge img.apg-logo {
    width: 287px !important;
    height: 223px !important;
}

.credential-badge img.bu-cert {
    width: 200px !important;
    height: 215px !important;
}

/* Responsive credentials */
@media (max-width: 768px) {
    .credentials-container {
        gap: 1rem;
    }
    
    /* Scale down proportionally on mobile */
    .credential-badge img.ngs-logo {
        width: 120px !important;
        height: 129px !important;
    }

    .credential-badge img.apg-logo {
        width: 172px !important;
        height: 134px !important;
    }

    .credential-badge img.bu-cert {
        width: 120px !important;
        height: 129px !important;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #d9531e;
    color: white;
    margin-top: 4rem;
    padding: 2rem 0 1rem 0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-contact {
    margin: 0.5rem 0;
    font-size: 1.1rem;
    color: white;
    line-height: 1.5;
}

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

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section {
        min-width: auto;
    }
    
    .footer-section h3 {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }
    
    .social-icons {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
    }
    
    .social-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .footer-contact {
        font-size: 1.2rem;
        margin: 0.8rem 0;
    }
    
    .site-footer {
        padding: 3rem 0 1.5rem 0;
    }
}

/* Navigation Styles - Always mobile layout */
.navbar {
    position: fixed;
    top: 80px; /* Below header */
    left: -100vw; /* Completely off-screen */
    width: 100vw;
    height: calc(100vh - 80px);
    background-color: #000;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar.active {
    left: 0; /* Slide in from left */
}

.nav-list {
    flex-direction: column;
    padding: 1rem 0;
}

.nav-list a {
    padding: 1rem 2rem;
    border-bottom: 1px solid #333;
    font-size: 1.1rem;
}

.nav-list a:hover {
    background-color: #333;
}
    
/* Responsive adjustments for very small screens */
@media (max-width: 480px) {
    .logo {
        height: 60px;
        width: auto;
        border-radius: 6px;
    }
    
    /* Ensure header content is properly arranged */
    .header-left {
        flex: 1;
        min-width: 0; /* Allow text to shrink */
    }
    
    .top-bar {
        padding: 0.5rem 1rem;
    }
}

/* About Us Page Styles */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.about-title {
    text-align: center;
    color: #ff6600;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.about-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-profile {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 30px;
    padding: 40px;
}

.profile-image {
    flex: 0 0 300px;
    text-align: center;
}

.profile-photo {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.profile-text {
    flex: 1;
    min-width: 300px;
}

.profile-text h2 {
    color: #ff6600;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-text p {
    margin-bottom: 15px;
    color: #333;
    text-align: justify;
}

.resume-button-container {
    margin-top: 15px;
    text-align: center;
}

.resume-button {
    display: inline-block;
    background-color: #ff6600;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid #ff6600;
    transition: all 0.3s ease;
    text-align: center;
}

.resume-button:hover {
    background-color: white;
    color: #ff6600;
    border-color: #ff6600;
}

.degree-section {
    background: #f8f9fa;
    padding: 40px;
    border-top: 3px solid #ff6600;
}

.degree-section h3 {
    color: #ff6600;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

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

.degree-photo {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Responsive design for About page */
@media (max-width: 768px) {
    .about-profile {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .profile-image {
        flex: none;
    }
    
    .profile-text {
        min-width: auto;
    }
    
    .about-title {
        font-size: 2rem;
    }
    
    .profile-text h2 {
        font-size: 1.5rem;
    }
    
    .degree-section {
        padding: 20px;
    }
}

/* Services Page Styles */
.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    line-height: 1.6;
}

.services-title {
    text-align: center;
    color: #ff6600;
    font-size: 3rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.services-content {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.services-main {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
    padding: 40px;
}

.services-text {
    flex: 1;
    min-width: 500px;
}

.services-intro {
    margin-bottom: 30px;
}

.services-subtitle {
    color: #228B22;
    font-size: 1.2rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.4;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.services-list li {
    margin-bottom: 15px;
    padding-left: 20px;
    position: relative;
    color: #333;
    line-height: 1.5;
}

.services-list li::before {
    content: "■";
    color: #333;
    position: absolute;
    left: 0;
    top: 0;
}

.services-list li strong {
    color: #333;
    font-weight: 600;
}

.new-service {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff6600;
}

.new-service-title {
    color: #333;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
}

.new-service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.new-service-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: #333;
    line-height: 1.5;
}

.new-service-list li::before {
    content: "■";
    color: #333;
    position: absolute;
    left: 0;
    top: 0;
}

.services-image {
    flex: 0 0 400px;
    text-align: center;
}

.genealogy-chart {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.services-footer {
    background: #f8f9fa;
    padding: 30px 40px;
    border-top: 3px solid #ff6600;
    text-align: center;
}

.services-inquiry {
    color: #333;
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 500;
}

.services-pricing {
    color: #333;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Responsive design for Services page */
@media (max-width: 768px) {
    .services-main {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .services-text {
        min-width: auto;
    }
    
    .services-image {
        flex: none;
        order: -1;
    }
    
    .services-title {
        font-size: 2.5rem;
    }
    
    .genealogy-chart {
        max-width: 100%;
    }
    
    .services-footer {
        padding: 20px;
    }
}

/* Business Card Flip Effect */
.business-card-container {
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.business-card {
    position: relative;
    width: 400px;
    height: 300px;
    max-width: 90vw;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
    cursor: pointer;
    transform: rotateY(0deg);
}

.business-card.flipped {
    transform: rotateY(180deg) !important;
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    transform-style: preserve-3d;
}

.card-front {
    background: white;
    z-index: 2;
    transform: rotateY(0deg);
}

.card-back {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    transform: rotateY(180deg);
    z-index: 1;
}

.hero-logo {
    max-width: 100%;
    max-height: 220px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
}

.flip-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    background: rgba(255,255,255,0.9);
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-back .flip-hint {
    color: #ccc;
    background: rgba(0,0,0,0.3);
}

.business-card:hover .flip-hint {
    opacity: 1;
}

/* Hide front flip hints when card is flipped */
.business-card.flipped .card-front .flip-hint {
    opacity: 0 !important;
}

/* Show back flip hints when card is flipped */
.business-card.flipped .card-back .flip-hint {
    opacity: 1;
}

.contact-info {
    text-align: center;
    width: 100%;
}

.contact-info h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #d9531e;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.contact-details {
    margin: 20px 0;
    text-align: left;
}

.contact-details p {
    margin: 8px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-details i {
    width: 16px;
    color: #d9531e;
}

.specialties {
    margin-top: 15px;
    text-align: left;
}

.specialties p {
    margin: 8px 0 5px 0;
    font-size: 14px;
    color: #d9531e;
}

.specialties ul {
    margin: 0;
    padding-left: 15px;
    font-size: 12px;
}

.specialties li {
    margin: 3px 0;
}

/* Responsive Business Card */
@media (max-width: 768px) {
    .business-card {
        width: 350px;
        height: 280px;
    }
    
    .contact-info h3 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .specialties p {
        font-size: 13px;
    }
    
    .specialties ul {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .business-card {
        width: 300px;
        height: 250px;
    }
    
    .contact-info h3 {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .contact-details p {
        font-size: 12px;
    }
    
    .specialties p {
        font-size: 12px;
    }
    
    .specialties ul {
        font-size: 10px;
    }
    
    .card-front, .card-back {
        padding: 15px;
    }
}

/* Hover effects */
.business-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.business-card.flipped:hover {
    transform: rotateY(180deg) translateY(-5px);
}

/* Call to Action Section */
.consultation-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 3rem 2rem;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
}

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

.cta-content h2 {
    color: #d9531e;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 2rem;
    font-weight: 400;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 180px;
}

.benefit-item i {
    font-size: 2rem;
    color: #d9531e;
    margin-bottom: 0.5rem;
}

.benefit-item span {
    font-weight: 600;
    color: #343a40;
    text-align: center;
    font-size: 1rem;
}

.cta-action {
    margin-top: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #d9531e;
    color: white;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(217, 83, 30, 0.3);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: #c44819;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(217, 83, 30, 0.4);
    color: white;
    text-decoration: none;
}

.cta-button i {
    font-size: 1.1rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
    font-weight: 400;
}

/* Responsive adjustments for CTA section */
@media (max-width: 768px) {
    .consultation-cta {
        padding: 2rem 1rem;
        margin: 1rem 0;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-description {
        font-size: 1.1rem;
    }
    
    .cta-benefits {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .benefit-item {
        min-width: 140px;
    }
    
    .benefit-item i {
        font-size: 1.7rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .consultation-cta {
        padding: 1.5rem 0.75rem;
    }
    
    .cta-benefits {
        flex-direction: column;
        gap: 1rem;
    }
    
    .benefit-item {
        min-width: auto;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}
