/*
 * Muhammad Ali Portfolio - Main Stylesheet
 * Amazon Color Scheme: Orange #FF9900, Dark Navy #232F3E
 */

/* ===== CSS Variables ===== */
:root {
    /* Amazon Colors */
    --primary: #FF9900;
    --primary-hover: #FFAD33;
    --primary-dark: #E68A00;
    --secondary: #232F3E;
    --secondary-light: #37475A;
    --dark: #0F1111;
    --light: #FFFFFF;
    --gray-100: #F7F8F8;
    --gray-200: #EAEDED;
    --gray-300: #D5D9D9;
    --gray-400: #888C8C;
    --gray-500: #565959;

    /* Typography */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    padding: 12px 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.navbar-content {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-weight: 700;
    font-size: 18px;
    color: var(--dark);
}

.nav-logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-500);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition-normal);
}

.nav-links a:hover {
    color: var(--dark);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--primary);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-normal);
}

.nav-cta:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 153, 0, 0.4);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition-fast);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 span {
    color: var(--primary);
    position: relative;
}

.hero-text h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(255, 153, 0, 0.3);
    z-index: -1;
}

.hero-text p {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 500px;
    margin-bottom: 32px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 153, 0, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--light);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(35, 47, 62, 0.4);
}

/* Hero Image */
.hero-image {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 153, 0, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* Floating Badge */
.hero-badge {
    position: absolute;
    bottom: -20px;
    left: -30px;
    background: var(--primary);
    color: var(--dark);
    padding: 16px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    font-size: 14px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ===== Stats Section ===== */
.stats {
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    background: var(--light);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== Brands Section ===== */
.brands {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    background: rgba(255, 153, 0, 0.1);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.brand-item {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-normal);
    max-height: 48px;
}

.brand-item:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ===== Portfolio Section ===== */
.portfolio {
    padding: 80px 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.portfolio-card {
    background: var(--light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-card:hover .portfolio-arrow {
    transform: translate(4px, -4px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 806 / 632;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--dark);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.portfolio-info {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.portfolio-arrow {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.portfolio-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--dark);
}

/* ===== Design Process Section ===== */
.process {
    padding: 80px 0;
    background: var(--secondary);
    color: var(--light);
    margin: 80px 0;
    border-radius: var(--radius-xl);
}

.process .section-label {
    background: rgba(255, 153, 0, 0.2);
}

.process .section-title {
    color: var(--light);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.process-card {
    text-align: center;
    padding: 32px 24px;
}

.process-number {
    font-size: 64px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.8;
}

.process-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--light);
}

.process-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    padding: 80px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 18px;
    color: rgba(15, 17, 17, 0.8);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-dark {
    background: var(--dark);
    color: var(--light);
}

.btn-dark:hover {
    background: var(--secondary);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--light);
    transform: translateY(-3px);
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary);
    padding: 80px 0 40px;
    color: var(--light);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer-brand h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.8;
    max-width: 300px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 16px;
    transition: var(--transition-fast);
}

.footer-contact a:hover {
    color: var(--primary);
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 48px;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-4px);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ===== Portfolio Lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition-normal);
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--primary);
    color: var(--dark);
}

.lightbox-content {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-header {
    text-align: center;
    margin-bottom: 40px;
    color: var(--light);
}

.lightbox-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.lightbox-category {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
}

.lightbox-images {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1400px;
    width: 100%;
}

.lightbox-image {
    width: 100%;
    cursor: zoom-in;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition-normal);
}

.lightbox-image img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
    position: fixed;
    inset: 0;
    z-index: 3000;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.98);
    overflow: auto;
}

.lightbox-image.zoomed img {
    max-width: none;
    width: auto;
    max-height: none;
    cursor: zoom-out;
}

/* ===== Scroll Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100% - 32px);
        padding: 12px 16px;
    }

    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-badge {
        position: relative;
        bottom: 0;
        left: 0;
        margin-top: 20px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 48px 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
    }

    .lightbox-content {
        padding: 60px 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* ===== Mobile Menu Overlay ===== */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--light);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: var(--dark);
}

.mobile-menu a {
    font-size: 24px;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--dark);
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* ===== Loading Animation ===== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--light);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== WhatsApp Float Button ===== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
    }
}