/* Home Page Styling for K Manu & Associates */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #4a4a4a;
    --accent-color: #d4af37;
    --background-color: #f8f8f8;
    --text-color: #2c2c2c;
    --stat-background: #1a1a1a;
}

.home-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Video Hero Section */
.video-hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-text {
    text-align: center;
    color: #ffffff;
    padding: 0 20px;
}

.hero-main-title {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: 5px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out;
}

.hero-tagline {
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Georgia', 'Times New Roman', serif;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.hero-description {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.9;
    font-size: 1.15rem;
    color: var(--secondary-color);
    font-weight: 400;
    text-align: justify;
    padding: 0 20px;
}

/* Project Statistics Section */
.project-statistics {
    background: linear-gradient(135deg, var(--stat-background) 0%, #2c2c2c 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.project-statistics::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.1));
    padding: 50px 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--accent-color);
    font-family: 'Georgia', 'Times New Roman', serif;
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

/* Founder Home Section */
.founder-home-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    position: relative;
}

.founder-home-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.founder-home-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.founder-home-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.founder-home-image:hover {
    transform: translateY(-10px);
}

.founder-home-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.founder-home-bio {
    padding: 20px 0;
}

.founder-name {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 2px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 10px;
}

.founder-title {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.founder-excerpt {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--secondary-color);
    margin-bottom: 30px;
    text-align: justify;
}

.founder-cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--primary-color), #2c2c2c);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.founder-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--accent-color), #c19a2e);
    border-color: var(--accent-color);
}

/* Instagram Section */
.instagram-section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
}

.instagram-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 50px;
    font-weight: 500;
}

.instagram-feed {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.instagram-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.instagram-post {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    aspect-ratio: 1;
    background-color: #f0f0f0;
}

.instagram-post:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
}

.instagram-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.instagram-post:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.instagram-post:hover .instagram-overlay {
    opacity: 1;
}

.instagram-caption {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.instagram-cta {
    text-align: center;
}

.instagram-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--accent-color), #c19a2e);
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 50px;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.instagram-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, #c19a2e, var(--accent-color));
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .video-hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-main-title {
        font-size: 3.5rem;
        letter-spacing: 4px;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .page-title {
        font-size: 3rem;
    }

    .stats-grid {
        gap: 30px;
    }

    .founder-home-section {
        padding: 80px 0;
    }

    .founder-home-content {
        gap: 50px;
    }

    .founder-name {
        font-size: 1.8rem;
    }

    .founder-excerpt {
        font-size: 1rem;
    }

    .instagram-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .instagram-feed {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .video-hero-section {
        height: 60vh;
        min-height: 400px;
    }

    .hero-main-title {
        font-size: 2.5rem;
        letter-spacing: 3px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .page-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-description {
        font-size: 1rem;
        text-align: left;
    }

    .project-statistics {
        padding: 60px 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stat-item {
        padding: 40px 20px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }

    .founder-home-section {
        padding: 60px 0;
    }

    .founder-home-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .founder-name {
        font-size: 1.6rem;
    }

    .founder-title {
        font-size: 1rem;
    }

    .founder-excerpt {
        font-size: 0.95rem;
        text-align: left;
    }

    .founder-cta-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }

    .instagram-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 40px;
    }

    .instagram-feed {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .instagram-button {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .video-hero-section {
        height: 50vh;
        min-height: 350px;
    }

    .hero-main-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 0.85rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .page-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .founder-home-section {
        padding: 40px 0;
    }

    .founder-home-content {
        gap: 30px;
    }

    .founder-name {
        font-size: 1.4rem;
    }

    .founder-title {
        font-size: 0.9rem;
    }

    .founder-excerpt {
        font-size: 0.9rem;
    }

    .founder-cta-button {
        padding: 10px 25px;
        font-size: 0.85rem;
    }

    .instagram-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }

    .instagram-feed {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .instagram-button {
        padding: 12px 25px;
        font-size: 0.85rem;
    }
}