/* 
   EPO NDT - Custom Stylesheet
   Egyptian Professionals Office For Quality and Testing
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS VARIABLES --- */
:root {
    --primary: #0f172a;       /* Dark slate navy */
    --primary-light: #1e293b; /* Medium slate navy */
    --primary-bg: #0b0f19;    /* Very dark page background */
    --accent: #f59e0b;        /* Safety gold/amber */
    --accent-hover: #d97706;  /* Darker amber */
    --accent-light: rgba(245, 158, 11, 0.1);
    
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --text-dark: #1e293b;
    --text-light: #64748b;
    
    --success: #10b981;       /* Emerald green */
    --warning: #f59e0b;
    --danger: #ef4444;        /* Crimson red */
    
    --bg-white: #ffffff;
    --bg-card: #1e293b;       /* Dark card background */
    --bg-card-light: #334155;
    
    --border-color: #334155;
    --border-light: #e2e8f0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
    --shadow-accent: 0 4px 20px -2px rgba(245, 158, 11, 0.3);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-bg);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

button, input, select, textarea {
    font-family: inherit;
}

/* --- UTILITIES & LAYOUT --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    max-width: 600px;
    margin: -0.5rem auto 3rem;
    font-size: 1.1rem;
}

/* --- NAVIGATION --- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-sub {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 400;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-gray);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-white);
}

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

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

.nav-btn {
    background: var(--accent);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.nav-btn:hover {
    background: var(--text-white);
    color: var(--primary);
    box-shadow: var(--shadow-accent);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: calc(85vh - 80px);
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(15, 23, 42, 0.8) 0%, rgba(11, 15, 25, 0.95) 90%),
                url('../img/Meeraner_Header_Slideshow_08_Schweisstechnik.jpg') center/cover no-repeat;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15,23,42,0) 60%, var(--primary-bg) 100%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

.hero-widget {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2.2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

.hero-widget h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-widget h3 i {
    color: var(--accent);
}

.hero-widget p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.widget-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group {
    position: relative;
}

.input-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    transition: var(--transition);
}

.input-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

/* --- SERVICES (NDT METHODS) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(245, 158, 11, 0.4);
}

.service-img-wrapper {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 20px;
    text-transform: uppercase;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

/* Specific Badge Colors */
.badge-rt { background: linear-gradient(135deg, #f87171, #ef4444); color: white; }
.badge-ut { background: linear-gradient(135deg, #c084fc, #a855f7); color: white; }
.badge-mt { background: linear-gradient(135deg, #38bdf8, #0284c7); color: white; }
.badge-pt { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: var(--primary); }
.badge-vt { background: linear-gradient(135deg, #34d399, #10b981); color: white; }

.service-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-info h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-white);
}

.service-info p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-more {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.service-card:hover .service-more {
    color: var(--text-white);
}

/* --- PROJECTS --- */
.projects-showcase {
    background: #0d1321;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
    opacity: 0.6;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-3px);
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(245, 158, 11, 0.3);
}

.project-card:hover::before {
    opacity: 1;
    height: 100%;
    background: var(--accent);
}

.project-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
}

.detail-label {
    color: var(--text-gray);
    font-weight: 500;
}

.detail-val {
    font-weight: 600;
    text-align: right;
    color: var(--text-white);
}

/* --- CERTIFICATE SEARCH PAGE --- */
.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    margin-bottom: 3rem;
}

.search-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.search-desc {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.search-form-row {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.search-form-row .input-control {
    font-size: 1.1rem;
    padding: 1rem 1.5rem;
    background: rgba(15, 23, 42, 0.8);
}

/* --- CERTIFICATE RENDER (THE PREMIUM LOOK) --- */
.certificate-wrapper {
    margin-top: 2rem;
    animation: slideUp 0.5s ease-out;
}

.certificate-card {
    background: #ffffff;
    color: #1e293b;
    border: 12px double #0f172a;
    padding: 4rem;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Watermark background on certificate */
.certificate-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    width: 600px;
    height: 600px;
    background: url('../img/logo.png') center/contain no-repeat;
    opacity: 0.04;
    pointer-events: none;
}

/* Corners ornament */
.certificate-card::after {
    content: '';
    position: absolute;
    top: 10px; left: 10px; right: 10px; bottom: 10px;
    border: 2px solid #0f172a;
    pointer-events: none;
}

.cert-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
}

.cert-header-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.cert-header-sub {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #475569;
    font-weight: 600;
}

.cert-badge-status {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1.5rem;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    border-radius: 4px;
    letter-spacing: 1px;
}

.status-valid {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-expired {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.cert-body {
    text-align: center;
    margin-bottom: 3rem;
}

.cert-declaration {
    font-style: italic;
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cert-name {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-decoration: underline;
    text-underline-offset: 8px;
}

.cert-statement {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cert-statement span {
    font-weight: 700;
    color: #0f172a;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
    max-width: 650px;
    margin: 0 auto;
    background: #f8fafc;
    padding: 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
}

.cert-meta-item {
    display: flex;
    flex-direction: column;
}

.cert-meta-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.cert-meta-val {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
}

.cert-footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
    align-items: flex-end;
}

.signature-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.signature-line {
    width: 80%;
    border-bottom: 1px solid #475569;
    margin-bottom: 0.5rem;
    height: 40px;
}

.signature-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
}

.signature-title {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
}

.stamp-block {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.mockup-stamp {
    width: 100px;
    height: 100px;
    border: 4px double rgba(15, 23, 42, 0.4);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: rgba(15, 23, 42, 0.4);
    font-weight: 800;
    font-size: 0.65rem;
    line-height: 1.2;
    text-transform: uppercase;
    transform: rotate(-10deg);
}

.cert-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- CONTACT PAGE --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background: var(--bg-card);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--text-white);
}

.contact-text p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-text a:hover {
    color: var(--accent);
}

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group-full {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.form-group textarea {
    resize: vertical;
}

/* --- ADMIN LOGIN & DASHBOARD --- */
.login-container {
    max-width: 450px;
    margin: 4rem auto;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.login-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid var(--danger);
    color: #fca5a5;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--success);
    color: #a7f3d0;
}

/* Admin Dashboard layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

.dashboard-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-md);
}

.dashboard-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.admin-action-bar {
    display: flex;
    gap: 1rem;
}

.table-wrapper {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(15, 23, 42, 0.4);
    font-weight: 700;
    color: var(--text-gray);
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* --- FOOTER --- */
.footer {
    background: var(--primary);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 2rem;
    color: var(--text-gray);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info h3 {
    margin-bottom: 1.25rem;
    color: var(--text-white);
    font-size: 1.4rem;
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-col h4 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.fade-in { animation: fadeIn 0.8s ease-out; }
.slide-up { animation: slideUp 0.8s ease-out; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-widget {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Can add slideout menu */
    }
    
    .nav-toggle {
        display: block;
    }
    
    .navbar-container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .certificate-card {
        padding: 2rem 1.5rem;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-footer {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group-full {
        grid-column: span 1;
    }
}

/* --- PRINT STYLES (FOR PRINTING CERTIFICATES) --- */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    
    .navbar, .footer, .cert-actions, .section-title, .section-subtitle, .search-box-card {
        display: none !important;
    }
    
    .section {
        padding: 0 !important;
    }
    
    .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    
    .certificate-wrapper {
        margin-top: 0 !important;
    }
    
    .certificate-card {
        border: 10px double #000000 !important;
        box-shadow: none !important;
        background: #ffffff !important;
        color: #000000 !important;
        padding: 2.5cm !important;
        page-break-inside: avoid;
    }
    
    .certificate-card::before {
        opacity: 0.05 !important;
    }
    
    .cert-grid {
        background: #ffffff !important;
        border: 1px solid #000000 !important;
    }
    
    .cert-badge-status {
        border: 1px solid #000000 !important;
        background: transparent !important;
        color: #000000 !important;
    }
}

/* --- RTL (ARABIC) OVERRIDES --- */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .logo-link {
    flex-direction: row;
}

html[dir="rtl"] .nav-toggle {
    margin-right: auto;
    margin-left: 0;
}

html[dir="rtl"] .hero-content {
    text-align: right;
}

html[dir="rtl"] .service-card {
    text-align: right;
}

html[dir="rtl"] .service-badge {
    left: 1rem;
    right: auto;
}

html[dir="rtl"] .service-more {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.5rem;
}

html[dir="rtl"] .service-more i {
    transform: scaleX(-1);
}

html[dir="rtl"] .project-card::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .detail-val {
    text-align: left;
}

html[dir="rtl"] .contact-info-panel {
    text-align: right;
}

html[dir="rtl"] .contact-item {
    flex-direction: row;
}

html[dir="rtl"] .contact-form-card {
    text-align: right;
}

html[dir="rtl"] .dashboard-header {
    flex-direction: row;
}

html[dir="rtl"] .dashboard-card {
    text-align: right;
}

html[dir="rtl"] #custom_examiner_fields {
    border-left: none;
    border-right: 3px solid var(--accent);
    padding-left: 0;
    padding-right: 1rem;
}

html[dir="rtl"] .admin-table {
    text-align: right;
}
