/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==================== Starting Page ==================== */
.starting-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: #000000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    overflow: hidden;
}

body.loading {
    overflow: hidden;
}

.starting-page.hidden {
    opacity: 0;
    visibility: hidden;
}

.starting-content {
    text-align: center;
    animation: fadeInUp 1s ease;
}

.starting-title {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 8px;
    will-change: transform, opacity;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3),
                 0 0 40px rgba(255, 255, 255, 0.2);
}

.starting-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 1px;
    will-change: transform, opacity;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.cube-loader {
    position: relative;
}

.circle-progress {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-ring {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
}

.progress-ring-bar {
    stroke-dasharray: 424.11;
    stroke-dashoffset: 424.11;
    animation: progressRing 5s ease-out forwards;
    stroke-linecap: round;
}

@keyframes progressRing {
    to {
        stroke-dashoffset: 0;
    }
}

.cube-3d {
    width: 60px;
    height: 60px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 4s ease-in-out infinite;
}

.cube-face {
    position: absolute;
    width: 60px;
    height: 60px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    padding: 2px;
    background: rgba(0, 0, 0, 0.2);
}

.tile {
    border-radius: 4px;
    transition: all 3s ease-in-out;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

/* Front face - Solves to RED */
.cube-face.front {
    transform: translateZ(30px);
}

.cube-face.front .tile:nth-child(1) { background: #ff6b6b; }
.cube-face.front .tile:nth-child(2) { background: #ffd93d; animation: solveToRed 3s ease-in-out forwards; }
.cube-face.front .tile:nth-child(3) { background: #6bcf7f; animation: solveToRed 3s ease-in-out forwards; }
.cube-face.front .tile:nth-child(4) { background: #4d96ff; animation: solveToRed 3s ease-in-out forwards; }

/* Back face - Solves to RED */
.cube-face.back {
    transform: translateZ(-30px) rotateY(180deg);
}

.cube-face.back .tile:nth-child(1) { background: #4d96ff; animation: solveToRed 3s ease-in-out forwards; }
.cube-face.back .tile:nth-child(2) { background: #ff6b6b; }
.cube-face.back .tile:nth-child(3) { background: #ffd93d; animation: solveToRed 3s ease-in-out forwards; }
.cube-face.back .tile:nth-child(4) { background: #6bcf7f; animation: solveToRed 3s ease-in-out forwards; }

/* Right face - Solves to GREEN */
.cube-face.right {
    transform: rotateY(90deg) translateZ(30px);
}

.cube-face.right .tile:nth-child(1) { background: #ffd93d; animation: solveToGreen 3s ease-in-out forwards; }
.cube-face.right .tile:nth-child(2) { background: #6bcf7f; }
.cube-face.right .tile:nth-child(3) { background: #4d96ff; animation: solveToGreen 3s ease-in-out forwards; }
.cube-face.right .tile:nth-child(4) { background: #ff6b6b; animation: solveToGreen 3s ease-in-out forwards; }

/* Left face - Solves to GREEN */
.cube-face.left {
    transform: rotateY(-90deg) translateZ(30px);
}

.cube-face.left .tile:nth-child(1) { background: #ff6b6b; animation: solveToGreen 3s ease-in-out forwards; }
.cube-face.left .tile:nth-child(2) { background: #4d96ff; animation: solveToGreen 3s ease-in-out forwards; }
.cube-face.left .tile:nth-child(3) { background: #6bcf7f; }
.cube-face.left .tile:nth-child(4) { background: #ffd93d; animation: solveToGreen 3s ease-in-out forwards; }

/* Top face - Solves to BLUE */
.cube-face.top {
    transform: rotateX(90deg) translateZ(30px);
}

.cube-face.top .tile:nth-child(1) { background: #6bcf7f; animation: solveToBlue 3s ease-in-out forwards; }
.cube-face.top .tile:nth-child(2) { background: #ff6b6b; animation: solveToBlue 3s ease-in-out forwards; }
.cube-face.top .tile:nth-child(3) { background: #4d96ff; }
.cube-face.top .tile:nth-child(4) { background: #ffd93d; animation: solveToBlue 3s ease-in-out forwards; }

/* Bottom face - Solves to YELLOW */
.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(30px);
}

.cube-face.bottom .tile:nth-child(1) { background: #4d96ff; animation: solveToYellow 3s ease-in-out forwards; }
.cube-face.bottom .tile:nth-child(2) { background: #6bcf7f; animation: solveToYellow 3s ease-in-out forwards; }
.cube-face.bottom .tile:nth-child(3) { background: #ff6b6b; animation: solveToYellow 3s ease-in-out forwards; }
.cube-face.bottom .tile:nth-child(4) { background: #ffd93d; }

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes solveToRed {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        background: #ff6b6b;
        transform: scale(1);
    }
}

@keyframes solveToGreen {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        background: #6bcf7f;
        transform: scale(1);
    }
}

@keyframes solveToBlue {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        background: #4d96ff;
        transform: scale(1);
    }
}

@keyframes solveToYellow {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.8);
    }
    100% {
        background: #ffd93d;
        transform: scale(1);
    }
}

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

@keyframes rotateCube {
    0%, 100% {
        transform: rotateY(0deg) rotateX(0deg);
    }
    25% {
        transform: rotateY(180deg) rotateX(0deg);
    }
    50% {
        transform: rotateY(180deg) rotateX(180deg);
    }
    75% {
        transform: rotateY(0deg) rotateX(180deg);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gentleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease 0.3s, visibility 0.6s ease 0.3s;
}

.main-content.visible {
    opacity: 1;
    visibility: visible;
}

:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #f093fb;
    --success: #4facfe;
    --warning: #f6d365;
    --danger: #fa709a;
    --dark: #1a1a2e;
    --light: #f5f5f5;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #d3d3d3;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== Animated Background ==================== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000000;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -250px;
    left: -250px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -200px;
    right: -200px;
    animation-delay: 5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(50px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-50px, 50px) scale(0.9);
    }
}

/* ==================== Navigation ==================== */
.navbar {
    background: #000000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rotate3d 3s infinite ease-in-out;
}

@keyframes rotate3d {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.staff-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item a:hover,
.nav-item.active a {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.user-profile:hover {
    background: var(--light);
}

.user-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.user-name {
    font-weight: 600;
    color: var(--dark);
}

/* ==================== Hero Section ==================== */
.hero-section {
    padding: 4rem 0;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 800;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

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

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.stat-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* ==================== Quick Actions ==================== */
.quick-actions {
    padding: 3rem 0;
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.action-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transition: all 0.4s ease;
    z-index: 0;
}

.action-card:hover::before {
    left: 0;
}

.action-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.action-card:hover .action-icon,
.action-card:hover h3,
.action-card:hover p {
    color: white;
    position: relative;
    z-index: 1;
}

.action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-card:hover .action-icon {
    background: white;
    transform: rotate(360deg) scale(1.1);
}

.action-icon i {
    font-size: 2.5rem;
    color: white;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon i {
    color: var(--primary);
}

.action-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.action-card p {
    color: #666;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* ==================== Section Containers ==================== */
.section-container {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 i {
    background: white;
    color: var(--primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.btn-view-all {
    background: white;
    color: var(--primary);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-view-all:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--shadow);
}

/* ==================== Announcements ==================== */
.announcements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.announcement-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    border-left: 5px solid var(--primary);
}

.announcement-card.important {
    border-left-color: var(--danger);
}

.announcement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.announcement-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.announcement-card.important .announcement-badge {
    background: linear-gradient(135deg, var(--danger), #f5576c);
}

.announcement-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.announcement-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.announcement-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.announcement-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--light);
}

.author {
    color: #999;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==================== Schedule ==================== */
.schedule-nav {
    display: flex;
    gap: 1rem;
}

.btn-schedule {
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-schedule.active,
.btn-schedule:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.schedule-timeline {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
}

.timeline-item {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-left: 3px solid var(--light);
    margin-left: 100px;
    position: relative;
}

.timeline-item:last-child {
    border-left-color: transparent;
}

.timeline-time {
    position: absolute;
    left: -120px;
    top: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.timeline-content {
    flex: 1;
    padding-left: 2rem;
    position: relative;
}

.timeline-badge {
    position: absolute;
    left: -1.65rem;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 0 0 3px var(--light);
}

.timeline-badge.meeting {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.timeline-badge.deadline {
    background: linear-gradient(135deg, var(--danger), #f5576c);
}

.timeline-badge.training {
    background: linear-gradient(135deg, var(--success), #00f2fe);
}

.timeline-badge.review {
    background: linear-gradient(135deg, var(--warning), #fda085);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.timeline-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.timeline-location {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==================== Company Info ==================== */
.company-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.info-card.banking::before {
    background: linear-gradient(135deg, var(--success), #00f2fe);
}

.info-card.credentials::before {
    background: linear-gradient(135deg, var(--danger), #f5576c);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.info-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.info-card.banking .info-icon {
    background: linear-gradient(135deg, var(--success), #00f2fe);
}

.info-card.credentials .info-icon {
    background: linear-gradient(135deg, var(--danger), #f5576c);
}

.info-icon i {
    font-size: 2.5rem;
    color: white;
}

.info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.info-details {
    margin-bottom: 1.5rem;
}

.info-details p {
    margin-bottom: 1rem;
    color: #666;
    font-size: 1rem;
    line-height: 1.8;
}

.info-details strong {
    color: var(--dark);
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.highlight {
    background: rgba(0, 0, 0, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Courier New', monospace;
}

.password-field {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
}

#password-text {
    font-family: 'Courier New', monospace;
    color: var(--dark);
    min-width: 100px;
}

.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-size: 1rem;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: rgba(102, 126, 234, 0.1);
}

.copy-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.copy-btn i {
    font-size: 1rem;
}

/* ==================== Resources ==================== */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 15px;
    color: var(--primary);
}

.search-box input {
    padding: 12px 20px 12px 45px;
    border: none;
    border-radius: 25px;
    width: 300px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    width: 350px;
    box-shadow: 0 5px 20px var(--shadow-lg);
}

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

.resource-category {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
}

.resource-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-lg);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light);
}

.category-header i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.category-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
}

.resource-list {
    list-style: none;
}

.resource-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--light);
    transition: all 0.3s ease;
}

.resource-list li:hover {
    padding-left: 10px;
    background: rgba(102, 126, 234, 0.05);
}

.resource-list li i:first-child {
    color: var(--primary);
    font-size: 1.3rem;
}

.resource-list li span {
    flex: 1;
    color: var(--dark);
    font-weight: 500;
}

.download-btn,
.link-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-btn:hover,
.link-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px var(--shadow);
}

/* ==================== Team Section ==================== */
.department-filter {
    background: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 10px var(--shadow);
    transition: all 0.3s ease;
}

.department-filter:focus {
    outline: none;
    box-shadow: 0 5px 20px var(--shadow-lg);
}

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

.team-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.team-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    transition: all 0.3s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.1);
}

.online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #4caf50;
    border-radius: 50%;
    border: 3px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.team-role {
    color: #666;
    margin-bottom: 1.5rem;
}

.team-contact {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-contact a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light);
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.team-contact a:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
}

/* ==================== Footer ==================== */
.footer {
    background: #000000;
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-section p i {
    margin-right: 10px;
    color: var(--primary);
}

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

/* ==================== Responsive Design ==================== */
@media (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1.5rem 2rem;
    }

    .action-grid,
    .announcements-grid,
    .resources-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .search-box input {
        width: 100%;
    }

    .timeline-item {
        margin-left: 50px;
    }

    .timeline-time {
        left: -70px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .user-profile span {
        display: none;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-info {
        text-align: center;
    }
}

/* Profile Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.98));
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    position: relative;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #ff0000;
    transform: rotate(90deg);
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 30px 30px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: white;
}

.modal-company-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}

.modal-company-logo.subsidiary {
    background: rgba(255, 255, 255, 0.15);
}

.modal-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.modal-company-type {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 0.95rem;
    font-weight: 300;
}

.modal-body {
    padding: 30px;
}

.modal-detail {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.modal-detail:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.modal-detail i {
    font-size: 1.5rem;
    color: #667eea;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.modal-detail strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 600;
}

.modal-detail p {
    margin: 0;
    color: #666;
    font-size: 1rem;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px 20px 20px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-detail {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 5% auto;
    }

    .modal-company-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .close-modal {
        right: 15px;
        top: 15px;
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
}

/* ==================== Animations & Interactions ==================== */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideInUp 0.5s ease-out;
}

.bounce-in {
    animation: bounceIn 0.6s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* ==================== Smooth Scrolling ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== Selection ==================== */
::selection {
    background: var(--primary);
    color: white;
}

/* ==================== Scrollbar ==================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ==================== Logo Image ==================== */
.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* ==================== Companies Profile Section ==================== */
.company-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.profile-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px var(--shadow-lg);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light);
}

.company-logo {
    width: 70px;
    height: 70px;
    min-width: 70px;
    min-height: 70px;
    max-width: 70px;
    max-height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.company-logo.subsidiary {
    background: linear-gradient(135deg, var(--success), #00f2fe);
}

.company-logo i {
    font-size: 2rem;
    color: white;
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.company-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.company-type {
    color: #999;
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.profile-details {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.detail-item strong {
    display: block;
    color: var(--dark);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.detail-item p {
    color: #666;
    font-size: 1rem;
}

.view-profile-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-profile-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

.view-profile-btn:hover::after {
    left: 100%;
}

/* ==================== SOP Section ==================== */
.sop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.sop-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sop-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-lg);
}

.sop-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.sop-icon i {
    font-size: 2rem;
    color: white;
}

.sop-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.sop-card p {
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
}

.sop-meta {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--light);
    border-radius: 10px;
}

.sop-version, .sop-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.sop-version i, .sop-date i {
    color: var(--primary);
}

.download-sop-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.download-sop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

/* ==================== Companies Websites Section ==================== */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.website-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.website-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-lg);
}

.website-preview {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.website-preview i {
    font-size: 3.5rem;
    color: white;
    opacity: 0.9;
}

.website-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
}

.website-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.website-url {
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.website-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.website-info p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.visit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-lg);
}

/* ==================== Organization Chart Section ==================== */
.org-chart-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 5px 20px var(--shadow);
    position: relative;
}

.org-level {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    position: relative;
}

/* CEO Level - For positioning connector lines */
.org-level.ceo-level {
    position: relative;
    padding-bottom: 2rem;
}

/* Directors Level */
.org-level.directors-level {
    position: relative;
    padding-top: 2rem;
}

/* Connector lines from CEO to Directors */
.org-level.ceo-level::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary);
}

.org-level.directors-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--primary);
}

/* Individual vertical lines to each director card */
.org-level.directors-level .org-card.director::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary);
}

/* Team Level - positioned under Aizuddin (3rd director card) */
.org-level.team-level {
    position: relative;
    padding-top: 2rem;
    justify-content: flex-end;
    padding-right: 0;
}

/* Connector line from Aizuddin to team members */
.org-level.directors-level .org-card.director:last-child::after {
    content: '';
    position: absolute;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary);
}

/* Horizontal line connecting team members */
.org-level.team-level::before {
    content: '';
    position: absolute;
    top: 0;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background: var(--primary);
}

/* Individual vertical lines to each team member card */
.org-level.team-level .org-card.team-member::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 2rem;
    background: var(--primary);
}

.org-card {
    background: var(--light);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    min-width: 250px;
    box-shadow: 0 3px 15px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.org-card.ceo {
    border-top: 4px solid var(--primary);
}

.org-card.director {
    border-top: 4px solid var(--secondary);
}

.org-card.team-member {
    border-top: 4px solid var(--success);
}

.org-main-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
    z-index: 10;
}

/* Profile Background Card Style */
.org-card.profile-bg-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: auto;
    min-height: 0;
    padding: 0;
    border-top: none;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}

.profile-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%);
    padding-top: 8rem;
    padding-bottom: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-align: center;
}

.profile-overlay h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.profile-overlay .org-name {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.profile-overlay .org-email {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.profile-overlay .org-email i {
    color: white;
}

.org-avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 15px var(--shadow);
}

.org-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.org-avatar-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
}

.org-avatar-letter span {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.org-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.org-name {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.org-email {
    font-size: 0.85rem;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.org-email i {
    color: var(--primary);
}

.org-departments {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 2px dashed var(--light);
}

.department-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.department-card h4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.department-card i {
    color: var(--primary);
}

.department-card p {
    color: #666;
    font-size: 0.9rem;
}

/* ==================== Creative Brief Section ==================== */
.brief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.brief-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brief-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px var(--shadow-lg);
}

.brief-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    text-align: center;
}

.brief-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.brief-badge.active {
    background: linear-gradient(135deg, var(--success), #00f2fe);
    color: white;
}

.brief-badge.completed {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
    color: white;
}

.brief-badge.pending {
    background: linear-gradient(135deg, var(--warning), #fda085);
    color: white;
}

.brief-priority {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.brief-priority.high {
    background: rgba(250, 112, 154, 0.15);
    color: var(--danger);
}

.brief-priority.medium {
    background: rgba(246, 211, 101, 0.15);
    color: #f39c12;
}

.brief-priority.low {
    background: rgba(79, 172, 254, 0.15);
    color: var(--success);
}

.brief-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.brief-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.brief-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
}

.brief-meta i {
    color: var(--primary);
}

.brief-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.brief-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--light);
    color: var(--dark);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.brief-actions {
    display: flex;
    gap: 1rem;
}

.btn-brief-view,
.btn-brief-edit,
.btn-brief-archive {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-brief-view {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-brief-edit {
    background: var(--light);
    color: var(--dark);
}

.btn-brief-archive {
    background: var(--light);
    color: #999;
}

.btn-brief-view:hover,
.btn-brief-edit:hover,
.btn-brief-archive:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow);
}

.btn-brief-edit:hover {
    background: linear-gradient(135deg, var(--warning), #fda085);
    color: white;
}

.btn-brief-archive:hover {
    background: #e0e0e0;
    color: #666;
}

/* ==================== Creative Brief Image Section ==================== */
.download-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.format-selector {
    padding: 12px 20px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    background: white;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.format-selector:hover {
    background: lightgrey;
}

.format-selector:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.format-selector option {
    cursor: pointer;
}

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

/* Brief Checkbox Styling */
.brief-checkbox {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.brief-checkbox.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.brief-checkbox input[type="checkbox"] {
    display: none;
}

.brief-checkbox label {
    width: 30px;
    height: 30px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brief-checkbox label:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.brief-checkbox input[type="checkbox"]:checked + label {
    background: var(--primary);
    border-color: var(--primary);
}

.brief-checkbox input[type="checkbox"]:checked + label::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: white;
    font-size: 14px;
}

.brief-card {
    position: relative;
}

.brief-image-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light);
    padding: 1rem;
}

.brief-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.brief-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.brief-thumbnail:hover {
    opacity: 0.9;
}

/* ==================== Brief Image Modal ==================== */
.brief-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.brief-modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 1200px;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.brief-modal-close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.brief-modal-close:hover,
.brief-modal-close:focus {
    color: #f44336;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .brief-modal-content {
        width: 95%;
    }

    .brief-modal-close {
        top: 15px;
        right: 20px;
        font-size: 40px;
    }
}

/* ==================== Download Notification ==================== */
.download-notification {
    position: fixed;
    bottom: -100px;
    right: 30px;
    background: white;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10000;
    transition: all 0.3s ease;
    border-left: 5px solid var(--success);
}

.download-notification.error {
    border-left-color: #f44336;
}

.download-notification.show {
    bottom: 30px;
}

.download-notification i {
    font-size: 1.5rem;
    color: var(--success);
}

.download-notification.error i {
    color: #f44336;
}

.download-notification span {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 500;
}

@media (max-width: 768px) {
    .download-notification {
        right: 20px;
        left: 20px;
        padding: 15px 20px;
    }
}

/* ==================== Additional Animations ==================== */

/* Floating animation for stat cards */
.stat-card {
    animation: float-gentle 3s ease-in-out infinite;
}

.stat-card:nth-child(1) {
    animation-delay: 0s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Cards spread animation for companies profile */
.company-profile-grid {
    position: relative;
}

.company-profile-grid .profile-card {
    animation: cardSpread 1s ease-out forwards;
    opacity: 0;
}

.company-profile-grid .profile-card:nth-child(1) { animation-delay: 0.1s; }
.company-profile-grid .profile-card:nth-child(2) { animation-delay: 0.2s; }
.company-profile-grid .profile-card:nth-child(3) { animation-delay: 0.3s; }
.company-profile-grid .profile-card:nth-child(4) { animation-delay: 0.4s; }
.company-profile-grid .profile-card:nth-child(5) { animation-delay: 0.5s; }
.company-profile-grid .profile-card:nth-child(6) { animation-delay: 0.6s; }
.company-profile-grid .profile-card:nth-child(7) { animation-delay: 0.7s; }
.company-profile-grid .profile-card:nth-child(8) { animation-delay: 0.8s; }
.company-profile-grid .profile-card:nth-child(9) { animation-delay: 0.9s; }
.company-profile-grid .profile-card:nth-child(10) { animation-delay: 1s; }
.company-profile-grid .profile-card:nth-child(11) { animation-delay: 1.1s; }
.company-profile-grid .profile-card:nth-child(12) { animation-delay: 1.2s; }

@keyframes cardSpread {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* Organization Chart Unique Animations */
.org-chart-container {
    perspective: 1000px;
}

/* CEO Card - Drop from top with bounce */
.org-level:nth-child(1) .org-card {
    animation: dropFromTop 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
}

@keyframes dropFromTop {
    0% {
        transform: translateY(-500px) rotateX(90deg);
        opacity: 0;
    }
    70% {
        transform: translateY(20px) rotateX(-10deg);
        opacity: 1;
    }
    100% {
        transform: translateY(0) rotateX(0);
        opacity: 1;
    }
}

/* Directors - Slide in from sides with rotation */
.org-level:nth-child(2) .org-card:nth-child(1) {
    animation: slideFromLeft 1s ease-out 0.5s forwards;
    opacity: 0;
}

.org-level:nth-child(2) .org-card:nth-child(2) {
    animation: slideFromCenter 1s ease-out 0.7s forwards;
    opacity: 0;
}

.org-level:nth-child(2) .org-card:nth-child(3) {
    animation: slideFromRight 1s ease-out 0.9s forwards;
    opacity: 0;
}

@keyframes slideFromLeft {
    0% {
        transform: translateX(-500px) rotateY(-90deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

@keyframes slideFromCenter {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes slideFromRight {
    0% {
        transform: translateX(500px) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: translateX(0) rotateY(0);
        opacity: 1;
    }
}

/* Team Members - Pop up with elastic effect */
.org-level:nth-child(3) .org-card {
    animation: popUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
}

.org-level:nth-child(3) .org-card:nth-child(1) {
    animation-delay: 1.1s;
}

.org-level:nth-child(3) .org-card:nth-child(2) {
    animation-delay: 1.3s;
}

.org-level:nth-child(3) .org-card:nth-child(3) {
    animation-delay: 1.5s;
}

.org-level:nth-child(4) .org-card {
    animation: popUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
}

.org-level:nth-child(4) .org-card:nth-child(1) {
    animation-delay: 1.7s;
}

.org-level:nth-child(4) .org-card:nth-child(2) {
    animation-delay: 1.9s;
}

.org-level:nth-child(4) .org-card:nth-child(3) {
    animation-delay: 2.1s;
}

@keyframes popUp {
    0% {
        transform: translateY(100px) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateY(-20px) scale(1.1);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Department Cards - Fade and scale with stagger */
.org-departments .department-card {
    animation: fadeScale 0.6s ease-out forwards;
    opacity: 0;
}

.org-departments .department-card:nth-child(1) {
    animation-delay: 2.3s;
}

.org-departments .department-card:nth-child(2) {
    animation-delay: 2.4s;
}

.org-departments .department-card:nth-child(3) {
    animation-delay: 2.5s;
}

.org-departments .department-card:nth-child(4) {
    animation-delay: 2.6s;
}

@keyframes fadeScale {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Hover effects for org cards */
.org-card {
    transition: all 0.3s ease;
}

.org-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Pulsing effect for main badges */
.org-main-badge {
    animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
    0%, 100% {
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
    }
}

/* Connection lines animation */
.org-level.ceo-level::after,
.org-level.directors-level::before {
    animation: drawLine 0.5s ease-out forwards;
    transform-origin: left;
    opacity: 0;
}

.org-level.ceo-level::after {
    animation-delay: 0.8s;
}

.org-level.directors-level::before {
    animation-delay: 1.2s;
}

@keyframes drawLine {
    0% {
        transform: scaleX(0);
        opacity: 0;
    }
    100% {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* Companies Website Cards Animation - Wave Flip Effect */
.websites-grid {
    position: relative;
}

.websites-grid .website-card {
    animation: flipWave 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    opacity: 0;
    transform-style: preserve-3d;
}

/* Staggered wave timing for each card */
.websites-grid .website-card:nth-child(1) { animation-delay: 0.1s; }
.websites-grid .website-card:nth-child(2) { animation-delay: 0.2s; }
.websites-grid .website-card:nth-child(3) { animation-delay: 0.3s; }
.websites-grid .website-card:nth-child(4) { animation-delay: 0.4s; }
.websites-grid .website-card:nth-child(5) { animation-delay: 0.5s; }
.websites-grid .website-card:nth-child(6) { animation-delay: 0.6s; }
.websites-grid .website-card:nth-child(7) { animation-delay: 0.7s; }
.websites-grid .website-card:nth-child(8) { animation-delay: 0.8s; }
.websites-grid .website-card:nth-child(9) { animation-delay: 0.9s; }
.websites-grid .website-card:nth-child(10) { animation-delay: 1s; }
.websites-grid .website-card:nth-child(11) { animation-delay: 1.1s; }
.websites-grid .website-card:nth-child(12) { animation-delay: 1.2s; }

@keyframes flipWave {
    0% {
        transform: perspective(1000px) rotateY(90deg) translateX(-100px);
        opacity: 0;
    }
    50% {
        transform: perspective(1000px) rotateY(-10deg) translateX(10px);
    }
    100% {
        transform: perspective(1000px) rotateY(0) translateX(0);
        opacity: 1;
    }
}

/* Website preview image zoom effect on load */
.website-preview {
    overflow: hidden;
}

.website-preview img {
    animation: imageZoom 0.6s ease-out forwards;
    transform: scale(1.3);
}

@keyframes imageZoom {
    0% {
        transform: scale(1.3);
        filter: blur(5px);
    }
    100% {
        transform: scale(1);
        filter: blur(0);
    }
}


/* Floating animation for website icons */
.website-preview i {
    animation: float-icon 3s ease-in-out infinite;
}

@keyframes float-icon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(-5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(5deg);
    }
}

/* Visit button shine effect */
.visit-btn {
    position: relative;
    overflow: hidden;
}

.visit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.visit-btn:hover::after {
    left: 100%;
}

