@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background: #000000;
    background-image: 
        radial-gradient(at 20% 30%, rgba(85, 107, 47, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(107, 142, 63, 0.1) 0px, transparent 50%);
    color: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#connectionCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    /* Optimize for mobile performance */
    will-change: contents;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.logo {
    height: clamp(90px, 12vw, 140px);
    width: auto;
    filter: invert(1) brightness(1.4) drop-shadow(0 0 20px rgba(85, 107, 47, 0.3));
    margin-bottom: 3rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInDown 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    position: relative;
}

.logo:hover {
    transform: scale(1.08) translateY(-2px);
    filter: invert(1) brightness(1.5) drop-shadow(0 0 30px rgba(85, 107, 47, 0.5));
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 4rem 2rem;
    backdrop-filter: blur(1px);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(85, 107, 47, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    letter-spacing: -0.02em;
    position: relative;
    padding: 0.2em 0;
}

.main-title .word {
    display: inline-block;
    background: linear-gradient(135deg, #556b2f 0%, #6b8e3f 40%, #8fb05f 80%, #a8c47f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards, gradientShift 8s ease infinite;
    opacity: 0;
    position: relative;
    text-shadow: 0 0 40px rgba(85, 107, 47, 0.3);
    filter: drop-shadow(0 0 20px rgba(85, 107, 47, 0.2));
    overflow: visible;
    padding: 0.1em 0;
}

.main-title .word:nth-child(1) {
    animation-delay: 0.1s;
}

.main-title .word:nth-child(2) {
    animation-delay: 0.2s;
}

.main-title .word:nth-child(3) {
    animation-delay: 0.3s;
}

.main-title .word:nth-child(4) {
    animation-delay: 0.4s;
}

.subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    animation: fadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
    opacity: 0;
    margin-top: 1rem;
    position: relative;
}

.subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #556b2f, transparent);
    animation: expandLine 1s ease-out 1.5s forwards;
    opacity: 0;
}

footer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.footer-content {
    text-align: center;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-out 1.2s forwards;
    opacity: 0;
}

.footer-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.05em;
}

#mouseTracker {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 107, 47, 0.9) 0%, rgba(107, 142, 63, 0.5) 100%);
    pointer-events: none;
    z-index: 10;
    transform: translate(-50%, -50%);
    box-shadow: 
        0 0 20px rgba(85, 107, 47, 0.8),
        0 0 40px rgba(85, 107, 47, 0.4),
        inset 0 0 10px rgba(143, 176, 95, 0.3);
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(143, 176, 95, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes expandLine {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 60px;
        opacity: 1;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    body {
        -webkit-tap-highlight-color: transparent;
        touch-action: pan-y;
    }
    
    .container {
        padding: 1.5rem 1rem;
        min-height: 100vh;
        min-height: 100dvh; /* Dynamic viewport height for mobile */
    }
    
    .hero-content {
        padding: 1.5rem 0.5rem;
        width: 100%;
    }
    
    .hero-content::before {
        width: min(350px, 85vw);
        height: min(350px, 85vw);
    }
    
    .main-title {
        gap: 0.15rem;
        margin-bottom: 1.5rem;
    }
    
    .main-title .word {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .logo {
        margin-bottom: 1.5rem;
        height: clamp(50px, 12vw, 100px);
        max-width: 90vw;
    }
    
    .subtitle {
        font-size: clamp(0.85rem, 4vw, 1.1rem);
        letter-spacing: 0.06em;
        margin-top: 0.5rem;
        padding: 0 1rem;
    }
    
    .subtitle::after {
        width: 50px;
    }
    
    .footer-content {
        padding: 1rem 1.25rem;
        margin: 0 0.5rem;
        border-radius: 15px;
    }
    
    .footer-content p {
        font-size: clamp(0.75rem, 3vw, 0.9rem);
    }
    
    header {
        min-height: 40px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 2.5rem 3rem;
    }
    
    .main-title {
        font-size: clamp(2.5rem, 7vw, 6rem);
    }
}

/* Large screens */
@media (min-width: 1400px) {
    .container {
        padding: 3rem 4rem;
    }
}

/* Touch devices */
@media (hover: none) and (pointer: coarse) {
    .logo:hover {
        transform: scale(1);
        filter: invert(1) brightness(1.4) drop-shadow(0 0 20px rgba(85, 107, 47, 0.3));
    }
    
    .logo:active {
        transform: scale(0.98);
    }
    
    #mouseTracker {
        display: none; /* Hide mouse tracker on touch devices */
    }
    
    /* Optimize animations for touch devices */
    .main-title .word {
        animation-duration: 0.6s;
    }
    
    .subtitle {
        animation-duration: 0.8s;
    }
    
    .footer-content {
        animation-duration: 0.8s;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .hero-content {
        padding: 1rem 0.25rem;
    }
    
    .main-title .word {
        font-size: clamp(1.75rem, 9vw, 3rem);
    }
    
    .logo {
        height: clamp(45px, 10vw, 90px);
    }
    
    .footer-content {
        padding: 0.875rem 1rem;
        margin: 0 0.25rem;
    }
}

