:root { /* Hero Colors - Using iOS 17 palette */ --hero-bg-light: linear-gradient(145deg, #F9F9F9, #FFFFFF); --hero-bg-dark: linear-gradient(145deg, #1C1C1E, #2C2C2E); --hero-accent: var(--sf-blue, #007AFF); --hero-accent-light: #5AC8FA; --hero-accent-gradient: linear-gradient(90deg, var(--hero-accent), var(--hero-accent-light)); --hero-text-primary-light: #000000; --hero-text-secondary-light: rgba(60, 60, 67, 0.8); --hero-text-primary-dark: #FFFFFF; --hero-text-secondary-dark: rgba(235, 235, 245, 1); /* Hero Dimensions */ --hero-max-width: 1200px; --hero-padding: clamp(40px, 8vw, 100px); --hero-gap: clamp(40px, 5vw, 60px); /* Hero Animation Settings */ --hero-timing: cubic-bezier(0.22, 1, 0.36, 1); } [dir="rtl"]:root { --hero-accent-gradient: linear-gradient(270deg, var(--hero-accent), var(--hero-accent-light)); } /* Apply Light/Dark Mode Colors */ @media (prefers-color-scheme: light) { :root { --hero-bg: var(--hero-bg-light); --hero-text-primary: var(--hero-text-primary-light); --hero-text-secondary: var(--hero-text-secondary-light); } } @media (prefers-color-scheme: dark) { :root { --hero-bg: var(--hero-bg-dark); --hero-text-primary: var(--hero-text-primary-dark); --hero-text-secondary: var(--hero-text-secondary-dark); } } /* Premium Hero Structure */ .ios-hero { position: relative; padding: var(--sp-16) var(--hero-padding) var(--sp-16); overflow: hidden; background: var(--hero-bg); display: flex; align-items: center; justify-content: center; z-index: 2; } .ios-hero-container { max-width: var(--hero-max-width); width: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: var(--hero-gap); position: relative; z-index: 3; } /* Premium Floating Elements */ .floating-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; overflow: hidden; opacity: 0; transition: opacity 1.2s var(--hero-timing); mix-blend-mode: hard-light; } [dir ="rtl"] .floating-elements { transform: scale(-1, 1); } .ios-hero.initialized .floating-elements { opacity: 1; } .floating-element { position: absolute; border-radius: 50%; background: var(--hero-accent-gradient); opacity: 0.05; filter: blur(30px); will-change: transform; } .floating-element:nth-child(1) { width: clamp(200px, 50vw, 500px); height: clamp(200px, 50vw, 500px); top: -10%; right: -15%; background: linear-gradient(145deg, var(--hero-accent), #64D2FF); } .floating-element:nth-child(2) { width: clamp(150px, 30vw, 300px); height: clamp(150px, 30vw, 300px); bottom: 10%; left: -10%; background: linear-gradient(145deg, #AF52DE, var(--hero-accent)); } .floating-element:nth-child(3) { width: clamp(100px, 20vw, 200px); height: clamp(100px, 20vw, 200px); bottom: -10%; right: 20%; background: linear-gradient(145deg, #FF9F0A, #FF375F); } /* Hero Content */ .ios-hero-content { flex: 1; max-width: 600px; display: flex; flex-direction: column; gap: 24px; z-index: 2; } .ios-hero-title { font-size: clamp(32px, 5vw, 48px); font-weight: 700; line-height: 1.1; margin: 0; background: var(--hero-accent-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-fill-color: transparent; letter-spacing: -0.02em; opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--hero-timing), transform 0.8s var(--hero-timing); text-wrap: balance; } .ios-hero.initialized .ios-hero-title { opacity: 1; transform: translateY(0); } .ios-hero-subtitle { font-size: clamp(16px, 2.5vw, 20px); line-height: 1.5; color: var(--hero-text-secondary); margin: 0; max-width: 540px; opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--hero-timing) 0.1s, transform 0.8s var(--hero-timing) 0.1s; text-wrap: pretty; } .ios-hero.initialized .ios-hero-subtitle { opacity: 1; transform: translateY(0); } /* Premium Buttons */ .ios-hero-buttons { display: flex; gap: 16px; margin-top: 8px; opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--hero-timing) 0.2s, transform 0.8s var(--hero-timing) 0.2s; } .ios-hero.initialized .ios-hero-buttons { opacity: 1; transform: translateY(0); } .ios-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 30px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.3s var(--hero-timing); position: relative; overflow: hidden; } .ios-btn::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255, 255, 255, 0.1); transform: translateX(-100%) skewX(-15deg); transition: transform 0.6s var(--hero-timing); } .ios-btn:hover::before { transform: translateX(100%) skewX(-15deg); } .ios-btn-primary { background: var(--hero-accent); color: white; box-shadow: 0 6px 20px rgba(0, 122, 255, 0.2); } .ios-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0, 122, 255, 0.3); } .ios-btn-primary:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(0, 122, 255, 0.2); } .ios-btn-secondary { background: rgba(0, 122, 255, 0.1); color: var(--hero-accent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); } .ios-btn-secondary:hover { background: rgba(0, 122, 255, 0.15); transform: translateY(-3px); } .ios-btn-secondary:active { transform: translateY(0); } /* Hero Image */ .ios-hero-image { flex: 1; max-width: 500px; display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(30px) scale(0.95); transition: opacity 1s var(--hero-timing) 0.3s, transform 1s var(--hero-timing) 0.3s; position: relative; } .ios-hero.initialized .ios-hero-image { opacity: 1; transform: translateY(0) scale(1); } .ios-hero-img { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)); transform-origin: center center; will-change: transform; } /* Premium Gradient Effect */ .ios-hero-gradient { position: absolute; bottom: 0; left: 0; width: 100%; height: 150px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--sf-background, #ffffff) 100%); z-index: 2; pointer-events: none; } @media (prefers-color-scheme: dark) { .ios-hero-gradient { background: linear-gradient(to bottom, rgba(28, 28, 30, 0) 0%, var(--sf-background-dark, #1C1C1E) 100%); } .floating-elements { mix-blend-mode: plus-lighter; } } /* Responsive Layout */ @media (max-width: 992px) { .ios-hero-container { flex-direction: column; gap: 40px; text-align: center; } .ios-hero-content { max-width: 100%; align-items: center; } .ios-hero-buttons { justify-content: center; } .ios-hero-image { max-width: 90%; margin: 0 auto; } .ios-hero { min-height: auto; padding-bottom: 80px; } } @media (max-width: 576px) { .ios-hero-buttons { flex-direction: column; width: 100%; max-width: 300px; } .ios-btn { width: 100%; } } /* Animation Presets */ .ios-hero [data-animation="fadeUp"] { opacity: 0; transform: translateY(30px); } .ios-hero [data-animation="fadeDown"] { opacity: 0; transform: translateY(-30px); } .ios-hero [data-animation="fadeIn"] { opacity: 0; } .ios-hero [data-animation="scaleUp"] { opacity: 0; transform: scale(0.9); } .ios-hero.initialized [data-animation] { opacity: 1; transform: none; } /* Scroll Indicator */ .scroll-indicator { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 30px; height: 50px; border: 2px solid var(--hero-accent); border-radius: 25px; display: flex; justify-content: center; padding-top: 10px; opacity: 0; transition: opacity 0.8s var(--hero-timing) 1s; z-index: 10; } .ios-hero.initialized .scroll-indicator { opacity: 0.7; } .scroll-dot { width: 6px; height: 6px; background: var(--hero-accent); border-radius: 50%; animation: scrollAnim 2s infinite; } @keyframes scrollAnim { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(15px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } } /* Smooth initialization */ .ios-hero { opacity: 0; transition: opacity 0.8s var(--hero-timing); } .ios-hero.initialized { opacity: 1; } /* Premium iOS 17 Hero Image Styling Enhanced visual treatments with Apple-perfect details */ /* Hero Image Container */ .ios-hero-image { flex: 1; max-width: 500px; position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); will-change: transform; perspective: 1000px; } /* Main Hero Image with Premium Effects */ .ios-hero-img { width: 100%; height: auto; object-fit: contain; border-radius: 12px; transform-origin: center center; transform-style: preserve-3d; will-change: transform; transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1); /* Multi-layered drop shadow for depth */ filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.07)) drop-shadow(0 24px 60px rgba(0, 0, 0, 0.05)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.05)); } /* Add subtle reflection effect */ .ios-hero-image::after { content: ''; position: absolute; bottom: -10%; left: 10%; right: 10%; height: 30%; background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)); filter: blur(20px); transform: perspective(1000px) rotateX(60deg) scale(0.8, 0.2); opacity: 0; transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; z-index: -1; } /* Show reflection when hero is initialized */ .ios-hero.initialized .ios-hero-image::after { opacity: 0.5; } /* Add subtle highlight glow */ .ios-hero-image::before { content: ''; position: absolute; top: -30%; left: -20%; right: -20%; height: 60%; background: radial-gradient( ellipse at center, rgba(120, 190, 255, 0.15), rgba(120, 190, 255, 0) 70% ); filter: blur(40px); opacity: 0; transition: opacity 1.2s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; z-index: -1; } /* Show highlight when hero is initialized */ .ios-hero.initialized .ios-hero-image::before { opacity: 1; } /* Float animation for subtle movement */ @keyframes heroFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } } .ios-hero.initialized .ios-hero-image { animation: heroFloat 6s cubic-bezier(0.45, 0, 0.55, 1) infinite; } /* Hover effects for desktop */ @media (hover: hover) { .ios-hero-image:hover .ios-hero-img { transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale(1.02); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1)) drop-shadow(0 30px 70px rgba(0, 0, 0, 0.07)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.06)); } .ios-hero-image:hover::after { opacity: 0.7; } } /* Dark mode adjustments */ @media (prefers-color-scheme: dark) { .ios-hero-img { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2)) drop-shadow(0 24px 60px rgba(0, 0, 0, 0.15)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1)); } .ios-hero-image::after { background: linear-gradient(to bottom, rgba(70, 130, 220, 0.08), rgba(70, 130, 220, 0)); } .ios-hero-image::before { background: radial-gradient( ellipse at center, rgba(90, 160, 255, 0.08), rgba(90, 160, 255, 0) 70% ); } } /* Responsive adjustments */ @media (max-width: 992px) { .ios-hero-image { max-width: 85%; margin-top: 20px; } .ios-hero.initialized .ios-hero-image { animation: heroFloat 8s cubic-bezier(0.45, 0, 0.55, 1) infinite; animation-delay: 0.5s; } } @media (max-width: 576px) { .ios-hero-image { max-width: 90%; } .ios-hero-image::after { bottom: -5%; height: 20%; } .ios-hero.initialized .ios-hero-image { animation-duration: 10s; /* Slower on mobile */ } }
