/* --- Font Imports --- */
@font-face {
    font-family: 'Lexend Deca';
    src: url('../assets/fonts/LexendDeca-VariableFont_wght.ttf');
}
@font-face {
  font-family: 'Stardom-Regular';
  src: url('../assets/fonts/Stardom-Regular.ttf');
  font-style: normal;
}
@font-face {
    font-family: 'stand';
    src: url('../assets/fonts/BespokeSans-Variable.ttf');
}

/* --- General Body and Reset Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: white;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Brand and Contact --- */
.brand {
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.contact-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 180px;
    height: 60px;
    border-radius: 30px;
    background: #000000;
    border: 2px solid #ffffff;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.1s ease;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, #a388ee, #61dafb, #ffafcc);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: -1;
}

.contact-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(white 1%, transparent 30%) center/4px 4px repeat,
        linear-gradient(270deg, #a388ee, #61dafb, #ffafcc);
    background-size: 4px 4px, 200% 200%;
    opacity: 0;
    transition: opacity 0.1s ease;
    z-index: -1;
    mix-blend-mode: screen;
}

.contact-btn:hover {
    border-color: transparent;
    box-shadow: 0 0 8px rgba(163, 136, 238, 0.2);
}

.contact-btn:hover::before {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

.contact-btn:hover::after {
    opacity: 0.3;
    animation: gradientShift 3s ease infinite, noiseFloat 2s infinite alternate;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes noiseFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(1px, -1px); }
}

.contact-text {
    position: relative;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    white-space: nowrap;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.hero-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-col {
    display: flex;
    flex: 1;
    position: relative;
    z-index: 1;
}

.hero-col.left {
    justify-content: flex-end;
    align-items: flex-start; 
    padding-top: 25vh; 
}
.hero-col.right {
    justify-content: flex-start;
    align-items: flex-end; 
    padding-bottom: 25vh; 
}
.hero-col.center {
    flex: 1.5;
    justify-content: center;
    align-items: center;
}

.text-content {
    max-width: 450px;
    padding: 0 2rem;
}

.text-content.left {
    text-align: right;
}

.text-content.right {
    text-align: left;
}

/* --- Navigation --- */
.navigation {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
}

.nav-item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-item:hover {
    opacity: 1;
}

.main-content-sections {
    margin-top: 0;
    background: #0a0a0a;
}

.sphere-section {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    overflow: hidden; /* Added to contain animated elements */
    background-color: #000000;
}

.sphere-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sphere-container canvas {
    max-width: 100%;
    max-height: 100%;
}

/* --- Rotating Text Ring --- */
.text-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    z-index: 15;
    pointer-events: none;
}

.text-ring-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: rotateText 20s linear infinite;
}

.text-ring-svg {
    width: 100%;
    height: 100%;
}

.text-path {
    font-size: 14px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    fill: rgba(255, 255, 255, 0.9);
    text-anchor: middle;
}

@keyframes rotateText {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- Sphere Text Animations (Updated) --- */
.sphere-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.text-group {
    position: relative;
    padding-right: 5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
    max-width: 500px;
    pointer-events: auto;
}

.sphere-text {
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 20px rgba(163, 136, 238, 0.5);
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.text-heading {
    font-size: 4rem;
    font-weight: bold;
    white-space: nowrap;
    text-align: right;
}

.text-paragraph {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: justify;
    word-spacing: 0.2em;
    letter-spacing: 0.5px;
    white-space: normal;
    max-width: 500px;
}

/* --- Content Sections --- */
.content-section {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.content-section h2 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

.content-section p {
    font-size: 1.5rem;
    color: #cccccc;
    max-width: 600px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

.final-section-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 64px 0;
    position: relative;
    z-index: 5;
    background: #000;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1rem 2rem;
    padding-bottom: 0;
}

.contact-info h2 {
    font-size: 26px;
    font-weight: normal;
    margin-bottom: 15px;
    color: #ffffff65;
}

.email {
    font-size: 52px;
    font-weight: bold;
    font-family: 'stand';
    color: #ffffff;
    text-decoration: none;
}

.email:hover{
    text-decoration: underline;
}

.nav-links {
    display: flex;
    width: 100%;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-links a {
    color: #6b6b6b;
    text-decoration: none;
    font-size: 24px;
}

.nav-links a:hover{
    color: white;
}

.contact-cta {
    text-align: right;
}

.contact-cta p {
    margin-bottom: 15px;
    color: white;
    font-size: 24px;
}

.link.btn1 {
    position: relative;
    display: inline-block;
    padding: 20px 40px;
    margin: 5px;
    color: white;
    border-radius: 30px;
    border: 2px solid #ffffff;
    background-color: #000000;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.1s ease;
    text-decoration: none;
}

.link.btn1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.link.btn1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(white 1%, transparent 30%) center/4px 4px repeat,
        linear-gradient(135deg, #a388ee, #61dafb);
    background-size: 4px 4px, 100% 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

.link.btn1:hover {
    border-color: transparent;
    box-shadow: 0 0 8px rgba(163, 136, 238, 0.2);
}

.link.btn1:hover::before {
    left: 100%;
}

.link.btn1:hover::after {
    opacity: 0.3;
}

.arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 40px;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: white;
    display: none;
    z-index: 2;
    transition: opacity 0.1s ease;
}

.btn1 span {
    position: relative;
    z-index: 1;
    transition: opacity 0.1s ease;
}

.btn1:hover span {
    opacity: 0;
}

.btn1:hover .arrow {
    display: block;
    opacity: 1;
}

.b {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

footer {
    position: relative;
    width: 100%;
    overflow: hidden;
    font-family: 'Lexend Deca', sans-serif;
    margin-top: 0;
}

.container-7 {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
}

.down-ward {
    position: relative;
    width: 100%;
    padding: 4rem 2rem;
    text-align: center;
    z-index: 1;
}

.footer-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.3;
}

.social-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-link:hover{
    color: #a388ee;
}

.divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 2rem 0;
}

.logo-section {
    margin-bottom: 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ffffff;
    text-transform: uppercase;
}

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

.copyright {
    color: #ffffff;
    opacity: 0.8;
}

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

.footer-nav a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav a:hover{
    opacity: 1;
}

.nav-bar2 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-bar2.show {
    transform: translateY(0);
}

.icons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.f {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.f:hover {
    background: rgba(255, 255, 255, 0.1);
}

.line3 {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    margin: 1rem 0;
}

@media (max-width: 1024px) {
    .hero-section { flex-direction: column; text-align: center; padding-top: 5rem; }
    .hero-col { flex: none; }
    .hero-col.left, .hero-col.right { align-items: center; justify-content: center; padding: 0;}
    .text-content.left, .text-content.right { text-align: center; }
    .sphere-section {
        height: 80vh;
    }
    .sphere-container {
        width: 80%;
        height: 80%;
    }
}

@media (max-width: 768px) {
    .sphere-section {
        height: 60vh;
    }
    .sphere-container {
        width: 90%;
        height: 90%;
    }
    .header-section {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .contact-cta {
        text-align: center;
    }
    .nav-links {
        justify-content: center;
    }
    .logo {
        font-size: 1.5rem;
    }
    .footer-links {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
    }
    .social-section {
        flex-wrap: wrap;
    }
    .icons {
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
  .navigation { padding: 0.6rem 1rem; gap: 1rem; }
  .nav-item span { display: none; }
}
