/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-green: #00C870;
    --dark-bg: #1A1A1A;
    --text-white: #FFFFFF;
    --text-gray: #999999;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background: var(--dark-bg);
    color: var(--text-white);
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

main {
    width: 100%;
    overflow-x: hidden;
}

/* Header and Navigation */
.header {
    position: fixed;
    width: 100%;
    background: transparent;
    padding: 1.5rem 2rem;
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 200, 112, 0.1);
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 50px;
}

.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-white);
    font-weight: 400;
    transition: color 0.3s ease;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--primary-green);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(26, 26, 26, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary-green);
}

/* Hero Section */
.hero {
    width: 100%;
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top right, rgba(0, 200, 112, 0.1), transparent 60%),
                radial-gradient(circle at bottom left, rgba(0, 200, 112, 0.05), transparent 60%);
    z-index: 1;
}

/* Parallax effect */
.parallax-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    perspective: 10px;
}

.parallax-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    transform: translateZ(-10px) scale(2);
    z-index: -1;
    background: var(--dark-bg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 250px;
    background: radial-gradient(
        ellipse at center,
        rgba(0, 200, 112, 0.25) 0%,
        rgba(0, 200, 112, 0) 70%
    );
    pointer-events: none;
}

.hero .line {
    width: 0;
    height: 1px;
    margin: 1.75rem auto 0;
    border-radius: 4px;
    background-color: var(--primary-green);
    filter: blur(.4px);
    position: relative;
    animation: expandFullLine 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes expandLine {
    0% {
        width: 0;
    }
    100% {
        width: 55%;
    }
}

.hero .line::after {
    content: '';
    position: absolute;
    top: 0.5px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 8px;
    background: rgba(0, 200, 112, 0.15);
    filter: blur(8px);
    border-radius: 50%;
    animation: expandGlow 1.5s ease-out forwards;
    animation-delay: 0.8s;
}

@keyframes expandGlow {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 30%;
        opacity: 1;
    }
}

@keyframes expandFullLine {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

.wave-decoration {
    position: absolute;
    left: -5%;
    bottom: -10%;
    width: 45%;
    height: 90%;
    background: repeating-linear-gradient(
        45deg,
        rgba(0, 200, 112, 0.03) 0%,
        rgba(0, 200, 112, 0.03) 1px,
        transparent 1px,
        transparent 8px
    );
    clip-path: polygon(0 30%, 100% 0%, 100% 100%, 0% 100%);
    transform: none;
    pointer-events: none;
    filter: blur(0.8px);
    animation: waveFloat 20s ease-in-out infinite;
}

@keyframes waveFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.wave-decoration::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0, 200, 112, 0.02) 0%,
        rgba(0, 200, 112, 0.02) 1px,
        transparent 1px,
        transparent 10px
    );
    border-radius: inherit;
}

.wave-decoration::after {
    content: '';
    position: absolute;
    inset: 20px;
    background: radial-gradient(
        circle at center,
        rgba(0, 200, 112, 0.05) 0%,
        transparent 70%
    );
    border-radius: inherit;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 12vh;
    padding-left: 2rem;
    padding-right: 2rem;
}

.subtitle {
    color: var(--primary-green);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(0, 200, 112, 0.3);
    letter-spacing: 1px;
    font-style: italic;
}

.hero h1 {
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 200, 112, 0.3);
}

.description {
    font-size: 1.25rem;
    max-width: 1000px;
    color: var(--text-gray);
    margin: 3rem auto 0;
    text-align: center;
    line-height: 1.8;
}

/* Business Units Section */
.business-units {
    padding: 4rem 2rem;
    position: relative;
    z-index: 2;
    background: var(--dark-bg);
}

.unit {
    max-width: 1200px;
    margin: 4rem auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.unit.animate {
    opacity: 1;
    transform: translateY(0);
}

.unit-logo {
    max-width: 300px;
    height: auto;
    transition: transform 0.3s ease;
}

.unit-logo:hover {
    transform: scale(1.05);
}

/* MemberOne Logo */
.memberone .unit-logo {
    width: 300px;
    height: auto;
    filter: brightness(1.2);
}

/* Absolutely Digital Logo */
.absolutely-digital-logo {
    width: 400px;
    height: 250px;
    position: relative;
    background-image: url('assets/absolutelydigitalwhite.svg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(1.2) contrast(1.5);
    transition: transform 0.3s ease, filter 0.3s ease;
    mix-blend-mode: lighten; /* This will keep only the lighter parts of the image */
    background-color: var(--dark-bg); /* Match the background color */
}

.absolutely-digital-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.4) contrast(1.5);
}

/* Ensure the container has the dark background */
.unit.absolutely-digital {
    background: var(--dark-bg);
}

/* BuildMyTech Logo */
.buildmytech-logo {
    width: 300px;
    height: auto;
    filter: brightness(1.2);
    position: relative;
    transition: transform 0.3s ease, filter 0.3s ease;
    mix-blend-mode: lighten; /* This will keep only the lighter parts of the image */
    background-color: var(--dark-bg); /* Match the background color */
}

.buildmytech-logo:hover {
    transform: scale(1.05);
    filter: brightness(1.4);
}

.unit-content {
    color: var(--text-gray);
}

.unit-content p {
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.learn-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.learn-more:hover {
    text-decoration: underline;
}

/* Heritage Section */
.heritage {
    padding: 6rem 2rem;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.heritage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at top right,
        rgba(0, 200, 112, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.heritage h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.heritage-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
    color: var(--text-gray);
    font-size: 1.25rem;
    line-height: 1.8;
}

.heritage-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.heritage-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px 0px 0px 40px;
    width: 100%;
    height: 204px;
    background: linear-gradient(285.76deg, rgba(35, 31, 32, 0.7) 0%, rgba(9, 223, 119, 0.105) 83.86%);
    border-radius: 25px;
    transition: transform 0.3s ease;
    cursor: pointer;
    
    /* Initial state for animation */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Animation class added by JavaScript */
.heritage-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.heritage-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 40px rgba(0, 200, 112, 0.15);
}

.icon {
    flex: 0 0 auto;
    margin-right: 2rem;
}

.icon img {
    width: 60px;
    height: 60px;
}

.text-content {
    flex: 1;
}

.text-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.text-content p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    padding: 4rem 2rem 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-green);
    filter: blur(.4px);
}

.footer::after {
    content: '';
    position: absolute;
    top: 0.5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 8px;
    background: rgba(0, 200, 112, 0.15);
    filter: blur(8px);
    border-radius: 50%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.contact-info {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.8;
}

.contact-info a {
    color: var(--primary-green);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-info a:hover {
    opacity: 0.8;
}

.business-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.link-group h4 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.link-group a {
    color: var(--primary-green);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.link-group a:hover {
    opacity: 0.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.cookie-settings {
    color: var(--text-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-settings:hover {
    color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(2.5rem, 5vw, 3.5rem);
    }
    
    .description {
        font-size: 1.125rem;
    }
    
    .heritage h2 {
        font-size: 3rem;
    }
    
    .heritage-intro {
        font-size: 1.125rem;
    }
    
    .heritage-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .heritage-card {
        height: auto;
        min-height: 180px;
        padding: 1.5rem;
    }
    
    .icon {
        margin-right: 1.5rem;
    }
    
    .icon img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }
    
    .nav {
        padding: 0.5rem 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding: 6rem 1rem 3rem;
    }
    
    .hero h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.2;
    }
    
    .description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .unit {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .unit-logo, .absolutely-digital-logo, .buildmytech-logo {
        margin: 0 auto;
        max-width: 250px;
    }
    
    .memberone {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .heritage {
        padding: 4rem 1rem;
    }
    
    .heritage h2 {
        font-size: 2.5rem;
    }
    
    .heritage-intro {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .heritage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .heritage-card {
        padding: 1.5rem;
        flex-direction: column;
        text-align: center;
    }
    
    .icon {
        margin: 0 0 1rem 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .business-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    .unit-content p {
        font-size: 1rem;
    }
    
    .heritage h2 {
        font-size: 2rem;
    }
    
    .heritage-intro {
        font-size: 0.9rem;
    }
    
    .text-content h3 {
        font-size: 1.25rem;
    }
    
    .text-content p {
        font-size: 0.9rem;
    }
}