/* =========================================
   Ahmed Saeed — Personal Site
   Dark theme + Gold accents
   ========================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --border: #1e1e1e;
    --border-hover: #2a2a2a;
    --text: #e5e5e5;
    --text-muted: #888888;
    --text-dim: #666666;
    --gold: #d4a853;
    --gold-dim: rgba(212, 168, 83, 0.15);
    --gold-hover: #e0b86a;
    --green: #34d399;
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gold);
    color: #0a0a0a;
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-1px);
}

.btn-full {
    width: 100%;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 1px;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: var(--border-hover);
    flex-shrink: 0;
}

.nav-link-external {
    color: var(--gold) !important;
    font-weight: 500;
}

.nav-link-external:hover {
    color: var(--gold-hover) !important;
}

.mobile-menu-divider {
    width: 40px;
    height: 1px;
    background: var(--border-hover);
}

.mobile-menu-link-external {
    color: var(--gold) !important;
}

.nav-cta {
    padding: 10px 22px;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 10, 0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition);
}

.mobile-menu.open {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
}

.mobile-menu-link:hover {
    color: var(--gold);
}

.mobile-menu-cta {
    margin-top: 16px;
}

/* --- Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: center;
}

.hero-text {
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-name {
    font-size: clamp(3.5rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-name-line {
    display: block;
}

.hero-name-divider {
    color: var(--gold);
    margin: 0 4px;
    font-weight: 300;
}

.hero-bio {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 520px;
}

.hero-bio strong {
    color: var(--text);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-image {
    flex-shrink: 0;
}

.headshot-wrapper {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 0 40px rgba(212, 168, 83, 0.1);
}

.headshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.headshot-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.headshot-fallback span {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
}

/* --- Sections --- */
.section {
    padding: 120px 0;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 16px;
}

.section-heading {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 56px;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.about-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 32px;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold);
}

.card-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.about-story-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.about-right p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-right p:last-child {
    margin-bottom: 0;
}

.about-right strong {
    color: var(--text);
}

/* --- Journey / Timeline --- */
.journey {
    background: var(--bg);
}

.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-entry {
    position: relative;
    padding-left: 48px;
    padding-bottom: 56px;
}

.timeline-entry:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 0;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--text-dim);
    z-index: 1;
    transition: all var(--transition);
}

.timeline-entry:last-child .timeline-dot {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: 0 0 12px rgba(212, 168, 83, 0.4);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 8px;
}

.timeline-ongoing {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--green);
    margin-bottom: 4px;
}

.ongoing-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: all var(--transition);
}

.timeline-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.timeline-card-active {
    border-color: rgba(212, 168, 83, 0.3);
}

.timeline-card-active:hover {
    border-color: rgba(212, 168, 83, 0.5);
}

.timeline-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* --- Impact --- */
.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.impact-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--transition);
}

.impact-stat-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.impact-stat-value {
    display: block;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -1px;
    margin-bottom: 8px;
}

.impact-stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-product {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
}

.featured-product:hover {
    border-color: var(--border-hover);
}

.featured-product-inner {
    padding: 40px;
}

.featured-product-header {
    margin-bottom: 16px;
}

.featured-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    background: var(--gold-dim);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.featured-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 600px;
}

.featured-data {
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.featured-data-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.featured-data-row + .featured-data-row {
    border-top: 1px solid var(--border);
}

.featured-data-label {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.featured-data-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text);
    transition: border-color var(--transition);
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.contact-card:hover {
    border-color: var(--border-hover);
    transform: translateX(4px);
}

.contact-card-whatsapp {
    border-color: rgba(212, 168, 83, 0.3);
}

.contact-card-whatsapp:hover {
    border-color: var(--gold);
}

.contact-card-whatsapp .contact-card-icon {
    color: var(--gold);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-dim);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    flex-shrink: 0;
}

.contact-card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.contact-card-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-card-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-location {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 8px;
    padding-left: 4px;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.8;
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: none;
    }

    .hero-bio {
        max-width: none;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .headshot-wrapper {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }

    .headshot-fallback span {
        font-size: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .impact-stats {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        padding: 100px 24px 60px;
    }

    .hero-name {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .hero-stats {
        gap: 16px;
    }

    .hero-stat-divider {
        height: 24px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .section-heading {
        margin-bottom: 40px;
    }

    .featured-product-inner {
        padding: 24px;
    }

    .featured-data-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
