﻿/**
 * Resume Target - Core CSS
 * @version 2.0
 * 
 * Contains:
 * - CSS Reset
 * - Design Tokens (CSS Variables)
 * - Typography
 * - Base Styles
 */

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

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

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

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */

:root {
    /* ---- Colors ---- */
    --color-primary: #1f295e;
    --color-primary-dark: #18214e;
    --color-primary-light: #2a3a7d;
    
    --color-accent: #02c153;
    --color-accent-hover: #01a847;
    --color-accent-light: #e8f5e9;
    
    --color-text: #2d3748;
    --color-text-light: #4a5568;
    --color-text-muted: #718096;
    --color-text-inverse: #ffffff;
    
    --color-border: #e2e8f0;
    --color-border-dark: #cbd5e0;
    
    --color-background: #f8f9fa;
    --color-background-dark: #edf2f7;
    --color-white: #ffffff;
    
    --color-error: #f44336;
    --color-warning: #ff9800;
    --color-success: #02c153;
    --color-info: #2196f3;
    
    /* Google Review Stars */
    --color-star: #FBBC04;
    
    /* ---- Typography ---- */
    --font-primary: 'AvertaPE', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Font Sizes */
    --text-xs: 0.75rem;      /* 12px */
    --text-sm: 0.875rem;     /* 14px */
    --text-base: 1.0625rem;  /* 17px */
    --text-lg: 1.125rem;     /* 18px */
    --text-xl: 1.25rem;      /* 20px */
    --text-2xl: 1.25rem;     /* 20px */
    --text-3xl: 1.5rem;      /* 24px */
    --text-4xl: 1.75rem;     /* 28px */
    --text-5xl: 2rem;        /* 32px */
    --text-6xl: 2.625rem;    /* 42px */
    --text-7xl: 3.5rem;      /* 56px */
    
    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.15;
    --leading-snug: 1.3;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
    --leading-loose: 1.7;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* ---- Spacing ---- */
    --space-0: 0;
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-14: 3.5rem;   /* 56px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    
    /* ---- Container Widths ---- */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1100px;
    --container-2xl: 1200px;
    --container-3xl: 1400px;
    
    /* ---- Border Radius ---- */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 50px;
    --radius-circle: 50%;
    
    /* ---- Shadows ---- */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(31, 41, 94, 0.12);
    --shadow-xl: 0 20px 40px rgba(31, 41, 94, 0.15);
    
    /* ---- Transitions ---- */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
    
    /* ---- Z-Index Scale ---- */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ============================================
   FONT FACES
   ============================================ */

@font-face {
    font-family: 'AvertaPE';
    src: url('/asset/fonts/AvertaPE-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvertaPE';
    src: url('/asset/fonts/AvertaPE-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'AvertaPE';
    src: url('/asset/fonts/AvertaPE-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--leading-normal);
    color: var(--color-text);
    background-color: var(--color-white);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-primary);
}

h1 {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-4);
}

h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-3);
}

h5 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

h6 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
    color: var(--color-text-light);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

strong, b {
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

small {
    font-size: var(--text-sm);
}

/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-text-muted); }
.text-white { color: var(--color-text-inverse); }
.text-light { color: var(--color-text-light); }

/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

/* Font Weights */
.font-regular { font-weight: var(--font-weight-regular); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* ============================================
   HIGHLIGHT STYLES
   ============================================ */

.highlight {
    color: var(--color-accent);
}

.badge {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-accent);
}

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

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

/* ============================================
   FOCUS STYLES
   ============================================ */

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

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

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ============================================
   RESPONSIVE TYPOGRAPHY
   ============================================ */

@media (max-width: 768px) {
    h1 {
        font-size: var(--text-5xl);
    }
    
    h2 {
        font-size: var(--text-3xl);
    }
    
    h3 {
        font-size: var(--text-xl);
    }
    
    h4 {
        font-size: var(--text-lg);
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: var(--text-4xl);
    }
    
    h2 {
        font-size: var(--text-2xl);
    }
}

/* ============================================
   THIRD-PARTY WIDGET OVERRIDES
   ============================================ */

/* Elfsight Google Reviews Widget - FULLY hide on mobile */
@media (max-width: 768px) {
    [class*="elfsight"],
    [class*="eapps"],
    [data-elfsight-app-lazy],
    .elfsight-app-google-reviews-badge {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        width: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}