:root {
    --bs-primary: #C5A47E;
    --bs-secondary: #0C1E35;
    --bs-dark: #0C1E35;
    --bs-light: #F8F9FA;
    --bs-white: #FFFFFF;
}

.btn.btn-primary,
.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn.btn-primary:hover {
    background-color: #b39164 !important;
    border-color: #b39164 !important;
}

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

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

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

.topbar {
    background: var(--bs-secondary) !important;
}

.navbar .navbar-nav .nav-item::before,
.navbar .navbar-nav .nav-item::after {
    border-color: var(--bs-primary) !important;
}

.navbar .navbar-nav .nav-item:hover::before,
.navbar .navbar-nav .nav-item:hover::after {
    border-color: var(--bs-primary) !important;
}

.btn-square.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

.btn-square.btn-primary:hover {
    background-color: #b39164 !important;
    border-color: #b39164 !important;
}

/* Modern Fluid Carousel 2025 */
.header-carousel-item {
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 600px;
}

.header-carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(12, 30, 53, 0.8), rgba(12, 30, 53, 0.4));
    z-index: 1;
}

.header-carousel-item img {
    transform: scale(1.1);
    transition: transform 8s ease;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.header-carousel-item:hover img {
    transform: scale(1);
}

.carousel-caption {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    z-index: 2;
    background: none;
    padding: 0 !important;
}

.carousel-content-wrapper {
    position: relative;
    padding: 3rem;
    background: rgba(12, 30, 53, 0.85);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--bs-primary);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-content-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(197, 164, 126, 0.1), transparent 60%);
}

.sector-blocks {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.sector-block {
    background: rgba(197, 164, 126, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    flex: 0 1 150px;
    transition: all 0.3s ease;
}

.sector-block:hover {
    background: rgba(197, 164, 126, 0.2);
    transform: translateY(-5px);
}

.sector-block i {
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.sector-block span {
    color: white;
    font-size: 0.9rem;
    display: block;
}

.carousel-caption h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(45deg, #fff, #C5A47E);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.carousel-caption p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.btn-invest {
    background: linear-gradient(45deg, var(--bs-primary), #d4b48e);
    border: none;
    box-shadow: 0 4px 15px rgba(197, 164, 126, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-invest::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    transition: 0.5s ease;
    transform: translate(-100%, -100%) rotate(35deg);
}

.btn-invest:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 164, 126, 0.4);
}

.btn-invest:hover::before {
    transform: translate(0, 0) rotate(35deg);
}

/* Animated Gradient Background */
.about {
    position: relative;
    background: linear-gradient(-45deg, #1a2942, #2c1810, #2a3f54, #1f1f1f);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/texture-overlay.png');
    opacity: 0.1;
    z-index: 0;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* Glass Pyramid About Section */
.pyramid-container {
    position: relative;
    height: 600px;
    perspective: 1000px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
}

.pyramid-face {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    transition: all 0.5s ease;
    overflow: hidden;
    cursor: pointer;
}

.pyramid-face.large {
    grid-column: span 2;
    grid-row: span 1;
}

.pyramid-face img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.pyramid-face:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.pyramid-face:hover img {
    transform: scale(1.1);
}

.pyramid-face .image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.pyramid-face:hover .image-caption {
    transform: translateY(0);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pyramid-face:hover .image-overlay {
    opacity: 1;
}

.stats-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.achievement-item {
    background: rgba(197, 164, 126, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-5px);
    background: rgba(197, 164, 126, 0.2);
}

.highlight-text {
    background: linear-gradient(45deg, #C5A47E, #E6C49F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

.investment-stats {
    position: relative;
    z-index: 1;
}

.investment-stats::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    z-index: -1;
    filter: blur(10px);
}

/* Market Data Blocks */
.market-data-container {
    margin-top: 2rem;
}

.market-block {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.market-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--bs-primary), #ffd700);
    opacity: 0.7;
}

.market-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.market-value {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ffffff, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.market-change {
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    display: inline-block;
    margin-left: 1rem;
}

.market-change.positive {
    background: rgba(40, 199, 111, 0.2);
    color: #28c76f;
}

.market-change.negative {
    background: rgba(234, 84, 85, 0.2);
    color: #ea5455;
}

.market-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.market-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.market-icon {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    opacity: 0.2;
}

/* Modern Sector Cards 2025 - Enhanced */
.service-item {
    position: relative;
    overflow: hidden;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.service-img {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-item:hover .service-img img {
    transform: scale(1.1);
}

.sector-stats {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(197, 164, 126, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    color: white;
    font-weight: 600;
    backdrop-filter: blur(5px);
    z-index: 2;
    transition: all 0.3s ease;
}

.service-item:hover .sector-stats {
    background: rgba(197, 164, 126, 1);
    transform: translateX(-5px);
}

.service-icon {
    position: absolute;
    top: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-icon i {
    color: white;
    font-size: 28px;
}

.service-item:hover .service-icon {
    transform: rotate(360deg);
    background: #b39164;
}

.key-metric {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.key-metric i {
    color: var(--bs-primary);
    margin-right: 8px;
}

.service-item:hover .key-metric {
    background: rgba(197, 164, 126, 0.1);
    transform: translateX(5px);
}

.sector-projects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.sector-projects span {
    background: rgba(197, 164, 126, 0.1);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sector-projects span:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}

/* Real-time Studies Section */
.real-time-study {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.study-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.study-title {
    font-weight: 600;
    color: var(--bs-primary);
}

.study-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.study-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.study-stat i {
    color: var(--bs-primary);
}

.study-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 10px;
}

.study-progress-bar {
    height: 100%;
    background: var(--bs-primary);
    border-radius: 3px;
    transition: width 1s ease;
}

.service-item:hover .real-time-study {
    background: rgba(255, 255, 255, 0.08);
}

/* Why Egypt Section Styles */
.project-item {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.project-item:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(197, 164, 126, 0.9);
    padding: 8px 15px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.highlight-stat {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.project-content {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(197, 164, 126, 0.2);
}

.project-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: rgba(197, 164, 126, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-item:hover .project-icon {
    background: var(--bs-primary);
}

.project-item:hover .project-icon i {
    transform: rotateY(360deg);
    color: white;
}

.project-icon i {
    transition: all 0.6s ease;
}

.advantage-text h4 {
    color: var(--bs-primary);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.advantage-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: #555;
}

.advantage-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--bs-primary);
    font-weight: bold;
}

.project-carousel .owl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 -20px;
}

.project-carousel .owl-nav button {
    width: 50px;
    height: 50px;
    background: rgba(197, 164, 126, 0.9) !important;
    border-radius: 50%;
    color: white !important;
    transition: all 0.3s ease;
}

.project-carousel .owl-nav button:hover {
    background: var(--bs-primary) !important;
    transform: scale(1.1);
}

/* Success Stories Section */
.success-story-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-story-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.story-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.success-story-item:hover .story-image img {
    transform: scale(1.1);
}

.story-category {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(197, 164, 126, 0.9);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
    color: white;
    z-index: 2;
}

.story-category span {
    font-weight: 600;
    font-size: 0.9rem;
}

.investment-value {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 700;
}

.story-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 25px;
    border: 1px solid rgba(197, 164, 126, 0.2);
}

.company-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    overflow: hidden;
    margin-right: 15px;
    border: 2px solid var(--bs-primary);
}

.company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.company-details h5 {
    color: var(--bs-primary);
    margin: 0;
    font-size: 1.1rem;
}

.company-details span {
    font-size: 0.9rem;
    color: #666;
}

.story-content h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.4;
}

.story-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.success-metrics {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 164, 126, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.metric i {
    color: var(--bs-primary);
}

.success-story-item:hover .metric {
    background: rgba(197, 164, 126, 0.2);
    transform: translateX(5px);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more i {
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #b39164;
}

.read-more:hover i {
    transform: translateX(5px);
}

@media (max-width: 992px) {
    .service-item {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .header-carousel-item {
        height: 80vh;
    }
    
    .carousel-content-wrapper {
        margin: 0 1rem;
        padding: 2rem;
    }
    
    .sector-blocks {
        gap: 0.5rem;
    }
    
    .sector-block {
        flex: 0 1 120px;
        padding: 0.75rem;
    }
    
    .pyramid-container {
        height: auto;
        grid-template-columns: 1fr;
    }
    
    .pyramid-face.large {
        grid-column: span 1;
    }
    
    .pyramid-face {
        height: 200px;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .market-block {
        margin-bottom: 1rem;
    }
    
    .market-value {
        font-size: 1.5rem;
    }
    
    .project-img {
        height: 200px;
    }
    
    .advantage-text h4 {
        font-size: 1.1rem;
    }
    
    .advantage-list li {
        font-size: 0.9rem;
    }
    
    .story-image {
        height: 200px;
    }
    
    .story-category {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .success-metrics {
        flex-direction: column;
        gap: 10px;
    }
    
    .story-content h4 {
        font-size: 1.2rem;
    }
}
