/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Main container with seamless background */
.container {
    min-height: 100vh;
    background: linear-gradient(135deg, #050a14 0%, #0B1426 20%, #1a1f3a 60%, #2d1b69 100%);
    background-size: 400% 400%;
    animation: seamlessGradientShift 15s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

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

/* Content wrapper */
.content-wrapper {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Content section */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 1.5rem;
}

/* Logo section - removed duplicate text */
.logo-section {
    margin-bottom: 4rem;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 3rem;
    width: auto;
}

/* Main content - improved text wrapping */
.main-content {
    max-width: none;
}

.main-title {
    color: white;
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    line-height: 1.1;
    animation: fadeIn 1s ease-out;
}

.description {
    color: #d1d5db;
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 3rem;
    max-width: none;
    animation: fadeIn 1s ease-out 0.3s both;
}

/* Contact section - fixed spacing */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 1s ease-out 0.6s both;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #d1d5db;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-item:hover {
    color: white;
    transform: translateX(5px);
}

.contact-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.75rem;
    color: white;
    flex-shrink: 0;
}

/* Spacer section for larger screens */
.spacer-section {
    display: none;
}

/* Animation container */
.animation-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* Original flowing energy effect - positioned on the RIGHT side */
.supernova-effect {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 30%;
    left: 70%;
    background: radial-gradient(ellipse 70% 90% at 45% 55%, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(0, 255, 255, 0.85) 12%, 
        rgba(168, 85, 247, 0.7) 28%, 
        rgba(236, 72, 153, 0.5) 45%, 
        rgba(147, 51, 234, 0.3) 65%, 
        transparent 80%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: organicEnergyFlow 8s ease-in-out infinite;
    filter: blur(2px);
    opacity: 0.8;
}

.supernova-effect::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(ellipse 80% 60% at 30% 70%, 
        rgba(255, 255, 255, 0.4) 0%, 
        rgba(0, 255, 255, 0.3) 30%, 
        rgba(168, 85, 247, 0.2) 60%, 
        transparent 80%);
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    animation: flowingElement1 10s ease-in-out infinite;
}

.supernova-effect::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse 60% 80% at 60% 40%, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(0, 255, 255, 0.5) 25%, 
        rgba(236, 72, 153, 0.3) 50%, 
        transparent 75%);
    border-radius: 70% 30% 60% 40% / 30% 60% 40% 70%;
    animation: flowingElement2 6s ease-in-out infinite;
}

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

@keyframes organicEnergyFlow {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        opacity: 0.7;
        filter: blur(2px) brightness(1);
    }
    25% {
        transform: scale(1.15) rotate(15deg);
        border-radius: 40% 60% 50% 50% / 70% 30% 60% 40%;
        opacity: 0.9;
        filter: blur(1.5px) brightness(1.2);
    }
    50% {
        transform: scale(0.95) rotate(-10deg);
        border-radius: 70% 30% 40% 60% / 50% 70% 30% 50%;
        opacity: 1;
        filter: blur(1px) brightness(1.4);
    }
    75% {
        transform: scale(1.08) rotate(8deg);
        border-radius: 50% 50% 60% 40% / 40% 60% 50% 50%;
        opacity: 0.85;
        filter: blur(1.8px) brightness(1.1);
    }
}

@keyframes flowingElement1 {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
        opacity: 0.4;
    }
    33% {
        transform: rotate(120deg) scale(1.2);
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        opacity: 0.6;
    }
    66% {
        transform: rotate(240deg) scale(0.9);
        border-radius: 30% 70% 60% 40% / 70% 30% 40% 60%;
        opacity: 0.5;
    }
}

@keyframes flowingElement2 {
    0%, 100% {
        transform: rotate(0deg) scale(0.8);
        border-radius: 70% 30% 60% 40% / 30% 60% 40% 70%;
        opacity: 0.6;
    }
    50% {
        transform: rotate(-180deg) scale(1.3);
        border-radius: 50% 50% 40% 60% / 60% 40% 70% 30%;
        opacity: 0.9;
    }
}

/* Responsive design */
@media (max-width: 640px) {
    .content-section {
        padding: 1.5rem 1rem;
    }
    
    .logo-image {
        height: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 0.875rem;
    }
    
    .contact-icon {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.5rem;
    }
    
    .supernova-effect {
        width: 200px;
        height: 200px;
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.5;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .content-section {
        padding: 2rem 1.5rem;
    }
    
    .logo-image {
        height: 2.5rem;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .contact-item {
        font-size: 1rem;
    }
    
    .contact-icon {
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.625rem;
    }
    
    .supernova-effect {
        width: 250px;
        height: 250px;
        top: 45%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0.6;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content-wrapper {
        flex-direction: row;
    }
    
    .content-section {
        flex: 1;
        padding: 0 2rem;
    }
    
    .spacer-section {
        display: block;
        flex: 1;
    }
    
    .main-content {
        max-width: 48rem;
    }
    
    .description {
        max-width: 36rem;
    }
    
    .supernova-effect {
        width: 300px;
        height: 300px;
        top: 30%;
        left: 65%;
        transform: none;
        opacity: 0.7;
    }
}

@media (min-width: 1025px) {
    .content-wrapper {
        flex-direction: row;
    }
    
    .content-section {
        flex: 1;
        padding: 0 4rem;
    }
    
    .spacer-section {
        display: block;
        flex: 1;
    }
    
    .logo-section {
        margin-bottom: 4rem;
    }
    
    .logo-image {
        height: 3rem;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .description {
        font-size: 1.125rem;
        max-width: 48rem;
    }
    
    .contact-item {
        font-size: 1.125rem;
    }
    
    .contact-icon {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.75rem;
    }
    
    .supernova-effect {
        width: 400px;
        height: 400px;
        top: 30%;
        left: 70%;
        transform: none;
        opacity: 0.8;
    }
}

@media (min-width: 1280px) {
    .content-section {
        padding: 0 6rem;
    }
    
    .main-title {
        font-size: 5rem;
    }
    
    .description {
        font-size: 1.25rem;
        max-width: 56rem;
    }
    
    .supernova-effect {
        width: 450px;
        height: 450px;
        top: 25%;
        left: 72%;
    }
}

@media (min-width: 1536px) {
    .main-title {
        font-size: 6rem;
    }
    
    .description {
        font-size: 1.375rem;
        max-width: 64rem;
    }
}

/* Performance optimizations */
.container,
.supernova-effect {
    will-change: transform;
    backface-visibility: hidden;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #050a14;
    }
}

