:root {
    --bg-color: #ffffff;
    --text-color: #333333;
    --header-bg: #4a90e2;
    --card-bg: #f8f9fa;
    --border-color: #e1e8ed;
    --accent-color: #4a90e2;
    --button-bg: #4a90e2;
    --button-hover: #357abd;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --header-bg: #2d3748;
    --card-bg: #2d3748;
    --border-color: #4a5568;
    --accent-color: #63b3ed;
    --button-bg: #2d3748;
    --button-hover: #4a5568;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
}

header {
    background: linear-gradient(135deg, var(--header-bg), var(--accent-color));
    color: white;
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

nav button {
    background: var(--button-bg);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

nav button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    gap: 2rem;
}

section {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.server-info p, .php-content p {
    margin: 0.5rem 0;
    padding: 0.5rem;
    background: rgba(74, 144, 226, 0.1);
    border-left: 4px solid var(--accent-color);
    border-radius: 5px;
}

.demo-box {
    text-align: center;
    padding: 2rem;
}

.magic-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.magic-btn:hover {
    transform: scale(1.05) rotateZ(2deg);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

#message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.5s ease;
}

.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
}

footer {
    background: var(--header-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    section {
        padding: 1rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}