:root {
    --primary-bg: #f5f7fa;
    --secondary-bg: #c3cfe2;
    --text-color: #2d3748;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --icon-color: #4a5568;
    --link-hover: #3182ce;
    --switch-bg: #cbd5e0;
}

[data-theme="dark"] {
    --primary-bg: #0f172a;
    --secondary-bg: #1e293b;
    --text-color: #e2e8f0;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --icon-color: #94a3b8;
    --link-hover: #38bdf8;
    --switch-bg: #475569;
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: background 0.8s ease, color 0.8s ease;
    position: relative;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.background-animation {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, transparent 60%);
    animation: rotate 60s linear infinite;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .background-animation {
    background: radial-gradient(circle at center, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bg-flower-img {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 1;
    pointer-events: none;
    height: 100vh;
    width: auto;
    max-width: 100vw;
    opacity: 0.6;
    object-fit: contain;
    object-position: bottom right;
    transition: opacity 0.8s ease;
}

[data-theme="dark"] .bg-flower-img {
    opacity: 0.15;
}

.header {
    width: 100%;
    padding: 2rem 3rem;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

/* Theme Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 66px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: var(--switch-bg);
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
}

.slider.round {
    border-radius: 34px;
}

.slider::before {
    background-color: white;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--switch-bg);
}

input:checked + .slider::before {
    transform: translateX(32px);
    background-color: #1e293b;
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    color: #475569;
}

.icon.sun {
    color: #f59e0b;
}

.icon.moon {
    color: #e2e8f0;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo-container {
    perspective: 1000px;
}

.logo {
    max-width: 90vw;
    max-height: 40vh;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1));
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    animation: floating 6s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.15));
}

[data-theme="dark"] .logo {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.reveal-animation {
    animation: reveal 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.footer {
    padding: 2rem;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.contact-card {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.contact-item.address {
    align-items: center;
    text-align: left;
    justify-content: center;
}

.contact-item.address .contact-icon {
    display: block;
}

.contact-item a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.contact-item a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: var(--link-hover);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease-out;
}

.contact-item a:hover {
    color: var(--link-hover);
}

.contact-item a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact-item p {
    line-height: 1.5;
}

.contact-icon {
    color: var(--icon-color);
    flex-shrink: 0;
}

.slide-up-animation {
    animation: slideUp 1s cubic-bezier(0.19, 1, 0.22, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .contact-card {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .contact-item.address {
        text-align: left;
        justify-content: flex-start;
    }
    
    .contact-item.address .contact-icon {
        display: block;
    }
}
