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

/* Premium Variables */
:root {
    --primary-color: #D8B46A; /* Elegant Brighter Gold */
    --primary-gradient: linear-gradient(135deg, #D8B46A 0%, #b5952f 100%);
    --primary-hover: #C5A155;
    --dark-bg: #0f172a; /* Slate 900 */
    --darker-bg: #020617; /* Slate 950 */
    --light-bg: #f8fafc; /* Slate 50 */
    --text-dark: #1e293b; /* Slate 800 */
    --text-light: #f8fafc;
    --text-muted: #64748b; /* Slate 500 */
    --border-color: #e2e8f0;
    --font-family: 'Tajawal', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-gold: 0 10px 25px -5px rgba(216, 180, 106, 0.4);
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: var(--light-bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 10px; padding: 12px 28px; border-radius: 50px;
    font-weight: 700; font-size: 1.05rem; cursor: pointer;
    transition: var(--transition); border: 2px solid transparent;
    position: relative; overflow: hidden; z-index: 1;
}
.btn::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.1); transform: scaleX(0); transform-origin: right;
    transition: transform 0.4s ease; z-index: -1; border-radius: 50px;
}
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn-primary { background-color: var(--primary-color); color: var(--darker-bg); box-shadow: var(--shadow-gold); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px -5px rgba(216, 180, 106, 0.5); }
.btn-outline { background-color: transparent; border-color: var(--text-light); color: var(--text-light); }
.btn-outline:hover { background-color: var(--text-light); color: var(--text-dark); transform: translateY(-3px); }
.btn-outline-dark { background-color: transparent; border-color: var(--text-dark); color: var(--text-dark); }
.btn-outline-dark:hover { background-color: var(--text-dark); color: var(--text-light); transform: translateY(-3px); }
.large-btn { padding: 16px 40px; font-size: 1.15rem; }

/* Section Titles */
.section-title { text-align: center; margin-bottom: 50px; position: relative; }
.section-title .sub-title {
    color: var(--darker-bg); font-weight: 800; font-size: 1.15rem;
    display: inline-block; margin-bottom: 10px; padding: 5px 15px;
    background: var(--primary-color); border-radius: 30px; text-transform: uppercase; letter-spacing: 1px;
}
.section-title h2 { font-size: 2.5rem; font-weight: 900; color: var(--text-dark); }

/* Header - Glassmorphism */
.header {
    background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    color: var(--text-light); padding: 15px 0; position: fixed; width: 100%; top: 0; z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.header.scrolled { padding: 10px 0; background: rgba(15, 23, 42, 0.95); box-shadow: var(--shadow-md); }
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo i { transition: transform 0.5s ease; }
.logo:hover i { transform: rotate(10deg) scale(1.1); }
.logo h1 { font-size: 1.4rem; font-weight: 900; margin-bottom: -2px; letter-spacing: 0.5px; }
.logo p { font-size: 0.85rem; color: #f8fafc; font-weight: 400; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; color: #e2e8f0; position: relative; padding: 5px 0; }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 0; height: 2px;
    background-color: var(--primary-color); transition: width 0.3s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; left: 0; right: auto; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-color); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-light); font-size: 1.8rem; cursor: pointer; transition: var(--transition); }
.mobile-menu-btn:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
    position: relative; height: 100vh; min-height: 700px;
    background-image: url('../images/hero_bg.jpg'); background-size: cover; background-position: center; background-attachment: fixed;
    display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.65) 0%, rgba(2, 6, 23, 0.45) 100%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; color: var(--text-light); width: 100%; max-width: 1000px; padding: 0 20px; margin: 0 auto; }
.hero .company-name {
    color: var(--primary-color); font-size: 1.6rem; font-weight: 800; margin-bottom: 5px; letter-spacing: 1px;
}
.hero .subtitle { font-size: 1.15rem; margin-bottom: 30px; font-weight: 400; color: #cbd5e1; }
.hero .main-title { font-size: 3.6rem; font-weight: 900; line-height: 1.4; margin-bottom: 25px; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
.text-gradient { 
    background: linear-gradient(to right, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.hero .desc { font-size: 1.25rem; line-height: 1.8; margin-bottom: 40px; color: #e2e8f0; font-weight: 400; max-width: 750px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; justify-content: center; gap: 20px; }

/* Services */
.services { padding: 100px 0; background-color: var(--light-bg); position: relative; }
.services::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.03), transparent 40%); pointer-events: none;
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.service-card {
    background: #fff;
    border-radius: 20px; text-align: center;
    box-shadow: var(--shadow-md); transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06); position: relative; overflow: hidden;
}
.service-card-img {
    width: 100%; height: 260px; object-fit: cover; display: block;
    border-radius: 0; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover .service-card-img { transform: scale(1.08); }
.service-card-img-wrap {
    overflow: hidden; border-radius: 20px 20px 0 0; position: relative;
}
.service-card-img-wrap::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 35px;
    background: linear-gradient(to top, #fff 10%, rgba(255,255,255,0) 100%);
}
.service-card-body { padding: 28px 28px 32px; }
.service-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary-color); transform: scaleX(0); transition: transform 0.4s ease; transform-origin: right;
}
.service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.service-card:hover::after { transform: scaleX(1); transform-origin: left; }
.service-card .icon-wrapper {
    width: 65px; height: 65px; background: linear-gradient(135deg, rgba(212, 175, 55, 0.12) 0%, rgba(212, 175, 55, 0.22) 100%);
    color: var(--primary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; margin: 0 auto 18px; transition: var(--transition);
}
.service-card:hover .icon-wrapper { background: var(--primary-color); color: #fff; transform: rotateY(180deg); }
.service-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; color: var(--text-dark); }
.service-card p { color: var(--text-muted); font-size: 0.97rem; line-height: 1.7; }

/* Why Us */
.why-us { padding: 100px 0; background-color: #fff; position: relative; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; }
.feature-item { text-align: center; padding: 30px 20px; border-radius: 15px; transition: var(--transition); }
.feature-item:hover { background: var(--light-bg); transform: translateY(-5px); }
.feature-item i { font-size: 3rem; color: var(--primary-color); margin-bottom: 25px; text-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
.feature-item h3 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; }
.feature-item p { color: var(--text-muted); font-size: 1rem; }

/* Portfolio */
.portfolio { padding: 100px 0; background-color: var(--dark-bg); color: var(--text-light); }
.portfolio .section-title h2 { color: var(--text-light); }
.portfolio-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 50px; }
.portfolio-header .section-title { margin-bottom: 0; text-align: right; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }
.portfolio-item {
    position: relative; border-radius: 15px; overflow: hidden; height: 300px;
    box-shadow: var(--shadow-md); cursor: pointer;
}
.portfolio-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 50%); z-index: 1; opacity: 0; transition: var(--transition);
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.portfolio-item:hover img { transform: scale(1.1); }
.portfolio-item:hover::before { opacity: 1; }
.portfolio-item .portfolio-overlay {
    position: absolute; bottom: -50px; left: 0; right: 0; padding: 20px; z-index: 2;
    transition: var(--transition); opacity: 0; text-align: center;
}
.portfolio-item:hover .portfolio-overlay { bottom: 0; opacity: 1; }
.portfolio-overlay h4 { color: #fff; font-size: 1.2rem; font-weight: 700; margin-bottom: 5px; }

/* Stats Section */
.stats {
    position: relative; padding: 80px 0; background-image: url('../images/work_5.jpeg');
    background-size: cover; background-position: center; background-attachment: fixed; color: var(--text-light);
}
.stats-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(5px); z-index: 1; }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; text-align: center; }
.stat-item { padding: 30px; border-radius: 15px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); transition: var(--transition); }
.stat-item:hover { transform: translateY(-10px); background: rgba(255,255,255,0.05); border-color: var(--primary-color); }
.stat-item i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; filter: drop-shadow(0 0 10px rgba(212,175,55,0.4)); }
.stat-item h3 { font-size: 3rem; font-weight: 900; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.stat-item p { font-size: 1.1rem; color: #cbd5e1; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

/* CTA Section */
.cta-section { position: relative; padding: 100px 0; background-image: url('../images/work_6.jpeg'); background-size: cover; background-position: center; background-attachment: fixed; }
.cta-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(248, 250, 252, 0.95) 0%, rgba(226, 232, 240, 0.95) 100%); z-index: 1; }
.cta-content {
    position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
    background: #fff; padding: 60px; border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.cta-content::before {
    content: ''; position: absolute; top: -50%; right: -10%; width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%); border-radius: 50%;
}
.cta-text { max-width: 600px; position: relative; z-index: 1; }
.cta-text .sub-title { color: var(--primary-color); font-weight: 800; font-size: 1.1rem; display: block; margin-bottom: 15px; letter-spacing: 1px; }
.cta-text h2 { font-size: 2.5rem; font-weight: 900; margin-bottom: 15px; color: var(--text-dark); }
.cta-text p { color: var(--text-muted); font-size: 1.15rem; }

/* Footer */
.footer { background-color: var(--darker-bg); color: var(--text-light); padding-top: 80px; position: relative; overflow: hidden; }
.footer::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-col h4 { color: #fff; font-size: 1.3rem; margin-bottom: 25px; font-weight: 800; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background-color: var(--primary-color); border-radius: 2px; }
.footer-col p { margin-bottom: 18px; display: flex; align-items: flex-start; gap: 12px; color: #94a3b8; font-size: 0.95rem; line-height: 1.6; transition: var(--transition); }
.footer-col p:hover { color: #fff; }
.footer-col p i { color: var(--primary-color); margin-top: 5px; font-size: 1.1rem; }
.small-text { font-size: 0.85rem; color: #64748b; display: block; margin-top: 5px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
    width: 45px; height: 45px; border-radius: 50%; background-color: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
    transition: var(--transition); border: 1px solid rgba(255,255,255,0.1);
}
.social-links a:hover { background-color: var(--primary-color); transform: translateY(-5px); border-color: var(--primary-color); box-shadow: var(--shadow-gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: #64748b; }
.footer-links a { color: #64748b; margin: 0 15px; transition: var(--transition); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); }

/* Responsive */
@media (max-width: 1024px) {
    .hero .main-title { font-size: 3.2rem; }
    .footer-content { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
    .nav-links, .header .cta-btn { display: none; }
    .mobile-menu-btn { display: block; }
    .hero, .stats, .cta-section { background-attachment: scroll !important; }
    .hero { min-height: 100svh; padding-top: 80px; }
    .hero .company-name { font-size: 1.4rem; margin-bottom: 5px; }
    .hero .subtitle { font-size: 1.1rem; margin-bottom: 15px; }
    .hero .main-title { font-size: 2.4rem; line-height: 1.3; margin-bottom: 20px; }
    .hero .desc { font-size: 1.1rem; line-height: 1.6; margin-bottom: 30px; }
    .portfolio-header { flex-direction: column; align-items: center; gap: 20px; text-align: center; }
    .portfolio-header .section-title { text-align: center; }
    .cta-content { flex-direction: column; text-align: center; gap: 30px; padding: 40px 20px; }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .footer-col h4::after { right: 50%; transform: translateX(50%); }
    .footer-col { text-align: center; }
    .footer-col p { justify-content: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
@media (max-width: 430px) {
    .hero .main-title { font-size: 2.1rem; }
    .hero-btns { flex-direction: column; width: 100%; gap: 15px; padding: 0 10px; }
    .hero-btns .btn { width: 100%; }
}
