@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1e6b6b;
    /* Teal/Greenish from logo */
    --secondary-color: #144e4e;
    /* Darker shade */
    --accent-color: #2a9d8f;
    --bg-light: #ffffff;
    --bg-section: #f8f9fa;
    /* Light Gray for alternating sections */
    --text-main: #1f2937;
    /* Dark Gray/Black */
    --text-muted: #6b7280;
    /* Medium Gray */
    --card-shadow: 0 10px 30px rgba(30, 107, 107, 0.05);
    --hover-shadow: 0 20px 40px rgba(30, 107, 107, 0.1);
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Poppins', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.navbar-brand span {
    color: var(--text-main);
}

.nav-link {
    color: var(--text-main) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
#hero {
    padding: 120px 0 100px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%), url('../img/hero_bg_new.png') no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    color: var(--text-main);
}

@media (max-width: 991px) {
    #hero {
        padding: 80px 0 40px;
        text-align: center;
    }

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

    .hero-content .btn {
        width: 100%;
        margin-bottom: 15px;
        margin-right: 0 !important;
    }
}

/* Abstract shapes for background */
#hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(30, 107, 107, 0.03);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    background: rgba(30, 107, 107, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #111827;
}

.hero-title span {
    color: var(--primary-color);
    position: relative;
}

.hero-title span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(30, 107, 107, 0.2);
    z-index: -1;
}

#hero .lead {
    color: var(--text-main) !important;
    text-shadow: none;
}

.btn-cta-primary {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 107, 107, 0.3);
}

.btn-cta-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 107, 107, 0.4);
    color: white;
}

.btn-cta-outline {
    background: transparent;
    color: var(--text-main);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.btn-cta-outline:hover {
    border-color: var(--text-main);
    background: var(--text-main);
    color: white;
}

#hero img {
    width: 100%;
    max-width: 70%;
    max-height: 350px;
    object-fit: cover;
    mix-blend-mode: multiply;
    border-radius: 24px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    #hero img {
        max-height: 220px;
        margin-top: 30px;
    }
}

/* Tech Stack */
.tech-container {
    background: white;
    padding: 20px 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    margin-top: -30px;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.tech-icon-box {
    text-align: center;
    padding: 5px 15px;
    transition: transform 0.3s;
}

.tech-icon-box:hover {
    transform: translateY(-5px);
}

.tech-icon-box i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.tech-icon-box p {
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0;
}

/* Services */
.section-title {
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: #111827;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.card-service {
    background: white;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.card-service:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
    border-color: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(30, 107, 107, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.card-service h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Projects / Laboratory */
.lab-section {
    background-color: var(--bg-section);
}

.card-project {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.card-project:hover {
    box-shadow: var(--hover-shadow);
    transform: translateY(-5px);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-project:hover .project-img-wrapper img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: white;
    color: var(--text-main);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-body {
    padding: 25px;
}

.project-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.btn-project {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-project:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact */
.contact-container {
    background: url('https://images.unsplash.com/photo-1517245386807-bb43f82c33c4?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover;
    border-radius: 20px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 78, 78, 0.9);
    /* Blue overlay */
    z-index: 1;
}

.contact-content {
    position: relative;
    z-index: 2;
    color: white;
}

.form-control-light {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 20px;
}

.form-control-light::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control-light:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
    box-shadow: none;
    color: white;
}

.btn-submit {
    background: white;
    color: var(--primary-color);
    font-weight: 700;
    padding: 12px 0;
    border: none;
    border-radius: 8px;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-submit:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
footer {
    background: white;
    padding: 40px 0;
    border-top: 1px solid #f3f4f6;
    color: var(--text-muted);
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}


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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border: none;
    border-left: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
}

.cookie-banner p {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 15px 0 0 0;
    /* Added 15px top margin to lower the text */
}

.btn-cookies-accept {
    background: var(--primary-color);
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 25px;
    border-radius: 8px;
    border: none;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.btn-cookies-accept:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-cookies-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
}

.btn-cookies-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .cookie-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 15px 20px;
        text-align: center;
    }

    .btn-cookies-accept {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        display: block;
    }
}

/* WordPress Scanner UI */
.scanner-box {
    background: white;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.score-badge {
    padding: 10px 20px;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.vuln-item {
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    margin-bottom: 15px;
    border-left: 5px solid #ccc;
    transition: transform 0.2s;
}

.vuln-item:hover {
    transform: translateX(5px);
}

.vuln-high {
    border-left-color: #dc3545;
    background: #fff8f8;
}

.vuln-medium {
    border-left-color: #ffc107;
    background: #fffdf5;
}

.vuln-low {
    border-left-color: #17a2b8;
    background: #f5fcff;
}

.vuln-critical {
    border-left-color: #000;
    background: #f8f9fa;
}

.vuln-item h6 {
    font-weight: 700;
    margin-bottom: 5px;
}

.vuln-item p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.severity-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 10px;
}

.tag-high {
    background: #dc3545;
    color: white;
}

.tag-medium {
    background: #ffc107;
    color: black;
}

.tag-low {
    background: #17a2b8;
    color: white;
}

.tag-critical {
    background: #000;
    color: white;
}

/* Interactive Configurator Styles */
.project-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.choice-item {
    position: relative;
}

.choice-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.choice-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    color: var(--text-main) !important;
    /* Ensure text is dark and visible */
}

.choice-card i {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.choice-card span {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-main);
}

.choice-item input[type="radio"]:checked+.choice-card {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.choice-item input[type="radio"]:checked+.choice-card i {
    color: var(--primary-color);
}

.form-label-focus {
    display: block;
    text-align: left;
    margin-bottom: 20px;
    font-weight: 700;
    color: #ffffff;
    /* White text for contrast on dark green background */
    font-size: 1.1rem;
    opacity: 0.9;
}

.budget-range {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.budget-item {
    flex: 1;
}

.budget-card {
    padding: 15px;
    font-size: 0.9rem;
}

/* Fix general contact padding */
.contact-content {
    padding: 0;
}

/* WhatsApp Floating Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-widget:hover {
    transform: scale(1.1) translateY(-5px);
}

.whatsapp-label {
    background: white;
    color: #128c7e;
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-right: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.whatsapp-widget:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    position: relative;
}

.whatsapp-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25d366;
    z-index: -1;
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .whatsapp-widget {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    .whatsapp-label {
        display: none;
    }
}