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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
}

/* Enhanced animated background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e, #16213e, #0e1a2e);
    background-size: 400% 400%;
    animation: gradientShift 20s ease infinite;
}

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

.background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 255, 120, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Floating code elements */
.code-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.code-particle {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    opacity: 0.1;
    color: #00d4ff;
    animation: float 15s linear infinite;
    user-select: none;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.1;
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 2rem;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.9);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #00d4ff, #ff0080, #00ff88);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00d4ff, #ff0080);
    transition: width 0.3s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #00d4ff;
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00d4ff;
    transition: width 0.3s ease;
}

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

/* Enhanced Hero Section - Two Column Layout */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    z-index: 10;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero-status {
    flex: 0 0 500px;
    height: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
    backdrop-filter: blur(10px);
}

.hero-badge::before {
    content: '🚀';
    margin-right: 0.5rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff, #00d4ff, #ff0080, #00ff88);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease 0.4s both, gradientText 4s ease infinite;
    line-height: 1.2;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.6s both;
    color: #e0e0e0;
    font-weight: 500;
}

.hero-description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    margin-bottom: 3rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.8s both;
    line-height: 1.6;
    color: #b0b0b0;
}

.price-highlight {
    display: inline-block;
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    margin: 0 0.2rem;
    animation: pulse 2s ease-in-out infinite;
    color: #ffffff;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 1s both;
}

.btn {
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #0099cc);
    color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 2px solid rgba(0, 212, 255, 0.4);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.2);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    margin-top: 2rem;
    animation: fadeInUp 1s ease 1.2s both;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(0, 212, 255, 0.2);
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

.hero-status iframe {
    width: 100% !important;
    height: 100% !important;
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}

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

/* Features Section */
.features {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00d4ff, #ff0080);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-card p {
    opacity: 0.8;
    line-height: 1.6;
}

/* Software Showcase Section */
.software-showcase {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.software-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.software-showcase h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.software-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.software-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    color: inherit;
}

.software-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
}

.software-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.software-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* About Service Section */
.about-service {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.about-service h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.3);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00d4ff, #ff0080);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-card p {
    opacity: 0.8;
    line-height: 1.6;
    font-size: 1rem;
}

/* Portfolio Carousel Styles - FIXED */
.portfolio-showcase {
    padding: 5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.portfolio-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.portfolio-showcase h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-showcase .section-subtitle {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #e0e0e0;
}

.portfolio-showcase .section-subtitle a {
    color: #00d4ff;
    text-decoration: underline;
}

/* Carousel Container - Fixed calculations */
.carousel-container {
    position: relative;
    margin: 3rem 0;
    padding: 0 70px; /* Space for navigation buttons */
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
    padding: 1rem 0;
}

/* FIXED: Consistent slide width with JavaScript calculations */
.carousel-slide {
    flex: 0 0 300px; /* Fixed width - must match JS slideWidth variable */
    min-width: 0;
}

.carousel-slide .software-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
    height: 100%;
    box-sizing: border-box;
}

.carousel-slide .software-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 255, 0.4);
    color: inherit;
}

.carousel-slide .software-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
}

.carousel-slide .software-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* Make Webtrees logo bigger */
.software-logo[alt*="Webtrees"] {
  scale: 300%;
}
.software-logo[alt*="Vaultwarden"] {
  scale: 300%;
}
.software-logo[alt*="Wordpress"] {
  scale: 175%;
}

.carousel-slide .software-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.carousel-slide .software-card p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Navigation Buttons */
.carousel-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: rgba(0, 212, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(0, 212, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Pricing Section */
.pricing {
    padding: 5rem 2rem;
    background: rgba(0, 0, 0, 0.3);
}

.pricing-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.pricing h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ffffff, #00d4ff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
}

.pricing-card.featured {
    border-color: #00d4ff;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.pricing-card.featured:hover {
    transform: translateY(-10px) scale(1.07);
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.plan-period {
    opacity: 0.7;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

.plan-features li {
    padding: 0.5rem 0;
    opacity: 0.9;
}

.plan-features li::before {
    content: "✓";
    color: #00d4ff;
    margin-right: 0.5rem;
}

/* Footer */
footer {
    padding: 3rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.footer-links a:hover {
    opacity: 1;
    color: #00d4ff;
}

.copyright {
    opacity: 0.5;
}

.software-logo {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Mobile optimizations */
@media (max-width: 1200px) {
    .hero-container {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-content {
        text-align: center;
        max-width: none;
    }

    .hero-status {
        flex: none;
        width: 100%;
        max-width: 500px;
        height: 400px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-container {
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat {
        min-width: 100px;
        padding: 0.8rem;
    }

    .hero-status {
        max-width: 400px;
        height: 350px;
    }

    .hero-status iframe {
        height: 350px !important;
    }

    /* Carousel mobile adjustments */
    .carousel-container {
        padding: 0 60px;
    }

    .carousel-slide {
        flex: 0 0 280px;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        padding: 0 55px;
    }

    .carousel-slide {
        flex: 0 0 260px;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: 5px;
    }

    .carousel-next {
        right: 5px;
    }
}

/* Particle effect styles */
@keyframes particle-float {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}
