/* Here comes your own styling */

/* Custom Loading Screen Animation - Logo Animation (No Video/Play Button!) */
.loader {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: auto !important;
    height: auto !important;
    max-width: 300px !important;
    max-height: 300px !important;
    z-index: 9999 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.loader::before,
.loader::after {
    display: none !important;
}

/* Logo Animation - Smooth pulsing/breathing effect */
#loading-logo {
    width: auto !important;
    height: 150px !important;
    max-width: 300px !important;
    max-height: 300px !important;
    object-fit: contain !important;
    display: block !important;
    animation: logoPulse 2s ease-in-out infinite;
}

/* Smooth pulsing animation for logo */
@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.9;
    }
}

/* Alternative: Fade in and scale animation */
.loading-logo-animation {
    animation: logoFadeInScale 2s ease-in-out infinite;
}

@keyframes logoFadeInScale {
    0% {
        transform: scale(0.8);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }
}

/* Responsive logo loader */
@media (max-width: 767px) {
    .loader {
        max-width: 200px !important;
        max-height: 200px !important;
    }
    
    #loading-logo {
        height: 120px !important;
        max-width: 200px !important;
        max-height: 200px !important;
    }
}

@media (max-width: 480px) {
    .loader {
        max-width: 150px !important;
        max-height: 150px !important;
    }
    
    #loading-logo {
        height: 100px !important;
        max-width: 150px !important;
        max-height: 150px !important;
    }
}

/* Alternative: Pulsing dots animation (uncomment to use instead) */
/*
.loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.loader::before,
.loader::after {
    content: '';
    width: 12px;
    height: 12px;
    background: #33C8F0;
    border-radius: 50%;
    animation: pulse 1.4s ease-in-out infinite;
}

.loader::after {
    animation-delay: 0.7s;
}

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

/* Apply Montserrat font globally */
body {
    font-family: 'Montserrat', sans-serif !important;
}

/* Full page overlay behind logo, text, and button */
#content {
    position: relative;
    z-index: 1;
}

#content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: -1;
    pointer-events: none;
}

/* Keep custom logo same visual size as desired */
.brand img {
    height: 150px;
    width: auto;
    max-width: 100%;
}

/* Custom heading size */
#content .heading .large {
    font-size: 58px;
}

/* Intro paragraph under main heading */
#content .heading p {
    padding-top: 16px;
    font-weight: 300;
    font-size: 20px;
    line-height: inherit;
}

/* Adjust logo block spacing */
.brand {
    margin-bottom: 28px;
}

/* Gradient button styling */
.btn-primary {
    background: linear-gradient(to right, #FF1493, #800080, #0080FF) !important;
    border: none !important;
    color: #fff !important;
    padding: 15px 50px !important;
    font-weight: 500 !important;
    border-radius: 100px !important;
}

.btn-primary:hover {
    background: linear-gradient(to right, #FF69B4, #9370DB, #00CED1) !important;
}

/* ============================================
   RESPONSIVE STYLES FOR ALL SCREEN SIZES
   ============================================ */

/* Extra Large Desktops (1400px and up) */
@media (min-width: 1400px) {
    #content .heading .large {
        font-size: 64px;
    }
    #content .heading p {
        font-size: 22px;
    }
    .brand img {
        height: 180px;
    }
}

/* Large Desktops (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    #content .heading .large {
        font-size: 58px;
    }
    #content .heading p {
        font-size: 20px;
    }
    .brand img {
        height: 150px;
    }
}

/* Medium Desktops / Tablets Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    #content .heading .large {
        font-size: 48px;
    }
    #content .heading p {
        font-size: 18px;
    }
    .brand img {
        height: 120px;
    }
    .btn-primary {
        padding: 12px 40px !important;
        font-size: 15px !important;
    }
}

/* Tablets Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    #content .heading .large {
        font-size: 42px;
    }
    #content .heading p {
        font-size: 17px;
    }
    .brand img {
        height: 100px;
    }
    .brand {
        margin-bottom: 24px;
    }
    .btn-primary {
        padding: 12px 35px !important;
        font-size: 14px !important;
    }
    #content .heading {
        margin-bottom: 30px;
    }
    #content .heading p {
        padding-top: 14px;
    }
}

/* Mobile Devices (max-width: 767px) */
@media (max-width: 767px) {
    /* Logo scaling */
    .brand img {
        height: 80px;
        max-width: 90%;
    }
    .brand {
        margin-bottom: 20px;
    }
    
    /* Heading scaling */
    #content .heading .large {
        font-size: 32px !important;
        line-height: 1.2;
    }
    #content .heading {
        margin-bottom: 25px;
    }
    
    /* Sub-text scaling */
    #content .heading p {
        font-size: 16px !important;
        padding-top: 12px;
        line-height: 1.5;
    }
    
    /* Button scaling */
    .btn-primary {
        padding: 12px 30px !important;
        font-size: 14px !important;
        width: auto;
        display: inline-block;
    }
    
    /* Container padding for mobile */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #content .content-wrapper {
        padding: 20px 0;
    }
    
    /* Overlay adjustments for mobile */
    #content::before {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Logo scaling */
    .brand img {
        height: 60px;
        max-width: 85%;
    }
    .brand {
        margin-bottom: 18px;
    }
    
    /* Heading scaling */
    #content .heading .large {
        font-size: 26px !important;
        line-height: 1.2;
    }
    #content .heading {
        margin-bottom: 20px;
    }
    
    /* Sub-text scaling */
    #content .heading p {
        font-size: 14px !important;
        padding-top: 10px;
        line-height: 1.4;
    }
    
    /* Button scaling */
    .btn-primary {
        padding: 10px 25px !important;
        font-size: 13px !important;
        width: 100%;
        max-width: 280px;
    }
    
    /* Container padding for small mobile */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    #content .content-wrapper {
        padding: 15px 0;
    }
    
    /* Overlay adjustments for small mobile */
    #content::before {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Extra Small Mobile Devices (max-width: 360px) */
@media (max-width: 360px) {
    .brand img {
        height: 50px;
    }
    
    #content .heading .large {
        font-size: 22px !important;
    }
    
    #content .heading p {
        font-size: 13px !important;
    }
    
    .btn-primary {
        padding: 10px 20px !important;
        font-size: 12px !important;
    }
}

/* ============================================
   RESPONSIVE BACKGROUND & CANVAS
   ============================================ */

/* Ensure canvas and background wrapper are responsive */
#displayCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.cd-background-wrapper {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 0;
}

.base-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.base-layer canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

/* Mobile optimizations for background */
@media (max-width: 767px) {
    .base-layer {
        transform: translateZ(0) scale(1) !important;
    }
    
    /* Reduce transform scale on mobile for better performance */
    .cd-floating-background {
        transform: scale(1) !important;
    }
}

/* Small mobile optimizations */
@media (max-width: 480px) {
    .base-layer {
        transform: translateZ(0) scale(1) !important;
    }
}
