/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(246, 211, 101, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 211, 101, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 32px;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
}

.brand-logo-img {
    height: 60px;
    width: auto;
    margin-right: 16px;
    transition: transform 0.3s ease;
}

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

.brand-text {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #333;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 25%, #f6d365 50%, #fda085 75%, #667eea 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: -1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 16px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.service-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 16px;
}

.service-description {
    color: #666;
    line-height: 1.7;
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.portfolio-item {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-logo-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
}

/* BookNPC specific yellow background to match app branding */
.portfolio-item:nth-child(1) .portfolio-logo-container {
    background: #FDD54E;
}

/* LingoAce keeps default light background with dark logo */

.portfolio-logo {
    max-width: 120px;
    max-height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.logo-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-align: center;
}

/* Legal Pages Styling */
.legal-content {
    padding: 150px 0 100px;
    background: #f8f9fa;
}

.legal-page {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.legal-page h1 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.legal-page .last-updated {
    color: #666;
    font-style: italic;
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    color: #333;
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-page p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-page ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-page li {
    color: #666;
    line-height: 1.7;
    margin-bottom: 8px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

.contact-content-centered {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

/* Simple Contact Styling */
.simple-contact {
    margin-top: 40px;
}

.contact-email {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact-email .contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-email .contact-text h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 12px;
}

.contact-email .contact-text p {
    color: #666;
    margin-bottom: 16px;
    line-height: 1.6;
}

.email-link {
    display: inline-block;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* Anti-spam protection styles */

/* Email obfuscation styling */
.email-user, .email-at, .email-domain {
    pointer-events: auto;
}

.email-at {
    font-family: monospace;
}

.obfuscated-text {
    font-family: inherit;
    letter-spacing: normal;
}

/* Additional email protection */
.email-user::after {
    content: "";
}

.email-domain::before {
    content: "";
}

/* Legal Pages Responsive Design */
@media (max-width: 768px) {
    .legal-page {
        padding: 40px 30px;
        margin: 0 20px;
    }
    
    .legal-page h1 {
        font-size: 2rem;
    }
    
    .legal-content {
        padding: 120px 0 80px;
    }
    
    .contact-email {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .contact-email .contact-icon {
        margin: 0 auto;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}

.laptop-mockup, .phone-mockup, .tablet-mockup {
    width: 120px;
    height: 80px;
    background: #333;
    border-radius: 8px;
    position: relative;
}

.laptop-mockup::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 8px;
    background: #555;
    border-radius: 0 0 20px 20px;
}

.phone-mockup {
    width: 60px;
    height: 100px;
    border-radius: 15px;
}

.tablet-mockup {
    width: 100px;
    height: 75px;
    border-radius: 10px;
}

.portfolio-content {
    padding: 30px;
}

.portfolio-title {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 12px;
}

.portfolio-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 16px;
}

.portfolio-link {
    margin-top: 16px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-link:hover {
    color: #5a67d8;
    transform: translateX(4px);
}

/* Testimonials Section */
.testimonials {
    background: #f8f9fa;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.testimonial-rating {
    margin-bottom: 20px;
}

.star {
    font-size: 18px;
    margin-right: 4px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    position: relative;
    width: 60px;
    height: 60px;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
}

.author-name {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 4px;
}

.author-title {
    color: #666;
    font-size: 0.9rem;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.partner-logo {
    height: 120px;
    background: #333;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    opacity: 0.8;
}

.partner-logo:hover {
    transform: scale(1.05);
    opacity: 1;
}

.logo-placeholder {
    color: white;
    font-weight: 500;
    font-size: 16px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 40px;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    height: 80px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
}

.footer-copyright p {
    color: #999;
    font-size: 14px;
    margin: 5px 0;
}

.footer-copyright .company-info {
    color: #777;
    font-size: 13px;
    margin-top: 8px;
}

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

.animate-fade-up:nth-child(2) {
    animation-delay: 0.2s;
}

.animate-fade-up:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 30px 20px;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        width: 100%;
        padding-left: 0;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 10px 0;
        width: 100%;
        text-align: left;
    }

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

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

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

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

    /* Responsive logo sizing - same size as desktop with less padding */
    .brand-logo-img {
        height: 60px;
        width: auto;
    }

    .brand-logo {
        padding: 2px 0;
    }

    .brand-text {
        font-size: 20px;
    }

    .footer-logo {
        height: 60px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .services-grid,
    .portfolio-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }

    .container {
        padding: 0 16px;
    }

    section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }
}

@media (max-width: 480px) {
    .brand-logo-img {
        height: 60px;
    }

    .brand-text {
        font-size: 20px;
    }

    .footer-logo {
        height: 50px;
    }

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

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

    .service-card,
    .testimonial-card {
        padding: 30px 20px;
    }

    .portfolio-content {
        padding: 20px;
    }

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