/* 
 * SkyDreamix Tech Solution - Theme Configuration
 * Global Variables & Base Resets
 */

:root {
    /* Color Palette */
    --primary-color: #2EA3D6;
    --primary-dark: #1B6CA8;
    --highlight-color: #00E5FF;
    --highlight-purple: #7C3AED;
    --white: #ffffff;
    --dark-text: #111827;
    --text-gray: #64748b;
    --bg-light: #f8fafc;

    /* Layout */
    --header-height: 90px;
    --section-padding: 100px 0;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
    overflow-x: clip;
    width: 100%;
    position: relative;
}

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-text);
}

a {
    text-decoration: none;
    transition: var(--transition-smooth);
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding);
}

/* Custom Page Preloader */
#loadingScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#loadingScreen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-inner-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

.loader-logo-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
    display: inline-block;
}

.loader-logo-box {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border-radius: 1.5rem;
    background: transparent;
}

.loader-img-obj {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(46, 163, 214, 0.15));
    animation: loader-subtle-grow 4s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.loader-logo-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loader-shine-refined 4s infinite ease-in-out;
    z-index: 3;
}

.loader-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(46, 163, 214, 0.08) 0%, transparent 70%);
    z-index: 1;
    animation: loader-glow-soft 4s ease-in-out infinite;
}

.loader-main-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
    display: flex;
    justify-content: center;
    gap: 3px;
}

.loader-main-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    animation: char-reveal-smooth 0.6s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-main-title span:nth-child(1) { animation-delay: 0.2s; }
.loader-main-title span:nth-child(2) { animation-delay: 0.25s; }
.loader-main-title span:nth-child(3) { animation-delay: 0.3s; }
.loader-main-title span:nth-child(4) { animation-delay: 0.35s; }
.loader-main-title span:nth-child(5) { animation-delay: 0.4s; }
.loader-main-title span:nth-child(6) { animation-delay: 0.45s; }
.loader-main-title span:nth-child(7) { animation-delay: 0.5s; }
.loader-main-title span:nth-child(8) { animation-delay: 0.55s; }
.loader-main-title span:nth-child(9) { animation-delay: 0.6s; }
.loader-main-title span:nth-child(10) { animation-delay: 0.65s; }

.loader-dots-flex {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.loader-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.2;
    animation: dot-wave 1.4s infinite ease-in-out both;
}

.loader-dot:nth-child(1) { animation-delay: -0.32s; }
.loader-dot:nth-child(2) { animation-delay: -0.16s; }

.loader-sub-text {
    color: var(--text-gray);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fade-in-up-smooth 0.8s forwards 1.2s ease-out;
}

/* Animations */
@keyframes loader-subtle-grow {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 15px rgba(46, 163, 214, 0.15));
    }
    50% { 
        transform: scale(1.03); 
        filter: drop-shadow(0 0 25px rgba(46, 163, 214, 0.25));
    }
}

@keyframes loader-shine-refined {
    0% { left: -150%; }
    30%, 100% { left: 150%; }
}

@keyframes loader-glow-soft {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

@keyframes char-reveal-smooth {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dot-wave {
    0%, 80%, 100% { opacity: 0.2; transform: scale(0.9); }
    40% { opacity: 1; transform: scale(1); }
}

@keyframes fade-in-up-smooth {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 0.8;
        transform: translateY(0);
    }
}

/* Premium Theme Buttons */
.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white) !important;
    box-shadow: 0 10px 25px rgba(46, 163, 214, 0.2);
}

.theme-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(46, 163, 214, 0.35);
}

.theme-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    background: var(--white);
    border: 1.5px solid rgba(46, 163, 214, 0.2);
    color: var(--primary-color) !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.theme-btn-outline:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(46, 163, 214, 0.1);
    background: #f8fafc;
}