/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}
.hero-section img {
    height: 100vh;
    object-fit: cover;
    top: 0;
    left: 0;
    z-index: -1;
}

/*Fourth Section (Video Section)*/
.fourth-section {
    background-color: rgba(0, 0, 0, 0.5);
}
.fourth-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 20px;
}
.btn-play {
    background-color: rgba(255, 255, 255, 0.8);
    color: #3B8C61;
    border: none;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-play:hover {
    background-color: #cbcbcb;
}

/* Optional: Control the modal height */
.modal-xl .modal-content {
    max-height: 80vh; 
}


/* Header Section Styling */
.header-section {
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    z-index: 1;
}
.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 16px;
    transition: color 0.3s ease, background-color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    background-color: #00a678;
    color: #fff;
    border-radius: 5px;
}

.btn-outline-dark {
    font-weight: 500;
    border-width: 1px;
}
.btn-outline-dark:hover {
    background-color: #00a678;
    color: #fff;
}

.btn-demo {
    background-color: #4cd3b1; /* Light green background */
    color: #000;
    font-weight: bold;
    border-radius: 30px; 
    position: relative;
    border: 2px solid #000; 
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 3px 3px 0px #000; 
}

.btn-demo:hover {
    background-color: #42b898; 
    box-shadow: 3px 3px 0px #333; 
}

.icon-circle {
    background-color: #000; 
    color: #4cd3b1; 
    border-radius: 50%; 
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem; 
}


/* Stats Section */
.stats-section {
    position: relative;
    top: -140px; /* Adjust this value as needed to control the overlap */
    margin-bottom: -100px; /* Prevents extra space below */
}
.stats-container {
    max-width: 900px; /* Centered smaller width */
    padding: 20px;
    background-color: #3B8C61;
    border-radius: 10px;
}
.stat-item h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 10px;
}
.stat-item p {
    font-size: 1rem;
    margin-top: 5px;
}

/* Why Section */
.why-section {
    background-color: #f8f9fa;
}

.why-section h2 {
    color: #333;
}

.why-section i {
    color: #00c896; 
}

.why-section p {
    font-size: 0.95rem;
}

.why-section .text-brand {
    color: #00c896;
}


/* Content Section */
.stats-section .row .col-md-6:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stats-section .row .col-md-6:last-child {
    color: #ffffff;
}
.award-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 10px;
}

/* Agrotech Card Styling */
.agrotech-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.card-image {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}
.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    --r: 25px; /* the radius */
    --s: 40px; /* the size of the corner*/   
    --_m:/calc(2*var(--r)) calc(2*var(--r))
      radial-gradient(#000 70%,#0000 72%) no-repeat;
      mask:
      right 0 bottom calc(var(--s) + var(--r)) var(--_m),
      right calc(var(--s) + var(--r)) bottom 0 var(--_m),
      radial-gradient(var(--s) at 100% 100%,#0000 99%,#000 101%) 
       calc(-1*var(--r)) calc(-1*var(--r)) no-repeat,
      conic-gradient(from 90deg at calc(100% - var(--s) - 2*var(--r)) calc(100% - var(--s) - 2*var(--r)),
       #0000 25%,#000 0);
}
.card-image p {
    position: absolute;
    left: 10px;
    bottom: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 3px 8px;
    border-radius: 5px;
}
.arrow-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #fff;
    color: #333;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}
.arrow-icon:hover,
.agrotech-card:hover .arrow-icon {
    transform: scale(1.2);
    background-color: #333; /* Darkens on hover */
    color: #fff; /* Inverts color */
}

/* About Section */
.about-section {
    background-color: #f8f9fa;
}
.about-text h4 {
    font-size: 1.25rem;
    color: #6c757d;
}
.about-text h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-top: 10px;
}
.about-text p, .about-text ul li {
    font-size: 1rem;
    color: #5a5a5a;
    margin-top: 10px;
}
.btn-learn-more {
    background-color: #28a745;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}
.btn-learn-more:hover {
    background-color: #55cda0;
    color: #fff;
}
/* Position the bubble tooltip */
.about-image {
    position: relative;
}

/* Image Container */
.about-image {
    position: relative;
}

/* Tooltip Bubble */
.tooltip-bubble {
    position: absolute;
    transform: translate(-50%, -50%);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    display: none; /* Initially hidden */
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15); 
    white-space: nowrap;
    z-index: 10;
}

/* Individual tooltip positions */
#ivan-tooltip {
    top: 45%; /* Adjust to position over Ivan */
    left: 72%; /* Adjust to position over Ivan */
}

#vladimir-tooltip {
    top: 40%; /* Adjust to position over Vladimir */
    left: 40%; /* Adjust to position over Vladimir */

}

.team-member {
    cursor: info;
    border-bottom: #28a745 2px dotted;
}

/* JavaScript-triggered tooltip visibility */
.tooltip-visible {
    display: block !important;
}



/* Circle Overlay Styling */
.organic-image {
    position: relative;
}
.circle-container .circle {
    position: absolute;
    border-radius: 50%;
}

/* Data Collection Section */
.data-collection-section {
    background-color: #ffffff;
}
.data-collection-section h2 {
    font-size: 2rem;
    color: #333;
}
.image-container img {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.data-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.data-card:hover {
    transform: translateY(-5px);
}
.data-card h5 {
    color: #333;
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.data-card p {
    font-size: 1rem;
    color: #6c757d;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* FAQ Section Styling */
.faq-section h2 {
    font-size: 2rem;
    color: #333;
}
.accordion-button {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 500;
}
.accordion-button:not(.collapsed) {
    color: #fff;
    background-color: #3B8C61;
}
.accordion-body {
    font-size: 1rem;
    color: #6c757d;
}

/* Title Section Styling */
.title-section {
    background-color: #f8f9fa; 
    position: relative;
}

/* White Rounded Border */
.rounded-border {
    background-color: #fff; 
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); 
    border: 4px solid #fff; 
    max-width: 800px; /* Optional: max width for centered appearance */
    margin: 0 auto; 
}

/* Main Title Styling */
.title-section h1 {
    font-family: 'Playfair Display', serif;
    color: #333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 1px;
}

/* Custom Button Styling */
.btn-custom {
    background-color: #00c896;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.btn-custom i {
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    padding: 0.4rem;
    font-size: 1rem;
    margin-left: 10px;
}

.btn-custom:hover {
    background-color: #00a678;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-custom:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}



/* Footer Styling */
.footer-section {
    background-color: #f8f9fa;
}

.footer-section h5 {
    font-size: 0.9rem;
    font-weight: 700;
}

.footer-section a {
    color: #6c757d;
    font-size: 0.9rem;
    text-decoration: none;
}

.footer-section a:hover {
    color: #000;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #6c757d;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3B8C61;
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top-btn:hover {
    background-color: #00c896;
    transform: scale(1.1); /* Slightly enlarges on hover */
}

/* Responsive Adjustments */

/* Circular Container for Nav Links */
@media  (min-width: 992px) {
    .nav-circle {
        border: 1px solid #333;
        padding: 5px 20px;
    }
    
}

@media (max-width: 768px) {
    .hero-section h1, .stat-item h2, h2 {
        font-size: 2rem;
    }
    .stats-container {
        padding: 15px;
    }
    .card-overlay {
        position: relative;
        margin-top: 1em;
    }
}

@media (max-width: 576px) {
    .stat-item {
        margin-bottom: 20px;
    }
    .hero-content h1 {
        font-size: 1.5rem;
    }
    .stats-section .col-md-6 {
        text-align: center;
    }
}
