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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* Enable smooth touch scrolling on mobile */
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    /* Support for iOS safe areas - only sides, not top/bottom */
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    /* Better touch scrolling */
    -webkit-overflow-scrolling: touch;
    /* Prevent text selection during scrolling on mobile */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* Re-enable text selection for specific elements */
p, h1, h2, h3, h4, h5, h6, span, li, a, input, textarea, select {
    -webkit-user-select: text;
    user-select: text;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1.1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #e74c3c;
}

.btn-primary:visited {
    color: white;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.btn-primary:active {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover {
        background: linear-gradient(135deg, #c0392b, #a93226);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
    }
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .btn-secondary:hover {
        background: white;
        color: #2c3e50;
        transform: translateY(-2px);
    }
}

.btn-outline {
    background: transparent;
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Only apply hover on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
    .btn-outline:hover {
        background: #e74c3c;
        color: white;
        transform: translateY(-2px);
    }
}

/* Disabled state for buttons */
button.btn:disabled,
button.btn[disabled],
.btn:disabled,
.btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
