/* ==============================================
   AHMED PAPER DECORATIONS
   Base & Reset Styles
   ============================================== */


/* ==========================================
   CSS RESET
   ========================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: var(--lh-normal);
    color: var(--color-black-soft);
    background-color: var(--color-white);
    overflow-x: hidden;
    min-height: 100vh;
}


/* ==========================================
   TYPOGRAPHY DEFAULTS
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-semibold);
    line-height: var(--lh-tight);
    color: var(--color-black);
    margin-bottom: var(--space-4);
}

h1 { font-size: var(--fs-5xl); }
h2 { font-size: var(--fs-4xl); }
h3 { font-size: var(--fs-3xl); }
h4 { font-size: var(--fs-2xl); }
h5 { font-size: var(--fs-xl); }
h6 { font-size: var(--fs-lg); }

p {
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--color-gray-700);
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-black);
    text-decoration: none;
    transition: var(--transition-normal);
}

a:hover {
    color: var(--color-gold);
}


/* ==========================================
   LISTS
   ========================================== */

ul, ol {
    list-style: none;
}

.list-styled {
    list-style: disc;
    padding-left: var(--space-6);
}

.list-styled li {
    margin-bottom: var(--space-2);
    color: var(--color-gray-700);
}


/* ==========================================
   IMAGES & MEDIA
   ========================================== */

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

picture {
    display: block;
}

video, iframe {
    max-width: 100%;
}


/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background: var(--color-gold);
    color: var(--color-black);
}

::-moz-selection {
    background: var(--color-gold);
    color: var(--color-black);
}


/* ==========================================
   SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: var(--radius-sm);
    transition: var(--transition-normal);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold);
}


/* ==========================================
   CONTAINER
   ========================================== */

.container-custom {
    width: 100%;
    max-width: var(--container-2xl);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}


/* ==========================================
   SECTION PADDING
   ========================================== */

.section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.section-sm {
    padding-top: var(--space-10);
    padding-bottom: var(--space-10);
}

.section-lg {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
}


/* ==========================================
   SECTION TITLE (Reusable)
   ========================================== */

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-3xl);
    font-weight: var(--fw-bold);
    color: var(--color-black);
    margin-bottom: var(--space-3);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: var(--fs-base);
    color: var(--color-gray-500);
    font-weight: var(--fw-regular);
    margin-top: var(--space-6);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================
   UTILITY CLASSES
   ========================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-gold { color: var(--color-gold); }
.text-black { color: var(--color-black); }
.text-white { color: var(--color-white); }
.text-gray { color: var(--color-gray-500); }

.bg-gold { background-color: var(--color-gold); }
.bg-black { background-color: var(--color-black); }
.bg-white { background-color: var(--color-white); }
.bg-gray { background-color: var(--color-gray-50); }
.bg-gradient-gold { background: var(--gradient-gold); }
.bg-gradient-dark { background: var(--gradient-dark); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-gold { box-shadow: var(--shadow-gold-md); }

.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }


/* ==========================================
   ACCESSIBILITY
   ========================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}


/* ==========================================
   ANIMATIONS - GLOBAL KEYFRAMES
   ========================================== */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ==========================================
   ANIMATION UTILITY CLASSES
   ========================================== */

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}