/* Reset & Base */
:root {
    --gold: #FFD700;
    --dark-gold: #B8860B;
    --light-gold: #FFF8DC;
    --black: #0A0A0A;
    --gray: #1A1A1A;
    --white: #FFFFFF;
    --shadow: rgba(255, 215, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(135deg, var(--black) 0%, var(--gray) 100%);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid var(--gray);
    border-top: 4px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navbar & Hamburger */
.nav-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gold);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.hamburger:hover {
    transform: scale(1.1);
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--black);
    margin: 3px 0;
    border-radius: 2px;
    transition: 0.3s;
}

.nav-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    padding: 80px 20px 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid var(--gold);
    overflow-y: auto;
}

.nav-menu.active {
    right: 0;
}

.nav-menu ul {
    list-style: none;
}

.nav-menu li {
    margin: 15px 0;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 15px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--gold);
    transform: translateX(5px);
}

.nav-menu .current {
    background: rgba(255, 215, 0, 0.15);
    border-left-color: var(--gold);
    color: var(--gold);
}

/* Banner & Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    overflow: hidden;
}

.banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://i.gyazo.com/87b114b2512545efef721ba0e6d4e236.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: -1;
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    height: 80px;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.7);
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 40px;
    color: var(--light-gold);
    line-height: 1.6;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Button Container & Frame */
.button-frame {
    background: rgba(26, 26, 26, 0.85);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold);
    border-radius: 20px;
    padding: 25px;
    max-width: 800px;
    width: 90%;
    margin: 0 auto 60px;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
}

.button-scroll-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.button-scroll-container::-webkit-scrollbar {
    width: 8px;
}

.button-scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
    border-radius: 4px;
}

.button-scroll-container::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.btn {
    background: linear-gradient(135deg, var(--gold) 0%, var(--dark-gold) 100%);
    color: var(--black);
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

.btn-icon {
    width: 24px;
    height: 24px;
}

.btn-secondary {
    background: rgba(255, 215, 0, 0.15);
    color: var(--gold);
    border: 2px solid var(--gold);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.25);
}

/* Content Sections */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--gold);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--gold);
    margin: 10px auto;
    border-radius: 2px;
}

.content-box {
    background: rgba(26, 26, 26, 0.7);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.content-box p {
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #E0E0E0;
}

/* Footer */
footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 2px solid var(--gold);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-links a {
    color: var(--light-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .button-frame {
        padding: 20px;
    }
    
    .content-box {
        padding: 25px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
    }
}

/* Linux-style Terminal Effect */
.terminal {
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid var(--gold);
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    font-family: 'Courier New', monospace;
    position: relative;
}

.terminal-header {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #FF5F56; }
.terminal-dot.yellow { background: #FFBD2E; }
.terminal-dot.green { background: #27C93F; }

.terminal-content {
    color: #00FF00;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* High-quality button effects */
.btn-highlight {
    position: relative;
    overflow: hidden;
}

.btn-highlight::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn-highlight:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* Performance optimizations */
img {
    max-width: 100%;
    height: auto;
}

/* Print styles */
@media print {
    .nav-container, .button-frame, footer {
        display: none;
    }
}