/* Shared Styles for Simon Frost Portfolio Website */

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Common Animation Classes */
.animate-fade-in {
    animation: fadeIn 0.8s ease-in;
}

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

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

/* Common Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Common Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* HOME PAGE SPECIFIC STYLES */

/* Home page gradient background */
.home-gradient-bg {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9) 0%, rgba(234, 88, 12, 0.9) 100%), url('images/bg_1440.jpg');
    background-size: cover;
    background-position: center 70%;
    background-attachment: scroll;
}

/* Social links responsive spacing for mobile */
@media (max-width: 640px) {
    .home-social-links > * {
        margin-left: 0.75rem !important; /* Override Tailwind's space-x-6 (1.5rem) with 0.75rem on mobile */
    }
    .home-social-links > *:first-child {
        margin-left: 0 !important; /* Remove margin from first child */
    }
}

/* Home page social icons */
.home-social-icon {
    transition: all 0.3s ease;
}

.home-social-icon:hover {
    transform: scale(1.1);
}

/* ORDERBOOK PAGE SPECIFIC STYLES */

/* Orderbook gradient background */
.orderbook-gradient-bg.orderbook-hero-bg {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.orderbook-hero-bg {
    background: linear-gradient(rgba(249, 115, 22, 0.9), rgba(234, 88, 12, 0.9)), url('orderbook/images/hero.jpg');
    background-size: cover;
    background-position: center 70%;
    background-attachment: scroll;
}

/* Responsive background positioning for orderbook hero */
@media (max-width: 768px) {
    .orderbook-hero-bg {
        background-position: center center;
        background-size: cover;
    }
}

/* Orderbook screenshot styles */
.orderbook-screenshot {
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.orderbook-screenshot:hover {
    transform: scale(1.05);
}

/* REVERSION PAGE SPECIFIC STYLES */

.reversion-hero-bg {
    /* Base gradient matching homepage exactly at 90% opacity */
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.9) 0%, rgba(234, 88, 12, 0.9) 100%);
    position: relative;
}

.reversion-hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('reversion/pattern.png');
    background-size: auto;
    background-repeat: repeat;
    background-position: center;
    /* CSS Blend Modes - try these options:
       normal, multiply, screen, overlay, darken, lighten,
       color-dodge, color-burn, hard-light, soft-light,
       difference, exclusion, hue, saturation, color, luminosity */
    mix-blend-mode: color-dodge;
    pointer-events: none;
}

/* Reversion device mockup styles */
.reversion-device-mockup {
    position: relative;
    width: 250px;
    height: 489px;
    margin: 0 auto;
    background: url('reversion/iphone-bg-33.png') top left no-repeat;
    background-size: contain;
}

.reversion-device-screen {
    position: absolute;
    width: 213px;
    height: 320px;
    left: 20px;
    top: 88px;
    border-radius: 8px;
    overflow: hidden;
}

.reversion-device-shine {
    position: absolute;
    top: 0;
    left: 0;
    width: 250px;
    height: 489px;
    background: url('reversion/iphone-shine-33.png') top left no-repeat;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
}

.reversion-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.reversion-screenshot:hover {
    transform: scale(1.05);
}

@media (min-width: 1200px) {
    .reversion-device-mockup {
        width: 380px;
        height: 744px;
        background: url('reversion/iphone-bg.png') top left no-repeat;
        background-size: contain;
    }
    
    .reversion-device-screen {
        width: 320px;
        height: 480px;
        left: 31px;
        top: 135px;
    }
    
    .reversion-device-shine {
        width: 380px;
        height: 744px;
        background: url('reversion/iphone-shine.png') top left no-repeat;
        background-size: contain;
    }
}

.reversion-carousel-container {
    position: relative;
    overflow: hidden;
}

.reversion-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.reversion-carousel-slide {
    min-width: 100%;
    height: 100%;
}