/* =============================================
   Design Hub - Complete Stylesheet
   Matching WordPress Porto Theme Design
   ============================================= */

/* -----------------------------------------
   1. CSS Reset & Base Styles
   ----------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #6633cc;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* -----------------------------------------
   2. Loading Screen
   ----------------------------------------- */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    width: 200px;
    max-width: 80vw;
    margin: 0 auto 30px;
}

.loading-text {
    text-align: center;
}

.loading-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 400;
    color: #333;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.loading-title-ar {
    font-size: 1.6rem;
    color: #555;
    font-weight: 300;
    letter-spacing: 4px;
    direction: rtl;
}

/* Loading pulse animation */
@keyframes loadingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-screen:not(.loaded) .loading-logo {
    animation: loadingPulse 1.5s ease-in-out infinite;
}

/* -----------------------------------------
   3. Artboards Section (Full-Width Gallery)
   ----------------------------------------- */
.artboards-section {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.artboard-row {
    width: 100%;
    overflow: hidden;
}

.artboard-img {
    width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------------
   4. Team Photo Section
   ----------------------------------------- */
.team-section {
    width: 100%;
    line-height: 0;
    font-size: 0;
}

.team-row {
    width: 100%;
    overflow: hidden;
}

.team-img {
    width: 100%;
    height: auto;
    display: block;
}

/* -----------------------------------------
   5. About Us Section
   ----------------------------------------- */
.about-section {
    background-color: #f4f4f4;
    padding: 80px 0;
}

.about-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-icon-col {
    flex-shrink: 0;
}

.about-icon {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
}

.about-text-col {
    flex: 1;
}

.about-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.about-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #6633cc;
}

.about-description {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
}

/* -----------------------------------------
   6. Mission & Vision Section
   ----------------------------------------- */
.mission-vision-section {
    padding: 80px 0;
    background-color: #fff;
}

.mission-vision-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    gap: 40px;
}

.mv-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 40px 35px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mv-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

.mv-icon-wrap {
    margin-bottom: 25px;
}

.mv-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto;
}

.mv-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.mv-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #6633cc;
}

.mv-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
}

/* -----------------------------------------
   7. Contact Section
   ----------------------------------------- */
.contact-section {
    background-color: #4e4376;
    background-image: url('../images/designhub/Backround-bottom.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    padding: 80px 0;
    color: #fff;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(78, 67, 118, 0.88);
    z-index: 1;
}

.contact-wrapper {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.contact-section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.contact-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #fff;
}

.contact-container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.contact-form-col {
    flex: 1;
    min-width: 0;
}

.contact-info-col {
    flex: 0 0 380px;
    min-width: 0;
}

.contact-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 25px;
}

/* Contact Form Styles */
.contact-form {
    width: 100%;
}

.form-row {
    margin-bottom: 20px;
}

.form-row-half {
    display: flex;
    gap: 20px;
}

.form-row-half .form-group {
    flex: 1;
}

.form-group {
    width: 100%;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.form-label .required {
    color: #ff4444;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background-color: #fff;
    border: 1px solid transparent;
    border-radius: 3px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: #9b7fd4;
    box-shadow: 0 0 0 3px rgba(155, 127, 212, 0.2);
}

.form-control::placeholder {
    color: #999;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.form-control option[disabled] {
    color: #999;
}

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.btn-send {
    display: inline-block;
    padding: 14px 40px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background-color: #6633cc;
    border: 2px solid #6633cc;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background-color: #5528a8;
    border-color: #5528a8;
    box-shadow: 0 4px 15px rgba(123, 94, 167, 0.3);
}

.btn-send:active {
    transform: translateY(1px);
}

.form-response {
    margin-top: 15px;
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-response.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-response.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #ef9a9a;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

/* Contact Info Styles */
.contact-info-list {
    margin-bottom: 10px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 14px;
}

.contact-info-icon-circle {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #6633cc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: 0;
}

.contact-info-icon-circle svg {
    width: 16px;
    height: 16px;
}

.contact-info-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    padding-top: 6px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #c5b3e8;
}

.contact-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 0;
}

.business-hours-heading {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 22px;
}

/* -----------------------------------------
   8. Scroll to Top Button
   ----------------------------------------- */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 42px;
    height: 42px;
    background-color: #6633cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #5528a8;
    box-shadow: 0 4px 15px rgba(123, 94, 167, 0.4);
}

.scroll-to-top svg {
    width: 16px;
    height: 16px;
}

/* -----------------------------------------
   9. Responsive Styles
   ----------------------------------------- */

/* Tablets and below */
@media (max-width: 991px) {
    /* About section */
    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-heading::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-icon {
        width: 160px;
        height: 160px;
    }

    /* Mission & Vision */
    .mission-vision-container {
        flex-direction: column;
    }

    .mv-card {
        padding: 35px 25px;
    }

    /* Contact */
    .contact-container {
        flex-direction: column;
        gap: 40px;
    }

    .contact-info-col {
        flex: 1;
    }

    .contact-section-heading {
        font-size: 1.8rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* About */
    .about-section {
        padding: 50px 0;
    }

    .about-heading {
        font-size: 1.6rem;
    }

    .about-description {
        font-size: 0.9rem;
    }

    .about-icon {
        width: 130px;
        height: 130px;
    }

    /* Mission & Vision */
    .mission-vision-section {
        padding: 50px 0;
    }

    .mv-title {
        font-size: 1.3rem;
    }

    .mv-icon {
        width: 60px;
        height: 60px;
    }

    /* Contact */
    .contact-section {
        padding: 50px 0;
    }

    .contact-wrapper {
        padding: 0 20px;
    }

    .contact-container {
        gap: 30px;
        padding: 0 20px;
    }

    .contact-section-heading {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .contact-heading {
        font-size: 1.3rem;
    }

    .form-row-half {
        flex-direction: column;
        gap: 20px;
    }

    .form-control {
        padding: 12px 15px;
    }

    .btn-send {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
    }

    .contact-info-text {
        font-size: 0.85rem;
    }

    .business-hours-heading {
        font-size: 1.2rem;
    }

    /* Loading */
    .loading-logo {
        width: 150px;
    }

    .loading-title {
        font-size: 1.6rem;
    }

    .loading-title-ar {
        font-size: 1.2rem;
    }

    /* Scroll to top */
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 38px;
        height: 38px;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .about-container,
    .mission-vision-container {
        padding: 0 15px;
    }

    .contact-wrapper,
    .contact-container {
        padding: 0 15px;
    }

    .about-heading {
        font-size: 1.4rem;
    }

    .about-description {
        font-size: 0.85rem;
    }

    .mv-card {
        padding: 30px 20px;
    }

    .mv-text {
        font-size: 0.9rem;
    }

    .contact-heading {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .contact-section-heading {
        font-size: 1.4rem;
    }

    .form-label {
        font-size: 0.8rem;
    }

    .form-control {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .btn-send {
        padding: 12px 24px;
        font-size: 0.8rem;
    }
}

/* -----------------------------------------
   10. Utility & Animation Classes
   ----------------------------------------- */

/* Smooth image loading */
.artboard-img,
.team-img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Selection color */
::selection {
    background-color: #6633cc;
    color: #fff;
}

::-moz-selection {
    background-color: #6633cc;
    color: #fff;
}

/* Scrollbar styling (webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #bbb;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* -----------------------------------------
   Header Navigation
   ----------------------------------------- */
.dh-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: background 0.3s;
}

.dh-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 30px;
}

.dh-logo img {
    height: 40px;
}

.dh-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.dh-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s;
}

.dh-nav a:hover {
    color: #6633cc;
}

.dh-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.dh-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #333;
    transition: 0.3s;
}

/* Side nav mobile */
.dh-side-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 99998;
}

.dh-side-overlay.active {
    display: block;
}

.dh-side-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 99999;
    transition: right 0.3s;
    padding: 60px 25px 25px;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

.dh-side-nav.open {
    right: 0;
}

.dh-side-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
}

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

.dh-side-nav ul li a {
    display: block;
    padding: 12px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 1px solid #eee;
}

.dh-side-nav ul li a:hover {
    color: #6633cc;
}

.dh-side-social {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.dh-side-social a {
    color: #6633cc;
}

/* Adjust body for fixed header */
#main-content {
    padding-top: 0;
}

/* -----------------------------------------
   Footer
   ----------------------------------------- */
.dh-footer {
    background: #2d2d2d;
    color: #ccc;
    padding: 50px 30px 0;
}

.dh-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.dh-footer-logo {
    height: 50px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.dh-footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #aaa;
}

.dh-footer-links h4,
.dh-footer-social h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1rem;
}

.dh-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dh-footer-links li a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: 4px 0;
    transition: color 0.2s;
}

.dh-footer-links li a:hover {
    color: #6633cc;
}

.dh-social-links {
    display: flex;
    gap: 12px;
}

.dh-social-links a {
    color: #aaa;
    transition: color 0.2s;
}

.dh-social-links a:hover {
    color: #6633cc;
}

.dh-footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px 0;
    border-top: 1px solid #444;
    text-align: center;
    font-size: 0.85rem;
    color: #888;
}

@media (max-width: 991px) {
    .dh-nav {
        display: none;
    }
    .dh-mobile-toggle {
        display: flex;
    }
}

@media (max-width: 767px) {
    .dh-footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
