/*
Theme Name: RPG Properties
Theme URI: https://www.rpgproperty.co.uk
Description: A minimal WordPress theme for RPG Properties featuring video background and animated logo transitions.
Author: Cormack Advertising
Author URI: https://www.cormackadvertising.com/
Version: 1.1.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rpg-properties
Tags: full-width-template, custom-logo, video-background

This theme, like WordPress, is licensed under the GPL.
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* Logo Container */
.logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* Logo Styles */
.logo {
    position: absolute;
    max-width: 450px;
    width: 67.5%;
    height: auto;
    opacity: 0;
    filter: blur(20px);
    transition: opacity 3.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 3.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, filter;
}

/* Animation States */
.logo.fade-in {
    opacity: 1;
    filter: blur(0px);
}

.logo.fade-out {
    opacity: 0;
    filter: blur(20px);
}

.logo.visible {
    opacity: 1;
    filter: blur(0px);
}

/* Responsive Design */

/* Tablet (Portrait) */
@media (max-width: 1024px) and (orientation: portrait) {
    .logo {
        max-width: 375px;
        width: 63.75%;
    }
}

/* Tablet (Landscape) */
@media (max-width: 1024px) and (orientation: landscape) {
    .logo {
        max-width: 337.5px;
        width: 60%;
    }
}

/* Mobile (Portrait) */
@media (max-width: 768px) and (orientation: portrait) {
    .logo {
        max-width: 300px;
        width: 60%;
    }
}

/* Mobile (Landscape) */
@media (max-width: 768px) and (orientation: landscape) {
    .logo {
        max-width: 262.5px;
        width: 52.5%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .logo {
        max-width: 225px;
        width: 56.25%;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .logo {
        max-width: 187.5px;
        width: 52.5%;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Performance Optimizations */
@media (prefers-reduced-motion: reduce) {
    .logo {
        transition: opacity 2s ease, filter 2s ease;
    }
}

/* Ensure smooth animations on all devices */
.logo-container,
.video-background {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

/* Footer Links */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 50px;
    background: transparent;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    overflow: hidden;
}

.footer.show {
    opacity: 1;
    pointer-events: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: clamp(20px, 3vw, 40px);
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1vw, 12px);
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.footer-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 1;
    min-width: 0;
}

.footer a {
    color: rgba(180, 180, 180, 0.85);
    text-decoration: none;
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    transition: color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.footer a:hover {
    color: rgba(220, 220, 220, 1);
    transform: translateY(-1px);
}

.footer-separator {
    color: rgba(180, 180, 180, 0.5);
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    flex-shrink: 0;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.linkedin-icon {
    width: clamp(14px, 1.2vw, 16px);
    height: clamp(14px, 1.2vw, 16px);
    transition: transform 0.3s ease;
}

.linkedin-link:hover .linkedin-icon {
    transform: scale(1.15);
}

.address-text {
    color: rgba(180, 180, 180, 0.85);
    font-size: clamp(0.7rem, 0.8vw, 0.85rem);
    text-align: right;
    line-height: 1.4;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Footer Responsive Design */
@media (max-width: 1400px) {
    .footer {
        padding: 16px clamp(30px, 4vw, 50px);
    }
}

@media (max-width: 1200px) {
    .footer {
        padding: 14px clamp(25px, 3vw, 40px);
    }

    .footer-content {
        gap: clamp(15px, 2vw, 30px);
    }
}

@media (max-width: 900px) {
    .footer {
        padding: 14px clamp(20px, 3vw, 30px);
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .footer-left {
        justify-content: center;
        width: 100%;
    }

    .footer-right {
        justify-content: center;
        width: 100%;
    }

    .address-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 12px 20px;
    }

    .footer-content {
        gap: 10px;
    }

    .footer-left {
        gap: clamp(6px, 1.5vw, 10px);
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 10px 16px;
    }

    .footer-content {
        gap: 8px;
    }

    .footer-left {
        gap: 6px;
    }
}

@media (max-width: 360px) {
    .footer {
        padding: 10px 12px;
    }

    .footer-left {
        gap: 4px;
    }

    .footer-separator {
        margin: 0 2px;
    }
}
