:root {
  --boots-brown-darker: #24180f;
  --boots-brown-dark: #3e2723;
  --boots-brown-mid: #8d5524;
  --boots-brown-light: #a9744f;
  --boots-gradient-angle: 80deg;

  --tmc-border-radius: 8px;
  --tmc-border-radius-small: 4px;
  --tmc-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  --tmc-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.25);

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* For easy theme reference */
  --tmc-gradient-primary-angle: var(--boots-gradient-angle);
  --tmc-gradient-primary-stops: var(--boots-brown-darker) 0%, var(--boots-brown-dark) 25%, var(--boots-brown-mid) 70%, var(--boots-brown-light) 100%;
}

/* Font faces */
@font-face {
    font-family: 'Saira Stencil One';
    src: url('fonts/SairaStencilOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Victor Mono';
    src: url('fonts/VictorMono-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Victor Mono';
    src: url('fonts/VictorMono-Italic-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 700;
    font-style: italic;
    font-display: swap;
}

/* Reset and Base styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { margin: 0; padding: 0; }

body {
    font-family: 'Victor Mono', monospace;
    background: linear-gradient(var(--tmc-gradient-primary-angle), var(--tmc-gradient-primary-stops));
    background-attachment: fixed;
    color: white;
    line-height: 1.5;
    font-weight: 400;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

/* Language switcher */
.language-switcher {
    text-align: center;
    margin-bottom: 30px;
}
.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Saira Stencil One', sans-serif;
    letter-spacing: 1px;
    border-radius: var(--tmc-border-radius-small);
    margin: 0 5px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}
.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}
.lang-btn.active {
    background: white;
    color: var(--boots-brown-darker);
    box-shadow: var(--tmc-shadow);
}

/* Header styles */
header {
    text-align: center;
    margin-bottom: 40px;
}
.profile-picture {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--boots-brown-dark);
    animation: pulse 3s infinite;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}
.profile-picture:hover {
    transform: scale(1.05);
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

h1 {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 2.2rem;
    color: white;
    font-weight: normal;
    margin-bottom: 6px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.subtitle {
    font-family: 'Victor Mono', monospace;
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Section titles */
.section-title {
    font-family: 'Saira Stencil One', sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* About section (profile description) */
.about-section {
    background: rgba(255,255,255,0.1);
    border-radius: var(--tmc-border-radius);
    border: 2px solid rgba(255,255,255,0.2);
    margin: 25px 0 0 0;
    padding: 25px 20px;
    backdrop-filter: blur(15px);
}
.about-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.about-item {
    display: flex;
    align-items: center;
    gap: 20px;
}
.about-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--tmc-border-radius-small);
    border: 2px solid rgb(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.about-content img {
    max-width: 28px;
    height: auto;
}

.about-text {
    flex: 1;
}
.about-text p {
    font-family: 'Victor Mono', monospace;
    color: rgba(255,255,255,0.92);
    line-height: 1.5;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}
.about-text b {
    font-weight: 700;
}

/* Links section */
.links-section {
    margin: 30px 0 25px 0;
}
.links-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
}

/* Cards for links */
.link-card {
    background: rgba(255,255,255,0.95);
    border: 2px solid rgba(255,255,255,1);
    border-radius: var(--tmc-border-radius);
    overflow: hidden;
    box-shadow: var(--tmc-shadow);
    transition: var(--transition-smooth);
    position: relative;
    animation: fadeInUp 0.57s ease-out forwards;
}
.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--tmc-shadow-hover);
}
.link-content {
    display: flex;
    align-items: center;
    padding: 20px;
    text-decoration: none;
    color: var(--boots-brown-darker);
    min-height: 70px;
    transition: var(--transition-smooth);
}
.link-card:hover .link-content {
    background: linear-gradient(135deg, rgba(29,34,82,0.07) 0%, rgba(62,30,112,0.04) 100%);
}

/* Icon in link cards */
.link-icon {
    width: 42px;
    height: 42px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(61deg, rgb(51,51,51,0.08) 0%, rgb(51,51,51,0.04) 100%);
    border-radius: var(--tmc-border-radius-small);
    padding: 8px;
    flex-shrink: 0;
}
.link-logo-rounded {
    border-radius: 50%;
}
.link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.link-content span {
    font-family: 'Victor Mono', monospace;
    font-size: 1rem;
    font-weight: 500;
    line-height: normal;
    color: var(--boots-brown-darker);
    letter-spacing: 0.5px;
}

/* Language toggle utility classes */
.en, .fr { display: none; }
.en.active, .fr.active { display: block; }
span.en.active, span.fr.active { display: inline; }

/* Responsive design */
@media screen and (min-width:768px) {
    .container {
        padding: 30px;
        border-radius: var(--tmc-border-radius);
        margin: 30px auto;
        box-shadow: var(--tmc-shadow-hover);
    }
    .language-switcher {
        text-align: right;
        margin-bottom: 40px;
    }
    header {
        display: flex;
        align-items: center;
        text-align: left;
        margin-bottom: 25px;
    }
    .profile-picture {
        margin-right: 40px;
        margin-bottom: 0;
    }
    .header-text { flex: 1; }
    h1 { 
        font-size: 2.5rem; 
        margin-bottom: 8px; 
        letter-spacing: 3px;
    }
    .subtitle { 
        font-size: 1.1rem; 
        letter-spacing: 0.8px;
        font-weight: 350;
    }
    .links-grid {
        grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
        gap: 25px;
    }
    .section-title { 
        font-size: 2rem; 
        margin-bottom: 25px; 
        letter-spacing: 3px;
    }
    .about-content { gap: 35px; }

    .about-text p { 
        font-size: 0.85rem;
        letter-spacing: 0.4px;
        font-weight: 400;
    }
    .link-content span {
        font-size: 1.1rem;
        letter-spacing: 0.6px;
        font-weight: 550;
    }
}

@media screen and (min-width:1024px) {
    .links-grid {
        grid-template-columns: repeat(2,1fr);
    }
    main { display: grid; gap: 60px; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px);}
    to   { opacity: 1; transform: translateY(0);}
}
.link-card:nth-child(1) { animation-delay: 0.07s; }
.link-card:nth-child(2) { animation-delay: 0.18s; }
.link-card:nth-child(3) { animation-delay: 0.27s; }
.link-card:nth-child(4) { animation-delay: 0.38s; }
.link-card:nth-child(5) { animation-delay: 0.45s; }