/* ===== CSS RESET AND BASE STYLES ===== */

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

/* ===== THEME COLORS - CHANGE THESE TO CUSTOMIZE THE COLOR SCHEME ===== */
:root {
    /* Light theme colors (default) */
    --primary-color: #424846;
    /* Primary color - change this to modify main theme */
    --accent-color: #AC9B78;
    /* Accent color - change this to modify highlights */

    --bg-color: #fafafa;
    /* Main background color */
    --text-primary: #2a2a2a;
    /* Primary text color (name, headings) */
    --text-secondary: #5a5a5a;
    /* Secondary text color (tagline, quote) */
    --card-bg: rgba(255, 255, 255, 0.8);
    /* Background for quote section */
    --border-color: rgba(66, 72, 70, 0.2);
    /* Border colors */
    --shadow-color: rgba(66, 72, 70, 0.1);
    /* Shadow colors */

    /* Theme-specific colors for cursor and icons - CHANGE THESE TO CUSTOMIZE */
    --cursor-color: #AC9B78;
    /* Custom cursor color (accent color) */
    --cursor-hover-color: #424846;
    /* Custom cursor hover color (primary color) */
    --icon-color: #424846;
    /* Theme toggle icon color (primary color) */
}

/* Dark theme colors - automatically applied when dark mode is active */
[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-primary: #f0f0f0;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(66, 72, 70, 0.15);
    --border-color: rgba(172, 155, 120, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.3);

    /* Dark theme cursor and icon colors - automatically applied */
    --cursor-color: #AC9B78;
    /* Custom cursor color in dark mode (accent color) */
    --cursor-hover-color: #f0f0f0;
    /* Custom cursor hover color in dark mode (light text) */
    --icon-color: #AC9B78;
    /* Theme toggle icon color in dark mode (accent color) */
}

/* ===== BODY AND LAYOUT ===== */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;

    /* Center content vertically and horizontally */
    display: flex;
    align-items: center;
    justify-content: center;

    /* Prevent horizontal scrolling */
    overflow-x: hidden;

    /* Smooth transitions for theme changes */
    transition: background-color 0.3s ease, color 0.3s ease;

    /* Hide cursor on touch devices */
    cursor: none;
}

/* Show default cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto !important;
    }

    .custom-cursor {
        display: none !important;
    }

    /* Restore default cursor behavior on touch devices */
    .link,
    .theme-toggle,
    button,
    a {
        cursor: pointer !important;
    }
}

/* Main container - adjust max-width to control content width */
.container {
    max-width: 600px;
    width: 90%;
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 2;
}

/* ===== BACKGROUND ANIMATION ===== */

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(66, 72, 70, 0.03) 0%,
            rgba(172, 155, 120, 0.03) 50%,
            rgba(66, 72, 70, 0.03) 100%);
    animation: gradientShift 20s ease-in-out infinite;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.shape-1 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) translateX(10px) rotate(90deg);
    }

    50% {
        transform: translateY(-10px) translateX(-10px) rotate(180deg);
    }

    75% {
        transform: translateY(-30px) translateX(5px) rotate(270deg);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background: linear-gradient(135deg,
                rgba(66, 72, 70, 0.03) 0%,
                rgba(172, 155, 120, 0.03) 50%,
                rgba(66, 72, 70, 0.03) 100%);
    }

    50% {
        background: linear-gradient(225deg,
                rgba(172, 155, 120, 0.05) 0%,
                rgba(66, 72, 70, 0.05) 50%,
                rgba(172, 155, 120, 0.05) 100%);
    }
}

/* ===== CUSTOM CURSOR ===== */

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, border-color 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    transform: scale(1.5);
    border-color: var(--cursor-hover-color);
}

/* ===== CURSOR INTEGRATION WITH INTERACTIVE ELEMENTS ===== */

/* Ensure no default cursor appears over interactive elements when custom cursor is active */
.link,
.theme-toggle,
button,
a {
    cursor: none !important;
}

/* ===== THEME TOGGLE BUTTON ===== */

.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    cursor: none !important;
    /* Ensure custom cursor is used */
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-color);
}

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

.theme-icon {
    font-size: 1.2rem;
    color: var(--icon-color);
    /* Dynamic color based on theme */
    transition: transform 0.3s ease, color 0.3s ease;
    user-select: none;
}

.theme-toggle:hover .theme-icon {
    transform: rotate(20deg);
}

/* ===== HEADER STYLES ===== */

.header {
    margin-bottom: 3rem;
}

/* Main name styling - MODIFY FONT-SIZE, WEIGHT, ETC. HERE */
.name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    /* Responsive font size */
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

/* Tagline styling - ADJUST FONT-SIZE AND COLOR HERE */
.tagline {
    font-size: clamp(1rem, 4vw, 1.25rem);
    /* Responsive font size */
    color: var(--text-secondary);
    font-weight: 300;
    max-width: 500px;
    margin: 0 auto;
    transition: color 0.3s ease;
}

/* ===== QUOTE SECTION WITH ANIMATED GRADIENT ===== */

.quote-section {
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;

    /* Initial state for slide-in animation */
    opacity: 0;
    transform: translateY(20px);
}

.quote-section.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Animated gradient background inside quote box */
.quote-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
            rgba(66, 72, 70, 0.1) 0%,
            rgba(172, 155, 120, 0.1) 50%,
            rgba(66, 72, 70, 0.1) 100%);
    background-size: 200% 200%;
    animation: gradientMove 8s ease-in-out infinite;
    border-radius: 16px;
}

@keyframes gradientMove {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Quote text styling */
.quote {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: var(--text-secondary);
    font-style: italic;
    font-weight: 400;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;

    /* Initial state for fade-in animation */
    opacity: 0;
    transform: translateY(10px);
}

.quote.loaded {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s, color 0.3s ease;
}

/* ===== LINKS SECTION ===== */

.links-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Individual link styling - MODIFY THESE PROPERTIES TO CHANGE LINK APPEARANCE */
.link {
    /* Basic styling */
    display: inline-block;
    padding: 0.75rem 1.5rem;

    /* Typography */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.025em;

    /* Colors */
    color: var(--primary-color);
    background-color: transparent;

    /* Border and shape */
    border: 2px solid var(--primary-color);
    border-radius: 12px;

    /* Smooth transitions for hover effects */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Prevent text selection on links */
    user-select: none;

    /* Position for transform origin */
    position: relative;
    overflow: hidden;
}

/* ===== MODERN HOVER ANIMATIONS (NO GLOW) ===== */

/* Link hover effects - CUSTOMIZE THESE FOR DIFFERENT HOVER ANIMATIONS */
.link:hover {
    /* Clean color and border changes */
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);

    /* Subtle scale effect */
    transform: scale(1.05);

    /* Clean shadow (no glow) */
    box-shadow: 0 4px 20px var(--shadow-color);
}

/* Alternative hover effect using accent color */
.link:nth-child(even):hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

/* Focus styles for accessibility */
.link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 3px;
}

/* Active state (when clicking) */
.link:active {
    transform: scale(0.98);
}

/* ===== RESPONSIVE DESIGN (MOBILE-FIRST) ===== */

/* Tablet styles */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1.5rem 1rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .quote-section {
        margin: 2rem 0;
        padding: 1.25rem;
    }

    .links-section {
        gap: 0.75rem;
    }

    .link {
        padding: 0.65rem 1.25rem;
        font-size: 0.9rem;
    }

    .theme-toggle {
        top: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }

    /* Reduce background animation on tablets */
    .floating-shape {
        opacity: 0.05;
    }
}

/* Mobile styles */
@media (max-width: 480px) {
    .container {
        width: 100%;
        padding: 1rem 0.75rem;
    }

    .header {
        margin-bottom: 1.5rem;
    }

    .quote-section {
        margin: 1.5rem 0;
        padding: 1rem;
    }

    /* Stack links vertically on very small screens */
    .links-section {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .link {
        width: 100%;
        max-width: 220px;
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }

    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }

    .theme-icon {
        font-size: 1rem;
    }

    /* Minimal background animation on mobile */
    .floating-shape {
        display: none;
    }

    .gradient-overlay {
        opacity: 0.5;
    }
}

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

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .link:hover {
        transform: none;
    }

    .floating-shape {
        animation: none;
    }

    .gradient-overlay {
        animation: none;
    }

    .quote-gradient-bg {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --accent-color: #000000;
        --bg-color: #ffffff;
        --text-primary: #000000;
        --text-secondary: #333333;
        --card-bg: #ffffff;
        --border-color: #000000;
        --shadow-color: rgba(0, 0, 0, 0.5);
    }

    [data-theme="dark"] {
        --primary-color: #ffffff;
        --accent-color: #ffffff;
        --bg-color: #000000;
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --card-bg: #000000;
        --border-color: #ffffff;
        --shadow-color: rgba(255, 255, 255, 0.5);
    }
}

/* Focus visible for better keyboard navigation */
.link:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

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