/* ===== CSS VARIABLES ===== */
:root {
    --primary: #0A66C2;
    --primary-dark: #004182;
    --primary-light: #378FE9;
    --secondary: #666666;           /* Darker gray for better contrast on white */
    --dark: #1a1a1a;               /* Dark text instead of dark background */
    --darker: #ffffff;             /* Changed: Pure white background */
    --section-bg: #f8f9fa;         /* Changed: Very light gray for sections */
    --card-bg: #ffffff;            /* Changed: White cards */
    --light: #1a1a1a;              /* Changed: Dark text on white */
    --gray: #e9ecef;               /* Changed: Light border color */
    --gray-light: #f8f9fa;         /* Changed: Very light gray */
    --gray-dark: #495057;          /* Changed: Medium gray */
    --success: #10b981;
    --border-radius: 12px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* Lighter shadow */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--light);           /* Dark text */
    background-color: var(--darker); /* White background */
    overflow-x: hidden;
}

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

/* ===== HEADER STYLES ===== */
header {
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.97); /* White with slight transparency */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(233, 236, 239, 0.8); /* Light border */
}

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

/* SATELLITE LOGO */
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(10, 102, 194, 0.08); /* Lighter blue tint */
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(10, 102, 194, 0.15);
}

.language-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 36px;
}

.language-btn:hover {
    color: var(--primary-light);
}

.language-btn.active {
    background: var(--gradient);
    color: white;
}

.flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: block;
}

.flag-icon.en {
    background-image: linear-gradient(to bottom, #012169 0%, #012169 33%, #fff 33%, #fff 66%, #c8102e 66%, #c8102e 100%);
}

.flag-icon.de {
    background-image: linear-gradient(to bottom, #000 0%, #000 33%, #dd0000 33%, #dd0000 66%, #ffcc00 66%, #ffcc00 100%);
}

/* NAVIGATION */
nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 0;
}

nav a:hover, nav a.active {
    color: var(--primary); /* Use primary color instead of light */
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: var(--transition);
    border-radius: 2px;
}

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

/* ZABBIX BUTTON */
.zabbix-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1f4a7c 0%, #0d2c4f 100%);
    border: 1px solid rgba(31, 74, 124, 0.4);
    color: #FD3A4A;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0.8;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.zabbix-btn:hover {
    opacity: 1;
    background: linear-gradient(135deg, #255c9c 0%, #113a66 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(31, 74, 124, 0.3);
}

.zabbix-icon {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* LOGIN BUTTON */
.login-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 102, 194, 0.12); /* Lighter blue */
    border: 1px solid rgba(10, 102, 194, 0.2);
    color: var(--primary);
    font-size: 1rem;
    opacity: 0.9;
    transition: var(--transition);
    cursor: pointer;
}

.login-btn:hover {
    opacity: 1;
    background: rgba(10, 102, 194, 0.2);
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary); /* Primary color on white */
    cursor: pointer;
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
    width: 48px;
    height: 48px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background: rgba(10, 102, 194, 0.15);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
    background: var(--darker); /* White background */
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-description {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* BUTTON STYLES */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.2rem;
    background: var(--gradient);
    color: white;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 14px 0 rgba(10, 102, 194, 0.2); /* Lighter shadow */
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px 0 rgba(10, 102, 194, 0.25);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gray);
    color: var(--light); /* Dark text */
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
}

.btn-linkedin {
    background: #0A66C2;
}

.btn-xing {
    background: #006567;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--card-bg); /* White */
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow); /* Lighter shadow */
    border: 1px solid var(--gray); /* Light border */
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

/* SATELLITE PROFILE ICON */
.profile-header {
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.profile-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.profile-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    color: var(--light); /* Dark text */
    margin-bottom: 0.5rem;
}

.profile-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
}

.detail-item {
    margin-bottom: 2rem;
}

.detail-item h4 {
    font-size: 1.3rem;
    color: var(--light); /* Dark text */
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray);
    padding-bottom: 0.5rem;
}

.detail-item p {
    color: var(--secondary);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.highlight-text {
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0 1rem 0;
    font-size: 1rem;
}

.detail-item ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
}

.detail-item li {
    color: var(--secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.detail-item li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ===== SECTION STYLES ===== */
.section {
    padding: 5rem 0;
    background-color: var(--section-bg); /* Light gray sections */
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    color: var(--light); /* Dark text */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--card-bg); /* White */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow); /* Lighter shadow */
    border: 1px solid var(--gray); /* Light border */
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 102, 194, 0.3);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.08); /* Lighter shadow */
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light); /* Dark text */
}

.skill-card p {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.5rem;
}

.tag {
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(10, 102, 194, 0.15);
}

/* ===== EXPERIENCE SECTION ===== */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--card-bg); /* White */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow); /* Lighter shadow */
    border: 1px solid var(--gray); /* Light border */
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 102, 194, 0.3);
}

.experience-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--light); /* Dark text */
    border-bottom: 2px solid var(--gray);
    padding-bottom: 0.5rem;
}

.experience-card ul {
    list-style: none;
    padding-left: 0;
}

.experience-card li {
    margin-bottom: 0.8rem;
    color: var(--secondary);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.experience-card li:before {
    content: "▸";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.experience-note {
    text-align: center;
    padding: 1.5rem;
    background: rgba(10, 102, 194, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(10, 102, 194, 0.1);
    color: var(--secondary);
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.experience-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.experience-note a:hover {
    text-decoration: underline;
}

/* ===== CERTIFICATIONS SECTION ===== */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.certification-card {
    background: var(--card-bg); /* White */
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow); /* Lighter shadow */
    border: 1px solid var(--gray); /* Light border */
    transition: var(--transition);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.certification-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 102, 194, 0.3);
    box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.08); /* Lighter shadow */
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    flex-shrink: 0;
    border: 1px solid rgba(10, 102, 194, 0.15);
}

.cert-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--light); /* Dark text */
}

.cert-issuer {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cert-details {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cert-id {
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.85rem;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ===== REFERENCE SECTION ===== */
.reference-card {
    background: var(--card-bg); /* White */
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow); /* Lighter shadow */
    border: 1px solid var(--gray); /* Light border */
    max-width: 800px;
    margin: 0 auto;
}

.reference-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
}

.reference-content p.highlight {
    color: var(--light); /* Dark text */
    font-weight: 500;
    background: rgba(10, 102, 194, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.reference-author {
    margin-top: 2.5rem;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.reference-author span {
    display: block;
    color: var(--secondary);
    font-weight: 400;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* ===== CONTACT SECTION ===== */
.contact-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    text-align: center;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
footer {
    background: var(--section-bg); /* Light gray */
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--gray);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* SATELLITE FOOTER LOGO */
.footer-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-tagline {
    color: var(--secondary);
    text-align: center;
    max-width: 600px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
}

.copyright {
    color: var(--secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-top: 2rem;
}

/* ===== LOGIN MODAL ===== */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* White overlay */
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.login-modal.active {
    display: flex;
}

.login-box {
    background: var(--card-bg); /* White */
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(10, 102, 194, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

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

.login-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--light); /* Dark text */
}

.login-input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa; /* Light gray input */
    border: 1px solid var(--gray);
    border-radius: var(--border-radius);
    color: var(--light); /* Dark text */
    font-size: 1rem;
}

.login-input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-submit {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.login-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(10, 102, 194, 0.25);
}

.login-error {
    color: #dc3545; /* Standard red */
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

.login-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.login-close:hover {
    color: var(--light); /* Dark text */
}

.login-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--secondary);
    text-align: center;
}

.change-password-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    transition: var(--transition);
}

.change-password-btn:hover {
    color: var(--primary-dark);
}

/* ===== PASSWORD CHANGE MODAL ===== */
.password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95); /* White overlay */
    backdrop-filter: blur(10px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.password-modal.active {
    display: flex;
}

.password-box {
    background: var(--card-bg); /* White */
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(10, 102, 194, 0.2);
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

.password-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light); /* Dark text */
}

.password-success {
    color: var(--success);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: none;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-nav {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98); /* White */
    padding: 2rem;
    box-shadow: var(--shadow);
    z-index: 999;
    border-top: 1px solid var(--gray);
    backdrop-filter: blur(10px);
    display: none;
}

.mobile-nav.active {
    display: block;
    animation: slideDown 0.3s ease;
}

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

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.mobile-nav li {
    width: 100%;
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    text-decoration: none;
    color: var(--secondary);
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    width: 100%;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--primary); /* Primary color */
    background: rgba(10, 102, 194, 0.08); /* Lighter blue */
}

/* MOBILE LANGUAGE SWITCHER */
.mobile-language-switcher {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 1rem;
}

.mobile-nav .language-btn {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    min-height: 48px;
}

/* ===== LANGUAGE-SPECIFIC CONTENT ===== */
.lang-en {
    display: block;
}

.lang-de {
    display: none;
}

/* ===== MOBILE & TABLET LOGIN ===== */
@media (max-width: 768px) {
    .login-container, 
    .auth-box, 
    .login-form-wrapper {
        width: 90% !important;
        max-width: 400px !important;
        margin: 20px auto !important;
        padding: 25px !important;
    }
    
    /* Make inputs bigger for touch */
    input[type="text"], 
    input[type="password"], 
    input[type="email"] {
        font-size: 16px !important; /* Prevents iOS zoom */
        height: 50px !important;
        padding: 12px 15px !important;
    }
    
    /* Bigger login button */
    .login-btn, 
    .submit-btn, 
    button[type="submit"] {
        padding: 15px 25px !important;
        font-size: 18px !important;
        height: 55px !important;
    }
    
    /* Adjust spacing */
    .form-group {
        margin-bottom: 20px !important;
    }
}

/* For tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-container, 
    .auth-box {
        width: 70% !important;
        max-width: 500px !important;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1100px) {
    nav ul {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .skills-grid,
    .experience-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    /* Hide desktop navigation */
    nav {
        display: none;
    }
    
    /* Keep language switcher visible on mobile */
    .language-switcher {
        display: flex !important;
        background: rgba(10, 102, 194, 0.08);
        padding: 0.5rem;
        border-radius: 30px;
        border: 1px solid rgba(10, 102, 194, 0.15);
        margin-right: 0.5rem;
    }
    
    .language-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
        min-height: 44px;
        gap: 0.5rem;
    }
    
    .flag-icon {
        width: 24px !important;
        height: 18px !important;
        min-width: 24px;
        min-height: 18px;
    }
    
    /* Keep all buttons visible */
    .zabbix-btn,
    .login-btn {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Adjust header layout for mobile */
    .header-content {
        flex-wrap: nowrap;
        gap: 1rem;
        justify-content: space-between;
    }
    
    .header-left {
        flex: 0 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 0;
        max-width: 150px;
    }
    
    /* Adjust button sizes for mobile */
    .zabbix-btn,
    .login-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .mobile-menu-btn {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
    
    /* Adjust mobile nav */
    .mobile-nav {
        top: 85px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .certification-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cert-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .login-box,
    .password-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    /* Adjust header for smaller screens */
    .header-left {
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 1.3rem;
        max-width: 120px;
    }
    
    .language-switcher {
        padding: 0.4rem;
    }
    
    .language-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-height: 40px;
        gap: 0.4rem;
    }
    
    .flag-icon {
        width: 22px !important;
        height: 16px !important;
        min-width: 22px;
        min-height: 16px;
    }
    
    .zabbix-btn,
    .login-btn,
    .mobile-menu-btn {
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.95rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .profile-card,
    .skill-card,
    .experience-card,
    .certification-card {
        padding: 1.5rem;
    }
    
    .reference-card {
        padding: 2rem;
    }
    
    /* Adjust header for very small screens */
    .header-left {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.2rem;
        max-width: 100px;
    }
    
    .language-switcher {
        padding: 0.3rem;
    }
    
    .language-btn {
        padding: 0.3rem 0.5rem;
        font-size: 0.8rem;
        min-height: 36px;
        gap: 0.3rem;
    }
    
    .flag-icon {
        width: 20px !important;
        height: 15px !important;
        min-width: 20px;
        min-height: 15px;
    }
    
    .zabbix-btn,
    .login-btn,
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    /* Adjust mobile nav */
    .mobile-nav {
        padding: 1.2rem;
    }
    
    .mobile-nav a {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .header-content {
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1.1rem;
        max-width: 90px;
    }
    
    .language-switcher {
        padding: 0.25rem;
    }
    
    .language-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
        min-height: 34px;
        min-width: 50px;
        justify-content: center;
    }
    
    .flag-icon {
        width: 18px !important;
        height: 14px !important;
        min-width: 18px;
        min-height: 14px;
    }
    
    .zabbix-btn,
    .login-btn,
    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .mobile-menu-btn {
        font-size: 1.1rem;
    }
    
    /* Hide text on language buttons for very small screens, keep flags */
    @media (max-width: 360px) {
        .language-btn span:not(.flag-icon) {
            display: none;
        }
        
        .language-btn {
            padding: 0.5rem;
            min-width: 40px;
        }
        
        .flag-icon {
            width: 24px !important;
            height: 18px !important;
        }
    }
}
