/* Technova Solutions - Custom Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-blue: #3BB2E6;
    --primary-purple: #6A4CFF;
    --dark-bg: #0F172A;
    --dark-secondary: #111827;
    --text-white: #FFFFFF;
    --text-light: #CBD5E1;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    color: var(--text-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 178, 230, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--primary-blue), var(--primary-purple)) 1;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
}

.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--text-white);
}

.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.marolah-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(59, 178, 230, 0.4);
    z-index: 1000;
    animation: pulse 2s infinite;
    transition: all 0.3s ease;
}

.marolah-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 178, 230, 0.5);
}

.section-padding {
    padding: 5rem 0;
}

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

.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Image enhancement utilities */
.hero-image-pattern {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233BB2E6' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4;
}

/* Portfolio image enhancements */
.portfolio-item img {
    transition: transform 0.5s ease, opacity 0.3s ease;
    border-radius: 0.5rem;
}

.portfolio-item:hover img {
    transform: scale(1.05);
    opacity: 0.95;
}

/* Ensure images load smoothly */
.portfolio-item img {
    object-fit: cover;
    object-position: center;
}

.input-field {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: white;
    width: 100%;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 178, 230, 0.2);
}

.input-field::placeholder {
    color: var(--text-light);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    border-radius: 5px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
    
    /* Adjust logo size on mobile */
    .hero-logo,
    .nav-logo {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Adjust heading sizes */
    h1 {
        font-size: 3rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
}

/* Marolah AI Assistant Styles */
.marolah-chat {
    position: fixed;
    bottom: 90px;
    left: 2rem;
    right: auto;
    width: 320px;
    height: 450px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.8);
    opacity: 0;
    transition: all 0.3s ease;
}

.marolah-chat.visible {
    transform: scale(1);
    opacity: 1;
}

.marolah-chat-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marolah-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.marolah-message {
    margin-bottom: 0.75rem;
    max-width: 80%;
}

.marolah-message.marolah-user {
    margin-left: auto;
    text-align: right;
}

.marolah-message.marolah-bot {
    margin-right: auto;
}

.marolah-avatar {
    font-weight: bold;
}

.marolah-text {
    font-size: 0.875rem;
    line-height: 1.4;
}

.marolah-chat-input {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.marolah-chat-input form {
    display: flex;
    gap: 0.5rem;
}

.marolah-chat-input input {
    flex: 1;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
}

.marolah-chat-input input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 178, 230, 0.2);
}

.marolah-chat-input input::placeholder {
    color: var(--text-light);
}

.marolah-chat-input button {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marolah-chat-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 178, 230, 0.3);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(59, 178, 230, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(59, 178, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 178, 230, 0); }
}

/* Mobile adjustments for Marolah */
@media (max-width: 768px) {
    .marolah-float {
        width: 50px;
        height: 50px;
        bottom: 1rem;
        left: 1rem;
    }
    
    .marolah-chat {
        bottom: 80px;
        left: 1rem;
        right: auto;
        width: 280px;
        height: 400px;
    }
}

/* Floating decorative elements */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), transparent);
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -5%;
    animation-delay: -5s;
}

.floating-shape:nth-child(3) {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 30px) rotate(3deg); }
}