/* ==========================================
   VARIABLES & RESET
========================================== */
:root {
    /* Charte graphique Rojhat Yilmaz */
    --primary-blue: #097EE7;
    --dark-gray: #373637;
    --light-blue: #E9F2FF;
    --white: #FFFFFF;
    
    /* Typography */
    --font-title: 'Poppins', sans-serif;
    --font-subtitle: 'Montserrat', sans-serif;
    --font-text: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 40px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-text);
    color: var(--dark-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================
   TYPOGRAPHY
========================================== */
h1, h2, h3 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

p {
    font-family: var(--font-text);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================
   UTILITIES
========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-subtitle);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title {
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.code-bracket {
    color: var(--primary-blue);
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-subtitle);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(9, 126, 231, 0.3);
}

.btn-primary:hover {
    background: #0862b8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 126, 231, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================
   NAVIGATION
========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(9, 126, 231, 0.1);
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-subtitle);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-blue);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    border-radius: 3px;
    transition: var(--transition-smooth);
}

/* ==========================================
   HERO SECTION
========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(9, 126, 231, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    z-index: 2;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 10px 20px;
    border-radius: 50px;
    border: 2px solid var(--primary-blue);
    margin-bottom: 30px;
    font-family: var(--font-subtitle);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--dark-gray);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.highlight {
    color: var(--primary-blue);
    position: relative;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--dark-gray);
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-scroll {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    opacity: 0.7;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--primary-blue);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(15px);
        opacity: 1;
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--light-blue) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    opacity: 0.15;
    animation: morphing 8s infinite;
}

@keyframes morphing {
    0%, 100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--white);
    box-shadow: 0 20px 60px rgba(9, 126, 231, 0.3);
    background: var(--light-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.profile-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Floating elements */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    background: var(--white);
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--primary-blue);
}

.icon-1 {
    top: 10%;
    left: -10%;
    animation: float 6s infinite;
}

.icon-2 {
    top: 60%;
    right: -10%;
    animation: float 5s infinite 1s;
}

.icon-3 {
    bottom: 10%;
    left: 10%;
    animation: float 7s infinite 2s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================
   ABOUT SECTION
========================================== */
.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-intro {
    font-size: 1.2rem;
    color: var(--primary-blue);
    font-weight: 500;
}

.about-traits {
    display: grid;
    gap: 20px;
    margin-top: 30px;
}

.trait-card {
    background: var(--light-blue);
    padding: 25px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
}

.trait-card h3 {
    font-family: var(--font-subtitle);
    color: var(--dark-gray);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.trait-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--light-blue);
    text-align: center;
    transition: var(--transition-smooth);
}

/* Cartes non cliquables : pas d'effet de survol type bouton */

.stat-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.stat-card h3 {
    font-family: var(--font-subtitle);
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

/* ==========================================
   SKILLS SECTION
========================================== */
.skills {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--light-blue) 0%, var(--white) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

/* Cartes non cliquables : pas d'effet de survol type bouton */

.category-icon {
    width: 60px;
    height: 60px;
    background: var(--light-blue);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
}

.skill-category h3 {
    font-family: var(--font-subtitle);
    color: var(--dark-gray);
    margin-bottom: 30px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-blue);
    color: var(--dark-gray);
    font-family: var(--font-text);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 25px;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

/* Simples étiquettes, non cliquables : pas d'effet de survol type bouton */

/* Strengths Section */
.strengths-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.strengths-card,
.improvement-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.strengths-card {
    border-left: 5px solid var(--primary-blue);
}

.improvement-card {
    border-left: 5px solid #FF6B6B;
}

.strengths-card h3,
.improvement-card h3 {
    font-family: var(--font-subtitle);
    margin-bottom: 20px;
}

.strengths-card ul,
.improvement-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.strengths-card li::before {
    content: '✓';
    color: var(--primary-blue);
    font-weight: bold;
    margin-right: 10px;
}

.improvement-card li::before {
    content: '→';
    color: #FF6B6B;
    font-weight: bold;
    margin-right: 10px;
}

/* ==========================================
   PROJECTS SECTION
========================================== */
.projects {
    padding: var(--section-padding);
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition-smooth);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(9, 126, 231, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--light-blue);
}

.project-image img {
    width: 100%;
    height: auto;  /* Hauteur automatique selon ratio de l'image */
    display: block;
}

.project-placeholder {
    width: 100%;
    height: 250px;  /* Hauteur fixe seulement pour le placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--primary-blue);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(9, 126, 231, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: var(--white);
    font-family: var(--font-subtitle);
    font-weight: 700;
    text-decoration: none;
    padding: 12px 30px;
    border: 2px solid var(--white);
    border-radius: 50px;
    transition: var(--transition-smooth);
}

.project-link:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.project-content {
    padding: 30px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: var(--light-blue);
    padding: 5px 12px;
    border-radius: 20px;
}

.project-title {
    font-family: var(--font-subtitle);
    color: var(--dark-gray);
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.project-description {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-size: 0.8rem;
    color: var(--dark-gray);
    background: var(--light-blue);
    padding: 4px 10px;
    border-radius: 5px;
}

/* ==========================================
   CONTACT SECTION
========================================== */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--white) 0%, var(--light-blue) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-info h3 {
    font-family: var(--font-subtitle);
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.contact-info > p {
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    transform: translateX(5px);
}

/* Lignes d'infos non cliquables (localisation, disponibilité) : pas d'effet de survol */
.contact-item-static:hover {
    transform: none;
}
.contact-item-static {
    cursor: default;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--light-blue);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    color: var(--primary-blue);
}

.contact-icon svg {
    stroke: var(--primary-blue);
}

.contact-item strong {
    display: block;
    font-family: var(--font-subtitle);
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--dark-gray);
}

.contact-item p {
    font-size: 0.95rem;
    color: var(--dark-gray);
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-blue);
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(9, 126, 231, 0.3);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

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

.form-group label {
    font-family: var(--font-subtitle);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--light-blue);
    border-radius: 10px;
    font-family: var(--font-text);
    font-size: 1rem;
    color: var(--dark-gray);
    transition: var(--transition-smooth);
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==========================================
   FOOTER
========================================== */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-left p {
    opacity: 0.8;
    margin-top: 15px;
}

.copyright {
    font-size: 0.85rem;
    margin-top: 30px;
    opacity: 0.6;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-column h4 {
    font-family: var(--font-subtitle);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-blue);
    padding-left: 5px;
}

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .strengths-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 90px;  /* Ajusté pour s'aligner sous le header */
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
        gap: 30px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero {
        padding-top: 120px;  /* Augmenté de 80px à 120px */
        min-height: auto;
    }
    
    .hero-scroll {
        display: none;  /* Cache le scroll indicator en mobile */
    }
    
    .profile-card {
        width: 300px;
        height: 300px;
        margin-top: 20px;  /* Ajout d'espace en haut */
    }
    
    .profile-image {
        width: 220px;
        height: 220px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero-tag {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        margin-bottom: 40px;  /* Ajoute de l'espace en bas */
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .profile-card {
        width: 250px;
        height: 250px;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .float-icon {
        padding: 10px;
        font-size: 1rem;
    }
}

/* ==========================================
   ANIMATIONS ON SCROLL
========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Pour remplir le cercle */
    
    /* AJUSTE CES VALEURS POUR ZOOMER/POSITIONNER */
    transform: scale(1);  /* > 1 = zoom avant, < 1 = zoom arrière */
    object-position: center;  /* Position: top, bottom, left, right, center */
}
