/* Variables */
:root {
    --primary: #981B46;
    --primary-light: #b9234e;
    --secondary: #ffffff;
    --dark: #232323;
    --gray: #666666;
    --light-gray: #f8f9fa;
    --soft-bg: #f3f6fc;
    /* Very light blue/gray tint for background */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(152, 27, 70, 0.15);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 12px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--soft-bg);
    /* Updated background */
    overflow-x: hidden;
}

/* --- NEW UTILITIES FOR REDESIGN --- */
.rounded-premium {
    border-radius: var(--radius-lg);
}

.shadow-premium {
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.btn-pill {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-pill i {
    background: rgba(255, 255, 255, 0.2);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: var(--transition);
}

.btn-pill:hover i {
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.4);
}

/* Header & Nav */
.header-transition {
    transition: all 0.3s ease-in-out;
}

#mobile-menu {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    height: 85vh;
    overflow: hidden;
}

.hero-overlay-box {
    background: rgba(152, 27, 70, 0.9);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0% 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-interactive-box {
    transition: var(--transition);
}

.hero-interactive-box:hover {
    transform: translateY(-5px);
}

/* Watermark Text */
.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

/* Services */
.service-img-circle {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-item:hover .service-img-circle {
    transform: scale(1.05);
    border-color: var(--primary);
}

/* Heartbeat Line */
.heartbeat-line {
    height: 50px;
    background: url('../Images/heartbeat.svg') repeat-x center;
    background-size: contain;
    opacity: 0.1;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: #000;
    color: #fff;
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

#atom-bg {
    display: none;
}

/* --- NEW VISUAL ENHANCEMENTS --- */

/* Vector Patterns */
.bg-pattern-dots {
    background-image: radial-gradient(#981B46 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.03;
}

.bg-pattern-cross {
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 0h4v8h8v4h-8v8H8v-8H0V8h8V0z' fill='%23981B46' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.6;
}

/* Scroll Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.shape-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.1;
}

.shape-square {
    width: 80px;
    height: 80px;
    background-color: var(--primary);
    opacity: 0.05;
    transform: rotate(45deg);
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.animate-float {
    animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }
}

.animate-spin-slow {
    animation: spinSlow 10s linear infinite;
}

@keyframes spinSlow {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* --- MANAGEMENT TEAM TREE & PROFILE CARDS --- */
.tree ul {
    padding-top: 20px;
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}

.tree li {
    float: left;
    text-align: center;
    list-style-type: none;
    position: relative;
    padding: 20px 10px 0 10px;
    transition: all 0.5s;
}

/* Connectors */
.tree li::before,
.tree li::after {
    content: '';
    position: absolute;
    top: 0;
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%;
    height: 20px;
}

.tree li::after {
    right: auto;
    left: 50%;
    border-left: 2px solid #ccc;
}

.tree li:only-child::after,
.tree li:only-child::before {
    display: none;
}

.tree li:only-child {
    padding-top: 0;
}

.tree li:first-child::before,
.tree li:last-child::after {
    border: 0 none;
}

.tree li:last-child::before {
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
}

.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}

.tree ul ul::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0;
    height: 20px;
}

/* Tree Node (Card Wrapper) */
.tree li .tree-node {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s;
    vertical-align: top;
}

/* Connector Hover Effects */
.tree li .tree-node:hover+ul li::after,
.tree li .tree-node:hover+ul li::before,
.tree li .tree-node:hover+ul::before,
.tree li .tree-node:hover+ul ul::before {
    border-color: #981B46;
}

/* --- PROFILE CARD DESIGN --- */
.profile-card {
    width: 220px;
    background: #fff;
    border-radius: var(--radius-md);
    /* Updated */
    box-shadow: var(--shadow-soft);
    /* Updated */
    position: relative;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    cursor: default;
}

/* ... (keep other styles same, just need to target the profile-card block and the media query) ... */

/* Using simpler replace for just the changed parts if possible, but safer to replace block or use multiple instructions. 
   Actually, the tool allows replacing specific blocks. I will replace the Profile Card Width and the Media Query.
*/


.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15);
    border-color: #ffe4e6;
}

.profile-card-header {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    background-color: #f3f4f6;
}

.profile-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: filter 0.3s ease, transform 0.5s ease;
    filter: grayscale(100%);
}

.profile-card:hover .profile-card-header img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.profile-card-body {
    padding: 16px;
    position: relative;
    background: #fff;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 2;
}

.profile-name-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    color: #232323;
    transition: color 0.3s;
}

.profile-card:hover .profile-name {
    color: #981B46;
}

.profile-linkedin {
    color: #cbd5e1;
    font-size: 20px;
    transition: color 0.3s;
    cursor: pointer;
}

.profile-linkedin:hover {
    color: #0077b5;
}

.profile-role {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
    font-weight: 400;
}

/* Tooltip */
.profile-tooltip {
    position: absolute;
    bottom: 80%;
    left: 50%;
    transform: translateX(-20%) translateY(10px);
    width: 220px;
    background-color: #1a1b2e;
    color: #ffffff;
    padding: 16px;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.5;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 20;
    text-align: left;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.profile-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border-width: 8px;
    border-style: solid;
    border-color: #1a1b2e transparent transparent transparent;
}

.profile-card:hover .profile-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-20%) translateY(-10px);
}

/* Responsive Tree Fixes */
@media (max-width: 1280px) {
    .tree ul {
        flex-direction: column;
        align-items: center;
        padding-top: 0;
    }

    .tree li {
        width: 100%;
        padding: 10px 0;
    }

    .tree li::before,
    .tree li::after,
    .tree ul ul::before {
        display: none;
    }

    .profile-card {
        margin: 0 auto;
        width: 100%;
        max-width: 320px;
        display: flex;
        flex-direction: column;
    }

    .profile-card-header {
        height: 250px;
    }

    .tree li .tree-node {
        display: block;
        width: 100%;
    }
}