/* ========================================
   Hevora.tech - Main Stylesheet
   Apple-inspired Design with Parallax & 3D
   ======================================== */

/* CSS Variables */
:root {
    --primary: #0071e3;
    --primary-dark: #0077ed;
    --secondary: #5e5ce6;
    --accent: #bf5af2;
    --success: #34c759;
    --warning: #ff9500;
    --danger: #ff3b30;
    
    --bg-primary: #000000;
    --bg-secondary: #0d0d0d;
    --bg-tertiary: #1a1a1a;
    --bg-card: #1c1c1e;
    --bg-elevated: #2c2c2e;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-quaternary: rgba(255, 255, 255, 0.3);
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.06);
    
    --gradient-primary: linear-gradient(135deg, #0071e3 0%, #5e5ce6 50%, #bf5af2 100%);
    --gradient-hero: linear-gradient(180deg, #000000 0%, #0d0d0d 50%, #1a1a1a 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(0, 113, 227, 0.15) 0%, transparent 70%);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quint: cubic-bezier(0.83, 0, 0.17, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    --navbar-height: 52px;
    --section-padding: 160px;
    --container-max: 1200px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px rgba(0, 113, 227, 0.3);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
}

h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
}

h3 {
    font-size: clamp(28px, 3vw, 40px);
}

h4 {
    font-size: clamp(20px, 2vw, 28px);
}

p {
    color: var(--text-secondary);
    font-size: clamp(16px, 1.5vw, 21px);
    line-height: 1.6;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ========================================
   Layout
   ======================================== */

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

.section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-sm {
    padding: 80px 0;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    transition: all 0.5s var(--ease-out-expo);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.88);
}

.navbar-spacer {
    height: var(--navbar-height);
}

.navbar-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    transition: transform 0.3s var(--ease-out-expo);
}

.navbar-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-image {
    height: 32px;
    width: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

/* Navbar logo specific styling */
.navbar-logo .logo-image {
    height: 36px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-image:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive logo sizes */
@media (max-width: 768px) {
    .logo-image {
        height: 28px;
    }
    
    .navbar-logo .logo-image {
        height: 30px;
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 24px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }
    
    .navbar-logo .logo-image {
        height: 26px;
    }
}

/* Gallery Section Styles */
.gallery {
    background: var(--bg-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 300px;
    gap: 24px;
    margin-top: 48px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--bg-secondary);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.gallery-item-large {
    grid-column: span 6;
    grid-row: span 2;
}

.gallery-item-wide {
    grid-column: span 6;
}

.gallery-item:not(.gallery-item-large):not(.gallery-item-wide) {
    grid-column: span 6;
}

.gallery-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out-expo);
}

.gallery-item:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    display: flex;
    align-items: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s var(--ease-out-expo);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    color: white;
    transform: translateY(20px);
    transition: transform 0.3s var(--ease-out-expo);
}

.gallery-item:hover .gallery-content {
    transform: translateY(0);
}

.gallery-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.gallery-description {
    font-size: 16px;
    margin-bottom: 16px;
    opacity: 0.9;
    color: white;
}

.gallery-btn {
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 8px;
}

/* Partnership Visual Section */
.partnership-visual {
    text-align: center;
    padding: 40px 0;
}

.partnership-image-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.15);
}

.partnership-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.partnership-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.05), rgba(94, 92, 230, 0.02));
    pointer-events: none;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
}

/* Contact Page Mobile Responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float svg {
        width: 20px;
        height: 20px;
    }
    
    .contact-card {
        padding: 20px !important;
    }
    
    .contact-card h4 {
        font-size: 14px !important;
    }
    
    .contact-card div {
        font-size: 12px !important;
    }
    
    .contact-card svg {
        width: 20px !important;
        height: 20px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float svg {
        width: 18px;
        height: 18px;
    }
    
    .contact-card {
        padding: 16px !important;
    }
    
    .contact-card h4 {
        font-size: 13px !important;
    }
    
    .contact-card div {
        font-size: 11px !important;
    }
}

/* Footer Contact Info */
.footer-contact {
    grid-column: span 2;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.contact-item svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--primary);
}

.contact-item span {
    line-height: 1.4;
}

/* Footer Responsive Styles */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .footer-contact {
        grid-column: span 1;
    }
    
    .partnership-visual {
        padding: 30px 0;
    }
    
    .partnership-image-container {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .partnership-visual {
        padding: 20px 0;
    }
    
    .partnership-image-container {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .contact-info {
        align-items: center;
        text-align: center;
    }
    
    .contact-item {
        justify-content: center;
        text-align: center;
        max-width: 300px;
    }
    
    .contact-item svg {
        margin-right: 8px;
        margin-top: 0;
    }
    
    .footer-bottom {
        text-align: center;
    }
    
    .footer-legal {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 20px;
    }
    
    .footer-links ul {
        gap: 6px;
    }
    
    .contact-item {
        font-size: 13px;
    }
    
    .footer-legal {
        font-size: 13px;
    }
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(8, 1fr);
        grid-auto-rows: 250px;
    }
    
    .gallery-item-large {
        grid-column: span 4;
        grid-row: span 2;
    }
    
    .gallery-item-wide {
        grid-column: span 4;
    }
    
    .gallery-item:not(.gallery-item-large):not(.gallery-item-wide) {
        grid-column: span 4;
    }
    
    .footer-contact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 200px;
        gap: 16px;
    }
    
    .gallery-item-large {
        grid-column: span 6;
        grid-row: span 2;
    }
    
    .gallery-item-wide {
        grid-column: span 6;
    }
    
    .gallery-item:not(.gallery-item-large):not(.gallery-item-wide) {
        grid-column: span 3;
        grid-row: span 1;
    }
    
    .gallery-title {
        font-size: 20px;
    }
    
    .gallery-description {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }
    
    .gallery-item,
    .gallery-item-large,
    .gallery-item-wide {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .gallery-overlay {
        opacity: 1;
        background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 100%);
    }
    
    .gallery-content {
        transform: translateY(0);
    }
    
    .gallery-title {
        font-size: 18px;
    }
    
    .gallery-description {
        font-size: 13px;
    }
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-search {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-search:hover {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
}

.navbar-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ========================================
   Buttons
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 980px;
    transition: all 0.3s var(--ease-out-expo);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-quaternary);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0;
    background: var(--gradient-hero);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-glow);
    opacity: 0.6;
    animation: pulse-glow 8s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: perspective(500px) rotateX(60deg) translateY(-100px) scale(2); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(20px) scale(2); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    animation: fade-up 0.8s var(--ease-out-expo) 0.2s both;
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
    margin-bottom: 24px;
    animation: fade-up 0.8s var(--ease-out-expo) 0.3s both;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-up 0.8s var(--ease-out-expo) 0.4s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    animation: fade-up 0.8s var(--ease-out-expo) 0.5s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 80px;
    animation: fade-up 0.8s var(--ease-out-expo) 0.6s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat-label {
    font-size: 14px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Parallax & 3D Effects
   ======================================== */

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-layer {
    position: absolute;
    will-change: transform;
}

.parallax-slow {
    --parallax-speed: 0.3;
}

.parallax-medium {
    --parallax-speed: 0.5;
}

.parallax-fast {
    --parallax-speed: 0.8;
}

.perspective-container {
    perspective: 1000px;
    perspective-origin: center;
}

.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.5s var(--ease-out-expo);
}

.card-3d:hover {
    transform: rotateY(5deg) rotateX(-5deg) translateZ(20px);
}

.float-element {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* ========================================
   Features Section
   ======================================== */

.features {
    background: var(--bg-secondary);
}

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

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 40px 32px;
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.feature-card:hover {
    border-color: var(--border-color);
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    opacity: 0.05;
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border-radius: 16px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--primary);
    transition: color 0.3s ease;
}

.feature-card:hover .feature-icon svg {
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Products Showcase
   ======================================== */

.products {
    background: var(--bg-primary);
    position: relative;
}

.products-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(0, 113, 227, 0.15);
}

.product-card.large {
    grid-column: span 2;
    min-height: 600px;
}

.product-content {
    padding: 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.product-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 16px;
    width: fit-content;
}

.product-title {
    font-size: clamp(28px, 3vw, 40px);
    margin-bottom: 12px;
}

.product-description {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 400px;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
    z-index: 5;
}

/* ========================================
   CTA Section
   ======================================== */

.cta {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
}

.cta-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    color: white;
    margin-bottom: 20px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   Footer
   ======================================== */

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 64px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.footer-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
    gap: 16px;
}

.copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

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

.footer-legal a {
    font-size: 13px;
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

/* ========================================
   Reveal Animations
   ======================================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
    :root {
        --section-padding: 120px;
    }
    
    .navbar-links {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
    }
    
    .product-card.large {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   Mobile Menu
   ======================================== */

.mobile-menu {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu .nav-link {
    font-size: 28px;
    font-weight: 600;
}

/* ========================================
   Scrollbar
   ======================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-color);
}

/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

/* Mobile-first base improvements */
html {
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
}

/* Improved touch targets */
@media (pointer: coarse) {
    .nav-link,
    .btn,
    .feature-card,
    .product-card,
    .service-card-large,
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        padding: 14px 28px;
    }
}

/* Tablet breakpoint (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 100px 0;
    }
    
    .hero {
        min-height: 80vh;
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: clamp(40px, 6vw, 64px);
    }
    
    .section-title {
        font-size: clamp(32px, 4vw, 48px);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .products-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card.large {
        grid-column: span 2;
    }
    
    .story-grid {
        gap: 40px;
    }
    
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 32px;
    }
    
    .stat-item:not(:last-child)::after {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile breakpoint (up to 767px) */
@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
        --navbar-height: 48px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Hero mobile optimization */
    .hero {
        min-height: 100vh;
        padding: 80px 0 40px;
    }
    
    .hero-content {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: clamp(32px, 8vw, 48px);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 16px;
        padding: 0 8px;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 40px;
    }
    
    .hero-stat {
        flex: 1;
        min-width: 120px;
    }
    
    .hero-stat-value {
        font-size: 28px;
    }
    
    /* Grid layouts for mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .feature-card {
        padding: 28px 24px;
    }
    
    .products-showcase {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card {
        min-height: 400px;
    }
    
    .product-card.large {
        min-height: 450px;
    }
    
    .product-content {
        padding: 28px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    /* Services mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card-large {
        border-radius: 24px;
    }
    
    .service-card-image {
        height: 180px;
    }
    
    .service-card-content {
        padding: 24px;
    }
    
    /* Parallax mobile optimization */
    .parallax-section {
        min-height: auto;
        padding: 80px 0;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .parallax-content {
        padding: 0 16px;
    }
    
    .parallax-float {
        animation: none;
    }
    
    /* Story sections mobile */
    .story-section {
        min-height: auto;
        padding: 60px 0;
    }
    
    .story-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .story-grid > div:first-child {
        order: 2;
    }
    
    .story-grid > div:last-child {
        order: 1;
    }
    
    .story-image {
        border-radius: 20px;
    }
    
    /* Stats bar mobile */
    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 24px;
        margin: 24px 0;
    }
    
    .stat-value {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    /* Process timeline mobile */
    .process-timeline::before {
        left: 20px;
    }
    
    .process-step {
        padding-left: 12px;
        gap: 16px;
    }
    
    .process-number {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .process-content {
        padding: 20px;
    }
    
    /* Tech stack mobile */
    .tech-stack {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .tech-item {
        padding: 16px;
    }
    
    .tech-icon {
        width: 36px;
        height: 36px;
    }
    
    /* Section headers mobile */
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: clamp(28px, 7vw, 36px);
    }
    
    .section-subtitle {
        font-size: 15px;
    }
    
    /* CTA section mobile */
    .cta-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cta-actions .btn {
        width: 100%;
    }
    
    /* Footer mobile */
    .footer {
        padding: 60px 0 32px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-tagline {
        max-width: 100%;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding-top: 24px;
    }
    
    /* Contact page mobile */
    form[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Mobile menu improvements */
    .mobile-menu {
        padding: 60px 24px;
    }
    
    .mobile-menu .nav-link {
        font-size: 24px;
        padding: 16px 0;
    }
    
    /* Reduce animations on mobile for performance */
    .card-3d:hover,
    .story-image:hover {
        transform: none;
    }
    
    .float-element {
        animation: none;
    }
}

/* Small mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .feature-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .btn-large {
        padding: 14px 24px;
    }
    
    .tech-stack {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-bar {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-value {
        font-size: 24px;
    }
}

/* Landscape mode optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 80px 0 40px;
    }
    
    .hero-stats {
        display: none;
    }
    
    .mobile-menu {
        padding-top: 40px;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-grid {
        background-size: 30px 30px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .float-element,
    .parallax-float {
        animation: none;
    }
}

/* Dark mode support (already dark by default, but for system preference) */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark mode */
}

/* Print styles */
@media print {
    .navbar,
    .mobile-menu,
    .hero-glow,
    .hero-grid,
    .parallax-bg,
    .cta {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* Safe area for notched devices */
@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .mobile-menu {
        padding-top: calc(env(safe-area-inset-top) + var(--navbar-height));
    }
    
    .container {
        padding-left: max(16px, env(safe-area-inset-left));
        padding-right: max(16px, env(safe-area-inset-right));
    }
}

/* Viewport height fix for mobile browsers */
@supports (height: 100dvh) {
    .hero {
        min-height: 100dvh;
    }
    
    .parallax-section {
        min-height: 100dvh;
    }
}

/* SEO & Accessibility helpers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    content-visibility: auto;
}

/* Content visibility for performance */
.section {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* Loading state */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
