/* Base Styles */
:root {
    --primary-color: #111111;
    --accent-color: #4D4DFF;
    --text-color: #FFFFFF;
    --dark-bg: #111111;
    --light-bg: #1A1A1A;
    --font-family: 'Inter', sans-serif;
    --mono-font: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #3A3AFF;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(77, 77, 255, 0.2);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.section {
    padding: 100px 0;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 800;
}

.dark {
    background-color: var(--light-bg);
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
}

/* Header and Navigation */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.logo-wrapper {
    position: relative;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
    font-family: var(--mono-font);
}

.logo-text {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.logo-text.top {
    opacity: 1;
    margin-left: -0.7em; /* Shift OPSEC one letter to the left */
}

.logo-text.bottom span {
    color: var(--primary-color);
    background-color: var(--text-color);
    padding: 0;
}

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

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

/* Hero Section */
.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero .logo {
    display: flex;
    justify-content: center;
}

.logo-large .logo-text {
    font-size: 6rem;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin: 2rem 0;
    max-width: 700px;
}

.hero .date {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--accent-color);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-animation {
    width: 100%;
    height: 400px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Extra styles for Safari */
body.safari .animation-3d {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

body.safari .safari-fallback {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.about-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(77, 77, 255, 0.15), transparent);
    pointer-events: none;
    z-index: 1;
}

/* 3D Animation Styles (Chrome/Firefox) */
.animation-3d {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    transform: rotateX(15deg);
    display: none; /* Hidden by default, shown with JS */
}

.logo-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--mono-font);
    font-weight: 700;
    text-align: center;
    line-height: 1.1;
    letter-spacing: 0.1em;
    transform-style: preserve-3d;
    animation: float 4s ease-in-out infinite;
    z-index: 5;
}

.logo-text-3d {
    font-size: 2.5rem;
    text-shadow: 0 0 15px rgba(77, 77, 255, 0.7);
    color: var(--text-color);
}

.logo-text-3d.top {
    margin-left: -0.7em;
}

.logo-text-3d.bottom span {
    color: var(--primary-color);
    background-color: var(--text-color);
    padding: 0;
}

.orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

.orbit-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    font-size: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 15px rgba(77, 77, 255, 0.7));
    animation: appear 0.8s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease;
}

.orbit-icon:hover {
    transform: scale(1.2) rotateY(var(--rotation)) translateZ(140px);
    filter: drop-shadow(0 0 20px rgba(77, 77, 255, 1));
}

.orbit-icon[data-position="0"] {
    transform: rotateY(0deg) translateZ(120px);
    animation-delay: 0.2s;
    --rotation: 0deg;
}

.orbit-icon[data-position="1"] {
    transform: rotateY(60deg) translateZ(120px);
    animation-delay: 0.6s;
    --rotation: 60deg;
}

.orbit-icon[data-position="2"] {
    transform: rotateY(120deg) translateZ(120px);
    animation-delay: 1s;
    --rotation: 120deg;
}

.orbit-icon[data-position="3"] {
    transform: rotateY(180deg) translateZ(120px);
    animation-delay: 1.4s;
    --rotation: 180deg;
}

.orbit-icon[data-position="4"] {
    transform: rotateY(240deg) translateZ(120px);
    animation-delay: 1.8s;
    --rotation: 240deg;
}

.orbit-icon[data-position="5"] {
    transform: rotateY(300deg) translateZ(120px);
    animation-delay: 2.2s;
    --rotation: 300deg;
}

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

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-10px);
    }
}

@keyframes appear {
    0% {
        opacity: 0;
        transform-origin: center;
        transform: scale(0.5) rotateY(var(--rotation)) translateZ(120px);
    }
    100% {
        opacity: 1;
        transform-origin: center;
        transform: scale(1) rotateY(var(--rotation)) translateZ(120px);
    }
}

/* Safari Grid Layout Styles */
.safari-fallback {
    width: 100%;
    height: 100%;
    display: none; /* Hidden by default, shown with JS */
}

.grid-container {
    width: 100%;
    max-width: 500px;
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: 1fr 1.5fr 1fr;
    place-items: center;
    gap: 20px;
    padding: 20px;
}

.grid-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    align-items: center;
}

.grid-icon {
    font-size: 3rem;
    min-width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    filter: drop-shadow(0 0 15px rgba(77, 77, 255, 0.7));
    transition: transform 0.3s ease;
    margin: 0 20px;
}

.grid-icon:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 20px rgba(77, 77, 255, 1));
}

.center-row {
    justify-content: space-around;
    align-items: center;
}

.grid-center {
    text-align: center;
    min-width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
}

.grid-center .logo-wrapper {
    transform: scale(1.5);
    margin: 0 auto;
    text-shadow: 0 0 15px rgba(77, 77, 255, 0.7);
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-animation {
        margin-top: 2rem;
        height: 350px;
    }
    
    .animation-3d {
        width: 250px;
        height: 250px;
    }
    
    .logo-text-3d {
        font-size: 2rem;
    }
    
    .orbit-icon {
        font-size: 2.5rem;
    }
    
    .grid-container {
        max-width: 300px;
    }
    
    .grid-icon {
        font-size: 2.5rem;
        margin: 0 10px;
    }
    
    .grid-logo {
        font-size: 1.8rem;
    }
}

/* Topics Section */
.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.topic-card {
    background-color: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.05);
}

.topic-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.topic-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Speakers Section */
.speakers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.speaker-card {
    text-align: center;
}

.speaker-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.speaker-image {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    max-width: 100%;
    display: block;
}

.speaker-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.speaker-title {
    font-size: 0.9rem;
    opacity: 0.7;
}

.speakers-note {
    text-align: center;
    font-style: italic;
    opacity: 0.7;
}

/* Location Section */
.location-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.location-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.location-info p {
    margin-bottom: 1.5rem;
}

.location-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 30px;
}

.feature-icon {
    font-size: 1.2rem;
}

.map-placeholder {
    width: 100%;
    height: 350px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.map-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 100%;
    display: block;
}

/* Partners Section */
.section#partners {
    padding: 60px 0;
}

.partners-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
}

.partners-text h2 {
    text-align: center;
    margin-bottom: 0;
    font-size: 2rem;
}

.partners-text h2 a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.partners-text h2 a:hover {
    color: #3A3AFF;
    text-shadow: 0 0 10px rgba(77, 77, 255, 0.5);
}

.partners-animation {
    display: none;
}

.partners-animation::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(77, 77, 255, 0.15), transparent);
    pointer-events: none;
    z-index: 1;
}

/* 3D Partners Animation (Chrome/Firefox) */
.partners-3d {
    position: relative;
    width: 540px;
    height: 540px;
    transform-style: preserve-3d;
    transform: rotateX(15deg);
    display: none; /* Hidden by default, shown with JS */
}

.partners-orbit {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: rotate 15s linear infinite;
}

.partner-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    margin: -150px 0 0 -150px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    filter: drop-shadow(0 0 15px rgba(77, 77, 255, 0.7));
    animation: appear 0.8s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease;
}

.partner-logo:hover {
    transform: scale(1.2) rotateY(var(--rotation)) translateZ(100px);
    filter: drop-shadow(0 0 20px rgba(77, 77, 255, 1));
}

.partner-logo[data-position="0"] {
    transform: rotateY(0deg) translateZ(80px);
    animation-delay: 0.2s;
    --rotation: 0deg;
}

.partner-logo[data-position="1"] {
    transform: rotateY(180deg) translateZ(80px);
    animation-delay: 0.6s;
    --rotation: 180deg;
}

.logo-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 12px;
}

/* Safari Partners Fallback */

/* Default partners text (links only) and fallback with logos */
.partners-text-default {
    display: block;
}

.partners-text-fallback {
    display: none;
}

body.safari .partners-text-default {
    display: none;
}

body.safari .partners-text-fallback {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

/* Safari 3D partners hidden, show simplified inline logos under links */
body.safari .partners-3d {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

body.safari .partners-text-fallback {
    /* Show fallback h2 in Safari */
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

body.safari .partners-text-fallback .partner-inline {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
    top: -10px;
}

body.safari .partners-text-fallback .partner-inline img.partner-logo-simple {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 2px;
}


@media (max-width: 992px) {
    .partners-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .partners-text h2 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .partners-animation {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .partners-animation {
        width: 300px;
        height: 180px;
    }
    
    .partners-3d {
        width: 150px;
        height: 150px;
    }
    
    .logo-image {
        width: 180px;
        height: 180px;
        padding: 8px;
    }
    
}

/* Register Section */
.register-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.register-info p {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--text-color);
    font-family: var(--font-family);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.btn-form {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo .logo-wrapper {
    font-size: 0.8rem;
}

.footer-info {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-info a {
    color: var(--accent-color);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content,
    .location-details,
    .register-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-large .logo-text {
        font-size: 4rem;
    }
    
    .location-map {
        width: 100%;
        height: auto;
        max-height: 300px;
        overflow: hidden;
    }
    
    .map-image {
        height: auto;
        max-height: 300px;
    }
    
    .speaker-photo {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }
    
    .speaker-image {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    .logo-large .logo-text {
        font-size: 3rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}