/* E-SQUARE VENTURES - GLOBAL STYLESHEET */

/* ------------------- */
/* CSS Variables       */
/* ------------------- */
:root {
    --primary-color: #7F00FF; /* A vibrant violet */
    --primary-color-dark: #6a00d9;
    --secondary-color: #ffffff;
    --text-color: #333333;
    --light-gray-color: #f4f4f9;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --header-height: 70px; /* Define header height for calculations */
}

/* ------------------- */
/* Base & Reset Styles */
/* ------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html{
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--secondary-color);
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Add a class to disable AOS on mobile for performance if needed */
[data-aos-disable-mobile] {
    transition: none !important;
    transform: none !important;
}


a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}


/* ------------------- */
/* Buttons             */
/* ------------------- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px; /* Modern pill shape */
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2), 0 0 20px rgba(127, 0, 255, 0.5);
    color: var(--secondary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}


/* ------------------- */
/* Header & Navbar     */
/* ------------------- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 0; /* Padding is now on the navbar */
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}


/* -------------------------- */
/* Professional Footer      */
/* -------------------------- */
.footer {
    background-color: #222222; 
    color: #a9a9a9;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col .logo {
    font-size: 2rem; 
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: inline-block;
}

.footer-col p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-col h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::before {
    content: '';
    display: block;
    width: 35px;
    height: 2px;
    background-color: var(--primary-color);
    margin-bottom: 12px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #a9a9a9;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

/* --- NEW STYLE FOR CONTACT LINKS --- */
.footer-col p a {
    color: #a9a9a9;
    transition: color 0.3s ease;
}

.footer-col p a:hover {
    color: var(--secondary-color);
}

.footer-col .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 40px;
    font-size: 1rem;
    border-radius: 50%;
    background-color: #3f3f3f;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer-col .social-links a i {
    color: var(--secondary-color);
    margin: 0; 
}

.footer-col .social-links a:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.footer-col i {
    margin-right: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}


/* -------------------------- */
/* Responsive Global Styles   */
/* -------------------------- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
    .section-padding {
        padding: 60px 0;
    }
}


@media (max-width: 768px) {
    /* --- Hamburger Menu Active State --- */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* --- Mobile Navigation --- */
    .nav-links {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        height: calc(100vh - var(--header-height));
        text-align: center;
        transition: 0.3s;
        gap: 0;
        padding-top: 20px;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li {
        padding: 20px 0;
    }
    .nav-links a {
        font-size: 1.2rem;
    }
    .hamburger {
        display: block;
    }

    /* --- Other Global Adjustments --- */
    .section-title {
        font-size: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h4::before {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-col .social-links {
        justify-content: center;
    }
}