* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Navbar & Logo */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 5%;  /* Reduced from 0.5rem */
    background: linear-gradient(
        to right,
        rgba(35, 36, 57, 0.95) 0%,
        rgba(67, 69, 112, 0.95) 100%
    );
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    margin-bottom: -25px; /* Increased from -20px to reduce gap more */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    padding: 8px 5px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 1px;
    font-family: "Nunito", sans-serif;
    position: relative;
    padding: 0 5px;
}

.logo-text::first-letter,
.logo-text span {
    background: linear-gradient(
        45deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 32px;
}

@media (max-width: 768px) {
    .logo {
        padding: 6px 12px;
    }
    
    .logo-text {
        font-size: 20px;
    }
}

/* Navigation - Desktop */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-weight: 500;
    transform: translateX(0); /* Reset default transform */
    visibility: visible; /* Make visible by default */
    transition: transform 0.3s ease-in-out;
}

.nav-links.active {
    transform: translateX(0);
    visibility: visible;
    display: flex;
    right: 0;
    background: rgba(35, 36, 57, 0.95);
    backdrop-filter: blur(5px);
}
.btn {
    text-decoration: none;
}
a{
    text-decoration: none;
}

.btn a {
    text-decoration: none;
}
.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 700;  /* Changed from default to bold */
}

.nav-links a i {
    margin-right: 8px;
    font-weight: 900;  /* Added for bolder icons */
}

.nav-links a:hover {
    color: rgb(118, 167, 63);
    transform: translateY(-2px);
}

@property --gradient-angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.home {
    display: grid;
    grid-template-columns: 45% 50%;
    place-items: center;
    gap: 50px;
    background: rgb(67, 69, 112);
    background: radial-gradient(
        circle,
        rgba(67, 69, 112, 1) 3%,
        rgba(35, 36, 57, 1) 60%
    );
    min-height: calc(100vh - 55px); /* Reduced from 60px */
    padding: 50px 5% 80px; /* Reduced top padding from 60px */
    overflow: hidden;
}

.section-2 {
    display: grid;
    grid-template-columns: 50% 45%;  /* Reversed column widths */
    place-items: center;
    gap: 50px;
    background: rgb(35, 36, 57);
    background: radial-gradient(
        circle,
        rgba(35, 36, 57, 1) 3%,
        rgba(67, 69, 112, 1) 60%
    );
    min-height: calc(100vh - 55px);
    padding: 50px 5% 80px;
    overflow: hidden;
}

/* Add this new style for section-2's layout */
.section-2 .description {
    order: 2;  /* Move description to right */
}

.section-2 .users-color-container {
    order: 1;  /* Move container to left */
}

.section-2 .main-image {
    order: 1;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.section-2 .main-image img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.section-2 .main-image img:hover {
    transform: translateY(-10px);
}

/* Add this for responsive design */
@media (max-width: 1024px) {
    .section-2 {
        grid-template-columns: 1fr;
    }
    
    .section-2 .description {
        order: 1;  /* Stack description first on mobile */
    }
    
    .section-2 .users-color-container {
        order: 2;  /* Stack container second on mobile */
    }

    .section-2 .main-image {
        order: 2;
        padding: 10px;
    }
    
    .section-2 .main-image img {
        max-width: 400px;
    }
}

.description {
    color: #fff;
    padding: 0 30px;
}

.description h1 {
    font-family: "Nunito", sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.2;
    margin-bottom: 25px;
    font-weight: 800;
}

.gradient-text {
    background-image: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 40%,
        rgb(55, 141, 167) 50%,
        rgb(117, 152, 242) 70%,
        rgb(144, 118, 236) 100%
    );
    color: transparent;
    background-size: contain;
    background-clip: text;
    -webkit-background-clip: text;
}

.description p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 35px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
}

.users-color-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 15px;
    transform: scale(0.9);
}

.item {
    max-width: 150px;
    aspect-ratio: 1/1;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    object-fit: cover;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.signup-btn {
    padding: 10px 25px;
    background: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 100%
    );
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.signup-btn i {
    margin-right: 8px;
}

.signup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(118, 167, 63, 0.3);
    background: linear-gradient(
        90deg,
        rgb(51, 143, 118) 0%,
        rgb(118, 167, 63) 100%
    );
}

/* Buttons */
.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    max-width: max-content;
    background: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 40%,
        rgb(55, 141, 167) 50%,
        rgb(117, 152, 242) 70%,
        rgb(144, 118, 236) 100%
    );
    background-size: 200%;
    background-position: left;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 500;
    border: 0;
    padding: 12px 25px;
    border-radius: 25px;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.5),
        inset 0px 2px 2px rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease-in;
}.btn a {
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    background-position: right;
}

.popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.popup-content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

.close-popup {
    position: absolute;
    right: 20px;
    top: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.feature-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.learn-more {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: transform 0.3s ease;
}

.learn-more:hover {
    transform: translateX(5px);
}

/* Show popup animation */
.popup-container.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .home {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 60px 20px;
    }

    .description {
        padding: 0;
        order: 1;
    }

    .users-color-container {
        order: 2;
        transform: scale(0.8);
        margin-top: 30px;
    }

    .description p {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simply hide on mobile */
    }

    .navbar {
        padding: 0.2rem 5%;
        justify-content: center;  /* Center the logo */
    }
    
    .logo {
        margin: 0 auto;  /* Center logo */
    }
    
    .logo img {
        height: 50px;
        width: 50px;
    }

    .home {
        padding: 30px 15px;
    }

    .description {
        padding: 0 20px;
        text-align: center;
    }

    .description h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .gradient-text {
        order: -1;  /* Move gradient text to top */
        display: block;
        margin-bottom: 5px;
    }

    .btn {
        margin: 0 auto;  /* Center the button */
    }

    .description p {
        font-size: clamp(0.8rem, 3vw, 1rem);
        text-align: justify;
        padding: 0 10px;
    }

    .users-color-container {
        width: 100%;
        transform: scale(0.85);
        margin: 0 auto;
        padding: 10px;
    }

    .item {
        max-width: 100%;
        width: 100%;
    }

    .section-4 .chat-image img {
        max-width: 100%;
        width: auto;
        height: auto;
    }

    .description {
        width: 100%;
        padding: 0 15px;
    }

    .section-4-content {
        width: 100%;
        padding: 15px;
    }

    .integration-box {
        width: 100%;
    }

    .footer-content {
        width: 100%;
        padding: 0 15px;
    }

    .logo img {
        height: 60px;
    }
    
    .logo-text {
        font-size: 18px;  /* Reduced from 20px for mobile */
    }

    .section-4 .chat-image {
        height: 420px;
    }
    
    .section-4 .chat-image img {
        width: 400px;
        height: 420px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links.active {
        display: flex;
        right: 0;
        transform: translateX(0);
        visibility: visible;
    }

    .section-4-content {
        text-align: center;
    }

    .section-4-content p {
        text-align: justify;
        padding: 0 10px;
    }

    .feature-box p {
        text-align: justify;
        padding: 0 5px;
    }

    .integration-box p {
        text-align: justify;
        padding: 0 5px;
    }

    .navbar {
        justify-content: space-between; /* Space between logo and sign up */
        padding: 0.8rem 5%;
    }
    
    .logo {
        margin: 0; /* Remove auto margins */
        justify-self: flex-start; /* Force logo to left */
    }

    .signup-btn {
        margin-left: auto; /* Push button to right */
        padding: 8px 20px;
        font-size: 14px;
    }

    .nav-links {
        display: none; /* Hide regular nav links on mobile */
    }

    /* Adjust mobile nav spacing */
    .mobile-nav {
        padding: 12px 5%;
        gap: 15px;
    }

    .mobile-nav a {
        font-size: 18px;
    }
}

/* Mobile Sub-navbar */
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(35, 36, 57, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.mobile-nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 20px;
}

.mobile-nav a:hover {
    color: rgb(118, 167, 63);
}

.signup-btn-mobile {
    background: linear-gradient(90deg, rgb(118, 167, 63) 0%, rgb(51, 143, 118) 100%);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
}

/* Update mobile styles */
@media (max-width: 768px) {
    .navbar {
        justify-content: flex-start; /* Align logo to left */
        padding: 0.2rem 5%;
    }
    
    .logo {
        margin: 0; /* Remove auto margins */
    }
    
    .nav-links {
        display: none; /* Hide desktop menu */
    }
    
    .mobile-nav {
        display: flex; /* Show mobile nav */
    }

    /* Add padding to main content to account for fixed bottom nav */
    body {
        padding-bottom: 60px;
    }
    
    /* Adjust footer margin */
    .footer {
        margin-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .users-color-container {
        transform: scale(0.8);
        margin: -20px;  /* Compensate for negative space from scaling */
    }

    .description h1 {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }

    .section-4 .chat-image {
        height: auto;
        margin: 15px 0;
    }

    .users-color-container {
        grid-template-columns: repeat(2, 1fr);
        transform: scale(0.9);
    }

    .description h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
}

/* Footer */
.footer {
    background: rgb(35, 36, 57);
    background: radial-gradient(
        circle,
        rgba(35, 36, 57, 1) 3%,
        rgba(67, 69, 112, 1) 60%
    );
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-section h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 100%
    );
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #ff9635;
}

.footer-section ul li i {
    margin-right: 10px;
    color: rgb(118, 167, 63);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 100%
    );
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

.section-3 {
    padding: 80px 5%;
    background: rgb(67, 69, 112);
    background: radial-gradient(
        circle,
        rgba(67, 69, 112, 1) 3%,
        rgba(35, 36, 57, 1) 60%
    );
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-10px);
}

.feature-box i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.feature-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.section-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    padding: 80px 5%;
    background: rgb(35, 36, 57);
    background: radial-gradient(
        circle,
        rgba(35, 36, 57, 1) 3%,
        rgba(67, 69, 112, 1) 60%
    );
}

.section-4-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.section-4 h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    color: #fff;
    margin-bottom: 20px;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

.section-4 .highlight-text {
    background: linear-gradient(
        90deg,
        rgb(118, 167, 63) 0%,
        rgb(51, 143, 118) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-4 p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    margin-bottom: 30px;
}

.section-4 .chat-image {
    margin-top: 30px;
    width: 100%;
    height: 420px;  /* Match image height */
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-4 .chat-image img {
    width: 400px;
    height: 420px;
    object-fit: contain;  /* Changed to contain to prevent distortion */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
}

.section-4 .chat-image img:hover {
    transform: translateY(-10px);
}

.section-5 {
    padding: 80px 5%;
    background: rgb(67, 69, 112);
    background: radial-gradient(
        circle,
        rgba(67, 69, 112, 1) 3%,
        rgba(35, 36, 57, 1) 60%
    );
    text-align: center;
}

.section-5 .section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: #fff;
    margin-bottom: 15px;
    font-family: "Nunito", sans-serif;
    font-weight: 800;
}

.section-5 .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    margin-bottom: 50px;
}

.integrations-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.integration-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.integration-box:hover {
    transform: translateY(-10px);
}

.integration-box img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.integration-box:hover img {
    transform: scale(1.1);
}

.integration-box h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.integration-box p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .section-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .section-4-content {
        padding: 10px;
    }

    .section-4 .chat-image {
        height: 420px;
    }
    
    .section-4 .chat-image img {
        width: 400px;
        height: 420px;
        max-width: 250px;
    }

    .integrations-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .integrations-container {
        grid-template-columns: 1fr;
    }
    
    .integration-box img {
        width: 100px;
        height: 100px;
    }
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}
