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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

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

header {
    background-color: #fb923c;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fed7aa;
}

#hero {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

#hero h2 {
    font-family: 'Tahoma', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: 0.1em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

section {
    padding: 3rem 0;
}

section#services {
    background: linear-gradient(135deg, #fdba74 0%, #fb923c 100%);
    color: white;
}

section#services h2,
section#services h3 {
    color: white;
}

section#services p,
section#services li {
    color: rgba(255, 255, 255, 0.9);
}

section:nth-child(even):not(#services) {
    background-color: #f8f9fa;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #1a1a1a;
}

h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

/* About section layout */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 2rem;
}

.about-image img {
    width: 100vw;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    margin-left: calc(-50vw + 50%);
    max-height: 500px;
}

/* Quadrant layout */
.quadrant-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    min-height: 100vh;
    max-width: 100%;
    overflow: visible;
}

.quadrant {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}

.quadrant > * {
    position: relative;
    z-index: 1;
}

.quadrant h2,
.quadrant h3,
.quadrant p {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.quadrant .service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.quadrant .service-card h3 {
    color: #ea580c !important;
    text-shadow: none;
}

.quadrant.top-left,
.quadrant.bottom-right {
    align-items: flex-start;
    text-align: left;
}

.quadrant img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

.services-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    max-height: 300px;
}

.privacy-content h2 {
    color: white !important;
    margin-bottom: 1rem;
}

.legal-content-inline {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
}

.legal-content-inline h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #ea580c !important;
    font-size: 0.95rem;
}

.legal-content-inline p {
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: #444 !important;
}

.legal-content-main {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.legal-content-main h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #ea580c;
    font-size: 1rem;
}

.legal-content-main p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
    color: #444;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

ul li {
    margin-bottom: 0.5rem;
    color: #555;
}

.services-content .service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
    color: #ea580c;
    margin-bottom: 1rem;
}

.service-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

.placeholder-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ios-gradient {
    background: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
}

.android-gradient {
    background: linear-gradient(135deg, #3DDC84 0%, #34A853 100%);
}

.optimization-gradient {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
}

/* Slide-in animations */
.slide-in-left,
.slide-in-right,
.slide-in-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.slide-in-left {
    transform: translateX(-100px);
}

.slide-in-right {
    transform: translateX(100px);
}

.slide-in-up {
    transform: translateY(100px);
}

.slide-in-left.animate,
.slide-in-right.animate,
.slide-in-up.animate {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.contact-info {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.legal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.legal-content h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #ea580c;
    font-size: 1rem;
}

.legal-content p {
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

footer {
    background-color: #fb923c;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

footer p {
    color: #ccc;
    margin-bottom: 0.5rem;
}

.legal-disclosure {
    margin-top: 1rem;
    opacity: 0.7;
}

.legal-disclosure summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #fed7aa;
}

.legal-disclosure p {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #ccc;
}

/* Tablet styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    #hero h2 {
        font-size: 3rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    #hero h2 {
        font-size: 2.5rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .quadrant-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 1rem;
    }
    
    .quadrant {
        min-height: 50vh;
        position: static;
    }
    
    .quadrant img {
        position: static;
        height: 40vh;
        border-radius: 12px;
    }
    
    .about-image img,
    .services-image img {
        height: auto;
        max-height: 250px;
        margin-left: 0;
        width: 100%;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }
    
    .legal-content {
        width: 100%;
        margin-left: 0;
        padding: 1rem;
        font-size: 0.85rem;
        text-align: center;
    }
    
    .services-content .service-card {
        padding: 1rem;
    }
}

/* iPhone Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .quadrant-layout {
        min-height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    #hero {
        padding: 2rem 0;
        padding-top: max(2rem, env(safe-area-inset-top));
    }
    
    #hero h2 {
        font-size: 2rem;
    }
    
    .placeholder-image {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .about-image img,
    .services-image img {
        max-height: 200px;
    }
    
    /* Fix iPhone Safari bottom spacing */
    .quadrant-layout {
        padding-bottom: env(safe-area-inset-bottom);
    }
}