/* ===================================
   ITQAN Modern Home Styles
   Premium Design System
   =================================== */

/* CSS Variables - Design Tokens */
:root {
    /* Primary Colors - Golden/Amber Theme */
    --primary: #cf864b;
    --primary-dark: #b5703d;
    --primary-light: #e09a5f;
    --primary-soft: rgba(207, 134, 75, 0.1);

    /* Secondary Colors */
    --secondary: #64748b;
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #06b6d4;
    --info-soft: rgba(6, 182, 212, 0.1);
    --purple: #8b5cf6;
    --purple-soft: rgba(139, 92, 246, 0.1);

    /* Neutral Colors */
    --dark: #1e293b;
    --gray-900: #0f172a;
    --gray-700: #334155;
    --gray-500: #64748b;
    --gray-300: #cbd5e1;
    --gray-100: #f1f5f9;
    --white: #ffffff;

    /* Gradients - Updated for Golden Theme */
    --gradient-primary: linear-gradient(135deg, #cf864b 0%, #b5703d 100%);
    --gradient-hero: linear-gradient(135deg, #cf864b 0%, #8b5a2b 100%);
    --gradient-stats: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-cta: linear-gradient(135deg, #cf864b 0%, #8b5a2b 50%, #5d3a1a 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --shadow-glow: 0 0 40px rgba(207, 134, 75, 0.3);


    /* Typography */
    --font-primary: 'Tajawal', 'Inter', sans-serif;
    --font-display: 'Cairo', 'Inter', sans-serif;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition: 300ms ease;
    --transition-slow: 500ms ease;
}

/* ===================================
   Global Typography
   =================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

/* Fix footer spacing */
html,
body {
    height: 100%;
}

.footer-modern {
    margin-bottom: 0 !important;
}

/* Remove any extra margin/padding from last elements */
footer {
    margin-bottom: 0 !important;
    padding-bottom: 1.5rem !important;
}

footer+* {
    display: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: var(--font-display);
    font-weight: 700;
}

/* ===================================
   Bootstrap Color Overrides
   =================================== */
.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

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

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

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

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.border-primary {
    border-color: var(--primary) !important;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

/* ===================================
   Text Gradient
   =================================== */
.text-gradient-primary {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-purple {
    color: var(--purple) !important;
}

/* ===================================
   Section Badge
   =================================== */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section-new {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-bg-animated {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -50px;
    animation-delay: 2s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    top: 20%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.hero-badge .badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
}

.hero-title {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
}

/* Hero Buttons */
.btn-hero-primary {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    color: var(--white);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-hero-primary:hover::before {
    left: 100%;
}

.btn-hero-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-hero-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* Hero Mini Stats */
.hero-mini-stats {
    border-top: 1px solid var(--gray-300);
}

.mini-stat {
    display: flex;
    flex-direction: column;
}

.mini-stat .stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mini-stat .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Hero Image */
.hero-image-container {
    position: relative;
    padding: 2rem;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-main-image {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition-slow);
}

.hero-image-wrapper:hover .hero-main-image {
    transform: scale(1.05);
}

/* Floating Cards */
.floating-card {
    position: absolute;
    z-index: 10;
}

.glass-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

.glass-card i {
    font-size: 1.5rem;
}

.glass-card span {
    font-weight: 600;
    color: var(--dark);
    white-space: nowrap;
}

.floating-card.card-1 {
    top: 10%;
    left: -10%;
    animation: floatCard 5s ease-in-out infinite;
}

.floating-card.card-2 {
    bottom: 30%;
    right: -5%;
    animation: floatCard 5s ease-in-out infinite 1s;
}

.floating-card.card-3 {
    bottom: 10%;
    left: 5%;
    animation: floatCard 5s ease-in-out infinite 2s;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--gray-500);
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--primary);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services-section {
    background: var(--white);
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--gray-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
    transition: var(--transition);
}

.bg-primary-soft {
    background: var(--primary-soft);
}

.bg-success-soft {
    background: var(--success-soft);
}

.bg-warning-soft {
    background: var(--warning-soft);
}

.bg-danger-soft {
    background: var(--danger-soft);
}

.bg-info-soft {
    background: var(--info-soft);
}

.bg-purple-soft {
    background: var(--purple-soft);
}

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

.service-title {
    font-weight: 700;
    color: var(--dark);
}

.service-desc {
    flex-grow: 1;
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--primary-dark);
    gap: 0.5rem;
}

/* ===================================
   STATS SECTION
   =================================== */
.stats-section {
    position: relative;
    background: var(--gradient-stats);
    overflow: hidden;
}

.stats-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.stat-card-modern {
    padding: 2rem;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    font-size: 1.5rem;
    color: var(--white);
}

.stat-number-modern {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.stat-label-modern {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin: 0;
}

/* ===================================
   ABOUT HOME SECTION
   =================================== */
.about-home-section {
    background: var(--gray-100);
}

.about-image-grid {
    position: relative;
}

.about-img-main img {
    width: 100%;
    object-fit: cover;
}

.about-img-badge {
    position: absolute;
    bottom: -30px;
    right: -30px;
}

.experience-badge {
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--white);
    box-shadow: var(--shadow-2xl);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.experience-badge .exp-number {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.experience-badge .exp-text {
    font-size: 0.75rem;
    text-align: center;
    padding: 0 1rem;
}

.feature-icon-sm {
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
}

/* ===================================
   NEWS SECTION
   =================================== */
.news-section {
    background: var(--white);
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.news-date .date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.news-date .date-month {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.news-title a {
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.news-title a:hover {
    color: var(--primary);
}

.news-excerpt {
    flex-grow: 1;
    line-height: 1.8;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--primary-dark);
}

/* Empty State */
.empty-state {
    padding: 3rem;
}

/* ===================================
   CTA SECTION
   =================================== */
.cta-section {
    position: relative;
    background: var(--gradient-cta);
    overflow: hidden;
}

.cta-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.cta-title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* ===================================
   LEADERSHIP/TEAM SECTION
   =================================== */
.leadership-section {
    background: var(--gray-100);
}

.team-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-2xl);
    transition: var(--transition);
    border: 1px solid var(--gray-100);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-soft);
    transition: var(--transition);
}

.team-card:hover .team-image {
    border-color: var(--primary);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    color: var(--dark);
}

.team-position {
    font-size: 0.9rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-500);
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===================================
   RESPONSIVE ADJUSTMENTS
   =================================== */
@media (max-width: 991.98px) {
    .hero-section-new {
        min-height: auto;
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-image-container {
        margin-top: 3rem;
    }

    .floating-card {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .about-img-badge {
        bottom: -20px;
        right: 10px;
    }

    .experience-badge {
        width: 100px;
        height: 100px;
    }

    .experience-badge .exp-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-mini-stats {
        display: none;
    }

    .stat-number-modern {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem !important;
    }

    .service-card {
        padding: 1.5rem;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.z-2 {
    z-index: 2;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection Color */
::selection {
    background: var(--primary);
    color: var(--white);
}

/* Focus Styles */
:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: none;
}