/* General Reset */
body, h1, h2, p, ul, li {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1f36;
    color: #e6e6e6;
    line-height: 1.6;
}

/* Header Styling */
.main-header {
    background-color: rgba(37, 42, 65, 1); /* Fully opaque */
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center; /* Vertically align items */
    justify-content: space-between; /* Space between logo and menu links */
    padding: 0 40px; /* Horizontal padding */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.1); /* Add a subtle drop shadow */
}


.nav-links a {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    position: relative; /* For hover underline effect */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition effects */
}

.nav-links a:hover {
    color: #ff9e43; /* Bright orange for hover effect */
    transform: scale(1.2); /* Slight zoom-in effect */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ff9e43;
    left: 50%;
    bottom: -5px;
    transition: all 0.3s ease; /* Smooth underline transition */
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 100%; /* Full underline on hover */
}

/* Transparent Header */
.main-header.transparent {
    background-color: rgba(37, 42, 65, 0.8); /* Slightly transparent when scrolled */
}

/* Logo and Menu Links */
.main-header .logo img {
    height: 70px; /* Logo retains its opacity */
}

/* Navigation Links Alignment */
.nav-links {
    flex: 0 0 35%; /* Adjust to align links closer to the center */
    display: flex;
    justify-content: flex-start; /* Align links toward the logo */
    gap: 30px; /* Space between menu items */
}

.nav-links a {
    color: #e6e6e6; /* Link color */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease; /* Hover transition */
}

.nav-links a:hover {
    color: #ff9e43; /* Orange hover effect */
}

/* Menu Link Styles */
.nav-links a {
    color: #e6e6e6; /* Default link color */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease; /* Smooth hover transition */
}

/* Hover Effect for Links */
.nav-links a:hover {
    color: #ff9e43; /* Orange hover effect */
}


.nav-links a {
    color: #e6e6e6;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: color 0.3s ease;
}
/* Check parent container */
.container, .charts-grid {
    display: flex; /* Ensure Flexbox alignment */
    flex-direction: row; /* Enforce horizontal layout */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: space-evenly; /* Space evenly */
    align-items: center; /* Center vertically */
}


/* Container Class for Alignment */
.container {
    max-width: 1200px; /* Restrict content width */
    margin: 0 auto;
    padding: 0 40px; /* Match header padding */
}

/* Header Logo Styling */
/* Logo Alignment */
.main-header .logo {
    flex: 0 0 25%; /* Take 25% of the header space, pushing it toward the center */
    display: flex;
    justify-content: flex-end; /* Align logo closer to the menu */
}

.main-header .logo img {
    height: 70px; /* Logo size */
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh; /* Full viewport height */
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    transition: background-image 1s ease-in-out; /* Smooth transition for background change */
}

.hero .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

/* Hero Headline */
.hero h1 {
    font-size: 4rem; /* Large bold text for the main headline */
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeIn 2s ease-in-out; /* Add fade-in effect on load */
    margin-bottom: 20px; /* Space between text and logo */
}

/* Hero Logo */
.hero-logo {
    max-width: 100%; /* Ensure responsiveness */
    width: 400px; /* Twice as large as before */
    transition: transform 0.3s ease; /* Smooth resizing on hover */
    margin: 20px 0; /* Space around logo */
}

.hero img {
    height: 150px; /* Adjust the height to a more proportional size */
    max-width: 100%;
    margin: 20px auto 10px; /* Center and add some spacing */
    display: block; /* Ensure proper alignment */
}

.hero-logo:hover {
    transform: scale(1.1); /* Slight zoom on hover */
}

/* Hero Tagline */
.hero p {
    font-size: 1.5rem; /* Increase font size for tagline */
    font-weight: 500;
    margin-top: 20px;
    color: #dcdcdc;
    animation: slideUp 2s ease-in-out; /* Add sliding effect */
}

/* Button Styling */
.hero a {
    text-decoration: none;
    background: #36415d; /* Deep blue button */
    color: white;
    padding: 15px 30px; /* Button padding */
    border-radius: 5px; /* Rounded corners */
    font-weight: bold;
    margin-top: 60px; /* Adjust this value to move the button further down */
    transition: all 0.3s ease; /* Smooth transition for hover */
    animation: zoomIn 2s ease-in-out;
    display: inline-block; /* Ensure proper positioning */
}

.hero a:hover {
    background: #ff9e43; /* Orange on hover */
    color: #252a41; /* Dark text on hover */
}

.cta-button {
    text-decoration: none;
    background: #36415d; /* Deep blue button */
    color: white;
    padding: 15px 40px; /* Increased padding for larger size */
    border-radius: 30px; /* Rounded corners */
    font-weight: bold;
    font-size: 1.2rem; /* Slightly larger text */
    transition: background 0.4s ease, color 0.4s ease, transform 0.3s ease; /* Smooth effects */
    display: inline-block;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

.cta-button:hover {
    background: #ff9e43; /* Bright orange for hover */
    color: #252a41; /* Darker text color on hover */
    transform: scale(1.1); /* Slightly enlarge the button on hover */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3); /* Enhance shadow effect */
}

.cta-button:active {
    transform: scale(1); /* Reset size when clicking */
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.2); /* Reduce shadow intensity */
}

/* Enhanced About Section */
/* Enhanced About Section */
.about-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.benefit {
    background: linear-gradient(145deg, #1c2238, #2b324c);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #e6e6e6;
    position: relative;
    overflow: hidden;
}

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

.benefit i {
    font-size: 2rem;
    color: #ff9e43;
    margin-bottom: 15px;
    display: block;
    transition: color 0.3s ease;
}

.benefit h3 {
    font-size: 1.2rem;
    color: #ff9e43;
    margin-bottom: 10px;
}

.benefit p {
    font-size: 1rem;
    line-height: 1.6;
}

.benefit:hover i {
    color: #e67e22;
}


.about-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.stat h3 {
    font-size: 2.5rem;
    color: #ff9e43;
}

.stat p {
    font-size: 1rem;
}

.cta-button {
    text-decoration: none;
    background: #ff9e43;
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    margin: 10px;
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid #ff9e43;
    color: #ff9e43;
}

.cta-button:hover {
    transform: scale(1.05);
    background: #e67e22;
}

/* Tools Section */
.tools {
    background: #1e1e2d; /* Dark background */
    padding: 50px 20px;
    text-align: center;
    color: #ffffff;
    max-width: 2400px; /* Ensure sufficient width for grid */
}

.tools .section-title {
    font-size: 2.5rem;
    color: #33FF57; /* Vibrant green */
    margin-bottom: 20px;
}

.tools .section-description {
    font-size: 1.2rem;
    color: #cccccc;
    margin-bottom: 40px;
}
.tools-grid {
    display: grid; /* Enables grid layout */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive columns */
    gap: 20px; /* Space between cards */
    margin-top: 20px;
    width: 100%; /* Ensure the container spans full width */
}

.tool-card {
    perspective: 1000px;
    width: 100%;
    height: 250px;
}

.tool-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform: rotateY(0);
    transition: transform 0.6s ease-in-out;
}

.tool-card:hover .tool-card-inner {
    transform: rotateY(180deg);
}

.tool-card-front,
.tool-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
}

.tool-card-front {
    background: #252a41;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.tool-card-back {
    background: #33FF57;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: rotateY(180deg);
}


.icon-container {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.tool-card-back p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.tool-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #1e1e2d; /* Neutral button background */
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.tool-button:hover {
    transform: scale(1.05);
    background: #252a41;
}



/* Section Styling */
section {
    padding: 50px 0;
    background-color: #1a1f36;
}

section .container {
    text-align: center;
}

.about, .features, .gallery, .contact {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.features ul {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
}

.features li {
    margin: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    text-align: center;
    flex: 1 1 calc(33.333% - 20px); /* Responsive grid layout */
}

.features li:nth-child(n+4) {
    flex: 1 1 calc(50% - 20px); /* For smaller screens */
}

.gallery img {
    max-width: 100%;
    border-radius: 8px;
}
/* Features Section */
.features {
    background: #1a1f36;
    color: #e6e6e6;
    padding: 60px 20px;
    text-align: center;
}

.features .section-title {
    font-size: 2.5rem;
    color: #ff9e43;
    margin-bottom: 20px;
}

.features .features-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #ccc;
}

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

.feature-card {
    background: linear-gradient(145deg, #252a41, #2b324c);
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.feature-card i {
    font-size: 3rem;
    color: #ff9e43;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.feature-card:hover i {
    color: #e67e22;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}


canvas {
    background: #252a41;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.charts-row {
    display: flex; /* Enable flexbox */
    flex-wrap: wrap; /* Allow wrapping for smaller screens */
    gap: 20px; /* Add spacing between charts */
    justify-content: space-evenly; /* Distribute charts evenly */
    align-items: center; /* Center the charts vertically */
    padding: 20px 0; /* Add padding for spacing */
}

.charts-row canvas {
    max-width: 300px; /* Set a consistent width for charts */
    max-height: 300px; /* Set a consistent height for charts */
    flex: 1 1 calc(33.33% - 20px); /* Ensure three charts per row */
    background-color: #252a41; /* Match the background */
    border-radius: 8px; /* Add rounded corners */
    padding: 10px; /* Add padding inside the charts */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Add shadow effect */
}


/* Footer Styling */
.footer {
    background-color: #252a41;
    color: #e6e6e6;
    padding: 20px 40px; /* Match the header's padding */
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer .container {
    max-width: 1200px; /* Limit width for alignment */
    margin: 0 auto;
    text-align: center;
    padding: 0; /* No additional padding needed */
}

.footer .footer-about img {
    height: 70px; /* Match the header logo size */
    margin-bottom: 10px;
}

.footer .footer-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    justify-content: center;
    padding: 0;
    margin: 20px 0;
}

.footer .footer-nav a {
    color: #ff9e43; /* Match accent color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer .footer-nav a:hover {
    color: #e6e6e6; /* Subtle hover effect */
}

.footer-bottom {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #bbb;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}
/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid */
    gap: 20px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.gallery-grid img:hover {
    transform: scale(1.05); /* Zoom effect on hover */
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    text-align: center;
}

.modal-content {
    max-width: 80%;
    max-height: 80%;
    border-radius: 10px;
}

.modal-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.modal-navigation button {
    background: none;
    color: white;
    font-size: 2rem;
    border: none;
    cursor: pointer;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}
.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1s ease-in-out;
}

.hero-content {
    position: relative;
    z-index: 2; /* Ensure content stays above the carousel */
    text-align: center;
    color: white;
}

/* Contact Section */
.contact {
    background: #1a1f36;
    color: #e6e6e6;
    padding: 80px 20px;
    text-align: center;
}

.contact .section-title {
    font-size: 2.5rem;
    color: #ff9e43;
    margin-bottom: 20px;
}

.contact-description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
}

/* Contact Form Styling */
.contact-form {
    max-width: 500px;
    margin: 0 auto; /* Center the form horizontally */
    background: linear-gradient(145deg, #252a41, #2b324c);
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 20px; /* Uniform spacing between elements */
}

.contact-form .form-group {
    width: 100%; /* Input fields take full width */
    text-align: left; /* Align labels to the left */
}

.contact-form label {
    font-weight: bold;
    color: #ff9e43;
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: #1a1f36;
    color: #e6e6e6;
    outline: none;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: #ff9e43;
    box-shadow: 0 0 8px #ff9e43;
}

.contact-form textarea {
    resize: none; /* Disable resizing of the textarea */
    height: 100px;
}

.contact-form .captcha-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-form #captcha-container {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between captcha question and input */
}

.contact-form #captcha-question {
    font-weight: bold;
    color: #e6e6e6;
    font-size: 1.1rem;
}

.contact-form .cta-button {
    background: #ff9e43;
    color: white;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    width: 100%; /* Button spans the full width */
}

.contact-form .cta-button:hover {
    background: #e67e22;
    transform: scale(1.05);
}

.contact-form .form-message {
    margin-top: 15px;
    font-size: 1rem;
    color: #ff9e43;
}
/* Scroll Bar Styling */
.scroll-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px; /* Height of the scroll bar */
    background-color: hsla(78, 80%, 28%, 0.2); /* Background for the scroll track */
    z-index: 9999; /* Ensure it stays above other elements */
}

.scroll-bar {
    height: 100%;
    width: 0%; /* Start at 0 and dynamically adjust */
    background-color: rgb(130, 2, 250); /* Color of the scroll bar */
    transition: width 0.1s ease; /* Smooth transition */
}
/* Scroll-to-Top Button Styling */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* Hidden by default */
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF5733, #33FF57, #3357FF); /* Logo-inspired gradient */
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3); /* More dramatic drop shadow */
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    z-index: 1000;
}

/* Hover effect for the button */
.scroll-to-top:hover {
    transform: scale(1.3); /* Bigger zoom effect */
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    background: linear-gradient(135deg, #FF8C33, #57FF33, #5733FF); /* Brighter gradient on hover */
}

/* Pulse animation for the button */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 10px 16px rgba(0, 0, 0, 0.4);
    }
}

/* Add pulse effect when the button is displayed */
.scroll-to-top.show {
    animation: pulse 1.5s infinite;
}
