/* Modern CSS Reset */
:root {
    --primary: #ff6b00;
    --primary-dark: #cc5600;
    --primary-light: #ff8a33;
    --secondary: #000000;
    --text: rgba(255, 255, 255, 0.95);
    --text-muted: rgba(255, 255, 255, 0.7);
    --background: #0a0a0a;
    --surface: #111111;
    --elevation-1: #1a1a1a;
    --elevation-2: #222222;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius: 12px;
    --border-radius-sm: 6px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

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

::-webkit-scrollbar-track {
    background: var(--elevation-1);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
    border: 3px solid var(--elevation-1);
    background-clip: padding-box;
    transition: var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
    cursor: pointer;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Base Styles */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: opacity 0.5s ease;
}

/* Initial state - show content but hide preloader */
body {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Preloader styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Hide preloader when loaded */
body.loaded .preloader {
    opacity: 0;
    visibility: hidden;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-border {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 107, 0, 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    z-index: 1000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px var(--primary);
}

/* Selection Styling */
::selection {
    background: var(--primary);
    color: white;
    text-shadow: none;
}

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

a {
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%),
        url('../banner.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.logo-container {
    margin: 0 auto 2rem;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

h1 {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
    background: linear-gradient(135deg, #ff8a33, #ff6b00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    line-height: 1.1;
    margin: 0 auto 1.5rem;
    max-width: 90%;
    
    &::after {
        content: '';
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: linear-gradient(90deg, var(--primary), transparent);
        border-radius: 2px;
    }
}

.tagline {
    font-size: 1.5rem;
    margin: 0 auto 4rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 800px;
    line-height: 1.7;
    position: relative;
    padding: 0 2rem;
    
    &::before, &::after {
        content: '✧';
        display: inline-block;
        margin: 0 1rem;
        color: var(--primary);
        opacity: 0.7;
    }
}

/* CTA Button */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    cursor: pointer;
    will-change: transform, box-shadow;
    z-index: 1;
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-light), var(--primary));
        z-index: -1;
        opacity: 0;
        transition: var(--transition);
    }
    
    &:hover::before {
        opacity: 1;
    }

    &:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(255, 107, 0, 0.4);
    }
    
    &:active {
        transform: translateY(1px);
        box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
    }
}

.cta-button i {
    margin-right: 10px;
    font-size: 1.3rem;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

/* Modern Description Section */
.description {
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.7;
}

.content-box {
    background: rgba(22, 22, 22, 0.85);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.content-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 107, 0, 0.2);
}

.content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,107,0,0.1) 0%, rgba(255,107,0,0) 50%);
    border-radius: 16px 0 0 16px;
    pointer-events: none;
}

.content-box p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 400;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Modern Footer */
.footer {
    background: linear-gradient(to top, #000000, #111111);
    padding: 4rem 0 2rem;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-logo:hover img {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-links a:hover {
    color: var(--primary);
    background: rgba(255, 107, 0, 0.1);
    transform: translateY(-3px);
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

/* Modern Animations */
@keyframes float {
    0% { 
        transform: translateY(0) translateZ(0);
        animation-timing-function: ease-in-out;
    }
    50% { 
        transform: translateY(-15px) translateZ(0);
        animation-timing-function: ease-in-out;
    }
    100% { 
        transform: translateY(0) translateZ(0);
        animation-timing-function: ease-in-out;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1),
                transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down span {
    display: block;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    margin: -4px;
    animation: scrollDown 2s infinite;
    opacity: 0;
}

.scroll-down span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-down span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollDown {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-10px, -10px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(10px, 10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Responsive Design */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
}

/* Large phones and small tablets */
@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .tagline {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .logo-container {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.25rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .content-box {
        padding: 1.5rem 1.25rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .tagline {
        font-size: 0.9rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .content-box {
        padding: 1.25rem 1rem;
    }
    
    .content-box p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem 0;
    }
    
    .footer-logo {
        margin: 0 auto 1rem;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Touch targets for mobile */
@media (hover: none) {
    .cta-button, .social-links a {
        min-height: 36px;
        min-width: 36px;
    }
}

/* Better text wrapping */
p, h1, h2, h3, h4, h5, h6 {
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
