:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #1a252f;
    --transition: all 0.3s ease;
    --header-height: 80px;
    --footer-height: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

header {
    background-color: rgba(26, 37, 47, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    height: var(--header-height);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.logo:hover::after {
    transform: scaleX(1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* Services dropdown menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(26, 37, 47, 0.95);
    backdrop-filter: blur(10px);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px) translateX(-50%);
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(52, 152, 219, 0.2);
}

.dropdown-item img {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.dropdown-item span {
    font-weight: 500;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow: hidden;
}

.hero {
    text-align: center;
    max-width: 900px;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out;
}

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

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #a0aec0;
    margin-bottom: 1.5rem;
}

.app-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    width: 100%;
    max-width: 700px;
    justify-items: center;
}

.app-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: var(--transition);
    width: 100%;
    max-width: 150px;
}

.app-button:hover {
    transform: scale(1.05);
}

.app-button:hover .button-icon {
    box-shadow: 0 0 25px rgba(52, 152, 219, 0.6);
}

.button-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    background-color: #1a252f;
}

.button-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.1), rgba(231, 76, 60, 0.1));
    z-index: -1;
}

.button-icon img {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.button-label {
    font-weight: 600;
    color: var(--light-color);
    font-size: 1.1rem;
    text-align: center;
}

.button-label2 {
    font-weight: 300;
    color: #a0aec0;
    font-size: 0.9rem;
    text-align: center;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-50px) translateX(25px);
    }
    50% {
        transform: translateY(0) translateX(50px);
    }
    75% {
        transform: translateY(50px) translateX(25px);
    }
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: rgba(26, 37, 47, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    height: var(--footer-height);
}

.cloudflare-protection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #a0aec0;
    font-size: 0.95rem;
}

.cloudflare-protection img {
    height: 18px;
    width: auto;
}

footer p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Animated highlight effect */
.highlight {
    position: relative;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(52, 152, 219, 0.2);
    z-index: -1;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .app-buttons {
        gap: 1rem;
        max-width: 350px;
    }
    
    .button-icon {
        width: 60px;
        height: 60px;
    }
    
    .button-label {
        font-size: 1rem;
    }

    .button-label2 {
        font-size: 0.8rem;
    }

    .dropdown-content {
        width: 90%;
        left: 5%;
        transform: none;
    }

    .dropdown:hover .dropdown-content {
        transform: translateY(0);
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    header {
        padding: 0.5rem;
        height: auto;
    }

    footer {
        height: auto;
        padding: 0.75rem;
    }
}

/* Even smaller screens */
@media screen and (max-width: 480px) {
    .app-buttons {
        max-width: 480px;
        gap: 0.5rem;
    }

    .button-icon {
        width: 50px;
        height: 50px;
    }

    .button-label {
        font-size: 0.9rem;
    }

    .button-label2 {
        font-size: 0.75rem;
        line-height: 1.2;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    body {
        height: -webkit-fill-available;
    }
}

/* LAMP AND DISCO CONTROL BUTTONS */
.lamp-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.disco-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.lamp-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.disco-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2c3e50, #1a252f);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.lamp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
}

.disco-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.6);
}

.lamp-button:active {
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.disco-button:active {
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.4);
}

.lamp-icon {
    width: 50px;
    height: 50px;
    fill: var(--secondary-color);
    transition: all 0.3s ease;
}

.disco-icon {
    width: 50px;
    height: 50px;
    fill: var(--secondary-color);
    transition: all 0.3s ease;
}

.lamp-button:hover .lamp-icon {
    fill: var(--accent-color);
}

.disco-button:hover .disco-icon {
    fill: var(--accent-color);
}

.lamp-status {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-color);
    margin-top: 0.5rem;
}

.disco-status {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light-color);
    margin-top: 0.5rem;
}

.pulse {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(52, 152, 219, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}

.feedback {
    position: fixed;
    top: 20px; /* Moved to the top of the screen */
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000; /* Ensures it stays above other elements */
}

.success {
    background-color: #4CAF50;
    color: white;
}

.error {
    background-color: #E74C3C;
    color: white;
}





