/*
Theme Name: Techno-door
Author: ismail ramadan
Description: Custom WordPress theme
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: technodoor
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary-color: #00bcd4;
    --secondary-color: #0d0d0d;
    --text-color-light: #ffffff;
    --text-color-dark: #333333;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d0d0d;
    --accent-blue: #00bcd4;
    --light-blue: #54d0ef;
    --border-color: #333;
    --font-family-arabic: 'Cairo', sans-serif;
}

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

body {
    font-family: var(--font-family-arabic);
    direction: rtl;
    text-align: right;
    background-color: var(--bg-darker);
    color: var(--text-color-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color-light);
    font-weight: 700;
}

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

a:hover {
    color: var(--light-blue);
}

ul {
    list-style: none;
}

/* Header */
.site-header {
    background-color: var(--bg-dark);
    padding: 15px 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.site-branding .site-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.site-branding .site-title a {
    color: var(--text-color-light);
}

.main-navigation ul {
    display: flex;
    gap: 30px;
}

.main-navigation ul li a {
    color: var(--text-color-light);
    font-size: 16px;
    padding-bottom: 5px;
    position: relative;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a {
    color: var(--primary-color);
}

.main-navigation ul li.current-menu-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-quote {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-quote:hover {
    background-color: var(--light-blue);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('http://localhost:8000/wp-content/themes/technodoor/assets/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-tag {
    background-color: rgba(0, 188, 212, 0.2);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero-section h1 {
    font-size: 60px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ccc;
}

.hero-buttons .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    margin: 0 10px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color-light);
    font-size: 24px;
}

/* Stats Section */
.stats-section {
    background-color: var(--bg-darker);
    padding: 80px 0;
    text-align: center;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
}

.stat-item {
    flex: 1;
    min-width: 200px;
    margin: 20px;
}

.stat-item h3 {
    font-size: 48px;
    color: var(--light-blue);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 18px;
    color: #aaa;
}

/* Services Section */
.services-section {
    background-color: var(--bg-darker);
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 40px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    text-align: right;
    transition: transform 0.3s ease;
    border-top: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-top-color: var(--light-blue);
}

.service-card .icon {
    color: var(--light-blue);
    font-size: 40px;
    margin-bottom: 20px;
    float: left;
    margin-right: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: #ccc;
    margin-bottom: 20px;
}

.service-card .read-more {
    color: var(--light-blue);
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}

.service-card .read-more i {
    font-size: 18px;
}

/* Projects Section */
.projects-section {
    background-color: var(--bg-darker);
    padding: 80px 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.project-header h2 {
    font-size: 40px;
    position: relative;
    display: inline-block;
}

.project-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 60%;
    height: 3px;
    background-color: var(--primary-color);
}

.project-header p {
    color: #aaa;
    font-size: 16px;
    margin-top: 10px;
}

.view-all-projects {
    color: var(--primary-color);
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-item {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    height: 300px;
    /* Example aspect ratio */
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brands Section */
.brands-section {
    background-color: var(--bg-darker);
    padding: 60px 0;
    text-align: center;
}

.brands-section p {
    color: #aaa;
    margin-bottom: 30px;
    font-size: 14px;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.brand-logo {
    height: 40px; /* Adjust as needed */
    filter: grayscale(100%) brightness(150%); /* Make logos look white/light gray */
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
    filter: grayscale(0%) brightness(100%);
}

/* Footer */
.site-footer {
    background-color: var(--bg-dark);
    padding: 60px 0 20px 0;
    color: #ccc;
    font-size: 14px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.footer-widget h4 {
    color: var(--text-color-light);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
}

.footer-widget h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-widget ul li a:hover {
    color: var(--primary-color);
}

.footer-widget p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    margin-top: 15px;
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    background-color: #2a2a2a;
    color: var(--text-color-light);
    font-family: var(--font-family-arabic);
}

.newsletter-form button {
    background-color: var(--primary-color);
    color: var(--text-color-light);
    border: none;
    padding: 10px 15px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
    background-color: var(--light-blue);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-start;
}

.social-links a {
    color: var(--text-color-light);
    font-size: 20px;
    transition: color 0.3s ease;
}

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

.copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 48px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .project-header h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    .brands-grid {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .hero-section {
        height: auto;
        min-height: 70vh;
        padding: 120px 0 80px 0;
    }

    .hero-section h1 {
        font-size: 38px;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 80%;
        margin: 0;
    }

    .stats-container,
    .services-grid,
    .projects-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .service-card .icon {
        float: none;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }

    .service-card h3,
    .service-card p,
    .service-card .read-more {
        text-align: center;
        justify-content: center;
    }

    .footer-widget,
    .copyright {
        text-align: center;
    }

    .footer-widget h4::after {
        right: 50%;
        transform: translateX(50%);
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-branding .site-title {
        font-size: 24px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .stat-item h3 {
        font-size: 36px;
    }

    .section-title h2,
    .project-header h2 {
        font-size: 32px;
    }
}
