/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    padding-top: 120px; /* Ensures content starts below navbar */
    background: linear-gradient(135deg, #e3f6ff 0%, #b3e6fc 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed; /* Keep navbar fixed */
    top: 20px; /* Add space above the navbar */
    left: 0;
    right: 0;
    z-index: 2000; /* Ensure it overlays all content */
    padding: 0;
    background: transparent;
    pointer-events: none; /* Prevent header from blocking pointer events outside navbar */
}

.navbar {
    pointer-events: auto;
    background: linear-gradient(90deg, #7ed6fb 0%, #4A90E2 100%);
    backdrop-filter: blur(10px);
    border-radius: 32px; /* Curve the edges of the navbar */
    margin: 0;
    margin-top: 0;
    max-width: 100vw;
    width: 100vw; /* Extend navbar full width */
    left: 0;
    right: 0;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07); /* Subtle shadow for overlay effect */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

.nav-left, .nav-right {
    display: flex;
    gap: 32px;
    align-items: center; /* Vertically center nav links */
}

.nav-left {
    flex: 1 1 0;
    justify-content: flex-start;
}

.nav-right {
    flex: 1 1 0;
    justify-content: flex-end;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 1px;
    transition: color 0.3s ease, background 0.3s ease, box-shadow 0.3s;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link:hover {
    color: #4A90E2;
    background: rgba(74, 144, 226, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 80px;
    min-width: 120px;
    padding: 0 20px;
    z-index: 1;
}

.logo-image {
    width: 110px;         /* make image bigger */
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
}

/* Button style for nav */
.nav-btn {
    background: #4A90E2;
    color: #fff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(74,144,226,0.08);
    font-weight: bold;
    padding: 8px 22px;
    margin: 0 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.nav-btn:hover,
.nav-btn:focus {
    background: #357ABD;
    color: #fff;
    box-shadow: 0 4px 16px rgba(74,144,226,0.15);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: -1;
    background: transparent;
    pointer-events: none;
}

.hero-image {
    display: none; /* Hide old image if still present */
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.cta-button {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    border-radius: 30px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

.hero-subtitle {
    font-size: 18px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Welcome Section */
.welcome-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.welcome-content {
    display: flex;
    align-items: center;
    gap: 80px;
}

.welcome-text {
    flex: 1;
}

.welcome-text h2 {
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #333;
}

.highlight {
    color: #4A90E2;
    font-weight: bold;
}

.welcome-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #666;
}

.welcome-image {
    position: relative;
}

.welcome-image img {
    width: 320px;
    height: 220px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    background: #fff;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonials-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

.testimonial {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.testimonial-avatars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    min-width: 300px;
}

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    transition: transform 0.3s ease;
}

.avatar:hover {
    transform: scale(1.1);
}

.testimonial-content {
    flex: 1;
}

.quote-icon {
    font-size: 60px;
    color: #4A90E2;
    font-family: serif;
    line-height: 1;
    margin-bottom: 20px;
}

blockquote {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.testimonial-author span {
    font-size: 14px;
    color: #666;
}

.more-testimonials {
    display: inline-block;
    margin-top: 20px;
    color: #4A90E2;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.more-testimonials:hover {
    color: #357ABD;
}

/* Challenge Section */
.challenge-section {
    position: relative;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.challenge-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.challenge-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.challenge-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.challenge-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.challenge-content p {
    font-size: 18px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: background 0.3s ease;
}

.social-icon:hover {
    background: rgba(255,255,255,0.2);
}

.contact-info p {
    font-size: 14px;
    color: #bdc3c7;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 12px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 95vw;
    }
    body {
        padding-top: 100px;
    }
    .navbar {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        margin-top: 0;
        padding: 0 12px;
        border-radius: 28px;
    }
    .header {
        top: 16px;
    }
    .logo-image {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 1100px) {
    .container {
        max-width: 98vw;
    }
    body {
        padding-top: 80px;
    }
    .navbar {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        margin-top: 0;
        padding: 0 8px;
        border-radius: 24px;
    }
    .header {
        top: 12px;
    }
    .logo-image {
        width: 70px;
        height: 70px;
    }
    .nav-link {
        font-size: 15px;
        padding: 7px 12px;
    }
    .services-grid {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .container {
        max-width: 100vw;
        padding: 0 8px;
    }
    body {
        padding-top: 70px;
    }
    .navbar {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        margin-top: 0;
        padding: 0 4px;
        border-radius: 18px;
    }
    .header {
        top: 8px;
    }
    .logo-image {
        width: 60px;
        height: 60px;
    }
    .nav-link {
        font-size: 14px;
        padding: 6px 8px;
    }
    .welcome-content {
        gap: 12px;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .testimonial {
        gap: 12px;
    }
    .hero-video {
        height: 60vh;
        min-height: 60vh;
    }
    .hero {
        height: 60vh;
    }
    .welcome-image img {
        width: 200px;
        height: 120px;
    }
}

@media (max-width: 700px) {
    .navbar {
        max-width: 100vw;
        width: 100vw;
        margin: 0;
        margin-top: 0;
        border-radius: 12px;
        padding: 0 2vw;
        min-height: 44px;
    }
    body {
        padding-top: 56px;
    }
    .header {
        top: 4px;
    }
    .nav-container {
        flex-direction: row; /* Keep row layout like PC */
        align-items: center;
        justify-content: space-between;
        gap: 0;
    }
    .nav-left, .nav-right {
        flex-direction: row;
        gap: 4px;
        justify-content: flex-start;
        align-items: center;
    }
    .logo {
        height: 48px;
        min-width: 60px;
        padding: 0 2px;
        justify-content: center;
        left: 50%;
        transform: translateX(-50%);
        position: absolute;
        z-index: 1;
    }
    .logo-image {
        width: 44px;
        height: 44px;
    }
    .nav-link {
        font-size: 13px;
        padding: 5px 6px;
    }
    .hero-content h1 {
        font-size: 20px;
    }
    .hero-content h2 {
        font-size: 26px;
    }
    .cta-button {
        padding: 8px 14px;
        font-size: 12px;
    }
    .welcome-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .welcome-image img {
        width: 120px;
        height: 160px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .testimonial {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .testimonial-avatars {
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    .avatar {
        width: 32px;
        height: 32px;
    }
    .challenge-section {
        height: 28vh;
    }
    .challenge-content h2 {
        font-size: 14px;
    }
    .footer-content {
        gap: 4px;
    }
    .footer-links {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 2px;
    }
    .logo-image {
        width: 32px;
        height: 32px;
    }
    .nav-link {
        font-size: 11px;
        padding: 3px 4px;
    }
    .hero-content h1,
    .hero-content h2 {
        font-size: 12px;
    }
    .cta-button {
        padding: 4px 8px;
        font-size: 10px;
    }
    .welcome-image img {
        width: 70px;
        height: 90px;
    }
    .challenge-section {
        height: 20vh;
    }
}