/* Grungy, darker design inspired by the straw.page look */

:root {
    --primary-color: #f9f9f9;
    --primary-color-dark: #d1d1d1;
    --secondary-color: #cc0000;
    --text-color: #f9f9f9;
    --light-text-color: #a0a0a0;
    --background-color: #000000;
    --card-background: #0f0f0f;
    --border-radius: 0px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    --transition: all 0.2s ease;
    --overlay-color: rgba(0, 0, 0, 0.6);
    --note-color: #f9f9f9;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: var(--text-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
    background-image: url('https://source.unsplash.com/random/1920x1080/?dark,texture');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay-color);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
}

h2 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Courier New', monospace;
    width: 100%;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--light-text-color);
    margin-top: 0.5rem;
}

.greeting {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #f5f5f5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 0.6s ease forwards;
    position: relative;
    transform: rotate(-1deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    color: #333;
    font-family: 'Courier New', monospace;
    background-image: linear-gradient(#f5f5f5 1.1rem, #ccc 1.2rem);
    background-size: 100% 1.2rem;
}

.greeting::before {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 25px;
    height: 25px;
    background-color: transparent;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    z-index: 5;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.greeting p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    line-height: 1.2rem;
    color: #333;
}

.greeting p:first-child {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    font-family: 'Courier New', monospace;
    padding-bottom: 0.3rem;
}

section {
    margin-bottom: 3rem;
    background-color: rgba(15, 15, 15, 0.7);
    padding: 2rem;
    border: 1px solid #333;
}

.about {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-color);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: var(--primary-color);
    color: white;
}

.link-icon {
    font-size: 1.8rem;
    margin-right: 1.2rem;
}

.link-text {
    font-size: 1.1rem;
    font-weight: 500;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color-dark);
    text-decoration: underline;
}

/* Games I Play Section */
.games-i-play {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #333;
    margin-bottom: 1rem;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    background-color: rgba(40, 40, 40, 0.7);
}

.game-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.game-card p {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

.games-note {
    text-align: center;
    font-style: italic;
    color: var(--light-text-color);
    margin: 1.5rem 0;
}

.connect-games {
    margin-top: 2.5rem;
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.game-connect-btn {
    display: inline-block;
    margin-top: 1rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.game-connect-btn:hover {
    background-color: var(--primary-color-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Hobbies Section */
.hobbies {
    margin-top: 4rem;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.hobby-card {
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border: 1px solid #333;
}

.hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    background-color: rgba(40, 40, 40, 0.7);
}

.hobby-icon {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: #ccc;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 1rem;
    background-color: transparent;
}

.hobby-card h3 {
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.hobby-card p {
    color: var(--light-text-color);
    font-size: 0.95rem;
}

/* Media Query Updates for Hobbies */
@media (max-width: 768px) {
    .hobbies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* What I'm Like Section */
.what-im-like {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.personality-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.personality-card {
    background-color: rgba(20, 20, 20, 0.7);
    border-radius: 0;
    padding: 1.2rem 1.5rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: flex-start;
    animation: fadeIn 0.6s ease forwards;
    border: 1px solid #333;
    margin-bottom: 1rem;
}

.personality-card:nth-child(1) { animation-delay: 0.1s; }
.personality-card:nth-child(2) { animation-delay: 0.2s; }
.personality-card:nth-child(3) { animation-delay: 0.3s; }

.personality-card:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    background-color: rgba(40, 40, 40, 0.7);
    border-left: 2px solid #a0a0a0;
}

.personality-icon {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    color: #ccc;
    background: transparent;
    width: auto;
    height: auto;
    min-width: auto;
}

.personality-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .personality-card {
        padding: 1.2rem;
    }
    
    .personality-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 1rem;
    }
}

/* Random Facts Section */
.random-facts {
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.facts-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.fact-card {
    background-color: rgba(20, 20, 20, 0.7);
    padding: 1rem 1.2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    align-items: center;
    animation: fadeIn 0.6s ease forwards;
    opacity: 0;
    border: 1px solid #333;
    margin-bottom: 0.8rem;
}

.fact-card:nth-child(1) { animation-delay: 0.1s; }
.fact-card:nth-child(2) { animation-delay: 0.2s; }
.fact-card:nth-child(3) { animation-delay: 0.3s; }
.fact-card:nth-child(4) { animation-delay: 0.4s; }
.fact-card:nth-child(5) { animation-delay: 0.5s; }
.fact-card:nth-child(6) { animation-delay: 0.6s; }
.fact-card:nth-child(7) { animation-delay: 0.7s; }

.fact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.5);
    background-color: rgba(40, 40, 40, 0.7);
    border-left: 2px solid #a0a0a0;
}

.fact-icon {
    font-size: 1.8rem;
    margin-right: 1.5rem;
    color: #ccc;
    min-width: auto;
    background: transparent;
}

.fact-card p {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .fact-card {
        padding: 1rem;
    }
    
    .fact-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 1rem;
    }
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem 0;
    color: #666;
    font-size: 0.85rem;
    border-top: 1px solid #333;
    font-family: 'Courier New', monospace;
}

/* Media Queries */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .link-grid, .project-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 1rem;
    }
}

/* Animation for cards and sections */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.link-card, .project-card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.link-card:nth-child(1) { animation-delay: 0.1s; }
.link-card:nth-child(2) { animation-delay: 0.2s; }
.link-card:nth-child(3) { animation-delay: 0.3s; }
.link-card:nth-child(4) { animation-delay: 0.4s; }
.link-card:nth-child(5) { animation-delay: 0.5s; }
.link-card:nth-child(6) { animation-delay: 0.6s; }

.project-card:nth-child(1) { animation-delay: 0.7s; }
.project-card:nth-child(2) { animation-delay: 0.8s; }

/* Page load animation */
body {
    opacity: 0;
    transition: opacity 0.8s ease;
}

body.loaded {
    opacity: 1;
}

/* Section fade in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Optional Dark Mode (commented out by default) */
/*
body.dark-mode {
    --primary-color: #818cf8;
    --primary-color-dark: #6366f1;
    --secondary-color: #fb7185;
    --text-color: #f9fafb;
    --light-text-color: #d1d5db;
    --background-color: #111827;
    --card-background: #1f2937;
}

#theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 100;
}

#theme-toggle:hover {
    transform: scale(1.1);
}
*/

/* Handwritten Note */
.handwritten-note {
    background-color: #f5f5f5;
    padding: 1.5rem;
    max-width: 500px;
    margin: 2rem auto 3rem;
    transform: rotate(1deg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    position: relative;
    color: #333;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
    background-image: linear-gradient(#f5f5f5 1.1rem, #ccc 1.2rem);
    background-size: 100% 1.2rem;
}

.handwritten-note::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 20px;
    background-color: transparent;
    border-top: 1px solid #d0d0d0;
    opacity: 0.5;
}

.note-doodle {
    margin-top: 1rem;
    font-size: 1.5rem;
    letter-spacing: 8px;
}

.handwritten-note p {
    font-size: 1.1rem;
    line-height: 1.2rem;
}

/* Special styling for dog images mentioned in the straw page */
.dog-photos {
    text-align: center;
    margin: 2rem 0;
}

.dog-photo {
    display: inline-block;
    max-width: 200px;
    margin: 0 10px;
    border: 1px solid #333;
    padding: 5px;
    background-color: rgba(20, 20, 20, 0.7);
    transform: rotate(-2deg);
}

.dog-photo:nth-child(even) {
    transform: rotate(2deg);
}

.dog-photo img {
    width: 100%;
    height: auto;
    display: block;
}
