/* ===================================
   Reset & Base Styles
   =================================== */

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

:root {
    /* Apple-inspired Colors */
    --primary-color: #000000;
    --primary-dark: #1d1d1f;
    --primary-light: #424245;
    --secondary-color: #0071e3;
    --accent-color: #06c;
    
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-light: #86868b;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-dark: #000000;
    --bg-accent: #fbfbfd;
    
    --border-color: #d2d2d7;
    
    /* Apple Blue */
    --apple-blue: #0071e3;
    --apple-blue-hover: #0077ed;
    
    /* Shadows - subtle like Apple */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.12);
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 max(20px, 5vw);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.6, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.6, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.6, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* ===================================
   Navigation - Apple Style
   =================================== */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(251, 251, 253, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    transition: var(--transition-normal);
}

.nav.scrolled {
    background: rgba(251, 251, 253, 0.8);
    box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 48px;
    max-width: 1280px;
    margin: 0 auto;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-symbol {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.6, 1);
}

.logo:hover .logo-symbol {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #000000;
    letter-spacing: -1.2px;
    font-family: 'Inter', 'Helvetica Neue', 'Arial', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.6, 1);
    text-transform: lowercase;
}

.logo:hover .logo-text {
    color: #0071e3;
    letter-spacing: -0.5px;
}

.logo-image {
    height: 32px;
    width: auto;
    display: block;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.6, 1);
}

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

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    transition: var(--transition-fast);
    opacity: 0.88;
}

.nav-link:hover {
    opacity: 1;
}

.nav-link-cta {
    background: var(--apple-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 980px;
    font-size: 12px;
    opacity: 1;
}

.nav-link-cta:hover {
    background: var(--apple-blue-hover);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

/* ===================================
   Hero Section - Apple Style
   =================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 100px;
    background: #000000;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, #000000 0%, #1d1d1f 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.15) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 80px;
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 20px;
    color: #f5f5f7;
    letter-spacing: -0.015em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.6, 1);
}

.gradient-text {
    background: linear-gradient(90deg, #f5f5f7 0%, #0071e3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 28px;
    color: #a1a1a6;
    margin-bottom: 32px;
    line-height: 1.42859;
    font-weight: 400;
    letter-spacing: -0.010em;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.6, 1) 0.1s both;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.6, 1) 0.2s both;
}

.btn {
    padding: 12px 22px;
    border-radius: 980px;
    font-weight: 400;
    font-size: 17px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    cursor: pointer;
    border: none;
    letter-spacing: -0.022em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: var(--apple-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

.btn-primary:hover {
    background: var(--apple-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--apple-blue);
    border: 1px solid var(--apple-blue);
}

.btn-secondary:hover {
    background: var(--apple-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 113, 227, 0.25);
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-large {
    padding: 14px 28px;
    font-size: 19px;
}

.scroll-indicator {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 32px;
    border: 1.5px solid rgba(245, 245, 247, 0.3);
    border-radius: 12px;
    position: relative;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: rgba(245, 245, 247, 0.5);
    border-radius: 50%;
    animation: scrollDot 2s infinite;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

@keyframes scrollDot {
    0% {
        top: 8px;
        opacity: 1;
    }
    100% {
        top: 20px;
        opacity: 0;
    }
}

/* ===================================
   Section Headers - Apple Style
   =================================== */

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-title {
    font-size: 56px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.015em;
    line-height: 1.07143;
}

.section-subtitle {
    font-size: 21px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: -0.010em;
}

/* ===================================
   Expertise Section - Apple Style
   =================================== */

.expertise {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
}

.service-card {
    background: var(--bg-secondary);
    border-radius: 18px;
    padding: 60px 40px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover::after {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--apple-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--apple-blue), #00c6ff);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card:hover .service-icon::before {
    opacity: 0.3;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon svg {
    transform: scale(1.1);
}

.service-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.012em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-title {
    color: var(--apple-blue);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-description {
    color: var(--text-primary);
}

/* ===================================
   Benefits Section - Apple Style
   =================================== */

.benefits {
    padding: var(--section-padding);
    background: var(--bg-accent);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 56px 32px;
    background: white;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-6px);
}

.benefit-card:hover::before {
    opacity: 1;
}

.benefit-icon {
    font-size: 52px;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.15) rotate(10deg);
}

.benefit-title {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.010em;
}

.benefit-description {
    color: var(--text-secondary);
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
}

/* ===================================
   Partnership Section - Apple Style
   =================================== */

.partnership {
    padding: var(--section-padding);
    background: var(--bg-dark);
    color: #f5f5f7;
}

.partnership .section-title {
    color: #f5f5f7;
}

.partnership .section-subtitle {
    color: #a1a1a6;
}

.partnership-intro {
    text-align: center;
    font-size: 21px;
    line-height: 1.381;
    margin-bottom: 72px;
    color: #a1a1a6;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.010em;
}

.partnership-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 72px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.partnership-feature {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 56px 48px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.partnership-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.partnership-feature:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 113, 227, 0.3);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.partnership-feature:hover::before {
    opacity: 1;
}

.partnership-feature h3 {
    font-size: 28px;
    margin-bottom: 24px;
    color: #f5f5f7;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.partnership-feature ul {
    list-style: none;
}

.partnership-feature li {
    padding: 14px 0;
    padding-left: 32px;
    position: relative;
    color: #a1a1a6;
    line-height: 1.47059;
    font-size: 17px;
    letter-spacing: -0.022em;
}

.partnership-feature li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--apple-blue);
}

.advantages {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 56px 48px;
    margin-bottom: 48px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.advantages-title {
    font-size: 32px;
    text-align: center;
    margin-bottom: 40px;
    color: #f5f5f7;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.advantage-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    color: #a1a1a6;
    line-height: 1.47059;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.advantage-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(8px);
    color: #f5f5f7;
}

.checkmark {
    color: #30d158;
    font-size: 20px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advantage-item:hover .checkmark {
    transform: scale(1.2);
}

.cta-section {
    text-align: center;
    margin-top: 56px;
}

/* ===================================
   Quote Section - Apple Style
   =================================== */

.quote-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.quote-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.quote-text {
    font-size: 28px;
    line-height: 1.42859;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: -0.010em;
}

/* ===================================
   Contact Section - Apple Style
   =================================== */

.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    margin-top: 72px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 10px;
    font-weight: 400;
    font-size: 17px;
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.form-group input,
.form-group textarea {
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 17px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-secondary);
    color: var(--text-primary);
    letter-spacing: -0.022em;
}

.form-group input:hover,
.form-group textarea:hover {
    border-color: #a1a1a6;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--apple-blue);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    transform: translateY(-2px);
}

/* Validation States - only applied via JavaScript */
.form-group input.valid,
.form-group textarea.valid {
    border-color: #30d158;
    background: rgba(48, 209, 88, 0.05);
}

.form-group input.valid:focus,
.form-group textarea.valid:focus {
    border-color: #30d158;
    box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.1);
}

.form-group input.invalid,
.form-group textarea.invalid {
    border-color: #ff3b30;
    background: rgba(255, 59, 48, 0.05);
}

.form-group input.invalid:focus,
.form-group textarea.invalid:focus {
    border-color: #ff3b30;
    box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.1);
}

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

.contact-form .btn {
    grid-column: 1 / -1;
    margin-top: 12px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.contact-info-item h4 {
    font-size: 21px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.010em;
}

.contact-info-item p {
    color: var(--text-secondary);
    font-size: 17px;
    letter-spacing: -0.022em;
}

.contact-info-item a {
    color: var(--apple-blue);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-info-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--apple-blue);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-link:hover {
    background: var(--bg-secondary);
    border-color: var(--apple-blue);
    color: var(--apple-blue);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 113, 227, 0.2);
}

.social-link:hover::before {
    opacity: 0.1;
    transform: scale(1.3);
}

/* ===================================
   Footer - Apple Style
   =================================== */

.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
}

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

.footer-left p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* ===================================
   Responsive Design - Apple Style
   =================================== */

@media (max-width: 1068px) {
    .hero-title {
        font-size: 64px;
    }

    .section-title {
        font-size: 48px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .partnership-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 48px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(251, 251, 253, 0.95);
        backdrop-filter: saturate(180%) blur(20px);
        padding: 20px;
        gap: 16px;
        box-shadow: inset 0 -1px 0 0 rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

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

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

    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 21px;
    }

    .section-title {
        font-size: 40px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 735px) {
    :root {
        --section-padding: 80px 0;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 19px;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 32px;
    }

    .section-subtitle {
        font-size: 19px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .partnership-intro {
        font-size: 19px;
    }

    .quote-text {
        font-size: 21px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .service-card,
    .partnership-feature,
    .advantages {
        padding: 40px 28px;
    }
}

/* ===================================
   Advanced Animations & Effects
   =================================== */

/* Smooth page load animation */
body {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Text gradient animation */
.gradient-text {
    background-size: 200% auto;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.scroll-indicator {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for buttons on load */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 113, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 113, 227, 0);
    }
}

.btn-primary {
    animation: pulse 2s infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Shimmer effect for cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.service-card::after {
    animation: shimmer 3s infinite;
}

/* Glow effect */
@keyframes glow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Rotate on hover for icons */
@keyframes rotateIn {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: rotate(0deg);
        opacity: 1;
    }
}

/* Slide in from bottom */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale in animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fade in from left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade in from right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Nav link active state */
.nav-link.active {
    opacity: 1;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--apple-blue);
    border-radius: 50%;
    animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        scroll-behavior: smooth;
    }
}

/* Hardware acceleration for smooth animations */
.service-card,
.benefit-card,
.partnership-feature,
.btn {
    transform: translateZ(0);
    will-change: transform;
}

/* High contrast for accessibility */
@media (prefers-contrast: high) {
    .service-card,
    .benefit-card {
        border: 2px solid var(--text-primary);
    }
}

/* ===================================
   ROI Calculator Styles
   =================================== */

/* Range slider styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0071e3;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    background: #005bb5;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.6);
    transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0071e3;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 113, 227, 0.4);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    background: #005bb5;
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.6);
    transform: scale(1.1);
}

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

/* Responsive adjustments for ROI Calculator */
@media (max-width: 768px) {
    .roi-calculator [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .roi-calculator h2 {
        font-size: 32px !important;
    }
    
    .roi-calculator [style*="display: flex"][style*="gap"] {
        flex-direction: column;
    }
}
