@font-face {
    font-family:'San francisco';
    src: url(font/SF-Pro-Display-Heavy.otf);
}

@font-face {
    font-family:'San francisco med';
    src: url(font/SF-Pro-Display-Medium.otf);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

header {
    display: flex;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width:100%;
    
}

nav ul {
    display: flex;
    justify-content: space-between;
}

nav ul li {
    list-style: none;
    margin: 20px;
    font-family:'San francisco';
    font-size: 30px;
}

nav ul li a {
    text-decoration: none;
    color: black;
    position: relative; 
    padding-bottom: 5px; 
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;                
    height: 3px;             
    bottom: 0;
    left: 0;
    background-color: black; 
    transition: width 0.4s ease; 
}

nav ul li a:hover::after {
    width: 100%;             
}

.Home {
    font-size: clamp(60px, 10vw, 180px);
    margin-top: 150px;
    margin-left: 100px;
    font-family:'San francisco';
}

.Home p {
    color: rgb(0, 0, 0);
    font-family:'San francisco med';
    font-size: 35px;
    margin: 10px 0 0 9px ;
}

footer {
    display: flex;
    justify-content: space-between;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height:75px;
    color: rgb(0, 0, 0);
    text-align: center;
    padding: 0px 0px 10px 10px;
    background-color: rgba(255, 255, 255);
}

footer img {
    width: 50px;
    height: 50px;
    margin: 10px 20px 10px 20px;
    transition-duration: 0.3s;
}

footer img:hover {
    transform: scale(1.2);
    transition-duration: 0.3s;
}

footer p {
    font-family:'San francisco med';
    font-size: 25px;
    margin-right: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

footer .socials {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn {
    display: inline-block;
    padding:15px;
    margin: 10px 20px 10px 10px;
    background-color:black;
    color: black;
    font-family:'San francisco med';
    border : 4px solid rgb(255, 255, 255);
    border-radius: 10px;
    transition: 0.3s;
}

.btn a {
    text-decoration: none;
    color: white;
    margin:25px;
}

.btn:hover {
    filter : invert();
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
    border : 4px solid rgb(255, 255, 255); 
}

main .bg {
    height: 100vh;
    background-image: url(img/TETE.webp);
    background-size: cover;
    background-attachment: scroll;
}

.about-container {
    background-color: #fff;
    padding: 20px 100px 60px 100px ;
    font-family: 'San francisco med', sans-serif;
}

.about-content {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

.about-left, .about-right {
    flex: 1;
}

.about-left h1 {
    font-family: 'San francisco';
    font-size: 100px; 
    margin: 10px;
}

.about-left h2 {
    font-family: 'San francisco';
    font-size: 50px; 
    margin: 50px 0 40px 0; 
}

.intro { 
    font-size: 25px;
    line-height: 1.5; 
    color: #333; 
    margin-bottom: 30px; 
}

.skill { 
    margin-bottom: 15px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
}

.skill span { 
    width: 150px; 
    font-size: 18px; 
}

.bar { 
    flex: 1; 
    height: 10px; 
    background: #b3c3fa; 
    border-radius: 5px; 
    overflow: hidden; 
}

.progress { 
    height: 100%; 
    background: #2563eb; 
    border-radius: 5px; 
}

.tools-grid { 
    display: grid;
    grid-template-columns:1fr 1fr; 
    gap: 15px;
}

.tool { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
    font-size: 18px; 
    transition-duration:0.3s;
    padding:10px;
}

.tool:hover { 
    transition-duration:0.3s;
    transform: scale(1.1);
    cursor:default;
}

.tool img { 
    width:35px;
}

.about-me-box {
    text-align: center;
    margin:65px; 
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
}

.work-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    border: 2px solid #000;
    text-decoration: none;
    color: #000;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.work-btn:hover {
    background: #000;
    color: #fff;
}

.fill {
    display: flex;
    justify-content: center;
}

.fill img {
    width:550px;
    height:400px;
    margin:50px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.Cases-portfolio {
    display: flex;       
    flex-wrap: wrap;     
    gap: 20px;           
    padding: 50px;
    justify-content: center; 
}

.project-card {
    flex: 0 1 calc(50% - 10px); 
    min-width: 300px; 
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition-duration:0.3s;
    display: flex;
    flex-direction: column;
    
}

.project-card:hover {
    transform: translateY(-5px);
    border-radius:100px;
    transition-duration:0.3s;
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-info {
    font-family: 'San francisco med', sans-serif;
    padding: 15px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.contact-container {
    padding: 50px 10%;
    font-family: 'San francisco med', sans-serif; 
    color: #000;
    background-color: white;
}

.contact-header h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-transform: none;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    gap: 50px;
}

.contact-info { 
    flex: 1; 
}
    
.info-item { 
    margin-bottom: 30px;
}
    
.info-item span {
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: #666;
}

.info-item p {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 5px;
}

 
.contact-form { 
    flex: 1.5; 
}

.form-group {
    margin-bottom: 20px;
    border-bottom: 2px solid #000; 
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px 0;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
}

.btn-send {
    background: #000;
    color: #fff;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: 0.3s;
    border-radius: 8px;
    border: 2px solid #000;
    font-family: 'San francisco med', sans-serif;
}

.btn-send:hover {
    background: #ffffff;
    color: #000000;
}



@media (max-width: 1024px) {

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-container {
        padding: 40px 20px;
    }

    .about-left h1 {
        font-size: 60px;
    }

    .about-left h2 {
        font-size: 35px;
    }

    .fill img {
        width: 100%;
        height: auto;
        margin: 20px 0;
    }

    .about-me-box {
        margin: 20px 0;
    }
}

@media (max-width: 900px) {

    .contact-content {
        flex-direction: column;
    }

    .contact-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        flex-direction: row;
        padding: 20px 0;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-bottom: 15px;
    }

    nav ul li {
        font-size: 25px; 
        margin: 5px 10px;
    }

    .btn {
        margin: 0;
        padding: 10px;
        margin: 10px;
    }
    
    .btn a {
        margin: 10px;
        font-size: 14px;
    }

    .Home {
        margin-left: 20px; 
        margin-top: 80px;
        text-align: left; 
    }

    .Home span {
        line-height: 0.9;
    }

    .Home p {
        font-size: 20px;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr; 
    }

    .skill span {
        width: 100px;
        font-size: 14px;
    }

    .Cases-portfolio {
        padding: 20px 10px;
    }

    .project-card {
        flex: 0 1 100%; 
        min-width: auto;
    }
    
    .project-card:hover {
        border-radius: 20px; 
        transform: none; 
    }

    .contact-container {
        padding: 40px 5%;
    }

    .contact-header h1 {
        font-size: 3.5rem;
    }

    .contact-content {
        margin-top: 20px;
        gap: 30px;
    }

    .bg {
        height: 500px;
        background-position: center;
    }

    footer p {
        font-size: 20px;
        width: 350px;
    }

    footer .socials a img {
    width: 40px;
    height: 40px;
    margin: 10px 20px 10px 20px;
    }

    .about-right img {
        width:500px;
        height: auto;
    }

    .about-me-box {
    margin:40px 40px 100px 40px; 
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    }
}

@media (max-width: 480px) {

    
    nav {
        flex-direction: column;
        padding: 15px 0;
    }

    nav ul {
        flex-direction: column; 
        align-items: center;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        font-size: 20px; 
        margin: 5px 0;
    }

    .btn {
        width: 70%; 
        text-align: center;
        margin: 10px auto;
        padding: 10px;
    }

    .Home {
        text-align: center;
        margin: 150px 15px 150px 15px; 
    }

    .Home span {
        font-size: 50px; 
        display: block;
    }

    .Home p {
        font-size: 18px;
        line-height: 1.3;
        margin: 10px auto;
        text-align: center;
        width: 100%; 
        max-width: 320px; 
    }

    .intro {
        font-size: 18px; 
        padding: 0 10px;
    }
   
    .about-container {
        padding: 20px 15px;
    }

    .about-left h2 {
        font-size: 30px;
        margin: 30px 0 20px 0;
    }

    .tools-grid {
        grid-template-columns: 1fr 1fr; 
    }

    .tool {
        font-size:15px;
    }

    .skills-container {
        margin: 50px 0px 50px 0px;
    }

    .skill span {
        font-size: 16px;
    }

    .about-right img {
        width: 100% !important;
        margin: 20px 0;
    }

    .about-left h1 {
        text-align: center;
        margin:100px 0px 0px 0px;
        font-size: 45px;
    }

    .about-left h2 { 
        text-align: center;
    }

    .about-me-box {
        margin: 40px;
    }

    .Cases-portfolio {
        padding: 15px;
        display: flex;
        justify-content: center;
        margin: 50px 20px 100px 20px;
        gap: 75px;
    }

    .project-card img {
        height: 150px; 
    }

    main .bg {
        background-image: none;
        height: auto;
    }

    .contact-header h1 {
        font-size: 2.5rem;
    }

    .info-item p {
        font-size: 1rem;
        word-break: break-all; 
    }

    footer {
        height: 150px;
        flex-direction: column;
        padding: 30px 10px;
        position: relative;
    }

    footer p {
        width: 100%;
        font-size: 18px;
        margin: 10px 0;
    }

    footer .socials a img {
        width: 35px;
        height: 35px;
        margin: 0 10px;
    }
}

.menu-toggle, .burger-label {
    display: none;
}


@media (max-width: 480px) {
    .burger-label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1000;
        margin: 25px;
    }

    .burger-label span {
        width: 30px;
        height: 4px;
        background: black;
        border-radius: 2px;
        transition: 0.3s;
    }

    .links {
        display: flex; 
        position: fixed; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 999;
        
        
        opacity: 0;            
        visibility: hidden;    
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .menu-toggle:checked ~ .links {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle:checked ~ .links {
        display: flex;
    }

    .menu-toggle:checked + .burger-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle:checked + .burger-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .burger-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .menu-toggle {
        display: none;
    }

    nav ul {
        flex-direction: column !important;
        gap: 30px;
    }
    
    .btn {
        z-index: 1000; 
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    z-index: 10;
}

.arrow {
    width: 20px;
    height: 20px;
    border-right: 3px solid black;
    border-bottom: 3px solid black;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}
