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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background: linear-gradient(135deg, #0d9488 0%, #065f46 100%);
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    min-height: 85vh;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(94, 234, 212, 0.03) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
    z-index: -1;
}

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

.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    height: 500px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(13, 148, 136, 0.4);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateX(2deg);
    transition: all 0.6s ease;
}

.hero-image:hover {
    transform: perspective(1000px) rotateX(0deg) scale(1.02);
    box-shadow: 0 40px 80px rgba(13, 148, 136, 0.5);
}

.waterfall-background {
    width: 100%;
    height: 100%;
    background-image: url('dafontelabs_software_solutions.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 24px;
    position: relative;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(6, 95, 70, 0.1) 0%, rgba(13, 148, 136, 0.2) 50%, transparent 100%);
    z-index: 2;
    border-radius: 24px;
}

.code-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.particle {
    position: absolute;
    color: rgba(94, 234, 212, 0.8);
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(94, 234, 212, 0.5);
    animation: floatParticle 8s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
    font-size: 18px;
}

.particle:nth-child(2) {
    top: 35%;
    right: 20%;
    animation-delay: 1.5s;
    font-size: 12px;
}

.particle:nth-child(3) {
    top: 60%;
    left: 25%;
    animation-delay: 3s;
    font-size: 16px;
}

.particle:nth-child(4) {
    top: 45%;
    right: 15%;
    animation-delay: 4.5s;
    font-size: 14px;
}

.particle:nth-child(5) {
    top: 75%;
    left: 40%;
    animation-delay: 6s;
    font-size: 11px;
}

.particle:nth-child(6) {
    top: 25%;
    right: 35%;
    animation-delay: 7.5s;
    font-size: 13px;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-25px) rotate(-3deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-10px) rotate(2deg);
        opacity: 1;
    }
}



.hero-content {
    padding: 20px 0;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h2 {
    font-size: 28px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.95;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.7;
    color: #d1fae5;
    max-width: 480px;
    margin-bottom: 32px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.025em;
    backdrop-filter: blur(10px);
}

.btn::before {
    content: '';
    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.6s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 100%);
    color: #065f46;
    box-shadow: 0 8px 32px rgba(94, 234, 212, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(94, 234, 212, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 8px 32px rgba(6, 95, 70, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.3);
}

.apps-showcase {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.2);
    backdrop-filter: blur(10px);
}

.apps-showcase h3 {
    font-size: 36px;
    font-weight: 600;
    color: #1a202c;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.025em;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    padding: 0 40px;
    justify-items: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.app-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0d9488, #14b8a6, #5eead4);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.app-card:hover::before {
    transform: scaleX(1);
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #cbd5e0;
}

.app-card[onclick] {
    cursor: pointer;
    transition: all 0.3s ease, transform 0.2s ease;
}

.app-card[onclick]:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.app-card[onclick]:active {
    transform: translateY(-8px) scale(1.01);
}

.app-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.app-icon img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: contain;
}

.app-card h4 {
    font-size: 24px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.app-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #718096;
}

.apps-description {
    text-align: center;
    font-size: 18px;
    line-height: 1.7;
    color: #4a5568;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 40px;
    font-style: italic;
}

.contact {
    padding: 60px 0;
    background: linear-gradient(135deg, #0f766e 0%, #065f46 100%);
    border-radius: 24px;
    margin: 40px 0;
    color: white;
    text-align: center;
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
}

.contact h3 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.contact p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    padding: 0 20px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-link {
    font-size: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 12px 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 16px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    padding: 16px 32px;
    background: #5eead4;
    color: #065f46;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 14px;
    color: #a0aec0;
}

.success-message {
    padding: 20px;
    background: rgba(72, 187, 120, 0.1);
    border: 2px solid rgba(72, 187, 120, 0.3);
    border-radius: 12px;
    color: #48bb78;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: center;
}

.error-message {
    padding: 20px;
    background: rgba(239, 68, 68, 0.1);
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
    margin-bottom: 24px;
    font-size: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .hero-content h2 {
        font-size: 24px;
        color: #ffffff;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    
    .hero-content p {
        font-size: 16px;
        color: #d1fae5;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    }
    
    .hero-ctas {
        justify-content: center;
        gap: 12px;
    }
    
    .btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .apps-showcase {
        padding: 60px 0;
        margin: 20px 0;
    }
    
    .apps-showcase h3 {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 0 20px;
    }
    
    .app-card {
        padding: 24px;
    }
    
    .apps-description {
        font-size: 16px;
        padding: 0 20px;
    }
    
    .contact {
        padding: 40px 20px;
        margin: 20px 0;
    }
    
    .contact h3 {
        font-size: 28px;
    }
    
    .contact p {
        font-size: 16px;
        max-width: 100%;
        padding: 0 15px;
        line-height: 1.7;
    }
    
    .contact-link {
        font-size: 18px;
    }
}