/* Colors */
:root {
    --primary: #fafafa;
    --secondary: #333;
    --header: #fafafa;
    --highlight: #3DA35D; 
}

/* Fonts */
@font-face {
  font-family: 'Inter';
  src: url('fonts/Inter/Inter-VariableFont_opsz\,wght.ttf') format('truetype'),
       url('fonts/Inter/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter-Bold';
  src: url('fonts/Inter/Inter-VariableFont_opsz\,wght.ttf') format('truetype'),
       url('fonts/Inter/Inter-Italic-VariableFont_opsz\,wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: bold;
  font-display: swap;
}

@font-face {
  font-family: 'Playfair';
  src: url('fonts/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf') format('truetype'),
       url('fonts/Playfair_Display/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype'),
       url('fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

body {
    font-family: 'Montserrat', serif;
    background-color: var(--primary);
    color: #333;
    line-height: 1.0;

    /*background-image: url("images/test/mushroom.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;*/
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    z-index: 10;
    background-color: var(--header);
    padding: auto;
    padding: 10px;
    width: 100%;
    /*box-shadow: 0 2px 10px rgba(0,0,0,0.05);*/
}

.header-content {
    display: flex;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-icon{
    max-width: 50px;
    margin-right: 15px;
}

.logo h1 {
    opacity: 0;
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0px;
    text-align-last: justify;
    text-justify: inter-character;
    
}

.logo p {
    opacity: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    font-family: "Montserrat", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0px;
    text-align-last: justify;
    text-justify: inter-character;
    width: 100%;
}

.logo span {
    color: var(--highlight);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav .t-link {
    font-family: 'Montserrat';
    text-decoration: none;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    padding: 0px 20px 0px 0px;
    line-height: 1.0;
}

nav .i-link {
    padding: 0px 15px 0px 0px;
}

nav .end-link {
    padding: 0px 0px 0px 0px;
}

nav a:hover {
    color: var(--highlight);
}

nav a.active {
    color: var(--highlight);
}

.i-link img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.i-link img:hover {
    transform: translateY(-3px);
}

/* Hero Section */
.hero {
    text-align: left;
    position: fixed;
    
    padding: auto;
    margin-top: 140px;

    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    letter-spacing: 1px;
    line-height: 1.2;
}

.hero span {
    font-weight: 600;
    color: var(--highlight)
}

.hero-icons {
    display: flex;
    justify-content: left;
    gap: 15px;
}

.hero-icons img {
    width: 60px;
    height: 60px;
}

.mywork {
    margin-top: 20vh;
    padding: auto;

    font-size: 1.1rem;
    color: #000;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
}

.mywork img {
    width: 40px;
    margin: auto;
}

/* Main Content */
main {
    padding: 10px 0;
    /* Why does this behave the way it does? */
}

.portfolio {
    background: #FFF;
    max-width: 1330px;
    margin: auto;
    margin-top: 80vh;
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px 0px;
    margin-bottom: 30px;
}

.portfolio-item {
    background-color: var(--primary);
    border-radius: 0px;
    overflow: hidden;
    /*box-shadow: 0 4px 20px rgba(0,0,0,0.08);*/
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.portfolio-image {
    width: 100%;
    height: 450px;
    background-color: #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
}

.portfolio-image img {
    height: 100%;
}

.portfolio-content {
    /*padding: 20px;*/
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.portfolio-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    margin: 70px auto;
    max-width: 1300px;
}

.contact-title {
    text-align: left;
    font-size: 2.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.contact-subtitle {
    text-align: left;
    color: #666;
    margin-bottom: 50px;
    font-size: 1.1rem;
}

.contact-form {
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
}

input[type="text"],
input[type="email"],
textarea {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

textarea {
    resize: none;
    min-height: 160px;
}

.submit-btn {
    color: #333;
    padding: 15px 40px;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    width: 100%;
    transition: 0.3s ease;
    margin-top: 30px;
}

.submit-btn:hover {
    background-color: --secondary;
    color: white;
}

/* Footer */
footer {
    background-color: var(--secondary);
    padding: 30px;
    width: 100%;
}

footer p {
    color: #FFF;
    font-size: 1rem;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .logo {
        flex-direction: column;
        gap: 10px;
    }

    nav ul {
        gap: 20px;
    }

    .portfolio-grid,
    .bottom-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    nav a {
        font-size: 0.8rem;
    }
}