body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #a1dbff;
}
    

/* Header et navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
}

.top-nav a {
    font-size: 18px;
    text-decoration: none;
    color: #512020;
    margin-right: 20px;
    font-weight: bold;
}

.top-nav a:hover {
    text-decoration: underline;
}

.name {
    font-size: 20px;
    font-weight: bold;
    color: #512020;
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 80px;
    margin: 0;
    letter-spacing: 8px;
    color: #512020;
}

.portfolio-name {
    font-size: 24px;
    margin-top: 15px;
    color: #512020;
}

.scroll-icon {
    margin-top: 40px;
    font-size: 40px;
    text-decoration: none;
    color: #512020;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Projects section */
.projects-section {
    padding: 120px 60px;
}

.projects-section h2 {
    font-size: 40px;
    margin-top: 100px;
    color: #512020;
}

.container {
    margin-top: 60px;
  display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.card {
    position: relative;
  /*  display: inline-block;
    width: 20%;*/
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.4s ease;
    box-shadow: 0 6px 14px #558aa5;
}

.card-image {
    height: 230px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.07);
}

.card::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: white;
    z-index: 1;
    transition: height 0.45s ease;
}

.card:hover::before {
    height: 100%;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 25px;
}

.card h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: 1px;
    color: #512020;
}

.card p {
    margin: 10px 0 22px;
    color: #512020;
    font-size: 14px;
}

.more {
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    color: #512020;
    border-bottom: 1px solid #512020;
    padding-bottom: 3px;
}

.card .appear {
    opacity: 0;
    transform: translateY(15px);
    transition: 0.4s ease;
}

.card:hover .appear {
    opacity: 1;
    transform: translateY(0);
}

/* Contact section */
.contact-section {
    padding: 120px 60px;
}

.contact-section h2 {
    font-size: 40px;
    color: #512020;
}



@media screen and (orientation:portrait) {



    
    p {
        display: none;
    }

    h2 {
        display: none;
    }

    .container {
        grid:none;
    }

    .projects-section {

        padding: 0px;
        width: 65%;


    }

    .header {

        display: block;
        width: 50%;
    }
header {

        display: block;
        width: 50%;
    }
.hero {
display: block;
height: 0px;
width: 20%;
}
.hero h1 {
font-size: 10px;
}
}