/* =========================================

   1. VARIABLES

   ========================================= */

:root {

    --dark-amaranth: #9A1538;

    --brown-red: #A43F3E;

    --terracotta-clay: #AB5A43;

    --cinnamon-wood: #B17247;

    --light-bg: #f8f9fa;

    --white: #ffffff;

    --text-dark: #2d3436;

    --text-muted: #636e72;

    --border-radius: 12px;

}



/* =========================================

   2. RESET & GLOBAL STYLES

   ========================================= */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    scroll-behavior: smooth;

}



body {

    font-family: 'Inter', sans-serif;

    background-color: var(--light-bg);

    color: var(--text-dark);

    line-height: 1.6;

}



a { 

    text-decoration: none; 

    color: inherit; 

    transition: 0.3s; 

}



ul { 

    list-style: none; 

}



.container {

    max-width: 1200px;

    margin: 0 auto;

    padding: 0 20px;

}



/* Common Section Styles */

section { 

    padding: 80px 0; 

}



.bg-white { 

    background: var(--white); 

}



.section-header {

    text-align: center;

    margin-bottom: 50px;

}



.section-header h2 {

    font-size: 2.2rem;

    color: var(--text-dark);

}



.separator {

    height: 4px;

    width: 60px;

    background: var(--dark-amaranth);

    margin: 10px auto;

    border-radius: 2px;

}



/* =========================================

   3. BUTTONS & UTILITIES

   ========================================= */

.btn-primary {

    background: white;

    color: var(--dark-amaranth);

    padding: 12px 30px;

    border-radius: 50px;

    font-weight: 600;

    display: inline-block;

}



.btn-primary:hover {

    background: var(--cinnamon-wood);

    color: white;

    transform: translateY(-2px);

}



/* Go To Top Button */
#scrollTopBtn {
    display: none; /* Hidden by default - change to 'flex' in JS to show */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    
    /* 1. Set fixed equal dimensions */
    width: 50px;
    height: 50px;
    
    /* 2. Make it a perfect circle */
    border-radius: 50%;
    
    /* 3. Center the icon perfectly */
    display: none; /* Re-declared for logic, but will use flex when active */
    align-items: center;
    justify-content: center;
    
    /* Remove padding so it doesn't stretch the circle */
    padding: 0; 
    
    font-size: 1.2rem;
    border: none;
    outline: none;
    background-color: var(--dark-amaranth, #800020); /* Fallback color included */
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-decoration: none; /* Remove underline from <a> */
}

#scrollTopBtn:hover {
    background-color: var(--cinnamon-wood, #854d3d);
    transform: translateY(-5px);
}


/* =========================================

   4. NAVIGATION

   ========================================= */

/* Base Navigation Style */

nav {
    background: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    height: 120px; /* Default height */
    display: flex;
    align-items: center;

}

/* Sticky State (when scrolling) */
/*nav.sticky-nav {
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
*/
.nav-container {
    display: flex;
    justify-content: space-between; /* Pushes Logo left, Links right */
    align-items: center;
    width: 100%;
}

/* Logo Fix */
.logo-gradient {
    height: 120px; /* Reduced from 100px to look proper */
    width: 150px;
    background: linear-gradient(90deg, var(--dark-amaranth), #cc5500, var(--dark-amaranth));
    background-size: 200% auto;
    animation: logoGradientFlow 3s linear infinite;
    
    -webkit-mask-image: url('../images/AC Group of companies.svg');
    mask-image: url('../images/AC Group of companies.svg');
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-position: left center;
    transition: all 0.3s ease;
}

/*nav.sticky-nav .logo-gradient {
    height: 45px; 
}
*/
/* Nav Links Styling */
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--dark-amaranth);
    transition: 0.3s;
}

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

.nav-links a:hover {
    color: var(--dark-amaranth);
}

/* Mobile Toggle - HIDDEN ON DESKTOP */
.mobile-toggle {
    display: none; 
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}


/* =========================================

   5. HERO SECTION

   ========================================= */

header {

    height: 100vh;

    background: linear-gradient(135deg, rgba(154, 21, 56, 0.9), rgba(177, 114, 71, 0.9)), 

                url('/images/ChatGPT\ Image\ Dec\ 18\,\ 2025\,\ 02_12_14\ PM.png') center/cover;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;
         padding: 0 20px;

}



.hero-content h1 {

    font-size: 3rem;

    margin-bottom: 1rem;

}



.hero-content p {

    font-size: 1.2rem;

    margin-bottom: 2rem;

    opacity: 0.9;

}



/* Hero Cards */

.hero-cards {

    display: flex;

    gap: 40px;

    margin-top: 100px;

    justify-content: center;

    flex-wrap: wrap;

}



.h-card {

    background: white;

    width: 150px;

    height: 120px;

    border-radius: 12px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    box-shadow: 0 10px 20px rgba(0,0,0,0.2);

    transition: transform 0.3s ease;

    cursor: default;

}



.h-card:hover {

    transform: translateY(-5px);

}



.h-card i {

    font-size: 2rem;

    color: var(--dark-amaranth);

    margin-bottom: 12px;

}



.h-card span {

    color: #333;

    font-weight: 600;

    font-size: 0.95rem;

}



/* =========================================

   6. SERVING INDUSTRIES (ACCORDION)

   ========================================= */

.industries-section {

    display: flex;

    width: 100%;

    height: 80vh;

    overflow: hidden;

    padding: 0;

    background: #000;

}



.industry-panel {

    position: relative;

    flex: 1;

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);

    cursor: pointer;

    overflow: hidden;

    border-right: 1px solid rgba(255, 255, 255, 0.1);

}



.industry-panel:last-child {

    border-right: none;

}



.industry-panel:hover {

    flex: 3.5;

}



.panel-overlay {

    position: absolute;

    bottom: 0;

    left: 0;

    width: 100%;

    height: 100%;

    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);

    transition: background 0.4s;

}



.industry-panel:hover .panel-overlay {

    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.1) 60%);

}



.panel-content {

    position: absolute;

    bottom: 40px;

    left: 40px;

    right: 40px;

    color: white;

    z-index: 2;

}



.panel-content h3 {

    font-size: 1.8rem;

    font-weight: 700;

    margin-bottom: 10px;

    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);

    white-space: nowrap;

    opacity: 0.9;

    transition: all 0.4s ease;

}



.industry-panel:hover .panel-content h3 {

    font-size: 2.2rem;

    opacity: 1;

    transform: translateY(-5px);

}



.industry-desc {

    font-size: 1rem;

    line-height: 1.6;

    color: #f0f0f0;

    max-width: 600px;

    opacity: 0;

    transform: translateY(20px);

    transition: all 0.5s ease 0.1s;

    max-height: 0;

    overflow: hidden;

}



.industry-panel:hover .industry-desc {

    opacity: 1;

    transform: translateY(0);

    max-height: 200px;

}



/* =========================================

   7. COMPANIES GRID SECTION

   ========================================= */





.companies-grid {

    display: grid;

    grid-template-columns: repeat(2, 1fr); 

    gap: 30px;

}



.company-card {

    background: var(--white);

    border-radius: var(--border-radius);

    border: 1px solid #eee;

    padding: 25px;

    box-shadow: 0 4px 15px rgba(0,0,0,0.03);

    transition: all 0.3s ease;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}



.company-card:hover {

    transform: translateY(-5px);

    box-shadow: 0 10px 25px rgba(0,0,0,0.1);

    border-color: rgba(154, 21, 56, 0.2);

}



.card-header {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    margin-bottom: 20px;

}



.icon-box {

    width: 50px;

    height: 50px;

    background: linear-gradient(135deg, var(--dark-amaranth), var(--terracotta-clay));

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: white;

    font-size: 1.2rem;

}



.category-pill {

    font-size: 0.75rem;

    font-weight: 600;

    background: #f1f1f1;

    color: var(--text-dark);

    padding: 5px 12px;

    border-radius: 20px;

    border: 1px solid #e0e0e0;

}



.card-body h3 {

    font-size: 1.25rem;

    margin-bottom: 8px;

    color: var(--text-dark);

  

}



.card-body .description {

    font-size: 0.95rem;

    color: var(--text-muted);

    margin-bottom: 10px;

    min-height: 45px;

}



.card-body .person {

    font-size: 0.85rem;

    color: var(--cinnamon-wood);

    font-weight: 500;

    margin-bottom: 20px;

}



.card-body .person i { margin-right: 5px; }



.card-actions {

    display: flex;

    gap: 15px;

    padding-top: 20px;

    border-top: 1px solid #f0f0f0;

}



.card-actions a {

    width: 35px;

    height: 35px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 8px;

    background: #f8f9fa;

    color: var(--text-muted);

    font-size: 1rem;

    transition: all 0.3s ease;

}



.card-actions a:hover {

    background: var(--dark-amaranth);

    color: white;

    transform: translateY(-2px);

}



/* =========================================

   8. ABOUT SECTION & TIMELINE

   ========================================= */

.about-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: start;

}



.sub-heading {

    font-size: 1rem;

    color: #555;

    margin-bottom: 5px;

    font-weight: 400;

}



.main-heading {

    font-size: 2.5rem;

    color: #222;

    margin-bottom: 25px;

    line-height: 1.2;

}



.story-text {

    color: var(--text-muted);

    margin-bottom: 20px;

    font-size: 1rem;

}



.values-list {

    display: flex;

    gap: 20px;

    flex-wrap: wrap;

    margin-top: 30px;

}



.value-item {

    font-weight: 500;

    color: var(--text-dark);

    display: flex;

    align-items: center;

    gap: 8px;

}



.value-item i {

    color: var(--cinnamon-wood);

}





/* Vision & Mission Styles */

.vision-mission-grid {

    display: flex;

 

    gap: 30px;



    padding-top: 30px;

    border-top: 1px solid #eee; /* Light separator from the story */

}



.vm-card {

    display: flex;

    gap: 15px;

    align-items: flex-start;

}



.vm-icon {

    background-color: rgba(189, 137, 102, 0.1); /* Light version of cinnamon-wood */

    color: var(--cinnamon-wood);

    width: 50px;

    height: 50px;

    min-width: 50px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 1.5rem;

}



.vm-title {

    font-size: 1.5rem;

    color: var(--text-dark);

    margin-bottom: 10px;

    font-weight: 600;

}



.vm-text {

    color: var(--text-muted);

    line-height: 1.6;

    font-size: 0.95rem;

    margin: 0;

}







/* Timeline */

.about-visual h3 {

    font-size: 1.5rem;

    margin-bottom: 25px;

    color: #222;

}



.timeline {

    position: relative;

    padding-left: 30px;

    border-left: 2px solid #e9ecef; 

    margin-bottom: 40px;

}



.timeline-line-active {

    position: absolute;

    top: 0;

    left: -2px; 

    width: 2px;

    height: 0%; 

    background-color: var(--dark-amaranth);

    transition: height 3s linear;

    z-index: 1;

}



.timeline-line-active.filled {

    height: 100%;

}



.timeline-item {

    position: relative;

    margin-bottom: 40px;

}



.timeline-item:last-child { margin-bottom: 0; }



.timeline-dot {

    position: absolute;

    left: -38px;

    top: 5px;

    width: 14px;

    height: 14px;

    border-radius: 50%;

    background: #fff;

    border: 2px solid #ccc;

    z-index: 2;

    transition: all 0.5s ease;

}



.timeline-item.active-item .timeline-dot {

    background: var(--dark-amaranth);

    border-color: var(--dark-amaranth);

    box-shadow: 0 0 0 4px rgba(154, 21, 56, 0.2);

    transform: scale(1.2);

}



.timeline-content .year {

    font-weight: 700;

    color: #222;

    display: block;

    margin-bottom: 5px;

}



.timeline-content p {

    color: var(--text-muted);

    font-size: 0.95rem;

    line-height: 1.4;

}



/* Parent Box */

.parent-structure-box {

    background: #fbfbfb;

    border: 1px solid #eee;

    border-radius: 12px;

    padding: 30px;

    text-align: center;

    margin-top: 20px;

}



.parent-badge {

    background-color: var(--dark-amaranth);

    color: white;

    display: inline-block;

    padding: 8px 25px;

    border-radius: 6px;

    font-weight: 600;

    font-size: 0.9rem;

    margin-bottom: 20px;

    box-shadow: 0 4px 10px rgba(154, 21, 56, 0.2);

}



.sectors-row {

    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 15px;

}



.sectors-row span {

    font-size: 0.9rem;

    color: var(--text-dark);

}



/* =========================================

   9. FOOTER (ANIMATED MARQUEE & LOGO)

   ========================================= */

footer {

    background: #0f0f0f;

    color: #fff;

    padding: 0; /* Remove padding to let marquee fill space */

    position: relative;

    overflow: hidden; /* Hide scrollbar caused by marquee */

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-height: 300px;

}



/* Marquee Animation */

.footer-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(80%);
    opacity: 0.50;
    pointer-events: none;
    user-select: none;
}

/* Style the slide items */
.marquee-track li {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between text and diamond */
    padding-right: 40px; /* Space between sets */
    width: auto !important; /* Allow slides to fit text width */
}

.marquee-track span {
    font-size: 2rem;
    font-weight: 800;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.774);
    color: transparent; 
    letter-spacing: 2px;
    white-space: nowrap;
}

.marquee-track i {
    font-size: 1.5rem;
    color: var(--dark-amaranth, #800020);
}

/* Centered Footer Content */

.footer-minimal-container {

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 20px;

    padding: 40px 0;

}



/* Animated Gradient Logo */

@keyframes logoGradientFlow {

    0% { background-position: 0% 50%; }

    50% { background-position: 100% 50%; }

    100% { background-position: 0% 50%; }

}



footer .logo-gradient {

    height: 200px; 

    width: 200px; 

    

    background: linear-gradient(

        90deg, 

        var(--dark-amaranth), 

        var(--terracotta-clay), 

        var(--cinnamon-wood), 

        var(--brown-red),

        var(--dark-amaranth)

    );

    background-size: 300% 100%;

    animation: logoGradientFlow 4s ease infinite;

    

    -webkit-mask-image: url('../images/AC Group of companies.svg');

    mask-image: url('../images/AC Group of companies.svg');

    -webkit-mask-size: contain;

    mask-size: contain;

    -webkit-mask-repeat: no-repeat;

    mask-repeat: no-repeat;

    -webkit-mask-position: center;

    mask-position: center;

    

    display: block;

    margin: 0 auto;

    transform: scale(1.2); 

}



.copyright-minimal {

    color: #777;

    font-size: 0.9rem;

    margin-top: 10px;

}



/* =========================================

   10. RESPONSIVE MEDIA QUERIES

   ========================================= */

@media (max-width: 1200px){

     .logo-gradient{
        height: 80px;
        width: 80px;
    }

    header{

        height: 50vh;

    }

    .hero-cards{
        margin-top: 50px;
    }

 

     br{
        display: none;
    }

    .hero-content h1{
        font-size: 2rem;
    }

}


@media (max-width: 992px) { 

    section {
    padding: 50px 0;
}

   .section-header h2{
        font-size: 1.8rem;
    }

 

    .nav-links { 

        display: none; 

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background: white;

        flex-direction: column; 

        gap: 0;

        text-align: center;

        box-shadow: 0 5px 10px rgba(0,0,0,0.1);

        padding: 20px 0;

    }

    

    .nav-links li {

        margin: 0;

    }

    

    .nav-links a { 

        display: block; 

        padding: 15px;

        border-bottom: 1px solid #f0f0f0;

    }

    

    .mobile-toggle { display: block; }

}



@media (max-width: 768px) {

  
    /* Navbar Adjustments */

    .nav-container {
        padding: 0 20px;

    }

        .mobile-toggle {
        display: block; /* Only shows on mobile */
    }

    .nav-links {
        display: none; /* Hide links on mobile initially */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }



    /* Hero */

    header{

        height: 100vh;

    }

    header h1 { font-size: 2rem; }

    

    .hero-cards {

        gap: 15px;

        margin-top: 40px;

    }

    

    .h-card {

        width: 130px;

        height: 110px;

    }



    /* Industries */

    .industries-section {

        flex-direction: column;

        height: 100vh;

    }

    

    .industry-panel {

        border-right: none;

        border-bottom: 1px solid rgba(255,255,255,0.1);

    }



    .panel-content {

        bottom: 20px;

        left: 20px;

        right: 20px;

    }



    .panel-content h3 {

        font-size: 1.5rem;

        white-space: normal;

    }

    

    .industry-desc {

        opacity: 0.8; 

        transform: translateY(0);

        max-height: 100px;

        font-size: 0.9rem;

        margin-top: 5px;

        display: -webkit-box;

        -webkit-line-clamp: 2;

        -webkit-box-orient: vertical;

        overflow: hidden;

    }

    

    .industry-panel:hover .industry-desc {

        -webkit-line-clamp: unset;

    }



    /* Grids */

    .companies-grid, .about-grid {

        grid-template-columns: 1fr;

    }



    .about-grid { gap: 40px; }



     .vision-mission-grid {

        flex-wrap: wrap;

        gap: 25px;

    }



}


@media (max-width: 400px) {

        header {
       
        height: 100vh;
    }

        .hero-content h1 {
        font-size: 1.5rem;
    }

}





