/* Apple-style CSS - Premium Design System */

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

/* Smooth scrolling - handled by JS for cubic-bezier easing */
html {
    -webkit-overflow-scrolling: touch;
}

/* Selection styling */
::selection {
    background: rgba(13, 126, 163, 0.3);
    color: #fff;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #0d7ea3;
    outline-offset: 2px;
}

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

/* Links */
a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Buttons */
button, .apple-btn {
    cursor: pointer;
    border: none;
    font-family: inherit;
}

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(10, 14, 20, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(13, 126, 163, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 126, 163, 0.8);
}

/* Flash message animations */
.flash-msg {
    animation: slideIn 0.3s ease-out, fadeOut 0.3s ease-out 4.7s forwards;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Navigation hover effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Card hover glow effect */
.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(13, 126, 163, 0.12),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* Gradient text animation */
@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animated-gradient {
    background: linear-gradient(90deg, #e8e8ed, #0d7ea3, #e8e8ed);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s ease infinite;
}

/* Parallax effect for hero */
.hero-parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Service card icon hover */
.service-icon {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Image gallery light effect */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.gallery-item:hover::after {
    transform: translateX(100%);
}

/* Partner badge hover */
.partner-badge {
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.partner-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Form input focus glow */
input:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 126, 163, 0.2);
}

/* Button press effect */
.apple-btn:active {
    transform: scale(0.98);
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 25%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Responsive typography */
@media (max-width: 768px) {
    .apple-headline {
        font-size: 2.5rem;
    }
    
    .apple-subheadline {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Dark mode toggle ready */
@media (prefers-color-scheme: light) {
    /* Can add light mode variants here if needed */
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print styles */
@media print {
    body {
        background: #fff;
        color: #000;
    }
    
    nav, footer {
        display: none;
    }
    
    .glass-card {
        background: #f5f5f5;
        border: 1px solid #ddd;
    }
}


