:root {
    --bg-color: #f0f0eb;
    --text-color: #1a1a1a;
    --accent-1: #ff6b6b; /* Red/Orange */
    --accent-2: #4ecdc4; /* Teal */
    --accent-3: #ffe66d; /* Yellow */
    --border-width: 3px;
    --shadow-offset: 6px;
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Space Grotesk', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 2rem;
}

/* Container */
.container {
    max-width: 800px;
    width: 100%;
    z-index: 10;
    animation: fadeIn 0.8s ease-out forwards;
}

/* Header */
.hero {
    margin-bottom: 4rem;
    position: relative;
}

.title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(4rem, 15vw, 8rem);
    font-weight: 800;
    line-height: 0.9;
    text-transform: uppercase;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    border-left: var(--border-width) solid var(--text-color);
    padding-left: 1rem;
    margin-left: 0.5rem;
}

/* Links Grid */
.links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.link-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    background: white;
    border: var(--border-width) solid var(--text-color);
    box-shadow: var(--shadow-offset) var(--shadow-offset) 0 0 var(--text-color);
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.25rem;
    transition: transform 0.1s, box-shadow 0.1s;
    position: relative;
    overflow: hidden;
    
    /* Button Reset */
    font-family: inherit;
    width: 100%; /* For button */
    text-align: left; /* For button */
    cursor: pointer;
}

.link-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: calc(var(--shadow-offset) + 2px) calc(var(--shadow-offset) + 2px) 0 0 var(--text-color);
}

.link-card:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 0 var(--text-color);
}

.link-card:focus-visible {
    outline: 3px solid var(--text-color);
    outline-offset: 8px; /* Increased to ensure it wraps around the shadow */
}

.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 1.5rem; /* Ensure text icons like @ match size */
}

/* Specific Card Colors/Styles */
.github:hover {
    background-color: var(--accent-1);
}

.linkedin:hover {
    background-color: var(--accent-2);
}

.email:hover {
    background-color: var(--accent-3);
}

.arrow {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
}

/* Background Pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--text-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}

/* Tablet/Mobile Font Sizing */
@media (max-width: 1200px) {
    .title {
        font-size: 11vw;
    }
}

/* Mobile Layout */
@media (max-width: 600px) {
    .hero {
        margin-bottom: 2rem;
    }
    
    .links {
        grid-template-columns: 1fr;
    }
}
