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

:root {
    --primary-blue: #2563EB;
    --secondary-blue: #3B82F6;
    --accent-orange: #F97316;
    --accent-coral: #FB923C;
    --light-bg: #F0F9FF;
    --light-gray: #E0F2FE;
    --white: #FFFFFF;
    --text-dark: #0F172A;
    --text-medium: #334155;
    --text-light: #64748B;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background: var(--light-bg);
    min-height: 100vh;
}

/* Prevent blur on all elements by default - removed global rule to avoid conflicts */

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

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: 3px solid var(--primary-blue);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 24px;
    gap: 24px;
    position: relative;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo h1 {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

/* Ensure nav is visible on desktop */
@media (min-width: 969px) {
    .nav {
        display: flex !important;
        position: relative !important;
        width: auto !important;
        height: auto !important;
        right: auto !important;
        background: transparent !important;
        box-shadow: none !important;
        padding-top: 0 !important;
        overflow: visible !important;
    }

    .nav ul {
        flex-direction: row !important;
        justify-content: flex-end !important;
    }

    .nav a {
        padding: 10px 16px !important;
        border-radius: 8px !important;
        border-bottom: none !important;
        width: auto !important;
        white-space: nowrap !important;
    }

    .nav a:hover,
    .nav a.active {
        padding-left: 16px !important;
        transform: translateY(-2px) !important;
    }
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav a {
    text-decoration: none;
    color: var(--text-medium);
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    white-space: nowrap;
    display: block;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-blue);
    background: var(--light-gray);
    transform: translateY(-2px);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
    position: relative;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 3px;
    transition: all 0.3s ease;
}

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.hero-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 24px;
    font-weight: 900;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.8;
    opacity: 0.95;
    margin-bottom: 32px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-dark);
    margin-bottom: 60px;
    font-weight: 800;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    border-radius: 3px;
}

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

.feature-card {
    background: var(--light-bg);
    padding: 40px 32px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 16px;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--light-gray);
}

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

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    background: var(--white);
    border: 3px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    border-color: var(--accent-orange);
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-caption {
    padding: 20px;
    background: var(--white);
    color: var(--text-dark);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.03) 20px, rgba(255,255,255,0.03) 40px);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 24px;
    font-weight: 800;
}

.cta-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn {
    display: inline-block;
    padding: 18px 48px;
    background: var(--white);
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--accent-orange);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 400px;
    height: 400px;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    color: var(--white);
    border-color: var(--white);
}

.btn span {
    position: relative;
    z-index: 1;
}

/* Content Pages */
.content-page {
    padding: 80px 0;
    min-height: 60vh;
    background: var(--white);
}

.content-page h2 {
    color: var(--text-dark);
    font-size: clamp(2rem, 5vw, 2.8rem);
    margin-bottom: 32px;
    font-weight: 800;
    position: relative;
    padding-bottom: 24px;
}

.content-page h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-orange));
    border-radius: 3px;
}

.content-page h3 {
    color: var(--primary-blue);
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    margin-top: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}

.content-page p {
    margin-bottom: 24px;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.content-page ul,
.content-page ol {
    margin-left: 32px;
    margin-bottom: 24px;
}

.content-page li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-dark);
}

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 40px 0;
    border: 3px solid var(--light-gray);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.image-grid img {
    margin: 0;
    width: 100%;
}

/* Contact Info Styles */
.contact-info {
    background: var(--light-bg);
    padding: 40px;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: var(--shadow-md);
}

.contact-info h3 {
    color: var(--primary-blue);
    margin-bottom: 24px;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    border-left: 4px solid var(--accent-orange);
}

.contact-item strong {
    color: var(--primary-blue);
    min-width: 120px;
    font-weight: 700;
}

.contact-item span {
    color: var(--text-dark);
    flex: 1;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 40px auto;
    background: var(--light-bg);
    padding: 48px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--light-gray);
}

.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    background: var(--white);
    border-radius: 12px;
    border: 2px solid var(--light-gray);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-group label {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-group label a {
    color: var(--primary-blue);
    text-decoration: underline;
}

.checkbox-group label a:hover {
    color: var(--accent-orange);
}

button.btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

#form-message {
    border-radius: 12px;
    font-weight: 600;
    padding: 20px;
    margin: 24px 0;
    text-align: center;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
    animation: slideDown 0.5s ease-out;
    position: relative;
    border: 2px solid transparent;
}

#form-message.success {
    background-color: #D1FAE5;
    color: #065F46;
    border-color: #10B981;
}

#form-message.error {
    background-color: #FEE2E2;
    color: #991B1B;
    border-color: #EF4444;
}

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

.notification-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--primary-blue);
    color: var(--white);
    padding: 20px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    animation: slideInRight 0.5s ease-out;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-toast.success {
    background: linear-gradient(135deg, #10B981, #059669);
}

.notification-toast.error {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.notification-toast .toast-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 700;
}

.notification-toast .toast-content {
    flex: 1;
    font-weight: 600;
}

.notification-toast .toast-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.notification-toast .toast-close:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.notification-toast.hiding {
    animation: slideOutRight 0.5s ease-out forwards;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 48px 0;
    margin-top: 0;
}

.footer a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer p {
    margin: 12px 0;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .logo {
        flex: 0 0 auto;
        z-index: 998;
        position: relative;
        max-width: calc(100% - 60px);
    }

    .logo h1 {
        position: relative;
        z-index: 998;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Ensure header doesn't blur when menu is open */
    .header {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        z-index: 998;
    }

    .header .container {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        background: var(--white);
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        overflow-y: auto;
        padding-top: 80px;
        flex: none;
        justify-content: flex-start;
        display: flex;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    .nav.active {
        right: 0;
        z-index: 1002;
    }

    /* Ensure nav menu is above everything when open */
    .nav.active,
    .nav.active * {
        z-index: 1002;
    }

    .nav ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
        padding: 0;
        margin: 0;
        justify-content: flex-start;
    }

    .nav a {
        padding: 16px 24px;
        border-radius: 0;
        border-bottom: 1px solid var(--light-gray);
        display: block;
        width: 100%;
        font-size: 1rem;
        transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
        white-space: normal;
    }

    .nav a:hover,
    .nav a.active {
        background: var(--light-bg);
        color: var(--primary-blue);
        transform: none;
        padding-left: 28px;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        z-index: 1003;
        position: relative;
        flex-shrink: 0;
    }

    /* Overlay when menu is open - only darkening background, not menu */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1001;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        /* Ensure overlay doesn't cover the menu area */
        clip-path: polygon(0 0, calc(100% - 280px) 0, calc(100% - 280px) 100%, 0 100%);
    }

    @media (max-width: 480px) {
        .nav-overlay {
            clip-path: polygon(0 0, calc(100% - 260px) 0, calc(100% - 260px) 100%, 0 100%);
        }
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Ensure menu is not darkened */
    .nav,
    .nav.active,
    .nav * {
        background: var(--white) !important;
        opacity: 1 !important;
        filter: none !important;
    }

    /* Prevent body blur when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    /* Ensure no blur anywhere when menu is open */
    body.menu-open * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }

    /* Ensure main content and header don't blur */
    body.menu-open main,
    body.menu-open .header,
    body.menu-open .header *,
    body.menu-open .nav,
    body.menu-open .nav * {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        filter: none !important;
    }
}

@media (max-width: 768px) {
    .header .container {
        padding: 1rem 20px;
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .nav {
        width: 260px;
        max-width: 80vw;
        padding-top: 70px;
    }

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

    .features-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .form-container {
        padding: 32px 24px;
    }

    .content-page {
        padding: 60px 0;
    }

    .contact-info {
        padding: 24px;
    }

    .notification-toast {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        padding: 16px 24px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.3rem;
    }

    .header .container {
        padding: 0.875rem 16px;
    }

    .nav {
        width: 260px;
        max-width: 80vw;
        padding-top: 65px;
    }

    .nav a {
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    .nav a:hover,
    .nav a.active {
        padding-left: 24px;
    }

    .mobile-menu-toggle {
        padding: 6px;
        min-width: 40px;
        min-height: 40px;
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 2.5px;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .features,
    .gallery-section,
    .cta-section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 32px 24px;
    }


    .contact-item {
        flex-direction: column;
        gap: 8px;
    }

    .contact-item strong {
        min-width: auto;
    }
}
