/* 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', 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
    animation: fadeInPage 0.8s ease-in-out;
}

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.header-logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

/* Navigation Styles */
.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000000;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #333333;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
}

/* Video Background */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

/* Video Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-logo-container {
    margin-bottom: 2rem;
    opacity: 0;
    animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes slideInScale {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-logo {
    width: 500px;
    height: auto;
    max-width: 85vw;
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: #000000;
    text-transform: uppercase;
    opacity: 0;
    animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #333333;
    margin-bottom: 1rem;
    font-style: italic;
    line-height: 1.8;
    opacity: 0;
    animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-subtitle {
    margin-top: 2rem;
    opacity: 0;
    animation: slideInScale 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-subtitle p {
    font-size: 1.2rem;
    color: #666666;
    font-weight: 400;
    letter-spacing: 1px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    animation: fadeInBounce 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1.5s forwards;
    z-index: 2;
}

@keyframes fadeInBounce {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.scroll-arrow {
    width: 24px;
    height: 40px;
    border: 2px solid #000000;
    border-radius: 12px;
    position: relative;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: #000000;
    border-radius: 2px;
    animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }
}

/* Section Styles */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
    letter-spacing: -1px;
}

.section-text {
    font-size: 1.5rem;
    color: #333333;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

/* Vision Section */
.vision-section {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
}

/* Tech Section */
.tech-section {
    background-color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.tech-item {
    padding: 2rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover {
    transform: translateY(-10px);
}

.tech-item h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.tech-item p {
    font-size: 1.1rem;
    color: #666666;
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
}

.cta-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000000;
}

.cta-text {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 2.5rem;
}

/* Modern Button Styles */
.button-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-modern {
    position: relative;
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    letter-spacing: 0.5px;
    font-family: inherit;
    z-index: 1;
}

.btn-modern .btn-content {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.btn-modern .btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
}

.btn-modern:hover .btn-shine {
    left: 100%;
}

/* Primary Button */
.btn-modern.primary {
    background: #000000;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-modern.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #333333 0%, #000000 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.btn-modern.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
}

.btn-modern.primary:hover::before {
    opacity: 1;
}

.btn-modern.primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

/* Secondary Button */
.btn-modern.secondary {
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-modern.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #000000;
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 0;
}

.btn-modern.secondary:hover::before {
    width: 100%;
}

.btn-modern.secondary:hover .btn-content {
    color: #ffffff;
}

.btn-modern.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    border-color: #000000;
}

.btn-modern.secondary:active {
    transform: translateY(-1px);
}

/* Ripple Effect */
.btn-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-modern:active::after {
    width: 300px;
    height: 300px;
    transition: width 0s, height 0s;
}

/* Additional Button Variants */
.btn-outline {
    background: transparent;
    color: #000000;
    border: 2px solid #000000;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-outline:hover {
    color: #ffffff;
    border-color: #000000;
}

.btn-outline:hover::before {
    left: 0;
}

/* Small Button */
.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
}

/* Fade-in Elements */
.fade-in-element {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   TEXT EFFECTS (uiverse.io inspired)
   ======================================== */

/* Gradient Animated Text */
.text-gradient-animate {
    background: linear-gradient(
        90deg,
        #000000 0%,
        #333333 25%,
        #666666 50%,
        #333333 75%,
        #000000 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
}

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

/* Text Reveal Effect */
.text-reveal {
    position: relative;
    display: inline-block;
}

.text-reveal::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    animation: revealText 2s cubic-bezier(0.77, 0, 0.175, 1) 0.5s forwards;
}

@keyframes revealText {
    0% {
        width: 100%;
        left: 0;
    }
    50% {
        width: 0%;
        left: 0;
    }
    50.001% {
        width: 0%;
        left: 100%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

/* Shimmer Text Effect */
.text-shimmer {
    position: relative;
    background: linear-gradient(
        90deg,
        #000000 0%,
        #000000 40%,
        #666666 50%,
        #000000 60%,
        #000000 100%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Glitch Text Effect */
.text-glitch {
    position: relative;
    animation: glitchPulse 5s infinite;
}

.text-glitch::before,
.text-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.text-glitch::before {
    animation: glitchTop 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 33%, 0 33%);
    transform: translate(-2px, -2px);
}

.text-glitch::after {
    animation: glitchBottom 2.5s infinite;
    clip-path: polygon(0 67%, 100% 67%, 100% 100%, 0 100%);
    transform: translate(2px, 2px);
}

@keyframes glitchTop {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    91%, 93% {
        opacity: 0.8;
        transform: translate(-2px, -2px);
    }
    92% {
        opacity: 0.8;
        transform: translate(2px, 1px);
    }
}

@keyframes glitchBottom {
    0%, 90%, 100% {
        opacity: 0;
        transform: translate(0);
    }
    91%, 93% {
        opacity: 0.8;
        transform: translate(2px, 2px);
    }
    92% {
        opacity: 0.8;
        transform: translate(-2px, -1px);
    }
}

@keyframes glitchPulse {
    0%, 100% {
        text-shadow: none;
    }
    10%, 15% {
        text-shadow: 2px 0 #000000, -2px 0 #000000;
    }
}

/* Typing Effect */
.text-typing {
    overflow: hidden;
    border-right: 2px solid #000000;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #000000;
    }
}

/* Glow Text Effect */
.text-glow {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.3),
                     0 0 10px rgba(0, 0, 0, 0.2);
    }
    to {
        text-shadow: 0 0 10px rgba(0, 0, 0, 0.5),
                     0 0 20px rgba(0, 0, 0, 0.3),
                     0 0 30px rgba(0, 0, 0, 0.2);
    }
}

/* Split Text Animation (for individual letters) */
.text-split {
    display: inline-block;
}

.text-split span {
    display: inline-block;
    opacity: 0;
    animation: letterFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-split span:nth-child(1) { animation-delay: 0.1s; }
.text-split span:nth-child(2) { animation-delay: 0.2s; }
.text-split span:nth-child(3) { animation-delay: 0.3s; }
.text-split span:nth-child(4) { animation-delay: 0.4s; }
.text-split span:nth-child(5) { animation-delay: 0.5s; }
.text-split span:nth-child(6) { animation-delay: 0.6s; }
.text-split span:nth-child(7) { animation-delay: 0.7s; }
.text-split span:nth-child(8) { animation-delay: 0.8s; }

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotateX(-90deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

/* Underline Grow Effect */
.text-underline-grow {
    position: relative;
    display: inline-block;
}

.text-underline-grow::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #000000;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.text-underline-grow:hover::after,
.text-underline-grow.active::after {
    width: 100%;
}

/* Wave Text Effect */
.text-wave {
    display: inline-block;
}

.text-wave span {
    display: inline-block;
    animation: wave 1.5s ease-in-out infinite;
}

.text-wave span:nth-child(1) { animation-delay: 0s; }
.text-wave span:nth-child(2) { animation-delay: 0.1s; }
.text-wave span:nth-child(3) { animation-delay: 0.2s; }
.text-wave span:nth-child(4) { animation-delay: 0.3s; }
.text-wave span:nth-child(5) { animation-delay: 0.4s; }

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

/* Footer */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5;
    padding: 2rem;
    text-align: center;
    color: #666666;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .nav {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero {
        padding: 6rem 1rem 2rem;
    }

    .hero-logo {
        width: 350px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-subtitle p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-text {
        font-size: 1.2rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .cta-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        height: 40px;
    }

    .hero-logo {
        width: 250px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-subtitle p {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-text {
        font-size: 1rem;
    }

    .tech-item h3 {
        font-size: 1.5rem;
    }

    .tech-item p {
        font-size: 1rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .btn-modern {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .button-group .btn-modern {
        width: 100%;
        max-width: 280px;
    }
}

