/* ============================================
   نظام استبيان جامعة صنعاء - CSS
   ============================================ */

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

:root {
    --primary-color: #1e3a8a;
    --secondary-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #ea580c;
    --danger-color: #dc2626;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Theme Variables */
body.dark-theme {
    --primary-color: #3b82f6;
    --secondary-color: #ef4444;
    --success-color: #22c55e;
    --warning-color: #f97316;
    --danger-color: #ef4444;
    --light-bg: #1e293b;
    --border-color: #334155;
    --text-dark: #f1f5f9;
    --text-light: #cbd5e1;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-theme {
    background-color: #0f172a;
    color: var(--text-dark);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.875rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-info {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.btn-dashboard,
.btn-logout {
    background-color: white;
    color: var(--primary-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-dashboard:hover,
.btn-logout:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Theme Toggle Button */
.btn-theme {
    background-color: transparent;
    border: 2px solid white;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-theme:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.theme-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

body.dark-theme .theme-icon {
    content: '☀️';
}

body.dark-theme .btn-theme {
    border-color: #cbd5e1;
}

/* ============================================
   Container
   ============================================ */

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* ============================================
   Header Section
   ============================================ */

.header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.header-content {
    text-align: center;
}

.header-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.header-text-en {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.university-name {
    font-size: 2.5rem;
    margin: 1rem 0;
    font-weight: 700;
}

.university-name-en {
    font-size: 2rem;
    margin: 1rem 0;
    font-weight: 700;
}

.header-divider {
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 1.5rem 0;
}

/* ============================================
   Study Title
   ============================================ */

.study-title {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    border-right: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

body.dark-theme .study-title {
    background-color: #1e293b;
    border-right-color: #3b82f6;
}

.title-ar {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.title-en {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ============================================
   Consent Section
   ============================================ */

.consent-section {
    background-color: #eff6ff;
    border: 2px solid #3b82f6;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

body.dark-theme .consent-section {
    background-color: #1e3a5f;
    border-color: #3b82f6;
}

.consent-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.consent-box {
    background-color: white;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

body.dark-theme .consent-box {
    background-color: #1e293b;
    color: var(--text-dark);
}

.consent-box p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.consent-options {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

/* ============================================
   Form Styles
   ============================================ */

.survey-form {
    background-color: white;
    transition: all 0.3s ease;
}

body.dark-theme .survey-form {
    background-color: #0f172a;
}

body.dark-theme .form-group {
    border-bottom-color: #334155;
}

body.dark-theme .form-group:hover {
    background-color: #1e293b;
}

body.dark-theme .form-group input[type="text"],
body.dark-theme .form-group input[type="email"],
body.dark-theme .form-group input[type="number"],
body.dark-theme .form-group input[type="password"],
body.dark-theme .form-group select,
body.dark-theme .form-group textarea {
    background-color: #1e293b;
    color: var(--text-dark);
    border-color: #334155;
}

body.dark-theme .form-group input[type="text"]:focus,
body.dark-theme .form-group input[type="email"]:focus,
body.dark-theme .form-group input[type="number"]:focus,
body.dark-theme .form-group input[type="password"]:focus,
body.dark-theme .form-group select:focus,
body.dark-theme .form-group textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

body.dark-theme .radio-label:hover,
body.dark-theme .checkbox-label:hover {
    background-color: #1e293b;
    border-color: #475569;
}
.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: block;
    margin: 2rem auto;
    transition: 0.3s;
}

.btn-submit:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.section {
    background-color: var(--light-bg);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

body.dark-theme .section {
    background-color: #1e293b;
    border-color: #334155;
}

.section-title {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group input[type="range"] {
    width: 80%;
    margin-right: 1rem;
    cursor: pointer;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-label,
.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
}

.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
    margin-left: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

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

/* ============================================
   Buttons
   ============================================ */

.btn-primary,
.btn-secondary,
.btn-google {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #1e3a8a;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--text-light);
    color: white;
}

.btn-secondary:hover {
    background-color: #475569;
    transform: translateY(-2px);
}

.btn-google {
    background-color: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    width: 100%;
    padding: 1rem;
}

.btn-google:hover {
    background-color: var(--light-bg);
    border-color: var(--primary-color);
}

.btn-approve,
.btn-reject,
.btn-delete {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-approve {
    background-color: var(--success-color);
    color: white;
}

.btn-approve:hover {
    background-color: #15803d;
}

.btn-reject,
.btn-delete {
    background-color: var(--danger-color);
    color: white;
}

.btn-reject:hover,
.btn-delete:hover {
    background-color: #b91c1c;
}

/* ============================================
   Thank You Section
   ============================================ */

.thank-you-section {
    text-align: center;
    padding: 3rem 2rem;
}

.thank-you-box {
    background: linear-gradient(135deg, var(--success-color) 0%, #15803d 100%);
    color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.thank-you-box h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.thank-you-box p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.thank-you-en {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ============================================
   Login Page
   ============================================ */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.login-box {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
    border-top: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

body.dark-theme .login-box {
    background-color: #1e293b;
    color: var(--text-dark);
}

.login-box h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.user-type-selection {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.type-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

.type-btn:hover {
    border-color: var(--primary-color);
}

.login-form {
    animation: fadeIn 0.3s ease;
}

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

.login-form h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.info-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* ============================================
   Dashboard
   ============================================ */

.tabs-navigation {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 1.5rem;
    border: none;
    background-color: transparent;
    color: var(--text-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

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

.tab-content {
    animation: fadeIn 0.3s ease;
}

.alert-box {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert-box h3 {
    color: #d97706;
    margin-bottom: 0.5rem;
}

.alert-box p {
    color: #92400e;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.stat-card h3 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
}

.users-list {
    display: grid;
    gap: 1rem;
}

.user-item {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.user-info-box {
    flex: 1;
}

.user-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.user-status {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
}

.user-status.pending {
    background-color: #fef3c7;
    color: #92400e;
}

.user-status.approved {
    background-color: #dcfce7;
    color: #166534;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.data-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.data-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

body.dark-theme .data-table {
    background-color: #1e293b;
    color: var(--text-dark);
}

body.dark-theme .data-table thead {
    background-color: #0f172a;
}

body.dark-theme .data-table tbody tr:hover {
    background-color: #334155;
}

body.dark-theme .data-table th,
body.dark-theme .data-table td {
    border-bottom-color: #334155;
}

.data-table thead {
    background-color: var(--primary-color);
    color: white;
}

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

.data-table tbody tr:hover {
    background-color: var(--light-bg);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 3rem;
}

.footer p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .header-section {
        padding: 2rem 1rem;
    }

    .university-name {
        font-size: 1.75rem;
    }

    .university-name-en {
        font-size: 1.5rem;
    }

    .section {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary,
    .btn-google {
        width: 100%;
    }

    .tabs-navigation {
        gap: 0.5rem;
    }

    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .user-actions {
        width: 100%;
    }

    .user-actions button {
        flex: 1;
    }

    .data-table {
        font-size: 0.85rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
    }

    .login-box {
        padding: 2rem 1rem;
    }

    .user-type-selection {
        flex-direction: column;
    }

    .type-btn {
        width: 100%;
    }

    .consent-options {
        flex-direction: column;
        gap: 1rem;
    }

    .radio-group,
    .checkbox-group {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    .header-section {
        padding: 1.5rem 1rem;
    }

    .university-name {
        font-size: 1.5rem;
    }

    .university-name-en {
        font-size: 1.25rem;
    }

    .navbar .container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }

    .btn-dashboard,
    .btn-logout {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .form-group input[type="range"] {
        width: 100%;
        margin-right: 0;
    }

    .data-table {
        font-size: 0.75rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.5rem;
    }
}

/* ============================================
   Animations
   ============================================ */

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

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

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* تحسينات إضافية للمظهر */
.section {
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: #fff;
}

.form-group {
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.form-group:last-child {
    border-bottom: none;
}

.form-group:hover {
    background-color: #fafafa;
}

.form-group label {
    font-size: 1.05rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.radio-group, .checkbox-group {
    padding-right: 10px;
}

.radio-label, .checkbox-label {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.radio-label:hover, .checkbox-label:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

.btn-submit {
    width: 100%;
    max-width: 300px;
    margin-top: 40px;
    padding: 15px;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.thank-you-box {
    border: 2px solid var(--success-color);
    background-color: #f0fdf4;
    color: #166534;
}

.thank-you-box h2 {
    color: #166534;
}


/* ============================================
   Contact Section - Creative Design
   ============================================ */

.contact-section {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    padding: 4rem 2rem;
    margin: 3rem 0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

body.dark-theme .contact-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

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

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.contact-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.contact-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

body.dark-theme .contact-card {
    background: #1e293b;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), transparent);
    pointer-events: none;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

body.dark-theme .contact-card:hover {
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

/* WhatsApp Card Styling */
.contact-card.whatsapp-card {
    border-top-color: #25D366;
}

.contact-card.whatsapp-card .contact-icon {
    color: #25D366;
}

/* Phone Card Styling */
.contact-card.phone-card {
    border-top-color: #FF9500;
}

.contact-card.phone-card .contact-icon {
    color: #FF9500;
}

/* Email Card Styling */
.contact-card.email-card {
    border-top-color: #EA4335;
}

.contact-card.email-card .contact-icon {
    color: #EA4335;
}

.contact-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 2.5rem;
}

body.dark-theme .contact-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-contact {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1fa857;
    border-color: #1fa857;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-phone {
    background-color: #FF9500;
    color: white;
    border-color: #FF9500;
}

.btn-phone:hover {
    background-color: #E68900;
    border-color: #E68900;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.btn-email {
    background-color: #EA4335;
    color: white;
    border-color: #EA4335;
}

.btn-email:hover {
    background-color: #D33425;
    border-color: #D33425;
    transform: translateX(-3px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

/* Animation for contact cards on load */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-card {
    animation: cardSlideIn 0.6s ease-out forwards;
}

.contact-card:nth-child(1) {
    animation-delay: 0.1s;
}

.contact-card:nth-child(2) {
    animation-delay: 0.2s;
}

.contact-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 1rem;
        margin: 2rem 0;
    }

    .contact-header h2 {
        font-size: 1.75rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .btn-contact {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
    }

    .contact-header h2 {
        font-size: 1.5rem;
    }

    .contact-header h2::after {
        width: 40px;
        height: 3px;
    }

    .contact-header p {
        font-size: 0.95rem;
    }

    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .contact-card h3 {
        font-size: 1.25rem;
    }

    .contact-card p {
        font-size: 0.9rem;
    }

    .btn-contact {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Dark Theme Adjustments for Contact Section */
body.dark-theme .contact-card h3 {
    color: var(--text-dark);
}

body.dark-theme .contact-card p {
    color: var(--text-light);
}

body.dark-theme .btn-whatsapp,
body.dark-theme .btn-phone,
body.dark-theme .btn-email {
    transition: all 0.3s ease;
}

/* Pulse animation for contact icons */
@keyframes iconPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

.contact-card:hover .contact-icon {
    animation: iconPulse 1.5s ease-in-out;
}


/* ============================================
   Floating Contact Button & Modal
   ============================================ */

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25D366 0%, #20BA5F 100%);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.floating-contact-btn:active {
    transform: scale(0.95);
}

body.dark-theme .floating-contact-btn {
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.6);
}

/* Pulse Animation for Floating Button */
@keyframes pulse-float {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.8);
    }
}

.floating-contact-btn {
    animation: pulse-float 2s ease-in-out infinite;
}

/* Contact Modal */
.contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeInModal 0.3s ease;
    overflow-y: auto;
}

.contact-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideInModal 0.3s ease;
}

body.dark-theme .contact-modal-content {
    background: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

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

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

body.dark-theme .close-modal-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.contact-modal-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-modal-header p {
    color: var(--text-light);
    font-size: 1rem;
}

.contact-modal-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-modal-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

body.dark-theme .contact-modal-card {
    background: #334155;
}

.contact-modal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

body.dark-theme .contact-modal-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* WhatsApp Modal Card */
.contact-modal-card.whatsapp-card {
    border-top-color: #25D366;
}

/* Phone Modal Card */
.contact-modal-card.phone-card {
    border-top-color: #FF9500;
}

/* Email Modal Card */
.contact-modal-card.email-card {
    border-top-color: #EA4335;
}

.contact-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 2rem;
}

body.dark-theme .contact-modal-icon {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
}

.contact-modal-card:hover .contact-modal-icon {
    transform: scale(1.1) rotate(-5deg);
}

.contact-modal-icon svg {
    width: 100%;
    height: 100%;
}

.contact-modal-card h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-modal-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-contact-modal {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-contact-modal.btn-whatsapp {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.btn-contact-modal.btn-whatsapp:hover {
    background-color: #1fa857;
    border-color: #1fa857;
    transform: translateX(-2px);
}

.btn-contact-modal.btn-phone {
    background-color: #FF9500;
    color: white;
    border-color: #FF9500;
}

.btn-contact-modal.btn-phone:hover {
    background-color: #E68900;
    border-color: #E68900;
    transform: translateX(-2px);
}

.btn-contact-modal.btn-email {
    background-color: #EA4335;
    color: white;
    border-color: #EA4335;
}

.btn-contact-modal.btn-email:hover {
    background-color: #D33425;
    border-color: #D33425;
    transform: translateX(-2px);
}

/* Responsive Design for Modal */
@media (max-width: 768px) {
    .floating-contact-btn {
        bottom: 20px;
        left: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }

    .contact-modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .contact-modal-header h2 {
        font-size: 1.5rem;
    }

    .contact-modal-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-modal-card {
        padding: 1.25rem;
    }

    .contact-modal-icon {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .floating-contact-btn {
        bottom: 15px;
        left: 15px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .contact-modal-content {
        padding: 1rem;
        width: 98%;
    }

    .contact-modal-header h2 {
        font-size: 1.25rem;
    }

    .contact-modal-header p {
        font-size: 0.9rem;
    }

    .contact-modal-card {
        padding: 1rem;
    }

    .contact-modal-card h3 {
        font-size: 1.1rem;
    }

    .contact-modal-card p {
        font-size: 0.85rem;
    }

    .btn-contact-modal {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .close-modal-btn {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}
