/* style.css */


html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

:root {
    --bg-green: #106c43;
    --card-bg: #d5ffe2;
    --primary-dark: #1e5d44;
    --accent-yellow: #fdbf2d;
    --text-color: #103c29;
    --max-width: 1000px;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1e5d44;
    color: var(--text-color);
    line-height: 1.6;

}

/* Header */
header {
    width: 80%;
    background-color: var(--card-bg);
    padding: 15px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 800;
    margin: 40px auto;
    border-radius: 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-left: 50px;
}

.logo {
    width: 127px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('logo1.png'); /* Ensure this path is correct */
}

.header-button {
    background-color: var(--bg-green);
    color: var(--accent-yellow);
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.header-button:hover {
    background-color: var(--primary-dark);
}

/* Desktop Navigation - ALWAYS display on desktop */
header nav {
    display: block; /* Ensure desktop nav is visible by default */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
    margin-right: 50px;
}

header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: var(--bg-green);
}

/* Mobile Menu Elements - HIDDEN by default on desktop */
.mobile-menu-toggle,
.mobile-menu-overlay,
.mobile-menu,
.mobile-page-title { /* Added .mobile-page-title here */
    display: none;
}

/* Desktop-only button - displayed by default */
.desktop-only {
    display: block;
}

/* Main Content Sections */
main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.explore-button {
    background-color: var(--bg-green);
    color: var(--accent-yellow);
    border: none;
    max-height: 70px;
    padding: 12px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    align-self: center;
    position: relative;
    z-index: 3;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    pointer-events: auto;
}

.explore-button:hover {
    background-color: var(--primary-dark);
}

/* Hero Section */
.hero-section {
    height: 40vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: rgb(4, 4, 4);
}

#custom-cursor {
    display: none;
}

.hero__title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    pointer-events: none;
    color: #eee;
    white-space: pre-line;
}

.hero__subtitle {
    margin-top: 16px;
    font-size: 18px;
    line-height: 22px;
    font-style: normal;
    font-weight: 400;
    /* font-family: var(--font-family-ys-text); -- This variable is not defined */
    letter-spacing: normal;
    margin-top: 24px;
    color: var(--font-color-white); /* This variable is not defined */
    text-align: center;
    white-space: pre-line;
    max-width: var(--max-width);
}

/* Cursor and coordinates only visible in hero section */
#coordinates {
    position: absolute;
    font-size: 14px;
    font-family: Arial, sans-serif;
    color: white;
    text-shadow: 1px 1px 2px black;
    pointer-events: none;
    transform: translate(-50%, -50%);
    text-align: right;
    line-height: 1.2;
    z-index: 2;
}

#custom-cursor {
    position: absolute;
    width: 40px;
    height: 40px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: none;
}

#custom-cursor::before,
#custom-cursor::after {
    content: "";
    position: absolute;
    background:  #fdbf2d;
    z-index: 2;
}

#custom-cursor::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

#custom-cursor::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

#mouse-light {
    position: absolute;
    will-change: transform;
    width: 340px;
    height: 340px;
    border-radius: 340px;
    background: var(--card-bg) ;
    mix-blend-mode: color-dodge;
    filter: blur(120px);
    pointer-events: none;
    transform: translate(-150px, -150px);
    mix-blend-mode: lighten;
    z-index: 1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px
        );
    background-size: 40px 40px;
    z-index: 0;
}

.hero-section:hover #custom-cursor {
    display: block;
}

.section {
    padding: 40px 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.card {
    background-color: var(--card-bg);
    display: flex;
    padding: 30px;
    align-items: center;
    gap: 40px;
    width: 700px;
    height: 350px;
    flex-shrink: 0;
    box-sizing: border-box;
    margin: 30px 0;
    overflow: hidden;
    margin: 40px auto;
    border-radius: 20px;
    box-shadow: 8px 8px 0 #ccc;
}

.card-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-content h2 {
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--primary-dark);
    font-weight: 700;
}

.card-content p {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-color);
}

.card-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 0;
}

.card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Specific card positioning and image swapping */
#tools-section .card {
    flex-direction: row-reverse;
    margin-left: 0;
    margin-right: auto;
}

#import-export-section .card {
    box-shadow: -8px 8px 0 #ccc;
    flex-direction: row;
    margin-left: auto;
    margin-right: 0;
}

#projection-section .card {
    flex-direction: row-reverse;
    margin-left: 0;
    margin-right: auto;
}

/* Full Width Map Section */
.full-width-map-section {
    background-image: url('layers ng1.png'); /* Ensure this path is correct */
    background-size: cover;
    background-position: center;
    color: var(--card-bg);
    text-align: center;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    width: 100%;
}

.full-width-map-section h2 {
    font-size: 3em;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* Footer */
.main-footer {
    background-color: #1b482e;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: white;
    margin-top: auto;
}

.footer-logo {
    margin-bottom: 40px;
    margin-left: 20px;
}

.footer-logo img {
    max-width: 130px;
    height: auto;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 40px;
    flex-wrap: wrap;
}

.social-section,
.contact-section {
    background-color: #C8F5C8;
    padding: 25px 35px;
    border-radius: 15px;
    text-align: center;
    color: #333;
    flex: 1;
    max-width: 350px;
    max-height: 125px;
}

.social-section h3,
.contact-section h3 {
    margin-top: 0;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    font-size: 1.5em;
    color: white;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Specific social icon colors */
.social-icon.youtube { background-color: #FF0000; }
.social-icon.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    color: white;
}
.social-icon.tiktok { background-color: #000000; }
.social-icon.facebook { background-color: #1877F2; }

.separator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px;
    position: relative;
    margin: 0 20px;
}

.separator .line {
    width: 2px;
    height: 100%;
    background-color: white;
}

.separator .circle {
    width: 15px;
    height: 15px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
}

.separator .circle:first-child {
    top: 0;
}

.separator .circle:last-child {
    bottom: 0;
}

/* Desktop responsive adjustments for cards */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .header-left {
        margin-left: 0;
    }
    nav ul {
        margin-right: 0;
    }

    .card {
        flex-direction: column !important;
        text-align: center;
        width: 90% !important;
        height: auto !important;
        max-width: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .card-content {
        align-items: center;
        flex: none;
        width: 100%;
    }

    .card-image {
        margin-top: 20px;
        flex: none;
        width: 100%;
    }
    .card-image img {
        max-height: 200px;
        object-fit: contain;
    }

    .explore-button {
        align-self: center;
    }

    .full-width-map-section h2 {
        font-size: 2.2em;
    }

    footer {
        flex-direction: column;
        gap: 20px;
    }
}

/* Further desktop adjustments for smaller screens, but still > 768px */
@media (max-width: 600px) {
    .section {
        padding: 30px 0;
    }

    .card {
        padding: 20px;
    }

    .card-content h2 {
        font-size: 1.8em;
    }

    .full-width-map-section {
        padding: 60px 20px;
        min-height: 300px;
    }

    .full-width-map-section h2 {
        font-size: 1.8em;
    }
}