/* Base Styles and Variables */
:root {
    --primary: #2D3E50;    /* Deep Indigo Blue */
    --background: #F8F9FB; /* Soft Off-White */
    --accent: #00C2FF;     /* Neon Sky Blue */
    --text-dark: #1A2530;
    --text-light: #F8F9FB;
    --shadow: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-content {
    text-align: center;
    color: var(--text-light);
}

.logo-animation {
    margin-bottom: 20px;
}

.logo-path {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: dash 2s ease-in-out forwards;
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(45, 62, 80, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

nav a:not(.cta-button)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

nav a:not(.cta-button):hover::after {
    width: 100%;
}

.cta-button {
    background-color: var(--accent);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.4);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.hero-3d-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
}

/* Services Section */
.services {
    padding: 100px 5%;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(0, 194, 255, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(45, 62, 80, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.services h2, .about h2, .contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.services h2::after, .about h2::after, .contact h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.1) 0%, rgba(45, 62, 80, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: #666;
}

/* About Section */
.about {
    padding: 100px 5%;
    background-color: var(--primary);
    color: var(--text-light);
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
    min-width: 300px;
}

.about h2 {
    text-align: left;
    transform: none;
    left: 0;
    color: var(--text-light);
}

.about h2::after {
    left: 0;
    transform: none;
}

.about p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-3d-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background-color: var(--background);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.05) 0%, rgba(45, 62, 80, 0.05) 100%);
    border-radius: 50%;
    z-index: 0;
    transform: translate(30%, -30%);
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.contact-form-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.2);
}

.submit-button {
    background-color: var(--accent);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    display: block;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 194, 255, 0.3);
}

.submit-button:hover {
    background-color: #00b0e6;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 194, 255, 0.4);
}

.contact-3d-container {
    flex: 1;
    min-width: 300px;
    height: 400px;
}



.use-case-card p {
    font-weight: 500;
    color: var(--primary);
}

/* Automation Examples Section */
.automation-examples {
    padding: 80px 5%;
    background-color: var(--background);
    position: relative;
}

.automation-examples h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.automation-examples h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.examples-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.example-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.example-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 194, 255, 0.1) 0%, rgba(45, 62, 80, 0.1) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.example-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.example-card:hover::before {
    opacity: 1;
}

.additional-note {
    grid-column: 1 / -1;
    background-color: transparent;
    padding: 25px 30px;
    border-radius: 15px;
    margin-top: 20px;
    box-shadow: 0 5px 15px var(--shadow);
    transition: var(--transition);
}

.additional-note p {
    font-size: 1.5rem;
    text-align: center;
    color: var(--primary);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.example-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.example-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.example-card p {
    color: #666;
    margin-bottom: 15px;
}

.example-card p:last-child {
    margin-bottom: 0;
}

.example-card strong {
    color: var(--primary);
    font-weight: 600;
}



/* Footer */
footer {
    background-color: var(--primary);
    color: var(--text-light);
    padding: 50px 5%;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo p {
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-3d-container {
        opacity: 0.3;
        width: 100%;
    }
    
    .about, .contact-container {
        flex-direction: column;
    }
    
    .about-3d-container, .contact-3d-container {
        width: 100%;
        order: -1;
    }
    
    header {
        padding: 15px 5%;
    }
    
    nav ul {
        gap: 15px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* 3D Elements Styling */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Allow pointer events for interactivity */
    pointer-events: auto;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.whatsapp-button svg {
    width: 30px;
    height: 30px;
}