* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Outfit', sans-serif;
    overflow: hidden;
    color: #ffffff;
    background-color: #000; /* Fallback */
}

/* SEO utility */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0; /* Keep it above the body background */
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle gradient to ensure text readability */
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

/* Top Left Logo */
.header {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.logo img {
    height: 50px;
    width: auto;
    transition: opacity 0.3s ease;
}

.logo img:hover {
    opacity: 0.8;
}

/* Top Right Controls */
.top-controls {
    position: absolute;
    top: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 15px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    color: #fff;
    font-size: 16px;
    height: 44px;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.control-btn i {
    width: 20px;
    text-align: center;
}

.sound-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 14px;
}

.sound-bars .bar {
    width: 2px;
    background-color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.sound-bars .bar:nth-child(1) { height: 4px; }
.sound-bars .bar:nth-child(2) { height: 8px; }
.sound-bars .bar:nth-child(3) { height: 6px; }

/* Active (Unmuted) State */
.sound-control.active .sound-bars .bar {
    background-color: #fff;
}

.sound-control.active .sound-bars .bar:nth-child(1) { animation: soundBar 1s infinite alternate; }
.sound-control.active .sound-bars .bar:nth-child(2) { animation: soundBar 1.2s infinite alternate-reverse; }
.sound-control.active .sound-bars .bar:nth-child(3) { animation: soundBar 0.8s infinite alternate; }

@keyframes soundBar {
    0% { height: 3px; }
    100% { height: 14px; }
}

/* Bottom Left Social Media */
.social-media {
    position: absolute;
    bottom: 40px;
    left: 40px;
    display: flex;
    gap: 20px;
    z-index: 10;
}

.social-media a {
    color: #ffffff;
    font-size: 20px;
    text-decoration: none;
    width: 45px;
    height: 45px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.social-media a:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
}

/* Bottom Right Contact Trigger */
.contact-trigger {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-trigger:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.6);
}

.contact-trigger:hover .trigger-text {
    opacity: 0.9;
}

.contact-trigger:hover .trigger-line {
    width: 30px;
}

.trigger-text {
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.trigger-line {
    width: 25px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Contact Panel (Glassmorphism) */
.contact-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.65);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-left: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
    transition: right 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    padding: 60px;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.contact-panel.open {
    right: 0;
}

.close-panel {
    position: absolute;
    top: 40px;
    right: 40px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

.close-panel:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Dynamic Content Animation */
.contact-content {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-panel.open .contact-content {
    opacity: 1;
    transform: translateY(0);
}

/* AJAX Loaded Content Styling */
.contact-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item {
    margin-bottom: 35px;
    display: flex;
    flex-direction: column;
    position: relative;
    padding-left: 20px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background-color: rgba(255,255,255,0.2);
    transition: background-color 0.3s ease;
}

.contact-item:hover::before {
    background-color: #fff;
}

.contact-item span {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.contact-item a, .contact-item p {
    font-size: 1.4rem;
    font-weight: 300;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    #bg-video { object-position: 75% center; }
    .header { top: 20px; left: 20px; }
    .top-controls { top: 20px; right: 20px; gap: 10px; }
    .control-btn { padding: 8px 16px; height: 38px; }
    .logo img { height: 40px; }
    .social-media { bottom: 20px; left: 20px; gap: 15px; }
    .social-media a { width: 40px; height: 40px; font-size: 18px; }
    .contact-trigger { bottom: 20px; right: 20px; padding: 12px 24px; }
    .contact-panel { max-width: 100%; padding: 60px 30px 40px 30px; }
    .close-panel { top: 20px; right: 20px; width: 40px; height: 40px; }
    .contact-title { font-size: 2.5rem; margin-bottom: 30px; }
    .contact-item a, .contact-item p { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .header { top: 15px; left: 15px; }
    .top-controls { top: 15px; right: 15px; gap: 8px; }
    .control-btn { padding: 6px 12px; gap: 6px; font-size: 14px; height: 32px; }
    .logo img { height: 32px; }
    .social-media { bottom: 15px; left: 15px; gap: 10px; }
    .social-media a { width: 35px; height: 35px; font-size: 15px; }
    .contact-trigger { bottom: 15px; right: 15px; padding: 10px 20px; }
    .trigger-text { font-size: 14px; }
    .trigger-line { width: 20px; }
    .contact-panel { padding: 50px 20px 30px 20px; }
    .contact-title { font-size: 2rem; margin-bottom: 25px; }
    .contact-item a, .contact-item p { font-size: 1.05rem; }
}
