/* ============================================
   MASAR ALINJAZ ALWADIH - PROFESSIONAL STYLING
   Mobile-First Responsive Design
   ============================================ */

/* Root Variables */
:root {
    --primary-color: #1a3a52;
    --secondary-color: #d4af37;
    --accent-color: #f5f5f5;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e0e0e0;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --transition: all 0.3s ease;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

h4 {
    font-size: 1.1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Header/Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo-section {
    flex: 0 0 auto;
}

.logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    white-space: nowrap;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.75);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo-section {
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease-out;
}

.hero-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.3));
}

.hero-keywords {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    animation: fadeIn 1s ease-out 0.3s both;
}

.keyword {
    background: rgba(212, 175, 55, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid var(--secondary-color);
    font-size: 0.9rem;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    animation: slideInUp 0.8s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero > .hero-content > p:nth-of-type(2) {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    line-height: 1.8;
    animation: slideInUp 0.8s ease-out 0.3s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

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

/* Services Section */
.services {
    padding: 3rem 1rem;
    background: #fafafa;
    position: relative;
}

.services-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.92);
    z-index: 0;
}

.services .container {
    position: relative;
    z-index: 1;
}

.services h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.services > p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.service-card ul {
    list-style: none;
    margin-bottom: 1rem;
}

.service-card li {
    padding: 0.4rem 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.service-card li:before {
    content: "✓ ";
    color: var(--secondary-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

.service-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

/* About Section */
.about {
    padding: 3rem 1rem;
    background: white;
    position: relative;
}

.about-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 58, 82, 0.85);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about h2,
.about p,
.about-features,
.stats {
    color: white;
}

.about-intro {
    color: #e0e0e0 !important;
}

.feature {
    background: rgba(255, 255, 255, 0.1) !important;
    border-right-color: var(--secondary-color);
}

.feature h3 {
    color: var(--secondary-color);
}

.feature p {
    color: #e0e0e0 !important;
}

.about h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.about-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

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

.feature {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    border-right: 4px solid var(--secondary-color);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    padding: 2rem 1rem;
    border-radius: 10px;
    color: white;
    text-align: center;
}

.stat h4 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: #e0e0e0;
    margin: 0;
}

/* Portfolio Section */
.portfolio {
    padding: 3rem 1rem;
    background: #fafafa;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.portfolio > p {
    text-align: center;
    margin-bottom: 2rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.portfolio-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.portfolio-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.portfolio-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    font-size: 0.95rem;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 3rem 1rem;
    background: white;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.testimonials > p {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.testimonial .stars {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.testimonial h4 {
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.testimonial .role {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Blog Section */
.blog {
    padding: 3rem 1rem;
    background: #fafafa;
}

.blog h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.blog > p {
    text-align: center;
    margin-bottom: 2rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.blog-post {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-post h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.blog-post p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 3rem 1rem;
    background: white;
}

.contact h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

.contact > p {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.info-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-item p {
    margin: 0;
    font-size: 0.95rem;
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.info-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0f2438 100%);
    color: white;
    padding: 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: #e0e0e0;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #e0e0e0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* ============================================
   MOBILE RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Typography */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Container */
    .container {
        padding: 0 12px;
    }

    /* Header */
    .header-content {
        flex-direction: column;
        gap: 0.8rem;
    }

    .nav {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
        order: 3;
        width: 100%;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .whatsapp-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Hero */
    .hero {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero > .hero-content > p:first-of-type {
        font-size: 1.1rem;
    }

    .hero .subtitle {
        font-size: 0.9rem;
    }

    .cta-buttons {
        gap: 0.8rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }

    /* Sections */
    .services,
    .about,
    .portfolio,
    .testimonials,
    .blog,
    .contact {
        padding: 2rem 1rem;
    }

    /* Grids */
    .services-grid,
    .portfolio-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .stat h4 {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    /* Typography */
    h1 {
        font-size: 1.3rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Header */
    .logo {
        height: 40px;
    }

    .nav {
        gap: 0.8rem;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .whatsapp-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    /* Hero */
    .hero {
        padding: 1.5rem 1rem;
        min-height: 250px;
    }

    .hero h1 {
        font-size: 1.4rem;
    }

    .hero > .hero-content > p:first-of-type {
        font-size: 0.95rem;
    }

    .hero .subtitle {
        font-size: 0.85rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }

    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        width: 100%;
    }

    /* Sections */
    .services,
    .about,
    .portfolio,
    .testimonials,
    .blog,
    .contact {
        padding: 1.5rem 1rem;
    }

    /* Cards */
    .service-card,
    .portfolio-item,
    .testimonial,
    .blog-post {
        padding: 1.2rem;
    }

    .service-icon,
    .portfolio-icon {
        font-size: 2rem;
    }

    /* Stats */
    .stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        padding: 1.2rem 1rem;
    }

    .stat h4 {
        font-size: 1.3rem;
    }

    /* Contact Form */
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.7rem;
        font-size: 0.9rem;
    }

    .info-item {
        padding: 1rem;
        background: #f9f9f9;
        border-radius: 8px;
    }

    /* Footer */
    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }
}

/* ============================================
   ANIMATIONS & TRANSITIONS
   ============================================ */

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

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

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

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

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

.service-card,
.portfolio-item,
.testimonial,
.blog-post {
    animation: slideInUp 0.6s ease-out;
}

.hero-logo {
    animation: float 3s ease-in-out infinite;
}

.keyword {
    animation: pulse 2s ease-in-out infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
