/*
 * Custom CSS for Al Ghassab Redesign
 *
 * Color Palette:
 * --primary-color: #3f51b5; (Deep Blue - secondary brand color)
 * --secondary-color: #FFC107; (Amber/Gold - accent color)
 * --gradient-start: #3f51b5; 
 * --gradient-end: #6574CD; 
 * --text-dark: #333333;
 * --text-light: #666666;
 * --bg-light: #f4f6f8; (Near-white for Neumorphic feel)
 * --bg-dark: #343a40; (Dark background for contrast sections)
 */

:root {
    --primary-color: #3f51b5; 
    --secondary-color: #FFC107; 
    --gradient-start: #3f51b5; 
    --gradient-end: #6574CD; 
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f4f6f8;
    --bg-dark: #343a40;
    --transition-speed: 0.3s;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff; /* Start with white base */
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.2rem; font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 600; }

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

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

ul {
    list-style: none;
}

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

.section-padding {
    padding: 80px 0;
}

.section-bg {
    background-color: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    padding-bottom: 15px;
}

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

.section-header p {
    font-size: 1.1rem;
}

.color-white h2, .color-white p {
    color: #ffffff;
}

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

/* === Gradient & Animated Buttons === */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

/* Primary Gradient Button */
.btn-gradient {
    background-image: linear-gradient(45deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(63, 81, 181, 0.4);
    background-size: 200% auto;
    transition: transform 0.3s, box-shadow 0.3s, background-position 0.5s ease-out;
}

.btn-gradient:hover {
    background-position: right center; /* Gradient shift on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(63, 81, 181, 0.6);
}

/* Gradient Outline Button */
.btn-outline-gradient {
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    transition: background-color var(--transition-speed), color var(--transition-speed), border-color var(--transition-speed);
}

.btn-outline-gradient:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Light Outline Button (for CTA) */
.btn-light-outline {
    background: none;
    color: #ffffff;
    border: 2px solid #ffffff;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.btn-light-outline:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    transform: translateY(-1px);
}


/* === Motion/Animation Classes === */

/* Slide-up Fade-in Animation */
@keyframes slideUpFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    opacity: 0; /* Initial state hidden */
    animation: slideUpFadeIn 0.8s forwards;
}

/* Delay modifiers for sequential animation */
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }


/* === Hero Section === */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}

.slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    color: #ffffff;
}

.hero-content h1 {
    color: #ffffff;
    font-size: 4rem;
    margin-bottom: 0.2em;
}

.hero-content p {
    color: #f0f0f0;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.control-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    backdrop-filter: blur(5px);
    transition: background-color var(--transition-speed);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.prev-btn { left: 20px; }
.next-btn { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.dot.active {
    background-color: #ffffff;
    transform: scale(1.2);
}

/* === About Section === */
.about-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-text {
    max-width: 900px;
}

.services-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-item-icon {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-dark);
}

.service-item-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
    background-color: var(--bg-light);
    padding: 10px;
    border-radius: 8px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.services-detail-box {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05), -5px -5px 15px #ffffff; /* Neumorphic effect */
}

.specializations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    padding-top: 10px;
}

.specializations-list li {
    position: relative;
    padding-left: 25px;
    font-size: 0.95rem;
    color: var(--text-light);
}

.specializations-list li::before {
    content: "\f00c"; /* Checkmark icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* === Services Section === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-card h3 {
    color: var(--primary-color);
}

.service-icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(63, 81, 181, 0.3);
}

.service-features {
    text-align: left;
    margin-top: 20px;
}

.service-features li {
    font-size: 0.9rem;
    padding-left: 15px;
    position: relative;
    margin-bottom: 5px;
    color: var(--text-light);
}

.service-features li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* === Projects Section === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.project-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-speed);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-info {
    padding: 20px;
}

.project-category {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-info h4 {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* === Process Section === */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

.step {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 0 0 8px rgba(63, 81, 181, 0.1); /* Ring effect */
}

/* === Offices Section === */
.offices-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.office-card {
    flex: 1;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.office-image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.office-info {
    padding: 25px;
}

.office-info h3 {
    color: var(--primary-color);
}

.location-text {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.location-text i {
    color: var(--secondary-color);
    margin-right: 8px;
}

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

/* === CTA Section === */
.cta-section {
    background: linear-gradient(90deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    padding: 100px 0;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* === Professional Hover Motion for Cards === */

.card-hover-motion {
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.card-hover-motion:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 0 15px 40px rgba(63, 81, 181, 0.15); /* Stronger shadow on lift */
}

.step-hover-motion:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .offices-grid {
        flex-direction: column;
        align-items: center;
    }
    .office-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 1.8rem; }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }

    .section-padding {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .prev-btn { left: 10px; }
    .next-btn { right: 10px; }

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