/* =========================
   VARIABLES
========================= */
:root {
    --primary-color: #ff4c4c;
    --secondary-color: #6a5acd;
    --background-color: #0e0e1a;
    --card-bg: rgba(255,255,255,0.05);
    --glass-border: rgba(255,255,255,0.1);
    --text-color: #f5f5f5;
    --light-text-color: #aaa;
    --blur: blur(15px);
}

/* =========================
   BODY
========================= */
body {
    font-family: 'Space Grotesk', sans-serif;
    background: radial-gradient(circle at top left, #1a1a40, #0e0e1a);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* =========================
   NAVBAR
========================= */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
}

/* =========================
   HAMBURGER
========================= */
.menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 4px;
    background-color: white;
    margin: 4px 0;
    transition: 0.3s;
}

.menu-toggle.open .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* =========================
   NAV LIST
========================= */
.nav-list {
    list-style: none;
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    width: 250px;
    border-radius: 20px;
}

.nav-list.active {
    display: flex;
}

.nav-list li {
    padding: 1rem;
}

.nav-list a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    text-align: center;
    padding-top: 120px;
}

.hero::before {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    filter: blur(150px);
    z-index: -1;
    animation: glowMove 6s infinite alternate;
}

@keyframes glowMove {
    from { transform: translate(-50px,-50px); }
    to { transform: translate(50px,50px); }
}

.hero-content {
    margin-top: 20px;
}

/* =========================
   PROFILE
========================= */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 40px var(--primary-color);
}

/* =========================
   SECTIONS
========================= */
section {
    padding: 5rem 1rem;
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: 1s;
}

section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================
   TITRES
========================= */
h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   BUTTONS
========================= */
.button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.button::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 100%;
    left: 0;
    top: 0;
    background: linear-gradient(90deg,var(--primary-color),var(--secondary-color));
    transition: 0.4s;
    z-index: -1;
}

.button:hover::before {
    width: 100%;
}

/* =========================
   PROJECTS
========================= */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.project-card {
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.4s;
    max-width: 300px;
    margin: 1rem;
    padding: 10px;
    text-align: center;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 0 30px rgba(255, 76, 76, 0.4);
}

.project-card img {
    width: 100%;
    filter: grayscale(20%);
    transition: 0.3s;
}

.project-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* =========================
   CONTACT
========================= */
.contact-form {
    max-width: 600px;
    margin: auto;
    background: var(--card-bg);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: transparent;
    color: white;
}

.contact-form button {
    background: linear-gradient(90deg,var(--primary-color),var(--secondary-color));
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

/* =========================
   FOOTER
========================= */
.footer {
    background: #080813;
    padding: 20px;
    text-align: center;
    color: #777;
}

.hero{
opacity:1 !important;
transform:none !important;
}
