/* Import stylesheets */
@import url('abstracts/_variables.css');
@import url('themes/light.css');
@import url('themes/dark.css');
@import url('components/typography.css');
@import url('components/frame.css');
@import url('components/icons.css');
@import url('components/navigation.css');
@import url('components/resume.css');

/* Global variables */
:root {
    /* Colors */
    --color-white: #ffffff;
    --color-black: #1a1a1a;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-400: #bdbdbd;
    --color-gray-500: #9e9e9e;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-body: var(--font-primary);
    --font-heading: var(--font-primary);
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    
    /* Font Weights */
    --weight-thin: 100;
    --weight-extra-light: 200;
    --weight-light: 300;
    --weight-regular: 350;
    --weight-medium: 450;
    --weight-semibold: 550;
    --weight-bold: 650;
    --weight-extra-bold: 800;
    --weight-black: 900;

    /* Containers */
    --container-max-width: 1000px;
    --container-padding: var(--spacing-xl);

    /* Borders */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
}

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

button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--font-body);
    transition: transform 400ms ease-in-out;
}

button:active {
    transform: scale(0.92);
}

/* Common button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--border-radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: var(--weight-regular);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 150ms ease-in-out;
}

.btn:active {
    transform: scale(0.95);
}

.btn .icon {
    width: 16px;
    height: 16px;
}

/* Primary button style */
.btn--primary {
    background-color: var(--primitive-black-900);
    color: var(--primitive-white);
}

.btn--primary:hover {
    background-color: var(--primitive-primary-600);
}

.btn--primary .icon {
    color: var(--primitive-white);
}

:root[data-theme="dark"] .btn--primary {
    background-color: var(--primitive-black-50);
    color: var(--primitive-black-900);
}

:root[data-theme="dark"] .btn--primary:hover {
    background-color: var(--primitive-primary-300);
}

:root[data-theme="dark"] .btn--primary .icon {
    color: var(--primitive-black-900);
}

/* Secondary button style */
.btn--secondary {
    background-color: var(--primitive-white);
    border: 1px solid var(--primitive-alpha-black-300);
    color: var(--text-primary);
}

.btn--secondary:hover {
    background-color: var(--primitive-alpha-black-100);
}

:root[data-theme="dark"] .btn--secondary {
    background-color: var(--bg-primary);
    border: 1px solid var(--primitive-alpha-white-300);
}

:root[data-theme="dark"] .btn--secondary:hover {
    background-color: var(--primitive-alpha-white-100);
}

/* Tertiary button style */
.btn--tertiary {
    background-color: var(--primitive-alpha-black-100);
    border: none;
    color: var(--text-primary);
}

.btn--tertiary:hover {
    background-color: var(--primitive-alpha-black-200);
}

:root[data-theme="dark"] .btn--tertiary {
    background-color: var(--primitive-alpha-white-100);
    color: var(--text-primary);
}

:root[data-theme="dark"] .btn--tertiary:hover {
    background-color: var(--primitive-alpha-white-200);
}

html {
    font-size: 16px;
    line-height: 1.5;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

/* Custom Scrollbar */
/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px; /* thin scrollbar */
}

::-webkit-scrollbar-track {
    background: transparent; /* transparent track */
}

::-webkit-scrollbar-thumb {
    background-color: var(--primitive-alpha-black-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--primitive-alpha-black-500);
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primitive-alpha-black-300) transparent;
}

/* Dark theme scrollbar */
:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background-color: var(--primitive-alpha-white-300);
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background-color: var(--primitive-alpha-white-500);
}

:root[data-theme="dark"] * {
    scrollbar-color: var(--primitive-alpha-white-300) transparent;
}

/* Page Load Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(48px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    padding-top: 8rem;
    overflow: hidden;
    will-change: opacity, transform;
    opacity: 0; /* Initial state before animation starts */
    animation: fadeInUp 1s ease-out 250ms forwards;
}

/* Container utilities */
.container {
    width: calc(100% - 4rem);
    max-width: var(--container-max-width);
    padding: 0;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: var(--font-size-2xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column-reverse;
    padding: 0 0 3rem;
    gap: 2rem;
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    gap: 0.5rem;
}

.hero__heading-wrapper {
    position: relative;
    display: inline-flex;
}

.hero__heading {
    font-size: 2.0625rem; /* 33px */
    font-weight: var(--weight-semibold);
    line-height: 136%;
    letter-spacing: 0.25%;
    margin-bottom: 0;
    color: var(--text-primary);
}

.hero__cursor {
    position: absolute;
    top: 1.5rem;
    right: -5rem;
    width: 4rem;
    height: 3rem;
    z-index: 99;
}

.hero__cursor img{
    position: absolute;
    top: 0;
    left: 0;
}

.hero__cursor-text{
    position: absolute;
    background-color: var(--primitive-primary-500);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-full);
    bottom: 0;
    right: 0;
    font-size: 1rem;
    color: var(--semantic-text-primary-inverted);
}

.hero__text {
    font-size: 1rem;
    line-height: 152%;
    letter-spacing: 0.5%;
    max-width: 32rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.hero__btn {
    width: 80%;
    padding: 0.75rem 2rem;
    font-size: 1.1875rem; /* 19px */
}

.hero__btn .icon {
    width: 20px;
    height: 20px;
}

.hero__image {
    display: flex;
    justify-content: center;
    width: auto;
}

.hero__photo-wrapper {
    position: relative;
}

img.hero__decorative-1, img.hero__decorative-2 {
    position: absolute;
    height: auto;
}

img.hero__decorative-1 {
    width: 97%;
    top: -1%;
    right: 100%;
    height: 100%;
}

img.hero__decorative-2 {
    width: 46%;
    top: -1%;
    left: 100%;
    height: 100%;
}

:root[data-theme="dark"] img.hero__decorative-1, 
:root[data-theme="dark"] img.hero__decorative-2 {
    filter: invert(1);
}

.hero__photo {
    width: 60vw;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 10;
    position: relative;
}

@media (min-width: 768px) {
    main {
        padding-top: 11rem;
    }

    .hero {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 4rem;
        padding: 4rem 0 6rem;
    }
    
    .hero__content {
        align-items: flex-start;
        text-align: left;
        flex: 1;
        padding: 0;
        gap: 0.75rem;
    }
    
    .hero__heading {
        font-size: 3.5625rem; /* 57px */
    }

    .hero__cursor {
        top: 3rem;
    }
    
    .hero__text {
        font-size: 1.4375rem; /* 23px */
        margin-bottom: 3rem;
    }
    
    .hero__btn {
        width: auto;
        font-size: 1.4375rem; /* 23px */
    }
    
    .hero__btn .icon {
        width: 20px;
        height: 20px;
    }
    
    .hero__photo {
        width: 400px;
    }
}

/* Custom selection styles */
::selection {
    background-color: var(--primitive-primary);
    color: var(--primitive-white);
}

::-moz-selection {
    background-color: var(--primitive-primary);
    color: var(--primitive-white);
}

/* Footer styles */
.footer {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 3rem;
    padding: 4rem 0 8rem;
}

.footer__copyright p {
    font-size: 0.875rem; /* 14px */
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 0;
}

.footer__links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    list-style: none;
    gap: 1rem;
    padding: 0;
    margin: 0;
}

.footer__links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 350;
    transition: color 0.2s ease;
    padding: 0 .5rem;
    font-size: 1rem; /* 16px */
}

.footer__links a:hover {
    color: var(--primitive-primary);
}

:root[data-theme="dark"] .footer__links a {
    color: var(--primitive-white);
}

:root[data-theme="dark"] .footer__links a:hover {
    color: var(--primitive-primary-300);
}

@media (min-width: 768px) {
    .footer {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .footer__copyright p {
        font-size: 1rem; /* 16px */
        text-align: left;
    }

    .footer__links ul {
        flex-direction: row;
        gap: 2rem;
    }
}

/* End of main styles */

/* Custom Scrollbar Styling */
/* For Webkit-based browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primitive-alpha-black-300);
    border-radius: 4px;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primitive-alpha-black-400);
}

/* For Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--primitive-alpha-black-300) transparent;
}

/* Dark Theme Scrollbar */
:root[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--primitive-alpha-white-300);
}

:root[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: var(--primitive-alpha-white-400);
}

:root[data-theme="dark"] {
    scrollbar-color: var(--primitive-alpha-white-300) transparent;
}

/* Global utility classes */
.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
    user-select: none;
}
