/* E-SQUARE VENTURES - HOME PAGE STYLESHEET */

/* ------------------- */
/* Hero Section        */
/* ------------------- */
.hero-section {
    height: calc(100vh - var(--header-height));
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--secondary-color);
    padding: 0 20px;
    position: relative; /* Required for pseudo-element */
    overflow: hidden; /* Hides the pseudo-element overflow */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&q=85&fm=jpg&crop=entropy&cs=srgb&w=1600') no-repeat center center/cover;
    z-index: -1;
    animation: kenBurns 25s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}


.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-text-mask {
    overflow: hidden;
}

.hero-content h1.animate-on-load,
.hero-content p.animate-on-load {
    transform: translateY(110%);
    animation: revealText 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.hero-content p.animate-on-load {
    animation-delay: 0.2s;
}

.hero-content .btn.animate-on-load {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: revealButton 0.8s ease-out forwards 0.4s;
}

@keyframes revealText {
    to {
        transform: translateY(0);
    }
}

@keyframes revealButton {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ------------------- */
/* Welcome Section     */
/* ------------------- */
.welcome-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.welcome-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.welcome-content .section-title {
    text-align: left; 
    margin-bottom: 15px;
}

.welcome-content h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.7;
}

.welcome-content .btn {
    margin-top: 10px;
}

/* ------------------- */
/* Features Section    */
/* ------------------- */
.features-section {
    background-color: var(--light-gray-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: var(--secondary-color);
    padding: 40px 30px;
    text-align: center;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.18);
}
.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover i {
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

/* ------------------- */
/* Services Section    */
/* ------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--secondary-color);
    padding: 35px 25px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out, border-color 0.5s ease-in-out;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(127, 0, 255, 0.1);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: transform 0.5s ease-in-out;
}

.service-card:hover i {
    transform: translateY(-5px);
}
    
.service-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ------------------- */
/* Projects Section    */
/* ------------------- */
.projects-section {
    background-color: var(--light-gray-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 400px;
    display: block; 
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-tag {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
}

.project-info h3 {
    font-size: 1.6rem;
    margin: 10px 0 5px;
    color: var(--secondary-color);
}

.project-info p {
    font-size: 1rem;
    color: #e0e0e0;
}

.project-info i {
    margin-right: 5px;
}

.view-all-btn-container {
    text-align: center;
    margin-top: 50px;
}

/* ------------------- */
/* CTA Section         */
/* ------------------- */
.cta-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #a259ff 100%);
    color: var(--secondary-color);
    text-align: center;
}

.cta-section h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
}


/* -------------------------- */
/* Responsive Adjustments     */
/* -------------------------- */
@media (max-width: 992px) {
    .welcome-grid {
        grid-template-columns: 1fr; /* Stack columns */
        text-align: center;
    }
    .welcome-image {
        order: -1; /* Image appears first on tablet */
        margin-bottom: 40px;
        max-width: 500px; 
        margin-left: auto;
        margin-right: auto;
    }
    .welcome-content .section-title {
        text-align: center;
    }

    .features-grid,
    .services-grid,
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }

    .features-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-section h2 {
        font-size: 2.2rem;
    }
    .cta-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}