/* Modern Dark Theme Styles */
:root {
    --primary-color: #4a90e2;  /* Rich blue accent */
    --primary-dark: #357abd;   /* Darker blue for hover states */
    --accent-color: #ffffff;   /* White accent for important elements */
    --dark-bg: #0a192f;        /* Dark navy background */
    --darker-bg: #071423;      /* Even darker navy for contrast */
    --nav-bg: #050b16;         /* Darkest navy for navbar */
    --light-text: #ffffff;
    --gray-text: #ccd6f6;      /* Light blue-gray for text */
    --card-bg: #112240;        /* Slightly lighter navy for cards */
    --border-color: #233554;   /* Subtle border color */
}

/* Base Styles */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    padding-top: 80px;
}

/* Navigation */
.navbar {
    background-color: rgba(0, 0, 0, 0.9);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffd700;
}

.company-tagline {
    font-size: 0.8rem;
    color: #ffffff;
}

.navbar-nav {
    align-items: center;
}

.nav-item {
    margin: 0 0.5rem;
}

.nav-link {
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700 !important;
}

.nav-link.active {
    color: #ffd700 !important;
}

/* User info in navbar */
#userInfo {
    margin-left: 1rem;
}

#userInfo .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Login/Logout buttons */
.login-btn, .logout-btn {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-btn {
    background-color: #ffd700;
    color: #000000;
    border: none;
}

.login-btn:hover {
    background-color: #ffed4a;
    color: #000000;
}

.logout-btn {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
}

.logout-btn:hover {
    background-color: #c82333;
    color: #ffffff;
}

/* Logo */
.img_logo {
    height: 64px;
    width: 64px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    position: static;
}

.img_logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 10%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.img_logo:hover img {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .img_logo, .img_logo img {
        height: 40px;
        width: 40px;
    }
}

/* Footer */
.footer {
    background-color: #0a192f;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 1px solid #233554;
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #0a192f, #0c1f3a);
    z-index: -2;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.5);
    z-index: -1;
}

/* Language Switcher */
.btn-outline-gold {
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
}

.dropdown-menu {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dropdown-item {
    color: var(--gray-text);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--darker-bg);
    color: var(--accent-color);
}

/* Footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}


.footer p {
    color: var(--gray-text);
    line-height: 1.8;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0;
    opacity: 0.3;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .navbar {
        padding: 0.5rem 0;
        height: auto;
    }
    
    .company-name {
        font-size: 1.5rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem !important;
    }
    
    .img_logo {
        position: relative;
        left: 0;
        top: 0;
        margin-bottom: 1rem;
        height: auto;
    }
    
    .img_logo img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .img_logo {
        margin-bottom: 0.5rem;
    }
    
    .img_logo img {
        width: 90px;
        height: 90px;
    }
    
    .navbar {
        padding-left: 1rem;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.hero-title {
    position: relative;
    overflow: visible;
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    animation: typing 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Set consistent animation delays for each letter */
.hero-title span:nth-child(1) { animation-delay: 0.0s; } /* 'B' */
.hero-title span:nth-child(2) { animation-delay: 0.1s; } /* 'u' */
.hero-title span:nth-child(3) { animation-delay: 0.2s; } /* 'i' */
.hero-title span:nth-child(4) { animation-delay: 0.3s; } /* 'l' */
.hero-title span:nth-child(5) { animation-delay: 0.4s; } /* 'd' */
.hero-title span:nth-child(6) { animation-delay: 0.5s; } /* 'i' */
.hero-title span:nth-child(7) { animation-delay: 0.6s; } /* 'n' */
.hero-title span:nth-child(8) { animation-delay: 0.7s; } /* 'g' */
.hero-title span:nth-child(9) { animation-delay: 0.8s; } /* ' ' */
.hero-title span:nth-child(10) { animation-delay: 0.9s; } /* 'C' */
.hero-title span:nth-child(11) { animation-delay: 1.0s; } /* 'o' */
.hero-title span:nth-child(12) { animation-delay: 1.1s; } /* 'n' */
.hero-title span:nth-child(13) { animation-delay: 1.2s; } /* 'f' */
.hero-title span:nth-child(14) { animation-delay: 1.3s; } /* 'i' */
.hero-title span:nth-child(15) { animation-delay: 1.4s; } /* 'd' */
.hero-title span:nth-child(16) { animation-delay: 1.5s; } /* 'e' */
.hero-title span:nth-child(17) { animation-delay: 1.6s; } /* 'n' */
.hero-title span:nth-child(18) { animation-delay: 1.7s; } /* 'c' */
.hero-title span:nth-child(19) { animation-delay: 1.8s; } /* 'e' */
.hero-title span:nth-child(20) { animation-delay: 1.9s; } /* ' ' */
.hero-title span:nth-child(21) { animation-delay: 2.0s; } /* 'i' */
.hero-title span:nth-child(22) { animation-delay: 2.1s; } /* 'n' */
.hero-title span:nth-child(23) { animation-delay: 2.2s; } /* ' ' */
.hero-title span:nth-child(24) { animation-delay: 2.3s; } /* 'E' */
.hero-title span:nth-child(25) { animation-delay: 2.4s; } /* 'v' */
.hero-title span:nth-child(26) { animation-delay: 2.5s; } /* 'e' */
.hero-title span:nth-child(27) { animation-delay: 2.6s; } /* 'r' */
.hero-title span:nth-child(28) { animation-delay: 2.7s; } /* 'y' */
.hero-title span:nth-child(29) { animation-delay: 2.8s; } /* ' ' */
.hero-title span:nth-child(30) { animation-delay: 2.9s; } /* 'B' */
.hero-title span:nth-child(31) { animation-delay: 3.0s; } /* 'i' */
.hero-title span:nth-child(32) { animation-delay: 3.1s; } /* 't' */
.hero-title span:nth-child(33) { animation-delay: 3.2s; } /* 'e' */
@keyframes typing {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Underline for Confidence */
.hero-title .word-confidence::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-color);
    animation: underlineConfidence 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 3.5s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes underlineConfidence {
    0% {
        width: 0;
        left: 0;
    }
    100% {
        width: 100%;
        left: 0;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

/* Feature Boxes */
.feature-box {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-color);
}

.feature-box h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-box:hover h3 {
    color: var(--primary-color);
}

.feature-box p {
    color: var(--gray-text);
    transition: all 0.3s ease;
}

.feature-box:hover p {
    color: var(--light-text);
}

/* Buttons */
.btn-gold {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #e6e6e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Modal */
.dark-modal {
    background-color: #112240;
    color: var(--light-text);
    border: 1px solid #233554;
}

.dark-modal .form-control {
    background-color: var(--darker-bg);
    border: 1px solid var(--border-color);
    color: var(--light-text);
}

.dark-modal .form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

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

.hero-content, .feature-box {
    animation: fadeIn 1s ease-out;
}

/* Branding */
.navbar-brand {
    display: flex;
    flex-direction: column;
    margin-right: 2rem;
}

.company-name {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 1px;
    line-height: 1.2;
}

.company-tagline {
    font-size: rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Navigation Links */
.nav-link {
    font-weight: 600;
    margin: 0 12px;
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 0 !important;
}

.nav-link i {
    margin-right: 8px;
    font-size: 0.9em;
}

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover:after, 
.nav-link.active:after {
    width: 100%;
}

/* Active Nav Link Styling */
.nav-link.active {
    color: var(--accent-color) !important;
    position: relative
}

.nav-link.active:after {
    content: '';
    position: absolute;
    width: 100% !important;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
}

/* Buttons (unchanged from your version) */
.btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #f1e5ac 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}
.btn-gold-logo {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--nav-bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
    height: 37px;
    width: 100px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.btn-gold:hover {
    background-color: #c9a227;
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-outline-gold {
    color: var(--accent-color);
    border-color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
}

/* Mobile Menu */
@media (max-width: 992px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-collapse {
        background-color: var(--nav-bg);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 0 0 5px 5px;
        border: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }
    
    .nav-link {
        margin: 0.5rem 0;
        padding: 0.8rem 1rem !important;
    }
}   

/* Contact Page Specific Styles */
.contact-form-section {
    background-color: var(--black);
    padding: 3rem 0;
}

.message-form {
    background-color: var(--dark-gray);
    padding: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.admin-panel {
    background-color: var(--dark-gray);
    padding: 2rem;
    border-top: 2px solid var(--gold);
}

.table-dark {
    background-color: var(--black);
    color: var(--white);
}

.table-dark th {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
}

.table-dark td {
    vertical-align: middle;
}

.dark-modal {
    background-color: var(--black);
    color: var(--white);
    border: 1px solid var(--gold);
}

.dark-modal .modal-header {
    border-bottom: 1px solid var(--gold);
}

/* Contact Page Specific Navbar */
.contact-page .navbar {
    border-bottom: 1px solid var(--border-color);
}

/* Contact Page Specific Styles */
body.contact-page {
    background: linear-gradient(var(--dark-bg), var(--dark-bg)),
                url('../images/contact-bg.jpg') no-repeat center center fixed;
    background-size: cover;
}

.contact-page .navbar {
    background-color: var(--nav-bg) !important;
    border-bottom: 1px solid var(--border-color);
}

.contact-page .hero {
    padding: 80px 0 40px;
}

.contact-page .company-title {
    font-size: 2.8rem;
}

/* Flag styling */
.flag-icon {
    width: 1.2em;
    height: 1em;
    border-radius: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

.dropdown-item .flag-icon {
    margin-right: 10px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 200px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: -40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--accent-color);
}

.timeline-card {
    position: relative;
    margin-bottom: 30px;
}

.timeline-date {
    position: absolute;
    left: -200px;
    width: 180px;
    text-align: right;
    padding-right: 15px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
}

.timeline-content {
    padding: 25px;
    position: relative;
    margin-left: 0;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--primary-dark);
}

.gold-icon {
    color: var(--accent-color);
    margin-right: 10px;
}

.timeline-details {
    padding-left: 20px;
}

.timeline-details li {
    margin-bottom: 8px;
    position: relative;
}

.timeline-details li::before {
    content: '•';
    color: var(--accent-color);
    position: absolute;
    left: -15px;
}

/* Animated Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-microscope,
.floating-certificate {
    position: absolute;
    opacity: 0.1;
    background-size: contain;
    background-repeat: no-repeat;
    animation-duration: 20s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.floating-microscope {
    width: 200px;
    height: 200px;
    right: 5%;
    top: 20%;
    background-image: url('img/microscope.png');
    animation-name: floatVertical;
}

.floating-certificate {
    width: 180px;
    height: 180px;
    left: 5%;
    bottom: 15%;
    background-image: url('img/certificate.png');
    animation-name: floatHorizontal;
}

@keyframes floatVertical {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-40px); }
}

@keyframes floatHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(30px); }
}

/* Parallax Effect */
.parallax {
    position: relative;
    overflow: hidden;
}

.parallax-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.3;
    z-index: -1;
}

/* Photo Elements */
.floating-photo {
    position: relative;
    padding: 15px;
}

.floating-photo img {
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.floating-photo:hover img {
    transform: scale(1.05);
}

.photo-aura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0.3;
    z-index: 1;
    animation: pulseAura 3s infinite;
}

@keyframes pulseAura {
    0% { transform: scale(0.95); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.2; }
    100% { transform: scale(0.95); opacity: 0.3; }
}

.education-photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
}

.education-photo-card img {
    transition: transform 0.5s ease;
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.education-photo-card:hover {
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

.education-photo-card:hover img {
    transform: scale(1.1);
}

/* Modal Gallery */
.dark-modal {
    background-color: #1a1a1a;
    color: white;
    border: 1px solid var(--accent-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--accent-color);
    border-radius: 50%;
    padding: 15px;
}

.form-control {
    color: black;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

.text-gold {
    color: var(--accent-color) !important;
}


.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    border-radius: 50%;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 5rem 0 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 70px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .hero-buttons .me-3 {
        margin-right: 0 !important;
    }
}

/* Clients Section */
.clients-section {
    background-color: var(--dark-bg);
    padding: 4rem 0;
}

.client-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.client-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.client-card:hover::before {
    transform: translateX(100%);
}

.client-logo-placeholder {
    width: 80px;
    height: 80px;
    background-color: var(--darker-bg);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.client-logo-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-card:hover .client-logo-placeholder::before {
    opacity: 0.2;
}

.client-logo-placeholder i {
    font-size: 2.5rem;
    color: var(--accent-color);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.client-card:hover .client-logo-placeholder i {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.client-info h3 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    transition: all 0.3s ease;
}

.client-card:hover .client-info h3 {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive adjustments for client cards */
@media (max-width: 768px) {
    .client-card {
        padding: 1.5rem;
    }
    
    .client-logo-placeholder {
        width: 60px;
        height: 60px;
    }
    
    .client-logo-placeholder i {
        font-size: 1.8rem;
    }
    
    .client-info h3 {
        font-size: 1rem;
    }
}

/* Team Section */
.team-section {
    background-color: var(--dark-bg);
    padding: 4rem 0;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.team-member-photo {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Creates a square aspect ratio */
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.team-member-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.team-card:hover .team-member-photo img {
    transform: scale(1.05);
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

.team-info h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--gray-text);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.team-details {
    margin: 1.5rem 0;
}

.team-details p {
    color: var(--gray-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.team-details i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.team-social {
    margin-top: 1.5rem;
}

.team-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--darker-bg);
    color: var(--accent-color);
    transition: all 0.3s ease;
    margin: 0 0.25rem;
}

.team-social a:hover {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Responsive adjustments for team cards */
@media (max-width: 768px) {
    .team-info {
        padding: 1rem;
    }
    
    .team-info h3 {
        font-size: 1.3rem;
    }
    
    .team-role {
        font-size: 1rem;
    }
    
    .team-details p {
        font-size: 0.9rem;
    }
}

/* Shining Text Animation */
.shining-text {
    position: relative;
    display: inline-block;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.shining-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Hero Title Adjustments */
.hero-title {
    position: relative;
    overflow: visible;
}

.hero-title .shining-text {
    display: inline-block;
    padding: 0 0.2em;
    margin: 0 -0.2em;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sparkle Text Animation */
.sparkle-text {
    position: relative;
    display: inline-block;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.sparkle {
    position: absolute;
    font-size: 0.8em;
    color: var(--accent-color);
    opacity: 0;
    animation: sparkle 2s infinite;
}

.sparkle:nth-child(1) {
    top: -0.5em;
    left: -0.5em;
    animation-delay: 0s;
}

.sparkle:nth-child(2) {
    top: -0.5em;
    right: -0.5em;
    animation-delay: 0.3s;
}

.sparkle:nth-child(3) {
    bottom: -0.5em;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

@keyframes sparkle {
    0% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(360deg);
    }
}

.sparkle-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        transparent 100%);
    opacity: 0;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

/* Fancy Text Effect */
.fancy-text {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: shine 3s ease-in-out infinite;
    background: none;
    padding: 0;
    border-radius: 0;
}

@keyframes shine {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
    100% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
}

/* Client Management Page Styles */
.client-management {
    padding: 2rem 0;
}

.client-management .tab-container {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.client-management .tab-navigation {
    display: flex;
    background-color: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
}

.client-management .tab-link {
    padding: 1rem 1.5rem;
    color: var(--gray-text);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.client-management .tab-link.active {
    color: var(--accent-color);
    background-color: var(--card-bg);
}

.client-management .tab-link:hover {
    color: var(--accent-color);
}

.client-management .tab-content {
    display: none;
    padding: 2rem;
}

.client-management .tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.client-management .action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.client-management .table-container {
    overflow-x: auto;
}

.client-management table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.client-management th {
    background-color: var(--darker-bg);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.client-management td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.client-management tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.client-management .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.client-management .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.client-management .btn-edit,
.client-management .btn-delete {
    background-color: transparent;
    border: none;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-management .btn-edit {
    color: var(--primary-color);
}

.client-management .btn-delete {
    color: #e74c3c;
}

.client-management .btn-edit:hover {
    background-color: rgba(74, 144, 226, 0.2);
}

.client-management .btn-delete:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

.client-management .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050;
    overflow: auto;
}

.client-management .modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease forwards;
}

.client-management .modal-content {
    background-color: var(--card-bg);
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.client-management .modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client-management .modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.client-management .close-modal {
    background: transparent;
    border: none;
    color: var(--gray-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.client-management .close-modal:hover {
    color: var(--accent-color);
}

.client-management .modal-body {
    padding: 1.5rem;
}

.client-management .form-group {
    margin-bottom: 1.5rem;
}

.client-management .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-text);
}

.client-management .form-control {
    width: 100%;
    padding: 0.75rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background-color: var(--darker-bg);
    color: var(--light-text);
}

.client-management .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.client-management .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.client-management .status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 500;
}

.client-management .status-paid {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.client-management .status-pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.client-management .status-overdue {
    background-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.client-management .status-completed {
    background-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.client-management .status-pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: #f1c40f;
}

.client-management .status-inprogress {
    background-color: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

@media (max-width: 768px) {
    .client-management .action-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .client-management .tab-navigation {
        flex-direction: column;
    }
    
    .client-management .tab-link {
        padding: 0.75rem 1rem;
    }
    
    .client-management .modal-content {
        max-width: 95%;
        margin: 0 10px;
    }
}

/* Form field contrast improvements */
.form-control {
    color: #212529 !important;
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
}

.form-control:focus {
    color: #212529 !important;
    background-color: #fff !important;
    border-color: #ffd700 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25) !important;
}

.dark-theme .form-control {
    color: #f8f9fa !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-color: #495057 !important;
}

.dark-theme .form-control:focus {
    color: #f8f9fa !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffd700 !important;
}

.table {
    color: inherit !important;
}

.table-dark {
    color: #fff !important;
}

/* High contrast alerts */
.alert-success {
    color: #155724 !important;
    background-color: #d4edda !important;
    border-color: #c3e6cb !important;
}

.alert-danger {
    color: #721c24 !important;
    background-color: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.alert-warning {
    color: #856404 !important;
    background-color: #fff3cd !important;
    border-color: #ffeeba !important;
}

.alert-info {
    color: #0c5460 !important;
    background-color: #d1ecf1 !important;
    border-color: #bee5eb !important;
}

/* Status indicators with improved contrast */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.status-paid,
.status-badge.status-completed {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.status-badge.status-pending,
.status-badge.status-scheduled {
    background-color: #fff3cd !important;
    color: #856404 !important;
    border: 1px solid #ffeeba !important;
}

.status-badge.status-overdue,
.status-badge.status-canceled {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.status-badge.status-inprogress {
    background-color: #d1ecf1 !important;
    color: #0c5460 !important;
    border: 1px solid #bee5eb !important;
}

/* Modal contrast improvements for dark theme */
.dark-modal .modal-header,
.dark-modal .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.dark-modal .close {
    color: #fff !important;
    text-shadow: 0 1px 0 #000 !important;
}

.dark-modal label {
    color: #f8f9fa !important;
}

/* Client management specific contrast improvements */
.client-management th {
    background-color: #343a40 !important;
    color: #fff !important;
    font-weight: 500 !important;
}

.client-management .tab-link {
    color: #f8f9fa !important;
}

.client-management .tab-link.active {
    color: #ffd700 !important;
    font-weight: 600 !important;
}

.client-management .action-bar h2 {
    color: #f8f9fa !important;
}

/* Make login system text more visible */
#loginModal .form-label,
#addUserModal .form-label {
    color: #f8f9fa !important;
}

/* Gold accent color */
.gold-accent {
    color: #ffd700 !important;
}

.bg-gold-accent {
    background-color: #ffd700 !important;
    color: #212529 !important;
}

/* Important elements using gold color */
.btn-gold, 
.btn-gold-logo {
    background-color: #ffd700 !important;
    color: #212529 !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-gold:hover,
.btn-gold-logo:hover {
    background-color: #e6c200 !important;
    color: #000 !important;
}

/* Button groups contrast improvement */
.btn-group .btn {
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
}

/* Table row hover effect with better contrast */
.table-hover tbody tr:hover {
    background-color: rgba(255, 215, 0, 0.1) !important;
}

.btn-gold-logo:hover {
    background-color: #ffffff;
    color: var(--dark-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

@media (max-width: 768px) {
    .timeline {
        padding-left: 0;
    }
    .timeline-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    .timeline-date {
        position: static;
        width: 100%;
        text-align: left;
        padding-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1rem;
        white-space: normal;
    }
    .timeline-content {
        margin-left: 0;
        width: 100%;
        padding: 18px 12px;
    }
    .timeline::before {
        display: none !important;
    }
    .timeline-content::before {
        display: none !important;
    }
    .timeline-details li::before {
        display: none !important;
    }
}

.footer-link {
    color: var(--gray-text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}
.footer-link:hover, .footer-link:focus {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Специально для русской шапки: уменьшение шрифта --- */
html[lang='ru'] .company-name,
html[lang='ru'] .company-tagline {
    font-size: 90% !important;
}

html[lang='ru'] .company-tagline {
    font-size: 70% !important;
}