/* Base Styles and Variables */
:root {
    /* CIS-inspired color palette */
    --primary-color: #0039a6; /* Russian blue */
    --primary-light: #3b5dc9;
    --primary-dark: #002776;
    --secondary-color: #555;
    --dark-grey: #333;
    --light-grey: #f5f7fa;
    --white: #fff;
    --black: #202124;
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
    
    /* New accent colors - inspired by CIS country flags */
    --accent-color: #d52b1e; /* Red from Russian flag */
    --accent-light: #e05c52;
    --accent-dark: #b71c1c;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    
    /* Additional CIS colors */
    --kazakh-blue: #00afca;
    --belarus-green: #008000;
    --ukraine-yellow: #ffd700;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    --primary-gradient-hover: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --accent-gradient: linear-gradient(135deg, var(--accent-light), var(--accent-color));
    --accent-gradient-hover: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    --light-gradient: linear-gradient(to bottom, #ffffff, var(--light-grey));
    --hero-gradient: linear-gradient(to right bottom, rgba(0, 57, 166, 0.7), rgba(0, 39, 118, 0.7));

    /* Shadows */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    --btn-shadow: 0 4px 10px rgba(26, 115, 232, 0.2);
    
    /* Spacing scale */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-circle: 50%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--light-grey);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    box-shadow: var(--btn-shadow);
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--white) 66.66%, var(--white) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover:after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #d52b1e, #b71c1c);;
    color: var(--white);
    border-color: transparent;
}

.btn-primary:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(26, 115, 232, 0.05);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.btn-accent {
    background: var(--accent-gradient);
    color: var(--white);
    border-color: transparent;
}

.btn-accent:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 6px 15px rgba(255, 152, 0, 0.3);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 10px 0;
    transition: all 0.3s ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.logo a {
    color: var(--primary-color);
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo a:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.logo h1 {
    font-size: 1.6rem;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--primary-color);
}

.main-navigation {
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: var(--space-sm);
}

nav ul li {
    position: relative;
    margin: 0 var(--space-xs);
}

nav ul li a {
    position: relative;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-sm) var(--space-xs);
    display: block;
    transition: var(--transition);
}

nav ul li a:hover, 
nav ul li a.active {
    color: var(--primary-color);
}

nav ul li a.active {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

nav ul li a.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--white) 66.66%, var(--white) 100%);
}

.dropdown-toggle:before {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: currentColor;
    transition: transform 0.25s ease;
}

nav ul li:hover .dropdown-toggle:before {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-active .dropdown-toggle:before {
    transform: translateY(-50%) rotate(180deg);
}

/* Remove conflicting rules */
nav ul li a.dropdown-toggle.active:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 4px;
    border-radius: 2px;
    background-color: var(--primary-color);
}

.dropdown-toggle:after {
    content: none;
}

/* Ensure previous hover rules work with :before instead of :after */
nav ul li:hover .dropdown-toggle:after {
    content: none;
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-number {
    margin-bottom: 6px;
    text-align: center;
}

.phone-number a {
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.phone-number a i {
    margin-right: 5px;
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: 8px;
}

.cta-buttons .btn {
    padding: 5px 10px;
    font-size: 0.75rem;
    border-radius: 3px;
    border-width: 1px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 2px 0;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: var(--hero-gradient), url('../images/hero-bg.jpg') center/cover;
    height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 60px;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

/* CIS-inspired decorative elements */
.hero:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, 
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--white) 66.66%, var(--white) 100%);
    opacity: 0.8;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

.hero-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 800;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-content h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.hero-content .btn {
    margin-top: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Floating Language Tags */
.languages-floating {
    margin: 30px 0;
    position: relative;
    height: 120px;
}

.language-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 16px;
    margin: 8px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: float 3s ease-in-out infinite;
    position: relative;
    color: var(--white);
    transition: all 0.3s ease;
}

.language-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.language-tag:nth-child(1) { animation-delay: 0s; }
.language-tag:nth-child(2) { animation-delay: 0.2s; }
.language-tag:nth-child(3) { animation-delay: 0.4s; }
.language-tag:nth-child(4) { animation-delay: 0.6s; }
.language-tag:nth-child(5) { animation-delay: 0.8s; }
.language-tag:nth-child(6) { animation-delay: 1s; }
.language-tag:nth-child(7) { animation-delay: 1.2s; }
.language-tag:nth-child(8) { animation-delay: 1.4s; }
.language-tag:nth-child(9) { animation-delay: 1.6s; }
.language-tag:nth-child(10) { animation-delay: 1.8s; }
.language-tag:nth-child(11) { animation-delay: 2s; }
.language-tag:nth-child(12) { animation-delay: 2.2s; }

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

/* Supported Languages Section */
.supported-languages {
    margin: 25px 0;
    padding: 20px;
    background: rgba(0, 57, 166, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.supported-languages h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.languages-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.language-item {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.language-item:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 57, 166, 0.3);
}

/* About Preview Section */
.about-preview {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 57, 166, 0.05), rgba(213, 43, 30, 0.03)), url('../images/pattern.png');
    background-size: cover, 400px;
    background-position: center, center;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid transparent;
    border-image: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 20%,
        var(--accent-color) 20%, var(--accent-color) 40%,
        var(--kazakh-blue) 40%, var(--kazakh-blue) 60%,
        var(--belarus-green) 60%, var(--belarus-green) 80%,
        var(--ukraine-yellow) 80%, var(--ukraine-yellow) 100%)
        1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.about-preview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.about-preview:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--primary-color) transparent transparent;
    opacity: 0.1;
    z-index: 1;
}

.about-preview h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.about-preview h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--ukraine-yellow) 66.66%, var(--ukraine-yellow) 100%);
    border-radius: 2px;
}

.about-preview p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

.about-preview .btn {
    box-shadow: var(--btn-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 2;
    padding: 12px 30px;
    font-weight: 500;
}

.about-preview .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.2);
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    text-align: center;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}
.services-overview:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.02;
    pointer-events: none;
}
.services-overview h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
    font-size: 2.5rem;
    color: var(--primary-color);
}
.services-overview h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}
.services-overview .services-grid {
    margin-top: 20px;
}
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-md);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    flex: 0 1 calc(33.333% - 17px);
    min-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: 100%;
}
.service-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-gradient);
    z-index: 1;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}
.service-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    transition: var(--transition);
}
.service-card:nth-child(2n):after {
    border-color: transparent var(--kazakh-blue) transparent transparent;
}
.service-card:nth-child(3n):after {
    border-color: transparent var(--belarus-green) transparent transparent;
}
.service-card:nth-child(4n):after {
    border-color: transparent var(--ukraine-yellow) transparent transparent;
}
.service-icon {
    width: 65px;
    height: 65px;
    border-radius: var(--radius-circle);
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(26, 115, 232, 0.15);
    position: relative;
}
.service-icon:after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 1px solid rgba(26, 115, 232, 0.2);
    z-index: -1;
}
.service-icon i {
    font-size: 1.5rem;
}
.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--primary-color);
    font-weight: 600;
}
.service-card p {
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}
.service-card .read-more {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-right: 24px;
    transition: var(--transition);
    margin-top: auto;
}
.service-card .read-more::after {
    content: '→';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}
.service-card .read-more:hover {
    color: var(--primary-dark);
}
.service-card .read-more:hover::after {
    transform: translate(5px, -50%);
}

    .opportunities-section{
        margin: 20px 0px;
    }

/* CTA Section */
.cta-section {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    z-index: 2;
}

/* Removed duplicate :before */

/* Circle decoration for CTA section */
.cta-section .container::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta-section p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 14px 30px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta-section .btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark-grey);
    color: var(--white);
    padding: 60px 0 20px;
    position: relative;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 20%,
        var(--accent-color) 20%, var(--accent-color) 40%,
        var(--kazakh-blue) 40%, var(--kazakh-blue) 60%,
        var(--belarus-green) 60%, var(--belarus-green) 80%,
        var(--ukraine-yellow) 80%, var(--ukraine-yellow) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-about h3 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links h4, .footer-contact h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.footer-links h4:after, .footer-contact h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gradient);
}

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

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a:before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--primary-light);
}

.footer-links ul li a:hover {
    color: var(--primary-light);
    padding-left: 18px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.9rem;
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(26, 115, 232, 0.8), rgba(26, 115, 232, 0.9)), #1a73e8;
    padding: 150px 0 80px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-banner:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.page-banner:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 20%,
        var(--accent-color) 20%, var(--accent-color) 40%,
        var(--kazakh-blue) 40%, var(--kazakh-blue) 60%,
        var(--belarus-green) 60%, var(--belarus-green) 80%,
        var(--ukraine-yellow) 80%, var(--ukraine-yellow) 100%);
}

.page-banner h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.page-banner p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.page-banner .placeholder-note {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

/* Section Grid Layout */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.section-content h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.section-content p {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.section-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Who We Are Section */
.who-we-are {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.who-we-are .section-grid {
    background: var(--light-gradient);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.who-we-are .section-grid:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 57, 166, 0.05);
    border-radius: 50%;
    z-index: 0;
    top: -100px;
    right: -100px;
}

.who-we-are .section-grid:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    opacity: 0.2;
}

.who-we-are .section-content {
    position: relative;
    z-index: 1;
}

.who-we-are h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.who-we-are h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--kazakh-blue) 66.66%, var(--kazakh-blue) 100%);
}

/* Why Choose Us Section */
.why-choose-us {
    background: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.why-choose-us:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.03;
    pointer-events: none;
}

.why-choose-us:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 20%,
        var(--accent-color) 20%, var(--accent-color) 40%,
        var(--kazakh-blue) 40%, var(--kazakh-blue) 60%,
        var(--belarus-green) 60%, var(--belarus-green) 80%,
        var(--ukraine-yellow) 80%, var(--ukraine-yellow) 100%);
}

.why-choose-us h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 40px;
}

.why-choose-us h2:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--kazakh-blue) 66.66%, var(--kazakh-blue) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border-top: 4px solid var(--primary-color);
}

.feature-card:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.feature-card:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    opacity: 0.2;
    z-index: 1;
}

.feature-card:nth-child(4n+1):before {
    border-color: transparent var(--primary-color) transparent transparent;
}

.feature-card:nth-child(4n+2):before {
    border-color: transparent var(--accent-color) transparent transparent;
}

.feature-card:nth-child(4n+3):before {
    border-color: transparent var(--kazakh-blue) transparent transparent;
}

.feature-card:nth-child(4n+4):before {
    border-color: transparent var(--belarus-green) transparent transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-card:hover:after {
    opacity: 0.03;
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-circle);
    background: var(--primary-gradient);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0, 57, 166, 0.15);
    position: relative;
}



.feature-card:nth-child(4n+2) .feature-icon {
    background: linear-gradient(135deg, var(--accent-color), rgba(213, 43, 30, 0.8));
}

.feature-card:nth-child(4n+3) .feature-icon {
    background: linear-gradient(135deg, var(--kazakh-blue), rgba(0, 113, 188, 0.8));
}

.feature-card:nth-child(4n+4) .feature-icon {
    background: linear-gradient(135deg, var(--belarus-green), rgba(61, 165, 81, 0.8));
}

.feature-icon i {
    font-size: 1.8rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Our Mission Section */
.our-mission {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.our-mission .section-grid {
    background: var(--light-gradient);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    border-left: 5px solid var(--primary-color);
}

.our-mission .section-grid:after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(0, 57, 166, 0.05);
    border-radius: 50%;
    z-index: 0;
    bottom: -100px;
    left: -100px;
}

.our-mission .section-grid:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    opacity: 0.2;
}

.our-mission .section-content {
    position: relative;
    z-index: 1;
}

.our-mission h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.our-mission h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--white) 66.66%, var(--white) 100%);
}

/* Services Page */
.service-list {
    padding: 80px 0;
}

.service-item {
    margin-bottom: 80px;
    position: relative;
}

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

/* Service Sections with CIS-inspired Design */
#language-services, #corporate-training, #corporate-consulting, #nature-tourism, #pharma-export {
    position: relative;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
}

/* CIS Language Services Highlight */
#language-services {
    background-color: rgba(0, 57, 166, 0.03);
}

#language-services .section-grid {
    position: relative;
    overflow: hidden;
}

#language-services .section-grid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #0039A6 transparent transparent;
    opacity: 0.2;
}

/* Pharma Export Consultancy - CIS Focus */
#pharma-export {
    background-color: rgba(213, 43, 30, 0.03);
    border-left-color: var(--accent-color);
}

/* Corporate Training - Belarus Green Accent */
#corporate-training {
    background-color: rgba(0, 124, 48, 0.03); /* Belarus green with opacity */
    border-left-color: #007C30; /* Belarus green */
}

#corporate-training .service-header h2 {
    color: #007C30; /* Belarus green */
}

#corporate-training .section-grid {
    position: relative;
    overflow: hidden;
}

#corporate-training .section-grid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #007C30 transparent transparent;
    opacity: 0.2;
}

/* Corporate Consulting - Kazakh Blue Accent */
#corporate-consulting {
    background-color: rgba(0, 57, 166, 0.03); /* Kazakh blue with opacity */
    border-left-color: #0039A6; /* Kazakh blue */
}

#corporate-consulting .service-header h2 {
    color: #0039A6; /* Kazakh blue */
}

#corporate-consulting .section-grid {
    position: relative;
    overflow: hidden;
}

#corporate-consulting .section-grid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #0039A6 transparent transparent;
    opacity: 0.2;
}

/* Nature Tourism - Ukraine Yellow Accent */
#nature-tourism {
    background-color: rgba(255, 215, 0, 0.03); /* Ukraine yellow with opacity */
    border-left-color: #FFD700; /* Ukraine yellow */
}

#nature-tourism .service-header h2 {
    color: #9B870C; /* Darker shade of yellow for better readability */
}

#nature-tourism .section-grid {
    position: relative;
    overflow: hidden;
}

#nature-tourism .section-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 40px 40px 0 0;
    border-color: #FFD700 transparent transparent transparent;
    opacity: 0.2;
}

#pharma-export .section-grid {
    position: relative;
    overflow: hidden;
}

#pharma-export .section-grid::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    opacity: 0.2;
}

#pharma-export .service-header h2 {
    color: var(--accent-color);
}

#pharma-export:after {
    content: 'CIS';
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 80px;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.05;
    pointer-events: none;
}

#language-services:after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 80px;
    height: 80px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%230039a6" opacity="0.1"><path d="M12.87 15.07l-2.54-2.51.03-.03A17.52 17.52 0 0014.07 6H17V4h-7V2H8v2H1v2h11.17C11.5 7.92 10.44 9.75 9 11.35 8.07 10.32 7.3 9.19 6.69 8h-2c.73 1.63 1.73 3.17 2.98 4.56l-5.09 5.02L4 19l5-5 3.11 3.11.76-2.04zM18.5 10h-2L12 22h2l1.12-3h4.75L21 22h2l-4.5-12zm-2.62 7l1.62-4.33L19.12 17h-3.24z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.5;
    pointer-events: none;
}

.service-header {
    margin-bottom: 30px;
}

.service-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    position: relative;
}

.service-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), #0039A6);
}

.service-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.sub-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 30px;
}

.sub-service-item {
    background: var(--light-gradient);
    border-radius: var(--radius-md);
    padding: 25px;
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 3px solid transparent;
}

.sub-service-item:nth-child(4n+1) {
    border-top-color: var(--primary-color);
}

.sub-service-item:nth-child(4n+2) {
    border-top-color: var(--accent-color);
}

.sub-service-item:nth-child(4n+3) {
    border-top-color: #0039A6; /* Kazakh blue */
}

.sub-service-item:nth-child(4n+4) {
    border-top-color: #FFD700; /* Ukraine yellow */
}

.sub-service-item:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.sub-service-item:hover {
    background-color: rgba(26, 115, 232, 0.03);
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
    border-color: rgba(26, 115, 232, 0.1);
}

.sub-service-item:hover:after {
    transform: scaleX(1);
    transform-origin: left;
}

.sub-service-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    position: relative;
    padding-left: 22px;
}

.sub-service-item h4:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-gradient);
    border-radius: 50%;
}

.sub-service-item p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Industries Page */
.industries-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.industries-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.02;
    pointer-events: none;
}

.industries-section .section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
}

.industries-section .section-intro h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 25px;
    font-size: 2.2rem;
    color: var(--primary-color);
}

.industries-section .section-intro h2:after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}

.industries-section .section-intro p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.industry-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.industry-img {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.industry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry-card:hover .industry-img img {
    transform: scale(1.05);
}

.industry-img:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-card:hover .industry-img:before {
    opacity: 1;
}

.industry-content {
    padding: 25px;
    position: relative;
}

.industry-content:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.industry-card:hover .industry-content:before {
    opacity: 1;
}

.industry-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    transition: var(--transition);
}

.industry-content p {
    color: var(--secondary-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.industry-card .placeholder-box {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.1), rgba(26, 115, 232, 0.05));
    border: 1px dashed rgba(26, 115, 232, 0.3);
    transition: var(--transition);
    border-radius: var(--radius-md);
}

.industry-card:nth-child(odd) .placeholder-box {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1), rgba(76, 175, 80, 0.05));
    border: 1px dashed rgba(76, 175, 80, 0.3);
}

.industry-card:nth-child(3n) .placeholder-box {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.1), rgba(255, 152, 0, 0.05));
    border: 1px dashed rgba(255, 152, 0, 0.3);
}

.industry-card:nth-child(odd) .placeholder-box h4 {
    color: var(--success-color);
}

.industry-card:nth-child(3n) .placeholder-box h4 {
    color: var(--accent-color);
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(to bottom, #ffffff, #f9f9fe);
}

.contact-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.02;
    pointer-events: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-box {
    padding: 30px;
    background: var(--primary-gradient);
    color: white;
}

.contact-info-box h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
    position: relative;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.contact-info-item i {
    font-size: 1.1rem;
    margin-right: 12px;
    margin-top: 4px;
}

.contact-info-item .content h4 {
    margin-bottom: 4px;
    font-size: 1rem;
}

.social-media {
    margin-top: 25px;
}

.social-media h4 {
    margin-bottom: 15px;
}

.social-icons a {
    width: 35px;
    height: 35px;
    line-height: 35px;
}

.contact-form {
    padding: 30px;
}

.contact-form h3 {
    margin-bottom: 25px;
    font-size: 1.6rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px 12px;
    font-size: 0.95rem;
}

.form-group textarea {
    min-height: 100px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
    
    .contact-info-box, .contact-form {
        padding: 25px;
    }
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Animation Styles */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Touch Device Enhancements */
.touch-device .service-card:hover,
.touch-device .industry-card:hover,
.touch-device .feature-card:hover,
.touch-device .opportunity-card:hover,
.touch-device .sub-service-item:hover {
    transform: none;
}

.touch-device .touch-focus {
    transform: translateY(-5px) !important;
    box-shadow: var(--hover-shadow) !important;
}

/* Responsive Styles */
@media (max-width: 1100px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    nav ul li {
        margin: 0 10px;
    }
    
    .cta-buttons .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 992px) {
    header .container {
        padding: 0 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        flex: 1 0 auto;
    }
    
    .main-navigation {
        order: 3;
        width: 100%;
        margin-top: 10px;
        display: none;
    }

    .main-navigation.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li {
        margin: 8px 0;
    }
    
    .header-actions {
        flex: 0 0 auto;
    }
    
    .mobile-toggle {
        display: flex;
        order: 2;
    }
    
    .phone-number {
        margin-bottom: 5px;
    }
    
    .hero {
        margin-top: 55px;
    }
    
    nav ul li a.active:after {
        bottom: auto;
        width: 4px;
        height: 4px;
        left: -10px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    nav ul li a.dropdown-toggle.active:after {
        bottom: auto;
        width: 4px;
        height: 4px;
        left: -10px;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    .about-preview {
        padding: 60px 0;
    }
    
    .about-preview h2 {
        font-size: 2rem;
    }
    
    .about-preview p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .cta-buttons {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    
    .cta-buttons .btn {
        padding: 4px 8px;
        font-size: 0.7rem;
        margin-top: 3px;
    }
    
    .hero {
        height: auto;
        padding: 70px 0;
        margin-top: 50px;
    }
    
    .languages-floating {
        height: auto;
        margin: 20px 0;
    }
    
    .language-tag {
        font-size: 0.8rem;
        padding: 6px 12px;
        margin: 3px;
    }
    
    .supported-languages {
        margin: 15px 0;
        padding: 15px;
    }
    
    .supported-languages h4 {
        font-size: 1.1rem;
    }
    
    .language-item {
        font-size: 0.75rem;
        padding: 5px 10px;
        margin: 2px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content h3 {
        font-size: 1.5rem;
    }
    
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 12px 24px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .page-banner h1 {
        font-size: 2.5rem;
    }
    
    .page-banner p {
        font-size: 1.1rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-form, 
    .contact-info-box {
        padding: 25px 15px;
    }
    
    .contact-info-item {
        margin-bottom: 20px;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .social-icons a {
        margin: 0 8px 10px;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-image {
        order: -1;
        margin-bottom: 20px;
    }
    
    .our-mission .section-image {
        order: 0;
        margin-bottom: 0;
        margin-top: 20px;
    }
    
    .service-item {
        margin-bottom: 60px;
    }
    
    .service-header h2 {
        font-size: 1.8rem;
    }
    
    .sub-services {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .industry-card {
        max-width: 100%;
    }
    
    .industry-img {
        height: 250px;
    }

    
    .opportunities-section h2 {
        font-size: 1.8rem;
        margin-top: 40px;
    }
    
    .opportunities-section ul {
        padding-left: 20px;
    }
    
    .about-preview, 
    .services-overview,
    .service-list,
    .who-we-are, 
    .why-choose-us,
    .our-mission,
    .opportunities-section,
    .contact-section,
    .map-section {
        padding: 50px 0;
    }
    
    .cta-section {
        padding: 50px 0;
    }
    
    .footer-grid {
        gap: 30px;
    }
    
    .footer-about, 
    .footer-links, 
    .footer-contact {
        text-align: center;
    }
    
    .footer-about h3, 
    .footer-links h4, 
    .footer-contact h4 {
        font-size: 2rem;
    }
    
    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links ul li {
        margin-bottom: 0;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .service-card,
    .feature-card {
        padding: 20px 15px;
    }
    
    .service-icon,
    .feature-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 15px;
    }
    
    .service-icon i,
    .feature-icon i {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-content h3 {
        font-size: 1.3rem;
    }
    
    .hero-content .btn {
        font-size: 0.85rem;
        padding: 10px 20px;
    }
    
    .about-preview h2, 
    .services-overview h2, 
    .cta-section h2,
    .why-choose-us h2,
    .section-content h2 {
        font-size: 1.6rem;
    }
    
    .about-preview p, 
    .cta-section p {
        font-size: 1rem;
    }
    
    .page-banner h1 {
        font-size: 1.8rem;
    }
    
    .page-banner p {
        font-size: 1rem;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .job-type {
        margin-top: 10px;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
    
    .social-icons a {
        margin-bottom: 10px;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .sub-services {
        margin-top: 30px;
    }
    
    .sub-service-item {
        padding: 15px;
    }
    
    .sub-service-item h4 {
        font-size: 1.1rem;
    }
    
    .form-group label {
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 10px 16px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .opportunities-section h2 {
        font-size: 1.6rem;
        margin-top: 30px;
    }
    
    .password-container {
        padding: 25px 15px;
    }
    
    .password-container h2 {
        font-size: 1.5rem;
    }
    
    .password-container p {
        font-size: 0.9rem;
    }
    
    .password-form input {
        padding: 10px;
    }
    
    .password-form button {
        padding: 10px;
    }
}

/* Social Media */
.social-media {
    margin-top: 30px;
}

.social-media h4 {
    color: #fff;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    margin-right: 15px;
    transition: var(--transition);
}

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

/* Map Section */
.map-section {
    padding: 80px 0;
    background-color: var(--white);
}

.map-section h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--light-grey);
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Button styles for form */
button.btn {
    border: none;
    font-size: 1rem;
}

/* Placeholder Image Boxes */
.placeholder-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #e0f2ff;
    color: #1a73e8;
    border: 2px dashed #1a73e8;
    box-sizing: border-box;
    text-align: center;
    padding: 20px;
    font-family: 'Montserrat', sans-serif;
    width: 100%;
    height: 100%;
    min-height: 200px;
}

.placeholder-box h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #1a73e8;
}

.placeholder-box p {
    font-size: 0.9rem;
    margin: 0;
    color: #5f6368;
}

/* Size variations for placeholder boxes */
.placeholder-hero {
    height: 400px;
    background-color: #e0f2ff;
}

.placeholder-banner {
    height: 200px;
    background-color: #1a73e8;
    color: white;
    border-color: white;
}

.placeholder-square {
    min-height: 300px;
}

.placeholder-rectangle {
    min-height: 200px;
}

.placeholder-small {
    min-height: 150px;
}

.industry-img .placeholder-box {
    min-height: 200px;
    height: 200px;
}

.map-placeholder .placeholder-box {
    height: 400px;
}

/* Additional styles for special cases */
.section-image .placeholder-box {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Background Placeholder for hero and banner */
.placeholder-bg-primary {
    background-color: #e0f2ff;
}

.placeholder-bg-secondary {
    background-color: #1a73e8;
    color: white;
    border-color: white;
}

.placeholder-bg-secondary h4, 
.placeholder-bg-secondary p {
    color: white;
}

/* Placeholder Note */
.placeholder-note {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-style: italic;
    opacity: 0.7;
}

/* Navigation Dropdown Styles */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    transform: translateY(10px);
    z-index: 100;
    padding: 8px 0;
    margin-top: 10px;
}

.dropdown-toggle {
    position: relative;
    padding-right: 15px !important;
}

/* Remove the duplicate dropdown-toggle:after rule */
/* Comment out the entire block that's causing conflict */
/*
.dropdown-toggle:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    transform: translateY(-50%);
    font-size: 0.8em;
    color: currentColor;
    transition: transform 0.25s ease;
}

nav ul li:hover .dropdown-toggle:after {
    transform: translateY(-50%) rotate(180deg);
}
*/

nav ul li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 8px 15px;
    color: var(--secondary-color);
    font-size: 0.9rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-menu li a:hover {
    background-color: var(--light-grey);
    color: var(--primary-color);
}

.dropdown-menu li a:before {
    content: none;
}

.dropdown-menu li.active a {
    color: var(--primary-color);
    font-weight: 600;
    background-color: rgba(26, 115, 232, 0.05);
}

/* Mobile dropdown styles */
@media (max-width: 992px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: transparent;
        padding: 5px 0 5px 15px;
        display: none;
        border-top: none;
        margin-top: 0;
        margin-left: 10px;
        border-left: 1px solid var(--light-grey);
    }
    
    .dropdown-active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle:before {
        right: 0;
    }
    
    nav ul li:hover .dropdown-toggle:before {
        transform: translateY(-50%);
    }
    
    .dropdown-active .dropdown-toggle:before {
        transform: translateY(-50%) rotate(180deg);
    }
    
    .dropdown-menu li a {
        padding: 8px 15px;
    }
    
    .dropdown-menu li a:hover {
        background-color: transparent;
    }
}

/* Password Protection Styles */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.97), rgba(13, 71, 161, 0.95));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.password-overlay:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.password-container {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: fadeInUp 0.5s ease forwards;
}

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

.password-container h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.password-container p {
    color: var(--secondary-color);
    margin-bottom: 25px;
    line-height: 1.6;
}

.password-form {
    display: flex;
    flex-direction: column;
}

.password-form input {
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    margin-bottom: 20px;
    background-color: #f9fbfd;
    transition: all 0.25s ease;
}

.password-form input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
    background-color: #fff;
}

.password-error {
    color: var(--error-color);
    margin-top: 15px;
    font-size: 0.9rem;
    display: none;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.password-form button {
    background: var(--primary-gradient);
    color: var(--white);
    border: none;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--btn-shadow);
}

.password-form button:hover {
    background: var(--primary-gradient-hover);
    box-shadow: 0 6px 15px rgba(26, 115, 232, 0.3);
    transform: translateY(-2px);
}


/* Additional tiny screen adjustments */
@media (max-width: 350px) {
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content h3 {
        font-size: 1.1rem;
    }
    
    .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .gallery-item {
        height: 120px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .btn, nav ul li a, .service-card, .feature-card,
    .industry-card, .sub-service-item, .dropdown-toggle,
    .social-icons a, .footer-links ul li a, .service-card .read-more {
        /* Increase touch targets for better usability on touch devices */
        padding: calc(0.5em + 2px) calc(1em + 2px);
    }
    
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    nav ul li a {
        padding: 10px 3px;
    }
    
    .dropdown-toggle {
        padding-right: 25px !important;
    }
    
    .service-card, .feature-card, .industry-card, .sub-service-item, .gallery-item {
        /* Remove hover transform effects that can be annoying on touch */
        transform: none !important;
    }
    
    /* Add tap highlight color */
    .btn, nav ul li a, .service-card .read-more, .footer-links ul li a {
        -webkit-tap-highlight-color: rgba(26, 115, 232, 0.1);
    }
}

.opportunities-section .placeholder-box {
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(0, 57, 166, 0.1), rgba(0, 57, 166, 0.05));
    border: 1px dashed rgba(0, 57, 166, 0.3);
    transition: var(--transition);
}

.internship-section .placeholder-box {
    background: linear-gradient(135deg, rgba(0, 113, 188, 0.1), rgba(0, 113, 188, 0.05));
    border: 1px dashed rgba(0, 113, 188, 0.3);
}

.partnership-section .placeholder-box {
    background: linear-gradient(135deg, rgba(213, 43, 30, 0.1), rgba(213, 43, 30, 0.05));
    border: 1px dashed rgba(213, 43, 30, 0.3);
}

.internship-section .placeholder-box h4 {
    color: var(--kazakh-blue);
}

.partnership-section .placeholder-box h4 {
    color: var(--accent-color);
}

.opportunity-card .section-grid {
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.opportunity-card .section-grid:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent var(--accent-color) transparent transparent;
    opacity: 0.2;
}

.opportunities-section h2 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.opportunities-section h2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--kazakh-blue) 66.66%, var(--kazakh-blue) 100%);
}

@media (max-width: 768px) {
    .opportunity-card .section-grid,
    .internship-section .section-grid,
    .partnership-section .section-grid {
        padding: 30px 20px;
    }
    
    .opportunity-card {
        padding: 20px;
    }
    
    .internship-section,
    .partnership-section {
        margin-top: 40px;
    }
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-grey);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    color: var(--secondary-color);
    background-color: #f9fbfd;
    transition: all 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border,
.form-group select:focus ~ .focus-border {
    opacity: 1;
}

.form-group .focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right,
        var(--primary-color) 0%, var(--primary-color) 33.33%,
        var(--accent-color) 33.33%, var(--accent-color) 66.66%,
        var(--kazakh-blue) 66.66%, var(--kazakh-blue) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
    border-color: var(--error-color);
    background-color: rgba(244, 67, 54, 0.02);
}

.contact-form {
    position: relative;
    border-radius: var(--radius-md);
    border-top: 4px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
}

.success-message,
.error-message {
    padding: 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.error-message {
    background-color: rgba(244, 67, 54, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Form loading state */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.responsive-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: block;
}

.service-cta {
    background: linear-gradient(135deg, var(--primary-color), #0039A6);
    color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    padding: 60px 50px;
    margin: 60px 0 0 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
}

.service-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color), #0039A6, #007C30, #FFD700);
}

.service-cta::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 50px 50px 0;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.service-cta h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.service-cta p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 100%;
}

.service-cta .btn {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    font-size: 1.1rem;
    padding: 14px 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--btn-shadow);
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 5px;
    align-self: flex-start;
}

.service-cta .btn:hover {
    background: rgba(255,255,255,0.9);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-cta .btn:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.cta-content {
    flex: 1;
    text-align: left;
    padding-right: 30px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 20px;
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.cta-content h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 80px;
    height: 3px;
    background: rgba(255,255,255,0.5);
}

.cta-video-container {
    flex: 0 0 auto;
    width: 305px;
    height: 550px;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    border: 4px solid rgba(255,255,255,0.3);
    position: relative;
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
    margin-top: 10px;
    align-self: center;
}

.cta-video-container:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.cta-video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.cta-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.cta-video-container:hover .cta-video {
    transform: scale(1.03);
}

.cta-video-container::before {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    z-index: 3;
    opacity: 0.9;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.cta-video-container:hover::before {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hide play button when video is playing */
.cta-video-container.playing::before {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hide controls after inactivity */
.cta-video-container.controls-hidden::before,
.cta-video-container.controls-hidden:hover::after {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Add video controls when hovering over the video */
.cta-video-container.playing .cta-video:hover {
    cursor: pointer;
}

/* Add a pause indicator when hovering over playing video */
.cta-video-container.playing:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), transparent, rgba(0,0,0,0.3));
    z-index: 2;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Video progress bar */
.cta-video-container .video-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    z-index: 4;
    transition: width 0.1s linear;
}

.cta-video-container.playing .video-progress {
    display: block;
}

/* Nature Gallery Styles */
.nature-gallery h4 {
    margin-bottom: 1rem;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin: 0 auto;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100px;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Image Popup Styles */
.image-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.popup-nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.popup-content {
    max-width: 80%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: zoom 0.3s ease;
}

.nav-button {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    z-index: 2001;
}

.nav-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.prev-button {
    left: 20px;
}

.next-button {
    right: 20px;
}

.popup-thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    max-width: 90%;
    padding: 10px;
}

.popup-thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease, transform 0.2s ease;
    border: 2px solid transparent;
}

.popup-thumbnail:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.popup-thumbnail.active {
    opacity: 1;
    border-color: var(--white);
}

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

.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.close-popup:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .popup-content {
        max-width: 90%;
        max-height: 60vh;
    }
    
    .nav-button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .popup-thumbnails {
        gap: 5px;
    }
    
    .popup-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* Service CTA Layout */
.service-cta {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

/* Adjust CTA content to accommodate gallery */
.service-cta .cta-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 65%;
}

.cta-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .cta-text {
        text-align: center;
    }
    
    .cta-text h3 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
        color: white;
        font-weight: 700;
    }
    
    .cta-text p {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1rem;
        line-height: 1.5;
    }
}

.cta-button {
    align-self: flex-start;
}

/* Desktop video container positioning */
.desktop-only {
    display: block; /* Show the desktop video container by default */
}

.service-cta > .cta-content > .cta-video-container {
    display: none; /* Hide the video container inside cta-content on desktop */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .service-cta {
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-color), #0039A6);
        padding: 30px 20px;
    }
    
    .service-cta .cta-content {
        /* Ensure proper order on mobile */
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }
    
    .desktop-only {
        display: none; /* Hide desktop video container on mobile */
    }
    
    .service-cta > .cta-content > .cta-video-container {
        display: block; /* Show the video container inside cta-content on mobile */
        width: 305px;
        height: 550px;
        max-width: 100%;
        aspect-ratio: auto;
        transform: none;
        margin: 1.5rem auto;
        order: 2;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        border: 3px solid rgba(255, 255, 255, 0.3);
    }
    
    .service-cta > .cta-content > .cta-video-container::before {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
    }
    
    .service-cta > .cta-content > .cta-video-container .cta-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .nature-gallery {
        order: 3;
        margin-top: 1rem;
        width: 100%;
    }
    
    .nature-gallery h4 {
        color: white;
        margin-bottom: 0.75rem;
        font-size: 1.1rem;
        text-align: center;
    }
    
    .gallery-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        width: 100%;
    }
    
    .gallery-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .gallery-item {
        flex: 0 0 auto;
        width: 120px;
        height: 80px;
        scroll-snap-align: start;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        border: 2px solid rgba(255, 255, 255, 0.3);
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .cta-button {
        order: 4;
        align-self: center;
        margin-top: 1.5rem;
        background-color: white;
        color: var(--primary-color);
        font-weight: 600;
        padding: 12px 30px;
        border-radius: 30px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
}

/* Add pause icon when hovering over playing video */
.cta-video-container.playing:hover::before {
    content: '\f04c'; /* Font Awesome pause icon */
    opacity: 0.7;
    visibility: visible;
    background: rgba(0, 0, 0, 0.4);
    transform: translate(-50%, -50%) scale(0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.video-caption {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    z-index: 2;
    background: rgba(0, 57, 166, 0.7);
    padding: 5px 10px;
    border-radius: 4px 4px 0 0;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .video-caption {
        top: -25px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .service-cta {
        padding: 40px 25px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-video-container {
        width: 220px;
        height: 380px;
    }
}

/* Responsive styles for service-cta */
@media (max-width: 992px) {
    .service-cta {
        padding: 50px 40px;
        align-items: center;
        gap: 40px;
    }
    
    .cta-content h3 {
        font-size: 1.8rem;
    }
    
    .cta-content {
        padding-top: 10px;
    }
    
    .cta-video-container {
        width: 240px;
        height: 420px;
    }
}

@media (max-width: 768px) {
    .service-cta {
        flex-direction: column;
        text-align: center;
        padding: 50px 30px;
        align-items: center;
    }
    
    .cta-content {
        text-align: center;
        margin-bottom: 40px;
        padding-right: 0;
        padding-top: 0;
        align-items: center;
    }
    
    .service-cta p {
        max-width: 100%;
    }
    
    .service-cta .btn {
        align-self: center;
        margin-top: 10px;
    }
    
    .cta-content h3 {
        font-size: 1.7rem;
    }
    
    .cta-content h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .cta-video-container {
        width: 240px;
        height: 420px;
        transform: perspective(1000px) rotateY(0deg);
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .service-cta {
        padding: 35px 20px;
    }
    
    .cta-content h3 {
        font-size: 1.5rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-video-container {
        width: 220px;
        height: 380px;
    }
}