/*====================================================

Mathis Fontaine Portfolio V2
Style.css
Partie 1

====================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    scroll-behavior:smooth;
}

:root{

    --bg:#050816;
    --card:#0f172a;
    --card2:#131d33;
    --text:#ffffff;
    --text2:#b8c0d4;

    --blue:#3b82f6;
    --blue2:#60a5fa;

    --border:rgba(255,255,255,.08);

    --shadow:0 20px 60px rgba(0,0,0,.35);

}

body{

    font-family:"Inter",sans-serif;

    background:var(--bg);

    color:var(--text);

    overflow-x:hidden;

}

/*=============================
BACKGROUND
=============================*/

.background-grid{

position:fixed;

width:100%;

height:100%;

background-image:

linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),

linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);

background-size:50px 50px;

z-index:-2;

opacity:.4;

}

.background-blur{

position:fixed;

top:-300px;

left:50%;

transform:translateX(-50%);

width:900px;

height:900px;

background:

radial-gradient(circle,#2563eb55 0%,transparent 70%);

filter:blur(120px);

animation:moveBlur 15s ease-in-out infinite alternate;

z-index:-1;

}

@keyframes moveBlur{

0%{

transform:translate(-50%,0);

}

100%{

transform:translate(-45%,80px);

}

}

/*=============================
NAVBAR
=============================*/

header{

position:fixed;

width:100%;

top:0;

left:0;

z-index:999;

padding:20px 0;

backdrop-filter:blur(18px);

background:rgba(5,8,22,.45);

border-bottom:1px solid rgba(255,255,255,.04);

}

nav{

max-width:1300px;

margin:auto;

display:flex;

justify-content:space-between;

align-items:center;

padding:0 40px;

}

.logo{

font-size:30px;

font-weight:800;

letter-spacing:.5px;

}

.logo span{

color:var(--blue);

}

nav ul{

display:flex;

gap:35px;

list-style:none;

}

nav ul a{

text-decoration:none;

color:#fff;

font-weight:500;

transition:.35s;

}

nav ul a:hover{

color:var(--blue);

}

.btn-nav{

text-decoration:none;

padding:14px 28px;

border-radius:999px;

background:linear-gradient(135deg,#2563eb,#3b82f6);

color:white;

font-weight:600;

transition:.35s;

box-shadow:0 15px 35px rgba(37,99,235,.35);

}

.btn-nav:hover{

transform:translateY(-4px);

}

/*=============================
HERO
=============================*/

.hero{

min-height:100vh;

display:flex;

align-items:center;

justify-content:space-between;

max-width:1300px;

margin:auto;

padding:160px 40px 80px;

gap:80px;

}

.hero-content{

flex:1;

}

.subtitle{

color:var(--blue2);

font-weight:600;

margin-bottom:18px;

letter-spacing:2px;

text-transform:uppercase;

}

.hero h1{

font-size:72px;

font-weight:800;

line-height:1.05;

margin-bottom:30px;

}

.hero h1 span{

background:linear-gradient(90deg,#60a5fa,#ffffff);

-webkit-background-clip:text;

-webkit-text-fill-color:transparent;

}

.description{

font-size:20px;

color:var(--text2);

max-width:650px;

line-height:1.8;

margin-bottom:45px;

}

.hero-buttons{

display:flex;

gap:20px;

flex-wrap:wrap;

}

.btn-primary{

background:linear-gradient(135deg,#2563eb,#60a5fa);

padding:18px 34px;

border-radius:999px;

text-decoration:none;

font-weight:700;

color:white;

transition:.35s;

box-shadow:0 20px 40px rgba(37,99,235,.3);

}

.btn-primary:hover{

transform:translateY(-6px);

}

.btn-secondary{

border:1px solid rgba(255,255,255,.1);

padding:18px 34px;

border-radius:999px;

text-decoration:none;

color:white;

transition:.35s;

background:rgba(255,255,255,.03);

}

.btn-secondary:hover{

background:rgba(255,255,255,.08);

transform:translateY(-6px);

}

/*=========================
CARD HERO
=========================*/

.hero-card{

width:420px;

}

.card{

background:rgba(255,255,255,.05);

border:1px solid rgba(255,255,255,.08);

backdrop-filter:blur(30px);

border-radius:30px;

padding:40px;

box-shadow:var(--shadow);

transition:.4s;

}

.card:hover{

transform:translateY(-10px);

}

.status{

display:flex;

align-items:center;

gap:12px;

font-size:14px;

color:#9fe5b0;

margin-bottom:30px;

}

.green{

width:12px;

height:12px;

border-radius:50%;

background:#22c55e;

box-shadow:0 0 18px #22c55e;

}

.card h3{

font-size:34px;

margin-bottom:12px;

}

.card p{

color:var(--text2);

margin-bottom:25px;

}

.skills-mini{

display:flex;

gap:12px;

flex-wrap:wrap;

}

.skills-mini span{

padding:10px 18px;

border-radius:999px;

background:#1e293b;

font-size:14px;

}
/*==========================================
A PROPOS
==========================================*/

section{

padding:120px 40px;

}

.title{

text-align:center;

margin-bottom:80px;

}

.title h2{

font-size:48px;

margin-bottom:18px;

}

.title p{

color:var(--text2);

font-size:18px;

}

.about{

max-width:1300px;

margin:auto;

}

.about-container{

display:grid;

grid-template-columns:2fr 1fr;

gap:60px;

align-items:center;

}

.about-text{

background:rgba(255,255,255,.04);

border:1px solid var(--border);

padding:45px;

border-radius:28px;

backdrop-filter:blur(25px);

box-shadow:var(--shadow);

}

.about-text p{

color:var(--text2);

font-size:18px;

line-height:1.9;

margin-bottom:22px;

}

.about-stats{

display:grid;

gap:25px;

}

.stat{

background:linear-gradient(180deg,#131d33,#0d1425);

border-radius:24px;

padding:35px;

border:1px solid var(--border);

transition:.35s;

cursor:pointer;

}

.stat:hover{

transform:translateY(-8px);

border-color:#2563eb;

}

.stat h3{

font-size:38px;

margin-bottom:12px;

color:#60a5fa;

}

.stat p{

color:var(--text2);

}

/*==========================================
COMPETENCES
==========================================*/

.skills{

max-width:1300px;

margin:auto;

}

.skills-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(180px,1fr));

gap:22px;

}

.skill{

background:rgba(255,255,255,.05);

padding:24px;

border-radius:22px;

text-align:center;

font-weight:600;

border:1px solid var(--border);

transition:.35s;

cursor:pointer;

backdrop-filter:blur(20px);

}

.skill:hover{

background:#2563eb;

transform:translateY(-8px);

box-shadow:0 20px 40px rgba(37,99,235,.35);

}

/*==========================================
PROJETS
==========================================*/

.projects{

max-width:1300px;

margin:auto;

}

.projects-grid{

display:grid;

grid-template-columns:repeat(auto-fit,minmax(300px,1fr));

gap:35px;

}

.project-card{

position:relative;

overflow:hidden;

padding:35px;

background:linear-gradient(180deg,#121b31,#0d1426);

border-radius:28px;

border:1px solid rgba(255,255,255,.08);

transition:.45s;

cursor:pointer;

}

.project-card::before{

content:"";

position:absolute;

width:220px;

height:220px;

background:radial-gradient(circle,#2563eb55,transparent);

top:-120px;

right:-120px;

transition:.5s;

}

.project-card:hover::before{

transform:scale(1.4);

}

.project-card:hover{

transform:translateY(-12px);

border-color:#3b82f6;

box-shadow:0 30px 60px rgba(0,0,0,.45);

}

.icon{

width:70px;

height:70px;

display:flex;

justify-content:center;

align-items:center;

border-radius:20px;

font-size:28px;

margin-bottom:30px;

background:linear-gradient(135deg,#2563eb,#60a5fa);

}

.project-card h3{

font-size:28px;

margin-bottom:20px;

}

.project-card p{

color:var(--text2);

line-height:1.8;

margin-bottom:28px;

}

.tags{

display:flex;

gap:12px;

flex-wrap:wrap;

}

.tags span{

padding:10px 18px;

border-radius:999px;

background:#1f2937;

font-size:14px;

transition:.35s;

}

.tags span:hover{

background:#2563eb;

}
/*==========================================
TIMELINE
==========================================*/

.timeline{

max-width:1200px;

margin:auto;

}

.timeline-container{

position:relative;

max-width:900px;

margin:70px auto 0;

padding-left:40px;

}

.timeline-container::before{

content:"";

position:absolute;

left:10px;

top:0;

bottom:0;

width:3px;

background:linear-gradient(#2563eb,#60a5fa);

border-radius:999px;

}

.timeline-item{

position:relative;

margin-bottom:60px;

padding-left:50px;

}

.circle{

position:absolute;

left:-2px;

top:6px;

width:24px;

height:24px;

border-radius:50%;

background:#2563eb;

border:4px solid #0b1220;

box-shadow:0 0 25px rgba(37,99,235,.6);

}

.timeline .content{

background:rgba(255,255,255,.04);

border:1px solid var(--border);

border-radius:24px;

padding:30px;

transition:.35s;

backdrop-filter:blur(20px);

}

.timeline .content:hover{

transform:translateX(10px);

border-color:#3b82f6;

}

.timeline .content h3{

font-size:24px;

margin-bottom:12px;

}

.timeline .content p{

color:var(--text2);

line-height:1.8;

}

/*==========================================
CONTACT
==========================================*/

.contact{

max-width:1200px;

margin:auto;

}

.contact-card{

display:flex;

flex-wrap:wrap;

justify-content:center;

gap:25px;

padding:60px;

background:rgba(255,255,255,.04);

border-radius:30px;

border:1px solid var(--border);

backdrop-filter:blur(20px);

}

.contact-card a{

display:flex;

align-items:center;

gap:14px;

padding:18px 30px;

border-radius:999px;

text-decoration:none;

font-weight:600;

color:#fff;

background:#182338;

transition:.35s;

}

.contact-card a:hover{

background:#2563eb;

transform:translateY(-6px);

box-shadow:0 20px 40px rgba(37,99,235,.35);

}

.contact-card i{

font-size:20px;

}

/*==========================================
FOOTER
==========================================*/

footer{

padding:60px 20px;

text-align:center;

border-top:1px solid rgba(255,255,255,.06);

margin-top:80px;

}

footer p{

color:#8b96b0;

}

/*==========================================
SCROLLBAR
==========================================*/

::-webkit-scrollbar{

width:10px;

}

::-webkit-scrollbar-track{

background:#070b16;

}

::-webkit-scrollbar-thumb{

background:#2563eb;

border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

background:#60a5fa;

}

/*==========================================
ANIMATIONS
==========================================*/

section{

opacity:0;

transform:translateY(60px);

transition:1s;

}

section.show{

opacity:1;

transform:translateY(0);

}

.project-card,

.skill,

.stat,

.card{

transition:.4s ease;

}

/*==========================================
RESPONSIVE
==========================================*/

@media(max-width:1100px){

.hero{

flex-direction:column;

text-align:center;

}

.hero-card{

width:100%;

max-width:500px;

}

.about-container{

grid-template-columns:1fr;

}

nav ul{

display:none;

}

}

@media(max-width:768px){

.hero h1{

font-size:48px;

}

.title h2{

font-size:36px;

}

.description{

font-size:18px;

}

.contact-card{

padding:35px;

}

.projects-grid{

grid-template-columns:1fr;

}

.skills-grid{

grid-template-columns:repeat(2,1fr);

}

.timeline-container{

padding-left:20px;

}

.timeline-item{

padding-left:35px;

}

}

@media(max-width:500px){

.hero{

padding-top:130px;

}

.hero h1{

font-size:38px;

}

.btn-primary,

.btn-secondary,

.btn-nav{

width:100%;

text-align:center;

}

.skills-grid{

grid-template-columns:1fr;

}

.contact-card{

flex-direction:column;

}

.contact-card a{

justify-content:center;

}

.card{

padding:30px;

}

}