/* ========================================
   ASOPS Group - Modern Light Theme
   ======================================== */

/* === Global Styles === */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 150px;
}

/* === CSS Variables === */
:root {
    /* Color Palette - Light Theme (Based on Logo) */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e0e0e0;
    --text-primary: #2b2b2b;
    --text-secondary: #4a4a4a;
    --text-muted: #808080;

    /* Brand Colors from Logo */
    --brand-orange: #f37e20;
    --brand-orange-dark: #d96d15;
    --brand-gray: #2b2b2b;

    /* Accent Colors (Logo orange for all directions) */
    --accent-software: #f37e20;
    --accent-engineering: #f37e20;
    --accent-education: #f37e20;
    --accent-sports: #f37e20;

    /* Gradients */
    --gradient-software: linear-gradient(135deg, #f37e20 0%, #d96d15 100%);
    --gradient-engineering: linear-gradient(135deg, #f37e20 0%, #d96d15 100%);
    --gradient-education: linear-gradient(135deg, #f37e20 0%, #d96d15 100%);
    --gradient-sports: linear-gradient(135deg, #f37e20 0%, #d96d15 100%);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Inter', 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 40px;
    --card-padding: 25px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --glow-software: 0 0 20px rgba(243, 126, 32, 0.15);
    --glow-engineering: 0 0 20px rgba(243, 126, 32, 0.15);
    --glow-education: 0 0 20px rgba(243, 126, 32, 0.15);
    --glow-sports: 0 0 20px rgba(243, 126, 32, 0.15);

    /* Transitions */
    --transition-base: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    font-size: clamp(0.9rem, 1vw, 1rem);
}

/* === Animated Background === */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

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

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-software) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.orb-2 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-engineering) 0%, transparent 70%);
    top: 40%;
    right: 8%;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-education) 0%, transparent 70%);
    bottom: 15%;
    left: 50%;
    animation-delay: 10s;
}

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

/* === Header Section === */
.header-section {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Hero Section - Centered Logo */
.hero-section {
    padding: 5px 0;
    text-align: center;
}

.logo-img-center {
    height: 90px;
    width: auto;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.2));
    transition: var(--transition-base);
}

.logo-img-center:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.4));
}

.brand-name {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #1a1a1a 0%, #4a4a4a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 6px 12px;
}

.nav-link:hover {
    color: var(--brand-orange);
}

.nav-link:focus {
    outline: none;
}

.nav-link.active {
    color: var(--brand-orange);
    font-weight: 600;
}

.nav-separator {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* === Page Content === */
.page-content {
    padding: 60px 0;
    min-height: calc(100vh - 300px);
    position: relative;
    z-index: 10;
    background: #f8f9fa;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    text-align: center;
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.page-description p {
    margin-bottom: 20px;
}

/* === Main Content === */
.main-content {
    padding: 0;
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.container-fluid {
    padding: 0 4px;
}

/* Direction Cards - Horizontal Layout */
.direction-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 1000px;
    box-shadow: var(--shadow-sm);
    margin: 0;
}

.direction-card:last-child {
    border: 1px solid var(--card-border);
}

/* Gradient overlay on top */
.direction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: var(--transition-base);
    z-index: 1;
}

/* Colored borders for cards with pulse animation */
.direction-card:nth-child(1) {
    border-top: 3px solid var(--accent-software);
}

.direction-card:nth-child(2) {
    border-top: 3px solid var(--accent-engineering);
}

.direction-card:nth-child(3) {
    border-top: 3px solid var(--accent-education);
}

.direction-card:nth-child(4) {
    border-top: 3px solid var(--accent-sports);
}

/* Pulse animation on top border on hover */
.direction-card:hover {
    animation: borderPulse 2s ease-in-out infinite;
}

@keyframes borderPulse {
    0%, 100% {
        border-top-color: var(--accent-software);
    }
    50% {
        border-top-color: rgba(243, 126, 32, 0.6);
    }
}

/* Hover effects */
.direction-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.direction-card:nth-child(1):hover {
    box-shadow: 0 8px 32px rgba(243, 126, 32, 0.25);
}

.direction-card:nth-child(2):hover {
    box-shadow: 0 8px 32px rgba(243, 126, 32, 0.25);
}

.direction-card:nth-child(3):hover {
    box-shadow: 0 8px 32px rgba(243, 126, 32, 0.25);
}

.direction-card:nth-child(4):hover {
    box-shadow: 0 8px 32px rgba(243, 126, 32, 0.25);
}

/* Card Images with parallax effect */
.card-image {
    width: 100%;
    flex: 1;
    min-height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    transition: background 0.3s ease;
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease-out;
}

.direction-card:hover .card-image img {
    transform: scale(1.05) translateY(-3px);
}

.direction-card:hover .card-image::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.45));
}

/* Card Body Content */
.card-body-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

/* Card Content with improved typography */
.card-title {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.card-content {
    flex-grow: 0;
    margin-bottom: 0;
    font-size: clamp(0.88rem, 1.2vw, 0.95rem);
}

.card-content p {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    line-height: 1.75;
    max-width: 65ch;
    text-align: left;
}

.card-content strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Services List with smooth animations */
.services-list {
    margin: 0;
    padding-left: 1rem;
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease-out, opacity 0.3s ease-out, margin-top 0.3s ease-out;
}

.services-list.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.8rem;
}

.services-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: clamp(0.82rem, 1.1vw, 0.88rem);
    line-height: 1.6;
    position: relative;
    padding-left: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    max-width: 60ch;
}

.services-list.show li {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animation for list items */
.services-list.show li:nth-child(1) { transition-delay: 0.05s; }
.services-list.show li:nth-child(2) { transition-delay: 0.1s; }
.services-list.show li:nth-child(3) { transition-delay: 0.15s; }
.services-list.show li:nth-child(4) { transition-delay: 0.2s; }
.services-list.show li:nth-child(5) { transition-delay: 0.25s; }
.services-list.show li:nth-child(6) { transition-delay: 0.3s; }
.services-list.show li:nth-child(7) { transition-delay: 0.35s; }
.services-list.show li:nth-child(8) { transition-delay: 0.4s; }

.services-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: 600;
}

.direction-card:hover .services-list li::before {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Compact List */
.compact-list {
    margin: 0.5rem 0;
    padding-left: 1rem;
    list-style: none;
}

.compact-list li {
    margin-bottom: 0.35rem;
    font-size: 0.84rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 0.9rem;
}

.compact-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-education);
}

/* Highlight Box */
.highlight-box {
    background: rgba(255, 51, 102, 0.08);
    padding: 0.7rem;
    border-radius: 6px;
    border-left: 3px solid var(--accent-education);
    margin-top: 0.5rem;
}

.highlight-box p {
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    font-size: 0.84rem;
}

/* Sport Sections */
.sport-section {
    margin-bottom: 0.6rem;
}

.subsection-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-sports);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Card Footer Button with ripple effect */
.card-footer-btn {
    margin-top: auto;
    padding-top: 0.6rem;
}

.btn-custom {
    padding: 10px 20px;
    font-size: clamp(0.82rem, 1.1vw, 0.88rem);
    font-weight: 500;
    border-radius: 6px;
    border: 2px solid var(--card-border);
    transition: all 0.3s ease-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(243, 126, 32, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-custom:active::before {
    width: 300px;
    height: 300px;
}

.btn-custom:active {
    transform: scale(0.98);
}

.btn-custom i {
    transition: transform 0.3s ease-out;
}

.btn-custom[aria-expanded="true"] i {
    transform: rotate(90deg);
}

.btn-custom:hover {
    border-color: transparent;
    color: white;
    transform: translateX(5px);
    text-decoration: none;
}

.btn-custom:hover i {
    transform: translateX(3px);
}

.btn-custom[aria-expanded="true"]:hover i {
    transform: rotate(90deg) translateX(3px);
}

.direction-card:nth-child(1) .btn-custom:hover {
    background: var(--gradient-software);
    box-shadow: 0 4px 16px rgba(157, 78, 255, 0.3);
}

.direction-card:nth-child(2) .btn-custom:hover {
    background: var(--gradient-engineering);
    box-shadow: 0 4px 16px rgba(0, 168, 204, 0.3);
}

.direction-card:nth-child(3) .btn-custom:hover {
    background: var(--gradient-education);
    box-shadow: 0 4px 16px rgba(255, 51, 102, 0.3);
}

.direction-card:nth-child(4) .btn-custom:hover {
    background: var(--gradient-sports);
    box-shadow: 0 4px 16px rgba(0, 204, 102, 0.3);
}

.btn-disabled {
    cursor: not-allowed;
    opacity: 0.4;
    pointer-events: none;
}

/* === Footer Section === */
.footer-section {
    background: #f8f9fa;
    color: var(--text-primary);
    padding: 30px 0 25px;
    margin-top: auto;
    position: relative;
    z-index: 10;
    border-top: 2px solid var(--card-border);
}

/* Footer Content Wrapper */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Footer Addresses Block */
.footer-addresses {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

/* Footer Logo Wrapper */
.footer-logo-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.footer-logo {
    height: 60px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.7;
}

.footer-copyright {
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--card-border);
}

.address-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
}

.address-item i {
    color: var(--accent-software);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.address-item span {
    color: var(--text-secondary);
}

.address-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.address-item a:hover {
    color: var(--accent-software);
}

.office-contacts i {
    color: var(--accent-software);
    font-size: clamp(0.73rem, 0.9vw, 0.78rem);
}

/* Interactive contacts */
.office-contacts span {
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.office-contacts span:hover {
    color: var(--text-primary);
}

.office-contacts span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-software);
    transition: width 0.3s ease;
}

.office-contacts span:hover::after {
    width: 100%;
}

/* Tooltip for contacts */
.office-contacts span[data-tooltip] {
    position: relative;
}

.office-contacts span[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: var(--text-primary);
    color: white;
    font-size: 0.7rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    animation: tooltipFade 0.3s forwards;
    pointer-events: none;
    margin-bottom: 4px;
}

@keyframes tooltipFade {
    to {
        opacity: 1;
    }
}

/* Copy success feedback */
.office-contacts span.copied {
    color: #28a745;
}

.office-contacts span.copied::after {
    width: 100%;
    background: #28a745;
}

/* === Directions Title === */
.directions-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: -0.5px;
}

/* === Single Column Cards === */
.directions-column {
    max-width: 900px;
    margin: 0 auto 60px;
}

.direction-card-column {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
    display: flex;
    flex-direction: row;
    margin-bottom: 30px;
}

.direction-card-column:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.direction-card-column:nth-child(1) {
    border-left: 4px solid var(--accent-software);
}

.direction-card-column:nth-child(2) {
    border-left: 4px solid var(--accent-engineering);
}

.direction-card-column:nth-child(3) {
    border-left: 4px solid var(--accent-education);
}

.direction-card-column:nth-child(4) {
    border-left: 4px solid var(--accent-sports);
}

.card-image-column {
    width: 350px;
    min-width: 350px;
    max-width: 350px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.card-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease-out;
}

.direction-card-column:hover .card-image-column img {
    transform: scale(1.05);
}

.card-image-column::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.05), rgba(0,0,0,0.15));
    transition: background 0.3s ease;
    pointer-events: none;
}

.direction-card-column:hover .card-image-column::after {
    background: linear-gradient(to right, rgba(0,0,0,0.08), rgba(0,0,0,0.2));
}

.card-body-column {
    flex: 1;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body-column .card-title {
    font-size: clamp(1.4rem, 1.8vw, 1.6rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.card-body-column .card-content {
    flex-grow: 1;
}

.card-body-column .card-content p {
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 0.9rem;
}

.card-body-column .services-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.8rem;
}

.card-body-column .services-list.show {
    opacity: 1;
    max-height: none;
    margin-top: 0.8rem;
}

.card-body-column .services-list li {
    padding: 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 0.95vw, 0.9rem);
    line-height: 1.8;
    opacity: 1;
    transform: translateX(0);
}

.card-body-column .services-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-software);
    font-size: 1rem;
}

.card-body-column .card-footer-btn {
    margin-top: 1.5rem;
}

/* === Page Sections === */
.page-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.page-section:nth-of-type(odd) {
    background: #f8f9fa;
}

.page-section:nth-of-type(even) {
    background: white;
}

.section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.section-content {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.section-content p {
    margin-bottom: 1.2rem;
}

/* === Mission and Values === */
.mission-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    text-align: center;
}

.mission-text p {
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.8;
    color: var(--text-secondary);
}

.mission-text strong {
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 4rem;
    max-width: 1100px;
    margin: 0 auto;
}

.value-item {
    text-align: left;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.value-title {
    font-size: clamp(1.15rem, 1.35vw, 1.25rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.value-description {
    font-size: clamp(0.9rem, 1vw, 0.95rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

/* === Company Statistics === */
.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    border-left: 3px solid rgba(243, 126, 32, 0.3);
    transition: all 0.3s ease;
}

.stat-item:hover {
    box-shadow: var(--shadow-sm);
    border-left-color: rgba(243, 126, 32, 0.6);
    transform: translateY(-2px);
}

.stat-number {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1;
    text-shadow: 0 0 2px rgba(243, 126, 32, 0.15);
}

.stat-label {
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    color: var(--text-secondary);
    line-height: 1.3;
}

/* === Company Certifications === */
.company-certifications {
    margin-top: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.certifications-title {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(243, 126, 32, 0.15);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.certifications-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
    justify-content: center;
}

.certifications-grid .cert-item {
    flex: 0 1 calc(33.333% - 0.7rem);
    max-width: calc(33.333% - 0.7rem);
}

.certifications-grid .cert-item:nth-child(n+4) {
    flex: 0 1 calc(33.333% - 0.7rem);
    max-width: calc(33.333% - 0.7rem);
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--card-border);
    border-bottom: 2px solid rgba(243, 126, 32, 0.2);
    transition: all 0.3s ease;
}

.cert-item:hover {
    box-shadow: var(--shadow-sm);
    border-bottom-color: rgba(243, 126, 32, 0.5);
    transform: translateY(-2px);
}

.cert-item i {
    font-size: 1.5rem;
    color: var(--text-primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 1px rgba(243, 126, 32, 0.2));
}

.cert-item p {
    font-size: clamp(0.85rem, 0.95vw, 0.9rem);
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
    text-align: left;
}

/* === Education Section === */
.education-intro {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.education-logo {
    width: 138px;
    height: 138px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.education-intro p {
    margin: 0;
    flex: 1;
}

.card-content > .product-link {
    display: inline-flex;
    margin-top: 1rem;
}

/* === Products Section === */
.products-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
}

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

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

.product-logo {
    width: 138px;
    height: 138px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: clamp(0.95rem, 1.05vw, 1rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.product-description {
    font-size: clamp(0.85rem, 0.95vw, 0.9rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.product-link {
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    color: var(--accent-software);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.product-link:hover {
    color: var(--accent-engineering);
}

.product-link i {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.product-link:hover i {
    transform: translateX(3px);
}

/* === Responsive Design === */

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .brand-name {
        font-size: 2rem;
    }

    .logo-img-center {
        height: 80px;
    }

    /* Single Column Cards - Tablet */
    .direction-card-column {
        flex-direction: column;
    }

    .card-image-column {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 250px;
    }

    .card-body-column {
        padding: 24px;
    }

    /* Footer - Stack on Tablets */
    .footer-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.8rem;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-section {
        padding: 20px 0 10px;
    }

    .hero-section {
        padding: 10px 0;
    }

    .logo-img-center {
        height: 60px;
        margin-bottom: 10px;
    }

    .brand-name {
        font-size: 1.8rem;
    }

    .brand-tagline {
        font-size: 0.85rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    /* Values grid - Mobile */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-item {
        padding-bottom: 1.5rem;
    }

    /* Single Column Cards - Mobile */
    .direction-card-column {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .card-image-column {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 220px;
    }

    .card-body-column {
        padding: 20px;
    }

    /* Education - Mobile */
    .education-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .education-logo {
        width: 110px;
        height: 110px;
    }

    /* Products - Mobile */
    .product-logo {
        width: 110px;
        height: 110px;
    }

    .product-name {
        font-size: 0.9rem;
    }

    .product-description {
        font-size: 0.82rem;
    }

    .product-link {
        font-size: 0.8rem;
    }

    /* Company Stats - Mobile */
    .company-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .certifications-grid .cert-item {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .certifications-grid .cert-item:nth-child(n+4) {
        flex: 0 1 100%;
        max-width: 100%;
    }

    .cert-item {
        padding: 1.25rem;
    }

    .cert-item i {
        font-size: 2rem;
    }

    /* Footer - Mobile */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .footer-addresses {
        gap: 0.75rem;
        text-align: center;
    }

    .footer-logo-wrapper {
        order: -1;
    }

    .card-title {
        font-size: 1.15rem;
        margin-bottom: 0.7rem;
    }

    .card-content {
        font-size: 0.88rem;
    }

    .card-content p {
        margin-bottom: 0.6rem;
        line-height: 1.6;
    }

    .services-list {
        margin-top: 0.6rem;
    }

    .services-list li {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
        line-height: 1.5;
    }

    .card-footer-btn {
        padding-top: 0.5rem;
    }

    .btn-custom {
        width: 100%;
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .footer-section {
        padding: 20px 0;
    }

    .gradient-orb {
        filter: blur(80px);
        opacity: 0.1;
    }

    .main-content {
        padding-bottom: 15px;
    }

    .row.g-2 {
        gap: 0 !important;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .header-section {
        padding: 15px 0 8px;
    }

    .hero-section {
        padding: 8px 0;
    }

    .logo-img-center {
        height: 50px;
        margin-bottom: 8px;
    }

    .brand-name {
        font-size: 1.4rem;
    }

    .header-nav {
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .nav-link {
        padding: 0.3rem 0.5rem;
    }

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

    .direction-card {
        margin-bottom: 12px;
    }

    .card-image {
        height: 180px;
        min-height: 180px;
        max-height: 180px;
    }

    .card-body-content {
        padding: 12px 15px;
    }

    .card-title {
        font-size: 1.05rem;
        margin-bottom: 0.6rem;
    }

    .card-content {
        font-size: 0.85rem;
    }

    .card-content p {
        margin-bottom: 0.5rem;
        line-height: 1.55;
    }

    .services-list {
        margin-top: 0.5rem;
    }

    .services-list li {
        font-size: 0.78rem;
        margin-bottom: 0.35rem;
        padding-left: 1rem;
    }

    .btn-custom {
        padding: 9px 16px;
        font-size: 0.82rem;
    }

    .footer-section {
        padding: 12px 0;
    }

    .footer-offices {
        gap: 1rem;
    }

    .office-location {
        font-size: 0.85rem;
    }

    .office-details {
        font-size: 0.75rem;
    }

    .office-contacts {
        font-size: 0.7rem;
    }

    .container-fluid {
        padding: 0 8px;
    }
}

/* === Responsive for Horizontal Cards === */

/* Tablets and smaller */
@media (max-width: 992px) {
    .directions-title {
        font-size: clamp(1.6rem, 2.5vw, 2rem);
        margin-bottom: 2.5rem;
    }

    /* Certifications grid for tablets */
    .certifications-grid .cert-item {
        flex: 0 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .certifications-grid .cert-item:nth-child(n+4) {
        flex: 0 1 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
    }

    .direction-card-horizontal {
        flex-direction: column;
        min-height: auto;
    }

    .card-image-horizontal {
        width: 100%;
        height: 220px;
        min-width: 100%;
    }

    .card-body-horizontal {
        width: 100%;
        padding: 22px 26px;
    }

    .card-body-horizontal .card-title {
        font-size: clamp(1.3rem, 1.7vw, 1.5rem);
    }

    .card-body-horizontal .card-content p {
        font-size: clamp(0.88rem, 0.98vw, 0.92rem);
    }

    .card-body-horizontal .services-list li {
        font-size: clamp(0.82rem, 0.92vw, 0.86rem);
        padding: 0.32rem 0;
    }

    .footer-sitemap {
        gap: 2.5rem;
    }

    .page-section {
        padding: 60px 0;
    }

    .section-title {
        font-size: clamp(1.6rem, 2.5vw, 2rem);
    }

    .section-content {
        font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .directions-title {
        font-size: 1.6rem;
        margin-bottom: 2rem;
    }

    .directions-grid {
        margin-bottom: 40px;
    }

    .card-image-horizontal {
        height: 200px;
    }

    .card-body-horizontal {
        padding: 20px 24px;
    }

    .card-body-horizontal .card-title {
        font-size: 1.3rem;
        margin-bottom: 0.85rem;
    }

    .card-body-horizontal .card-content p {
        font-size: 0.9rem;
        line-height: 1.65;
    }

    .card-body-horizontal .services-list li {
        font-size: 0.85rem;
        padding: 0.3rem 0;
        padding-left: 1.3rem;
    }

    .card-body-horizontal .card-footer-btn {
        margin-top: 1.2rem;
    }

    .footer-sitemap {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-logo {
        height: 50px;
    }

    .page-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .section-content {
        font-size: 0.95rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .directions-title {
        font-size: 1.4rem;
        margin-bottom: 1.8rem;
    }

    .card-image-horizontal {
        height: 180px;
    }

    .card-body-horizontal {
        padding: 18px 20px;
    }

    .card-body-horizontal .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .card-body-horizontal .card-content p {
        font-size: 0.88rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    .card-body-horizontal .services-list {
        margin-top: 0.65rem;
    }

    .card-body-horizontal .services-list li {
        font-size: 0.82rem;
        padding: 0.28rem 0;
        padding-left: 1.2rem;
    }

    .card-body-horizontal .services-list li::before {
        font-size: 0.9rem;
    }

    .card-body-horizontal .card-footer-btn {
        margin-top: 1rem;
    }

    .footer-logo {
        height: 45px;
    }

    .footer-top {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .footer-sitemap {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .page-section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .section-content {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .section-content p {
        margin-bottom: 1rem;
    }
}

/* === Accessibility === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-orb {
        animation: none;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--accent-engineering);
    outline-offset: 3px;
}

/* High Contrast */
@media (prefers-contrast: high) {
    .direction-card {
        border: 2px solid var(--text-primary);
    }
}

/* === Print Styles === */
@media print {
    .animated-bg {
        display: none;
    }

    .header-section,
    .footer-section {
        background: white !important;
        color: black !important;
    }

    .direction-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .btn-custom {
        display: none;
    }
}
