/* ==================== IMPROVED HOME SECTIONS DESIGN ==================== */

:root {
    /* Refined Executive Palette */
    --executive-navy: #0f172a;
    --executive-gold: #966F33;
    /* Earthy Gold */
    --executive-gold-light: #c5a059;
    --text-lead: #0f172a;
    --text-slate: #475569;
    --surface-white: #ffffff;
    --surface-off: #121317;
    --border-soft: rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.05);
}

body.dark-theme {
    --text-lead: #ffffff;
    --text-slate: rgba(255, 255, 255, 0.7);
    --surface-white: #121212;
    --surface-off: #0f172a;
    --border-soft: rgba(255, 255, 255, 0.1);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.4);
}

/* --- 1. Bio Section Refinements --- */
.bio-section {
    position: relative;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--surface-white);
    overflow: hidden;
}

/* Subtle background pattern for Bio */
.bio-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)),
        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='%23926a2d' 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");
    z-index: 0;
}

.bio-grid {
    position: relative;
    z-index: 2;
    align-items: center;
    /* Center align items vertically */
}

/* Enhanced Bio Text */
.bio-text {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-slate);
    margin-bottom: 2rem;
    position: relative;
}

/* Premium Highlights Box */
.bio-highlights {
    background: var(--surface-white);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
    border-radius: 8px;
    padding: 3rem;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.bio-highlights::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--executive-gold);
}

.highlight-value {
    color: var(--executive-navy);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--executive-navy) 0%, #2c3e50 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-label {
    color: var(--executive-gold);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Image Frame Enhancement */
.bio-image-frame {
    box-shadow: 30px 30px 0 -10px var(--surface-off), 30px 30px 0 0 var(--executive-gold);
    border-radius: 0;
    /* Sharp architectural corners */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.bio-image-wrapper:hover .bio-image-frame {
    transform: translateY(-10px);
}

/* --- 2. Milestones / Architectural Panels Design --- */
.milestone-panels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
    perspective: 1000px;
}

.milestone-panel {
    background: #fff;
    padding: 40px 30px;
    border-radius: 4px;
    /* Sharp architectural look */
    border: 1px solid var(--border-soft);
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
}

.milestone-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--executive-gold);
    transform: scaleX(0);
    transition: transform 0.6s ease;
    transform-origin: left;
}

[dir="rtl"] .milestone-panel::after {
    transform-origin: right;
}

.milestone-panel:hover {
    transform: translateY(-15px) rotateX(2deg);
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
    border-color: var(--executive-gold);
}

.milestone-panel:hover::after {
    transform: scaleX(1);
}

/* Category Tag Pill */
.panel-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--executive-gold);
    background: rgba(146, 106, 45, 0.05);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 30px;
    font-weight: 700;
}

/* Icon Block */
.panel-icon-wrap {
    width: 70px;
    height: 70px;
    background: var(--executive-navy);
    color: var(--executive-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.milestone-panel:hover .panel-icon-wrap {
    background: var(--executive-gold);
    color: var(--executive-navy);
    transform: scale(1.1);
}

/* Content */
.panel-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--executive-navy);
    margin-bottom: 15px;
}

.panel-desc {
    font-size: 1rem;
    color: var(--text-slate);
    line-height: 1.8;
}

/* Watermark Number */
.panel-num {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 10rem;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.03);
    line-height: 1;
    z-index: 0;
    font-family: 'Montserrat', sans-serif;
}

[dir="rtl"] .panel-num {
    right: auto;
    left: -10px;
}

/* Decoration */
.panel-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-top: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    opacity: 0.5;
}

[dir="rtl"] .panel-decoration {
    right: auto;
    left: 20px;
    border-right: none;
    border-left: 1px solid var(--border-soft);
}

@media (max-width: 991px) {
    .milestone-panels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .milestone-panels {
        grid-template-columns: 1fr;
    }
}

/* --- 3. Quote Section Enhancement --- */
.vision-quote {
    background: linear-gradient(135deg, #0F172A 0%, #1a2639 100%);
    padding: 100px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Decorative huge quote mark */
.vision-quote::before {
    content: '“';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 400px;
    color: rgba(255, 255, 255, 0.02);
    font-family: serif;
    line-height: 1;
    pointer-events: none;
}

.vision-quote__text {
    font-size: 2.5rem;
    font-weight: 300;
    /* Lighter font weight for elegance */
    font-family: var(--font-heading);
    /* Use heading font */
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto 40px;
}

.vision-quote__author {
    font-size: 1rem;
    letter-spacing: 4px;
    color: var(--executive-gold-alt);
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.vision-quote__author::before,
.vision-quote__author::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.vision-quote__author::before {
    left: -40px;
}

.vision-quote__author::after {
    right: -40px;
}

/* --- 4. Section Headers --- */
.section-head__title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

/* Special dot styling */
.section-head__title span {
    color: var(--executive-gold);
}

/* --- 1. About Snapshot --- */
.about-snapshot {
    padding: 80px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    border-top: 1px solid var(--border-soft);
}

.about-snapshot__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-snapshot__intro {
    max-width: 600px;
}

.snapshot-label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--executive-gold);
    margin-bottom: 20px;
    font-weight: 700;
}

.snapshot-title {
    font-size: 2.25rem;
    color: var(--executive-navy);
    margin-bottom: 25px;
    line-height: 1.2;
}

.snapshot-text {
    font-size: 1.15rem;
    color: var(--text-slate);
    line-height: 1.8;
}

.about-snapshot__highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.highlight-card {
    padding: 25px 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    text-align: left;
}

[dir="rtl"] .highlight-card {
    text-align: right;
}

.highlight-card:hover {
    background: var(--surface-white);
    box-shadow: var(--shadow-soft);
    border-color: var(--executive-gold);
}

.highlight-icon {
    font-size: 28px;
    color: var(--executive-gold);
}

.highlight-info h4 {
    font-size: 1.1rem;
    color: var(--executive-navy);
    margin-bottom: 2px;
    font-weight: 700;
}

.highlight-info p {
    font-size: 0.9rem;
    color: var(--text-slate);
    margin: 0;
}

/* --- 2. Focus Areas (What I Do) --- */
.focus-areas {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.focus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.focus-card {

    padding: 50px 40px;
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.focus-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border-color: var(--executive-gold);
}

.focus-icon-wrap {
    width: 80px;
    height: 80px;
    background: rgba(146, 106, 45, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--executive-gold);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.focus-card:hover .focus-icon-wrap {
    background: var(--executive-gold);
    color: var(--executive-navy);
}

.focus-card h3 {
    font-size: 1.4rem;
    color: var(--executive-navy);
    margin-bottom: 15px;
}

.focus-card p {
    color: var(--text-slate);
    line-height: 1.7;
    margin: 0;
}

/* --- 3. Impact Stats --- */
.stats-section {
    padding: 70px 0;
    background: var(--executive-navy);
    color: var(--surface-white);
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-count {
    display: block;
    font-size: 4rem;
    font-weight: 800;
    color: var(--executive-gold);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.7;
    font-weight: 600;
}

/* --- 4. Featured Work --- */
.featured-work {
    padding: 80px 0;
    background: var(--surface-off);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.work-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    cursor: pointer;
}

.work-img-wrap {
    width: 100%;
    height: 100%;
}

.work-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.work-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    color: #fff;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.work-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--executive-gold);
    color: var(--executive-navy);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 15px;
}

.work-item:hover .work-img-wrap img {
    transform: scale(1.1);
}

.work-item:hover .work-content {
    transform: translateY(0);
}

/* --- 5. Philosophy --- */
.philosophy {
    padding: 100px 0;
    background: #a7c0d9;
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.philosophy-text {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--executive-navy);
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    font-style: italic;
}

.philosophy-author {
    margin-top: 40px;
    display: block;
    color: var(--executive-gold);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
}

/* --- 6. Latest Insights (Magazine Style) --- */
.blog-preview {
    padding: 120px 0;

}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.blog-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    position: relative;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-card__img {
    height: 300px;
    overflow: hidden;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.blog-card__img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(15, 23, 42, 0.4));
    z-index: 1;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.blog-card:hover .blog-card__img::after {
    opacity: 0.8;
}

.blog-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.blog-card:hover .blog-card__img img {
    transform: scale(1.08);
}

.blog-card__content {
    padding: 30px 15px;
    flex-grow: 1;
    position: relative;
}

.blog-card__tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--executive-gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card__tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--executive-gold);
    display: inline-block;
}

.blog-card__title {
    font-size: 1.5rem;
    color: var(--executive-navy);
    margin-bottom: 20px;
    line-height: 1.35;
    font-weight: 800;
    font-family: 'Cairo', 'Tajawal', sans-serif !important;
    transition: color 0.3s ease;
}

body.dark-theme .blog-card__title {
    color: #fff;
}

.blog-card:hover .blog-card__title {
    color: var(--executive-gold);
}

.blog-card__excerpt {
    font-size: 1rem;
    color: var(--text-slate);
    line-height: 1.8;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-slate);
    border-top: 1px solid var(--border-soft);
    padding-top: 20px;
    margin-top: auto;
}

.blog-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card__date i {
    color: var(--executive-gold);
    font-size: 16px;
}

/* Arrow indicator for Read More vibe */
.blog-card__more {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--executive-navy);
    transition: all 0.3s ease;
}

body.dark-theme .blog-card__more {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.blog-card:hover .blog-card__more {
    background: var(--executive-gold);
    border-color: var(--executive-gold);
    color: #fff;
    transform: translateX(5px);
}

[dir="rtl"] .blog-card:hover .blog-card__more {
    transform: translateX(-5px);
}

.blog-cta {
    text-align: center;
    margin-top: 80px;
}

/* --- 7. Final Integrated Contact Form --- */
.integrated-contact {
    padding: 80px 0;
    /* background: var(--surface-off);*/
    border-top: 1px solid var(--border-soft);
}

.contact-integrated-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.05);
}

.contact-integrated-head {
    text-align: center;
    margin-bottom: 60px;
}

.contact-integrated-head h2 {
    font-size: 2.5rem;
    color: var(--executive-navy);
    font-family: 'Cairo', sans-serif !important;
    font-weight: 800;
    margin-bottom: 15px;
}

.contact-integrated-head p {
    color: var(--text-slate);
    font-size: 1.1rem;
}

.integrated-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group-full {
    grid-column: span 2;
}

.integrated-input {
    width: 100%;
    padding: 18px 25px;

    border: 1px solid var(--border-soft);
    border-radius: 8px;
    font-family: 'Cairo', sans-serif !important;
    font-size: 1rem;
    color: var(--executive-navy);
    transition: all 0.3s ease;
}

.integrated-input:focus {
    outline: none;
    border-color: #966F33;
    /* Earthy Gold */
    background: #fff;
    box-shadow: 0 0 0 4px rgba(150, 111, 51, 0.1);
}

.integrated-submit {
    grid-column: span 2;
    background: linear-gradient(135deg, #966F33 0%, #7d5a2a 100%) !important;
    /* Golden Gradient */
    color: #fff !important;
    padding: 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    font-family: 'Cairo', sans-serif !important;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px rgba(150, 111, 51, 0.2);
}

.integrated-submit:hover {
    background: linear-gradient(135deg, #7d5a2a 0%, #966F33 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(150, 111, 51, 0.3);
}

@media (max-width: 768px) {
    .contact-integrated-wrap {
        padding: 40px 25px;
    }

    .integrated-form-grid {
        grid-template-columns: 1fr;
    }

    .form-group-full {
        grid-column: span 1;
    }

    .integrated-submit {
        grid-column: span 1;
    }
}

/* Responsive Fixes */
@media (max-width: 991px) {

    .about-snapshot__grid,
    .stats-grid,
    .work-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-snapshot__grid {
        text-align: center;
    }

    .about-snapshot__intro {
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .philosophy-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    .snapshot-title,
    .final-cta h2 {
        font-size: 2rem;
    }

    .stat-count {
        font-size: 3rem;
    }
}

/* --- Dark Mode Adjustments for New Styles --- */
/* --- Unified Dark Mode Enhancements --- */
body.dark-theme .bio-section,
body.dark-theme .about-snapshot,
body.dark-theme .philosophy {
    background-color: var(--surface-white) !important;
}

body.dark-theme .snapshot-title,
body.dark-theme .section-head__title,
body.dark-theme .panel-title,
body.dark-theme .blog-card__title,
body.dark-theme .contact-integrated-head h2,
body.dark-theme .philosophy-text,
body.dark-theme .focus-card h3 {
    color: var(--text-lead) !important;
}

body.dark-theme .snapshot-text,
body.dark-theme .panel-desc,
body.dark-theme .focus-card p,
body.dark-theme .blog-card__excerpt,
body.dark-theme .contact-integrated-head p {
    color: var(--text-slate) !important;
}

body.dark-theme .bio-highlights,
body.dark-theme .highlight-card,
body.dark-theme .focus-card,
body.dark-theme .blog-card,
body.dark-theme .contact-integrated-wrap {
    background: var(--surface-white) !important;
    border-color: var(--border-soft) !important;
    box-shadow: var(--shadow-soft) !important;
}

body.dark-theme .focus-card:hover,
body.dark-theme .blog-card:hover,
body.dark-theme .highlight-card:hover {
    border-color: var(--executive-gold) !important;
    background: rgba(255, 255, 255, 0.03) !important;
}

body.dark-theme .integrated-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-soft) !important;
    color: #fff !important;
    backdrop-filter: blur(10px);
}

body.dark-theme .integrated-input:focus {
    border-color: var(--executive-gold) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

body.dark-theme .panel-num {
    color: rgba(255, 255, 255, 0.03) !important;
}

/* Ensure consistent gold throughout */
.executive-gold-text {
    color: var(--executive-gold);
}

.executive-gold-bg {
    background: var(--executive-gold);
}