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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
    background: white;
    color: #000;
    line-height: 1.6;
}

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

/* ElevenLabs Widget Positioning */
.convai-widget {
    position: fixed;
    z-index: 9999;
}

.convai-widget.bottom-right {
    bottom: 20px;
    right: 20px;
}

.convai-widget.bottom-left {
    bottom: 20px;
    left: 20px;
}

.convai-widget.top-right {
    top: 20px;
    right: 20px;
}

.convai-widget.top-left {
    top: 20px;
    left: 20px;
}

/* Force orb colors */
elevenlabs-convai {
    --avatar-orb-color-1: #2792dc;
    --avatar-orb-color-2: #9ce6e6;
}

/* Glassmorphism Navigation Card */
.nav-glass-card {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1000;
    padding: 0;
    pointer-events: none;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
    gap: 12px;
    padding: 0 12px;
}

/* Individual Glass Items */
.logo-wrapper,
.nav-menu li {
    backdrop-filter: blur(5px) saturate(180%);
    -webkit-backdrop-filter: blur(5px) saturate(180%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: visible;
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.logo-wrapper {
    height: 44px;
}

.logo-wrapper:hover {
    transform: translateY(-2px);
}

.logo-link {
    padding: 12px 20px;
    font-size: 18px;
    height: 44px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #000;
    font-weight: 700;
    transition: color 0.3s ease, opacity 0.3s;
}

.logo-link:hover {
    opacity: 0.7;
}

.logo-image {
    height: 22px;
    width: 22px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.logo-image-white {
    height: 22px;
    width: 22px;
    object-fit: contain;
    position: absolute;
    left: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* White logo/text on dark backgrounds */
body.on-dark-section .logo-link {
    color: #fff;
}

body.on-dark-section .logo-image {
    opacity: 0;
}

body.on-dark-section .logo-image-white {
    opacity: 1;
}

/* Make menu items proper touch target size */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 12px;
}

.nav-menu li {
    min-width: 90px;
    height: 44px;
}

.nav-menu li:hover {
    transform: translateY(-2px);
}

/* Noise/Grain Texture Overlay for Logo */
.logo-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 171 171' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.74' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.18;
    z-index: -1;
    border-radius: inherit;
    pointer-events: none;
}

/* Navigation */
.navbar {
    background: transparent;
    border-bottom: none;
}

.logo-link {
    font-weight: 700;
    color: #000;
    text-shadow: none;
    transition: color 0.2s ease;
}

/* UPDATED: Make entire menu item clickable */
.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 12px 20px;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease, opacity 0.3s;
    text-shadow: none;
    position: relative;
    z-index: 2;
}

.nav-menu a:hover {
    opacity: 0.7;
}

/* White menu links on dark backgrounds */
body.on-dark-section .nav-menu a {
    color: #fff;
}

/* Hero + Contact Combined Section - ONE background image */
.hero-contact-wrapper {
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    background-image: url('../images/hero-gradient-bg4.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding-top: 110px;
}

/* Optional: Add overlay to control opacity of background image */
.hero-contact-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.hero-contact-wrapper .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    max-width: 100%;
    color: #000;
    text-shadow: none;
}

.gradient-text {
    color: #000;
    text-shadow: none;
}

.hero-subtitle {
    font-size: 16px;
    color: #000;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.35;
    text-shadow: none;
}

/* Contact Section */
.contact-section {
    padding: 40px 20px 80px;
    position: relative;
    background-image: url('../images/hero-gradient-bg4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Optional: Add overlay to control opacity of background image */
.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 0;
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-card {
    max-width: 560px;
    margin: 0 auto;
    background: white;
    padding: 32px 30px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.contact-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.contact-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

/* WCAG AA requires minimum 16px font size for inputs to prevent iOS zoom */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #764ba2;
}

.form-group textarea {
    resize: vertical;
}

/* Button meets WCAG AAA 44px minimum touch target */
.submit-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
    margin-top: 3px;
    min-height: 44px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* Services Section */
.services-section {
    padding: 100px 20px;
    background: #000;
}

.services-section .container {
    padding: 20px;
}

.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 12px rgba(255, 255, 255, 0.1);
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    color: #fff;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.08);
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
    position: relative;
    z-index: 10;
}

/* Service Cards - New Glassmorphism Style */
.service-card {
    --transition-speed: 200ms;
    --hover-offset: 0.5rem;
    --motion-factor: 0.15;
    --hover-opacity: 0.25;
    --hover-blurriness: 10px;
    --frostiness: 0.18;
    --translate-x: 0px;
    --translate-y: 0px;
    
    position: relative;
    padding: 0;
    border-radius: 24px;
    overflow: visible;
    cursor: pointer;
    background: transparent;
    display: flex;
    z-index: 10;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    will-change: transform;
    transform: translate(var(--translate-x), var(--translate-y));
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Metallic Light Blue Gradient */
.service-card:nth-child(1)::after {
    background: 
        radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(135, 206, 235, 0.9) 0%, transparent 50%),
        linear-gradient(135deg, #87CEEB 0%, #E0F4FF 50%, #87CEEB 100%);
}

/* Metallic Pink Gradient */
.service-card:nth-child(2)::after {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 182, 193, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 182, 193, 0.9) 0%, transparent 50%),
        linear-gradient(135deg, #FFB6C1 0%, #FFF0F3 50%, #FFB6C1 100%);
}

/* Metallic Orange Gradient */
.service-card:nth-child(3)::after {
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 140, 105, 0.9) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 140, 105, 0.9) 0%, transparent 50%),
        linear-gradient(135deg, #FF8C69 0%, #FFE8E0 50%, #FF8C69 100%);
}

.card-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 5;
    padding: 24px 28px 32px 28px;
    border-radius: inherit;
    background: transparent;
    overflow: hidden;
    transition: translate var(--transition-speed), 
                background-color var(--transition-speed),
                backdrop-filter var(--transition-speed),
                outline var(--transition-speed);
    width: 100%;
}

.card-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 171 171' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.74' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0;
    transition: opacity var(--transition-speed);
    z-index: -1;
    border-radius: inherit;
}

.service-card:hover .card-content {
    translate: 0 calc(var(--hover-offset) * -1);
    background: hsl(0 0% 100% / var(--hover-opacity));
    backdrop-filter: blur(5px) saturate(180%);
    outline: 1px solid hsl(0 0% 100% / 0.6);
}

.service-card:hover .card-content::before {
    opacity: var(--frostiness);
}

.service-card:hover::after {
    transform: translate(var(--translate-x), var(--translate-y)) translateY(2px) scale(0.95);
}

@keyframes enter {
    from { transform: translate(0, 0); }
    to { transform: translate(calc(var(--x-motion) * var(--motion-factor) * -1), calc(var(--y-motion) * var(--motion-factor) * -1)); }
}

@keyframes exit {
    from { transform: translate(calc(var(--x-motion) * var(--motion-factor) * -1), calc(var(--y-motion) * var(--motion-factor) * -1)); }
    to { transform: translate(0, 0); }
}

.card-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    margin-top: 0;
    display: block;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #000;
}

.card-description {
    font-size: 15px;
    line-height: 1.5;
    color: #4a4a4a;
}

/* Experience Section */
.experience-section {
    padding: 100px 20px;
    background: #fafafa;
}

.experience-section .section-title {
    color: #000;
    text-shadow: none;
}

.experience-section .section-subtitle {
    color: #666;
    text-shadow: none;
    font-size: 16px;
}

/* Footer */
.footer {
    padding: 60px 20px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

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

.footer-logo {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 16px;
    color: #999;
}

.footer-right {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #000;
}

.footer-link .icon {
    font-size: 20px;
}

/* Success Modal - SIMPLE FADE + SUBTLE SCALE (SMOOTH VERSION) */
.success-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0s 0.25s;
    z-index: 2000;
    padding: 20px;
}

.success-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.success-modal {
    background: white;
    padding: 70px 60px;
    border-radius: 24px;
    text-align: center;
    max-width: 480px;
    width: 100%;
    opacity: 0;
    transform: scale(0.9) translate3d(0, 0, 0);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 30px 80px rgba(0,0,0,0.12);
}

.success-modal-overlay.show .success-modal {
    opacity: 1;
    transform: scale(1) translate3d(0, 0, 0);
}

.success-modal .checkmark {
    font-size: 72px;
    color: #000;
    margin-bottom: 36px;
    font-weight: 100;
    line-height: 1;
}

.success-modal h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000;
    font-weight: 300;
    letter-spacing: -0.01em;
}

.success-modal p {
    color: #888;
    margin-bottom: 40px;
    line-height: 1.7;
    font-size: 16px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal button meets 44px touch target */
.success-modal button {
    background: transparent;
    border: 1px solid #000;
    padding: 14px 36px;
    border-radius: 6px;
    color: #000;
    font-weight: 400;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.success-modal button:hover {
    background: #000;
    color: white;
}

/* Responsive Design - Based on iOS/Android/Web Standards */
@media (max-width: 768px) {
    /* Navigation - All buttons meet 44px minimum touch target (WCAG AAA) */
    .nav-menu {
        gap: 8px;
    }
    
    .nav-menu li {
        min-width: 80px;
        height: 44px;
    }
    
    /* Mobile body text standard: 16px minimum */
    .nav-menu a {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .nav-glass-card {
        top: 12px;
        left: 12px;
        right: 12px;
    }
    
    .nav-content {
        padding: 0 8px;
        gap: 8px;
    }
    
    .logo-wrapper {
        height: 44px;
    }
    
    .logo-link {
        padding: 10px 16px;
        font-size: 16px;
        height: 44px;
        gap: 6px;
    }
    
    .logo-image {
        height: 18px;
        width: 18px;
    }
    
    .logo-image-white {
        height: 18px;
        width: 18px;
        left: 12px;
    }
    
    /* Hero Section */
    .hero-contact-wrapper {
        padding: 40px 16px 40px;
        padding-top: 75px;
    }
    
    /* Mobile H1 standard: 32-40px */
    .hero-title {
        font-size: 32px;
        font-weight: 800;
        margin-bottom: 10px;
        line-height: 1.1;
    }
    
    /* Mobile body text: 16-17px */
    .hero-subtitle {
        font-size: 16px;
        line-height: 1.35;
        padding: 0 12px;
        margin-bottom: 8px;
    }
    
    /* Contact Card */
    .contact-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
        margin: 0 8px;
    }
    
    /* Mobile H2 standard: 24-28px */
    .contact-title {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .contact-subtitle {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .contact-form {
        gap: 8px;
    }
    
    /* Keep 16px minimum to prevent iOS zoom on focus */
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .submit-btn {
        padding: 10px;
        font-size: 15px;
        margin-top: 2px;
        min-height: 44px;
        border-radius: 8px;
    }
    
    /* Services Section */
    .services-section {
        padding: 60px 16px;
    }
    
    .services-section .container {
        padding: 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
        padding: 0 8px;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 340px;
        margin: 0 auto;
    }
    
    .service-card {
        /* Disable ALL animations and hover effects on mobile */
        cursor: default;
        pointer-events: none;
        border-radius: 20px;
    }
    
    .service-card::after {
        border-radius: 20px;
    }
    
    /* Re-enable pointer events for card content only */
    .service-card .card-content {
        pointer-events: auto;
        border-radius: 20px;
    }
    
    /* Disable ALL hover effects */
    .service-card:hover .card-content {
        translate: 0 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        outline: none !important;
    }
    
    .service-card:hover .card-content::before {
        opacity: 0 !important;
    }
    
    .service-card:hover::after {
        scale: 1 !important;
        translate: 0 0 !important;
        animation: none !important;
    }
    
    /* Remove transition effects on mobile */
    .service-card::after,
    .card-content {
        transition: none !important;
    }
    
    .card-content {
        padding: 18px 20px 22px 20px;
    }
    
    .card-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 10px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    /* Mobile body text standard: 15-16px */
    .card-description {
        font-size: 14px;
        line-height: 1.5;
    }
    
    /* Experience Section */
    .experience-section {
        padding: 60px 16px;
    }
    
    /* Footer */
    .footer {
        padding: 48px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 28px;
        text-align: center;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-link {
        font-size: 16px;
        min-height: 44px;
        align-items: center;
    }
    
    /* Success Modal */
    .success-modal {
        padding: 48px 32px;
        margin: 0 16px;
    }
    
    .success-modal .checkmark {
        font-size: 56px;
        margin-bottom: 28px;
    }
    
    .success-modal h3 {
        font-size: 24px;
        margin-bottom: 16px;
    }
    
    .success-modal p {
        font-size: 16px;
        margin-bottom: 32px;
    }
    
    .success-modal button {
        min-height: 44px;
    }
}

/* Small mobile devices (iPhone SE, etc) */
@media (max-width: 400px) {
    .nav-menu {
        gap: 6px;
    }
    
    .nav-menu li {
        min-width: 72px;
        height: 44px;
    }
    
    .nav-menu a {
        padding: 12px 12px;
        font-size: 13px;
    }
    
    .logo-wrapper {
        height: 44px;
    }
    
    .logo-link {
        padding: 10px 12px;
        font-size: 15px;
        height: 44px;
        gap: 5px;
    }
    
    .logo-image {
        height: 20px;
        width: 20px;
    }
    
    .logo-image-white {
        height: 20px;
        width: 20px;
        left: 16px;
    }
    
    .nav-content {
        padding: 0 6px;
        gap: 6px;
    }
    
    .hero-title {
        font-size: 24px;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 13px;
        line-height: 1.35;
        margin-bottom: 6px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .contact-card {
        padding: 28px 20px;
    }
    
    .cards-container {
        max-width: 320px;
        gap: 14px;
    }
    
    .card-content {
        padding: 16px 18px 20px 18px;
    }
    
    .card-icon {
        width: 22px;
        height: 22px;
        margin-bottom: 8px;
    }
    
    .card-title {
        font-size: 17px;
        margin-bottom: 6px;
    }
    
    .card-description {
        font-size: 13px;
        line-height: 1.4;
    }
}