:root {
    --bg-dark: #030303;
    --bg-card: rgba(12, 16, 13, 0.96);
    --primary-green: #00ff66; /* Vibrant high-tech green */
    --accent-green: #4ade80;  /* Soft light green */
    --text-primary: #e2f5e9;  /* High contrast light mint text */
    --text-muted: #82b094;     /* Muted green text */
    --border-color: rgba(74, 222, 128, 0.15);
    --border-glow: rgba(74, 222, 128, 0.35);
    --glow-shadow: 0 0 15px rgba(0, 255, 102, 0.25);
    --glow-shadow-strong: 0 0 25px rgba(0, 255, 102, 0.45);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, rgba(0, 255, 102, 0.05), transparent 30%),
                linear-gradient(180deg, #050806 0%, #020302 100%);
    color: var(--text-primary);
}

header {
    background: rgba(8, 12, 9, 0.96);
    color: var(--accent-green);
    padding: 30px 0 40px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: inset 0 -2px 20px rgba(0, 255, 102, 0.04);
}

h1 {
    margin: 0;
    font-size: 2.6rem;
    letter-spacing: 1px;
    color: var(--primary-green);
    text-shadow: 0 0 15px rgba(0, 255, 102, 0.35);
}

nav {
    margin: 22px 0 0;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    display: inline-block;
    margin: 0 14px;
}

nav a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

nav a:hover {
    color: #ffffff;
    background: rgba(0, 255, 102, 0.08);
    border: 1px solid rgba(0, 255, 102, 0.2);
    box-shadow: var(--glow-shadow);
    text-decoration: none;
}

main {
    width: min(100%, 1080px);
    margin: 40px auto;
    padding: 0 20px;
}

section {
    background: var(--bg-card);
    padding: 32px;
    margin: 25px 0;
    border-radius: 16px;
    border: 2px solid transparent;
    border-color: var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.02);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                border-color 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), 
                box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
                background 0.3s ease;
}

section:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.06) 0%, var(--bg-card) 100%);
    border-color: var(--border-glow);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6), 
                0 0 35px rgba(0, 255, 102, 0.15), 
                inset 0 0 20px rgba(0, 255, 102, 0.03);
}

h2 {
    margin-top: 0;
    color: var(--primary-green);
    font-size: 1.8rem;
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.15);
}

p,
ul li {
    line-height: 1.8;
    color: var(--text-primary);
}

strong {
    color: var(--primary-green);
}

ul {
    padding-left: 20px;
}

ul li {
    margin-bottom: 12px;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(0, 255, 102, 0.5);
}

footer {
    text-align: center;
    padding: 24px 0;
    background: rgba(5, 8, 6, 0.98);
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

img {
    max-width: 180px;
    border-radius: 50%;
    border: 2px solid var(--border-glow);
    box-shadow: var(--glow-shadow-strong);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

section h2::before {
    content: '🔐 ';
}

section:nth-of-type(2) h2::before {
    content: '⚙️ ';
}

header::after {
    content: '• • •';
    display: block;
    color: rgba(0, 255, 102, 0.15);
    margin-top: 20px;
    letter-spacing: 8px;
}

/* Contact page form styling improvement */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
}

label {
    color: var(--accent-green);
    font-weight: 600;
}

input, textarea {
    background: rgba(10, 15, 12, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}

button {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%);
    border: none;
    border-radius: 8px;
    color: #030303;
    padding: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 102, 0.15);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-shadow-strong);
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    nav li {
        display: block;
        margin: 12px 0;
    }

    h1 {
        font-size: 2rem;
    }

    main {
        margin: 20px auto;
        padding: 0 12px;
    }

    section {
        padding: 20px;
        margin: 15px 0;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Two-column profile header card layout */
.profile-header-card {
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-img-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
}

.profile-info-container {
    flex-grow: 1;
}

@media (max-width: 768px) {
    .profile-header-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

/* Floating Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background: rgba(12, 16, 13, 0.85);
    border: 1px solid var(--border-color);
    padding: 6px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.lang-btn {
    background: transparent;
    border: none !important;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: none !important;
}

.lang-btn:hover {
    color: var(--primary-green);
    background: rgba(0, 255, 102, 0.08) !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-green) 100%) !important;
    color: #030303 !important;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3) !important;
}

/* Responsive adjustment for switcher on mobile */
@media (max-width: 480px) {
    .language-switcher {
        top: auto;
        bottom: 20px;
        right: 50%;
        transform: translateX(50%);
    }
}

/* Attached Certificates Gallery Styles */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.cert-card {
    background: rgba(10, 15, 12, 0.7);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: var(--glow-shadow);
}

.cert-thumb-container {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #010201;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.cert-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cert-pdf-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--accent-green);
}

.pdf-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.3));
}

.pdf-text {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(0, 255, 102, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.cert-name {
    padding: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background: rgba(5, 8, 6, 0.4);
}

.no-certs-msg {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px 0;
}

/* WhatsApp contact buttons next to phone numbers */
.phone-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 8px;
}

.whatsapp-btn {
    display: inline-block;
    background: linear-gradient(90deg, #25D366 0%, #03A87C 100%);
    color: #fff;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 6px 14px rgba(2, 160, 116, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(2, 160, 116, 0.22);
}

/* Lightbox Modal styles */
.cert-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(2, 3, 2, 0.95);
    backdrop-filter: blur(8px);
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #82b094;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-modal:hover {
    color: var(--primary-green);
    text-shadow: var(--glow-shadow);
}

.modal-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 60px 40px;
    box-sizing: border-box;
}

.modal-content-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 8px;
    border: 2px solid var(--border-glow);
    box-shadow: var(--glow-shadow-strong);
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-content-pdf {
    width: 80%;
    height: 80%;
    border-radius: 8px;
    border: 2px solid var(--border-glow);
    box-shadow: var(--glow-shadow-strong);
    background: white;
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.modal-caption {
    margin-top: 20px;
    color: var(--primary-green);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}

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

@media (max-width: 768px) {
    .modal-content-container {
        padding: 40px 20px;
    }
    .modal-content-img {
        max-width: 100%;
    }
    .modal-content-pdf {
        width: 100%;
        height: 70%;
    }
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}
