/*
 * =========================================
 * SHIRSH GROUP - PREMIUM UI/UX REFINEMENT
 * =========================================
 * This stylesheet is fully optimized and refactored for a professional,
 * premium aesthetic. It removes redundancies, streamlines code, and
 * ensures consistency across all elements.
 *
 */

/* --- 1. Global & Base Styles --- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    /* Premium Color Palette - Adjusted for better contrast and warmth */
    --clr-primary: #2C3E50; /* Deep, professional blue */
    --clr-secondary: #1ABC9C; /* A vibrant, eye-catching teal */
    --clr-accent: #E74C3C;    /* A warm red for highlights and warnings */
    
    --clr-text-light: #ECF0F1; /* Soft white for text on dark backgrounds */
    --clr-text-dark: #34495E; /* Dark, professional text for light backgrounds */
    --clr-bg-light: #F8F9FA;  /* A clean, off-white background */
    --clr-bg-dark: #1A242F;   /* A rich, deep blue-black background */
    
    --clr-glass-bg: rgba(255, 255, 255, 0.08); /* Semi-transparent white for glass effect */
    --clr-glass-border: rgba(255, 255, 255, 0.15); /* Subtle border for depth */

    --grad-primary: linear-gradient(135deg, var(--clr-primary), #34495E);
    --grad-secondary: linear-gradient(135deg, var(--clr-secondary), #16A085);
    --grad-accent: linear-gradient(135deg, var(--clr-accent), #C0392B);

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--clr-bg-dark);
    color: var(--clr-text-light);
    font-family: var(--font-primary);
    line-height: 1.6;
    margin: 0;
    padding-top: 70px;
    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 0.5em;
}

body::-webkit-scrollbar-thumb {
    background-color: var(--clr-secondary);
    border-radius: 10px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* --- 2. Section & Heading Styles --- */

.section {
    padding: 6rem 0;
    overflow-x: hidden;
}

.section[data-theme="light"] {
    background-color: var(--clr-bg-light);
    color: var(--clr-text-dark);
}

.section[data-theme="light"] h2,
.section[data-theme="light"] p {
    color: var(--clr-text-dark);
}

@media (max-width: 767px) {
    .section {
        padding: 3rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--clr-text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.section-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--clr-text-light);
    opacity: 0.8;
    font-weight: 300;
}

.section[data-theme="light"] .section-header h2,
.section[data-theme="light"] .section-header p {
    color: var(--clr-text-dark);
}

@media (max-width: 767px) {
    .section-header {
        margin-bottom: 2rem;
    }
}

/* --- 3. Premium Button & Card Animations --- */

.btn {
    display: inline-block;
    padding: 18px 36px;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn.primary {
    background: var(--grad-primary);
    color: #fff;
}

.btn.secondary {
    background: transparent;
    color: var(--clr-text-light);
    border: 2px solid var(--clr-glass-border);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--grad-secondary);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hover effects for buttons within light sections */
.section[data-theme="light"] .btn.secondary {
    color: var(--clr-text-dark);
    border-color: var(--clr-text-dark);
}

.section[data-theme="light"] .btn.secondary:hover {
    color: var(--clr-text-light);
    border-color: transparent;
}

.section[data-theme="light"] .btn.secondary::before {
    background: var(--grad-primary);
}

.hover-effect-lift,
.project-card,
.division-card,
.venture-card,
.feature-card {
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hover-effect-lift:hover,
.project-card:hover,
.division-card:hover,
.venture-card:hover,
.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* --- 4. Header & Navigation --- */

#main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid var(--clr-glass-border);
}

#main-header.scrolled {
    background: rgba(31, 37, 46, 0.9);
}

#main-header.dark-header {
    background: rgba(31, 37, 46, 0.9);
    backdrop-filter: blur(10px);
}

#main-header.dark-header .logo-and-title-wrapper,
#main-header.dark-header .nav-links a {
    color: var(--clr-text-light);
}

#main-header.light-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

#main-header.light-header .logo-and-title-wrapper,
#main-header.light-header .nav-links a {
    color: var(--clr-text-dark);
}

#main-header.light-header .logo .accent {
    -webkit-text-fill-color: var(--clr-secondary);
}

.logo-and-title-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: auto;
    padding: 0;
}

.header-title {
    perspective: 1000px;
    height: auto;
    width: auto;
    margin: 0;
}

.logo-icon {
    width: clamp(50px, 8vw, 70px);
    height: auto;
    border-radius: 50%;
    margin-right: 8px;
}

.main-heading {
    display: block;
    font-size: 1.6rem;
    font-weight: 700;
}

.slogan {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-text-light);
    opacity: 0.8;
    margin: 0;
}

.logo .accent {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 1rem;
    background-color: var(--clr-glass-bg);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--clr-glass-border);
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text-light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: var(--clr-secondary);
    background-color: transparent;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    animation: flipper 8s infinite;
}

.flip-front,
.flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-front {
    background-color: transparent;
    color: var(--clr-text-light);
}

.flip-back {
    background-color: transparent;
    color: var(--clr-text-light);
    transform: rotateY(180deg);
}

@media (min-width: 768px) {
    #main-header .container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        width: 100%;
        padding: 0 1.5rem;
    }
    .logo-and-title-wrapper {
        justify-self: start;
    }
    .header-title {
        justify-self: center;
        flex-grow: 1;
    }
    .nav-links {
        justify-self: end;
    }
}

@media (max-width: 767px) {
    #main-header {
        /* Keep existing styles */
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
    }

    .logo-and-title-wrapper {
        display: flex;
        align-items: center;
        /* Remove flex-grow to prevent it from taking up available space */
        justify-content: flex-start;
        gap: 10px;
        /* Set a max-width to constrain the element */
        max-width: 70%; 
    }

    .header-title {
        /* Keep existing styles */
        top: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        /* Add min-width to prevent content from collapsing */
        min-width: 150px; 
    }

    .slogan,
    .main-heading {
        /* Add min-width to ensure content doesn't wrap unnecessarily. */
        min-width: 100px;
        /* Keep existing styles */
        display: block;
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        text-align: left;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .main-heading {
        font-size: clamp(1rem, 4vw, 1.2rem);
    }
}

/* --- 5. Section Specific Styles --- */

.hero-section {
    position: relative;
    height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 1.5rem;
    background: none;
}

@media (max-width: 767px) {
    .hero-section {
        height: 100vh;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero-title .text-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.4rem);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.vision-mission-card {
    background-color: var(--clr-glass-bg);
    color: var(--clr-text-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-glass-border);
}

.vision-mission-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.vision-mission-card h3 {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vision-mission-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--clr-text-light);
}

.section[data-theme="light"] .vision-mission-card {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--clr-text-dark);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.section[data-theme="light"] .vision-mission-card h3 {
    -webkit-text-fill-color: var(--clr-primary);
}

.section[data-theme="light"] .vision-mission-card p {
    color: var(--clr-text-dark);
}

.content-block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        flex-direction: row;
        gap: 8rem;
    }
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: inherit;
    opacity: 0.9;
}

.about-image-container {
    flex: 1;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1s ease-in-out;
}

.about-image-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-image-container:hover img {
    transform: scale(1.05);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
    text-align: center;
    margin-top: 4rem;
}

@media (min-width: 768px) {
    .leadership-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.leader-card {
    background-color: var(--clr-glass-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(5px);
    border: 1px solid var(--clr-glass-border);
    color: var(--clr-text-light);
}

.leader-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.leader-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.leader-info h4 {
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    margin: 0.5rem 0;
}

.leader-info .leader-title {
    color: var(--clr-text-light);
    opacity: 0.7;
    font-size: 1rem;
    font-weight: 500;
}

.leader-info .leader-bio {
    font-size: 0.95rem;
    color: var(--clr-text-light);
    opacity: 0.9;
    margin-top: 1rem;
}

.milestone-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    position: relative;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(to right,
            rgba(0, 0, 0, 0),
            rgba(0, 0, 0, 1) 10%,
            rgba(0, 0, 0, 1) 90%,
            rgba(0, 0, 0, 0));
}

.milestone-scroll-container::-webkit-scrollbar {
    display: none;
}

.milestone-grid {
    display: flex;
    gap: 2rem;
}

.milestone-card {
    flex-shrink: 0;
    width: 250px;
    padding: 2rem;
    background: var(--clr-glass-bg);
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid var(--clr-glass-border);
}

.milestone-card h3 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 0.5rem;
}

.milestone-card p {
    font-size: 1rem;
    color: var(--clr-text-light);
    opacity: 0.8;
    margin: 0;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-card {
    background: var(--clr-glass-bg);
    color: var(--clr-text-light);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--clr-glass-border);
    backdrop-filter: blur(5px);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.3);
}

.feature-card .icon-container {
    width: 80px;
    height: 80px;
    background: var(--grad-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    transition: background 0.3s ease;
}

.feature-card:hover .icon-container {
    background: var(--grad-accent);
}

.feature-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin: 0 0 0.5rem;
}

.feature-card p {
    font-size: 1rem;
    color: var(--clr-text-light);
    opacity: 0.9;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--clr-bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--clr-text-dark);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-image-container {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
}

.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-info h3 {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--clr-primary);
}

.project-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1rem;
    color: #555;
    flex-grow: 1;
}

.project-info .btn {
    align-self: flex-start;
    margin-top: 1.5rem;
}

.divisions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .divisions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.division-card {
    background: var(--clr-bg-light);
    color: var(--clr-text-dark);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.division-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.division-card .card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.division-card .icon-container {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin-right: 1rem;
}

.division-card.associates-card .icon-container {
    background: var(--grad-secondary);
}

.division-card.travels-card .icon-container {
    background: var(--grad-primary);
}

.division-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    margin: 0;
}

.division-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.division-card a.btn {
    border: 2px solid var(--clr-primary);
    color: var(--clr-text-dark);
}

.division-card a.btn:hover {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
}

.ventures-heading {
    text-align: center;
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 4rem 0 2rem;
    color: var(--clr-text-light);
}

.section.dark .ventures-heading {
    color: var(--clr-text-light);
}

.ventures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.venture-card {
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 18px;
    background: var(--clr-bg-light);
    color: var(--clr-text-dark);
    padding: 2rem;
}

.venture-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
}

.venture-icon {
    width: 60px;
    height: 60px;
    background: var(--grad-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.2rem;
    margin: 0 auto 1rem;
}

.venture-card h4 {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    margin: 0 0 0.5rem;
}

.venture-card p {
    font-size: 0.9rem;
    color: #555;
}

.newsroom-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 768px) {
    .newsroom-content {
        grid-template-columns: 2fr 1fr;
        gap: 6rem;
    }
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-card {
    background: var(--clr-glass-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-glass-border);
}

.news-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.news-date {
    font-size: 0.9rem;
    color: var(--clr-text-light);
    opacity: 0.7;
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.news-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.75rem;
    margin: 0 0 1rem;
    color: var(--clr-text-light);
}

.news-card p {
    font-size: 1rem;
    color: var(--clr-text-light);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--clr-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--clr-accent);
}

.media-kit-block {
    background: var(--clr-glass-bg);
    padding: 2.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    align-self: start;
    backdrop-filter: blur(10px);
    border: 1px solid var(--clr-glass-border);
}

.media-kit-block h3 {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.media-kit-block p {
    font-size: 1rem;
    color: var(--clr-text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.careers-content {
    text-align: center;
}

.careers-intro {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--clr-text-light);
    opacity: 0.9;
}

.open-positions-block {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--clr-glass-border);
}

.open-positions-block h3 {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.positions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .positions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.position-card {
    background: var(--clr-glass-bg);
    border: 1px solid var(--clr-glass-border);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: left;
    transition: background-color 0.3s ease;
}

.position-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.position-card h4 {
    font-size: 1.25rem;
    margin: 0 0 0.5rem;
    color: var(--clr-text-light);
}

.position-card p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    color: var(--clr-text-light);
    opacity: 0.8;
}

.position-card p strong {
    color: var(--clr-accent);
}

.mt-4 {
    margin-top: 2rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (min-width: 768px) {
    .contact-container {
        display: block;
    }

    .contact-details-and-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
    }
}

.contact-info h3,
.contact-info p {
    text-align: center;
}

.contact-info ul {
    text-align: left;
    padding-left: 0;
    margin-top: 2rem;
}

.contact-info li {
    font-size: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info li i {
    background: var(--grad-secondary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.25rem;
}

.contact-info li span {
    display: block;
    color: var(--clr-text-light);
    opacity: 0.9;
}

.contact-info .phone-numbers {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.contact-info .phone-number-item {
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info .phone-number-item a {
    color: var(--clr-text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info .phone-number-item a:hover {
    color: var(--clr-secondary);
}

.contact-info .phone-label {
    font-weight: 300;
    color: var(--clr-text-light);
    opacity: 0.8;
    margin-right: 0.25rem;
}

.contact-form-container {
    background: var(--clr-glass-bg);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--clr-glass-border);
}

#contact-form input,
#contact-form select,
#contact-form textarea {
    -webkit-appearance: none;
    width: 100%;
    padding: 12px;
    margin-bottom: 1.5rem;
    border: none;
    background: var(--clr-bg-light);
    color: var(--clr-text-dark);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    outline: none;
    background: #fff;
    box-shadow: 0 0 8px var(--clr-secondary);
}

#main-footer {
    background: var(--clr-bg-dark);
    color: var(--clr-text-light);
    padding: 6rem 0 3rem;
}

#main-footer .container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 3rem;
}

@media (min-width: 768px) {
    #main-footer .container {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-column {
        align-items: flex-start;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    white-space: nowrap;
}

.footer-logo .logo-icon {
    width: 50px;
    height: 50px;
    margin-right: 12px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.footer-logo .accent {
    background: var(--grad-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--clr-text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--clr-secondary);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-start;
    }
}

.social-links a {
    color: var(--clr-text-light);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--clr-secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: #ddd;
    margin: 0;
}

.mobile-bottom-nav {
    display: none;
}

/* --- 6. Mobile Specific Styles --- */

@media (max-width: 767px) {
    main {
        padding-bottom: 70px;
    }

    #main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 0.75rem 1.5rem;
    }

    .logo-and-title-wrapper {
        display: flex;
        align-items: center;
        flex-grow: 1;
        justify-content: flex-start;
        gap: 10px;
    }

    .header-title {
        top: 0;
        width: auto;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slogan {
        display: block;
        white-space: normal;
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        text-align: left;
        white-space: nowrap;
    }

    .main-heading {
        display: block;
        font-size: clamp(1rem, 4vw, 1.2rem);
        text-align: left;
    }

    .nav-links {
        display: none;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--clr-bg-light);
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        justify-content: space-around;
        padding: 10px 0;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: #6c757d;
        font-size: 12px;
        transition: color 0.3s ease, transform 0.2s ease;
        cursor: pointer;
    }

    .mobile-bottom-nav .nav-item:active {
        transform: scale(0.95);
    }

    .mobile-bottom-nav .nav-item:hover,
    .mobile-bottom-nav .nav-item.active {
        color: var(--clr-primary);
        transform: translateY(-5px);
    }

    .mobile-bottom-nav .nav-item.active i {
        animation: glowing-pulse 1.5s infinite;
        transform: scale(1.1);
        text-shadow: 0 0 10px rgba(90, 32, 194, 0.5), 0 0 20px rgba(90, 32, 194, 0.3);
    }

    .mobile-bottom-nav .nav-item#new-mobile-button i {
        animation: glowing-pulse 1.5s infinite;
        color: var(--clr-accent);
    }

    .mobile-bottom-nav .nav-item#new-mobile-button.active {
        color: var(--clr-primary);
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.5rem;
        margin-bottom: 4px;
    }

    #main-header .nav-links,
    #main-header .container>.nav-links {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .contact-form-container {
        padding: 2rem;
    }

    .contact-info h3,
    .contact-info p {
        text-align: center;
    }

    .contact-info ul {
        text-align: left;
    }
}

/* --- 7. Animations --- */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowing-pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 5px var(--clr-accent);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 10px var(--clr-accent), 0 0 20px var(--clr-secondary);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 5px var(--clr-accent);
    }
}

@keyframes scroll-left {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes flipper {
    0%, 50% {
        transform: rotateY(0deg);
    }
    50.1%, 100% {
        transform: rotateY(180deg);
    }
}

@keyframes popInSquish {
    0% {
        transform: scale(0);
        opacity: 0;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    70% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
}

@keyframes hoverSquishRotate {
    0% {
        transform: translateY(0) scale(1) rotateY(0deg) rotateZ(0deg);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    }
    50% {
        transform: translateY(-5px) scale(1.05) rotateY(15deg) rotateZ(2deg);
        box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
    }
    100% {
        transform: translateY(-3px) scale(1.02) rotateY(8deg) rotateZ(1deg);
        box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3);
    }
}

/* --- 8. Divisions Popup Styles --- */

.divisions-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.divisions-popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.divisions-popup-content {
    background: var(--clr-bg-light);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
}

.divisions-popup-overlay.show .divisions-popup-content {
    transform: scale(1);
    opacity: 1;
}

.divisions-popup-content h3 {
    font-family: var(--font-secondary);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    background: var(--grad-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.divisions-popup-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.divisions-popup-close-btn i {
    font-size: 2.2rem;
    color: #555;
    transition: transform 0.2s ease, color 0.2s ease;
}

.divisions-popup-close-btn:hover i {
    transform: rotate(90deg) scale(1.1);
    color: var(--clr-accent);
}

.popup-btn-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.divisions-popup-content .btn.primary {
    background: var(--grad-primary);
    color: #fff;
}

.divisions-popup-content .btn.secondary {
    color: var(--clr-primary);
    border: 2px solid var(--clr-primary);
    background-color: transparent;
}

.divisions-popup-content .btn.secondary:hover {
    background: var(--grad-primary);
    color: #fff;
    border-color: transparent;
}

/* New Animations for Clickable Elements */
@keyframes glow-pulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2), 0 0 10px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 15px var(--clr-secondary), 0 0 25px var(--clr-secondary);
        transform: scale(1.05);
    }
    100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2), 0 0 10px rgba(255, 255, 255, 0.2);
        transform: scale(1);
    }
}

@keyframes click-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Fixed .vcf-btn Styles */
.vcf-btn {
    display: inline-block;
    font-size: 1.5rem; /* Make it slightly larger */
    margin-left: 15px; /* Adjust spacing */
    transition: all 0.3s ease;
    color: var(--clr-text-light);
    animation: glow-pulse 2s infinite ease-in-out; /* Apply the glow animation */
}

.vcf-btn:hover {
    color: var(--clr-secondary);
    animation: none; /* Remove the continuous glow on hover to avoid conflict */
    transform: scale(1.1); /* Provide a direct scale feedback */
}

.vcf-btn:active {
    animation: click-pulse 0.3s; /* Add a quick pulse on click */
    transform: scale(0.95);
}
.section.dark .vcf-btn {
    color: var(--clr-text-light);
}

.section.dark .vcf-btn:hover {
    color: var(--clr-secondary);
}

/* --- 9. Floating Mail Button --- */
.floating-btn-container {
        display: block; /* Show only on mobile */
        position: fixed;
        bottom: 20px;
        left: 20px;
        z-index: 9999;
    }

@media (max-width: 767px) {
    .floating-btn-container {
        display: block; /* Show only on mobile */
        position: fixed;
        bottom: 100px;
        left: 20px;
        z-index: 9999;
    }
}

.floating-mail-btn {
    --button-size: 55px; /* Define a CSS variable for easier size adjustment */
    width: var(--button-size);
    height: var(--button-size);
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary)); /* Modern gradient */
    border-radius: 50%;
    color: #fff; /* White icon */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem; /* Slightly larger icon */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Soft initial shadow */
    cursor: pointer;
    overflow: hidden; /* Ensures anything overflowing is clipped */
    transform-origin: center center; /* Important for rotation and scale */
    will-change: transform, box-shadow, filter; /* Optimize for animation */
    transition: all 0.3s ease-out; /* Smooth transition for non-animated properties */
    text-decoration: none;
    /* Apply the initial pop-in animation */
    animation: popInSquish 0.6s ease-out forwards; /* forwards keeps the final state */
}

.floating-mail-btn:hover {
    /* Trigger the hover animation */
    animation: hoverSquishRotate 0.4s ease-in-out forwards;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.3); /* Stronger shadow on hover */
    filter: brightness(1.1); /* Subtle glow */
    /* Note: transform will be controlled by the animation here */
}

.floating-mail-btn i {
    /* Ensure the icon itself is centered and won't be affected by parent's transform-origin */
    display: block;
}

/* Styling for the mail links in the footer */
#main-footer .footer-email {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    margin-top: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#main-footer .footer-email:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}