/* ==========================================
   DYNAG - Site Vitrine (Redesign via prog.dynag.co)
   ========================================== */

/* Variables & Base Styles */
:root {
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #334155;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Brand Colors (Aligned with Software Products) */
    --prog-primary: #00d4aa;
    /* Ping-u */
    --prog-secondary: #00a884;
    --photo-primary: #a855f7;
    /* Scrybook */
    --photo-secondary: #6366f1;
    --reiki-primary: #38bdf8;
    /* AtypiChat/Reiki - Calming Blue */
    --reiki-secondary: #0ea5e9;

    --border-subtle: rgba(255, 255, 255, 0.05);
    --glow-intensity: 0.4;

    --font-display: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;

    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container,
.section-container,
.nav-container,
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Header & Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
    backdrop-filter: none;
    /* Removed blur to match prog site style which relies on gradient */
    border-bottom: none;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

.logo span {
    font-family: 'Sora', var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}

.logo-icon {
    width: 36px;
    height: 36px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--prog-primary);
    transition: width 0.3s var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
    /* Space for fixed header */
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s var(--transition-smooth);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.title-line.accent {
    background: linear-gradient(to right, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: normal;
    /* Remove italic from previous design */
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    text-transform: none;
    /* Remove uppercase */
    letter-spacing: normal;
}

.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.floating-shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--prog-primary);
    top: -200px;
    right: -200px;
    animation: pulse-shape 8s ease-in-out infinite;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--photo-primary);
    bottom: -150px;
    left: -150px;
    animation: pulse-shape 10s ease-in-out infinite reverse;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

/* Reiki Visuals Restoration */
.reiki-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Contain the pulsing rings */
}

.energy-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--reiki-primary);
    opacity: 0.3;
    animation: pulse-ring 3s ease-out infinite;
}

.circle-1 {
    width: 60%;
    height: 60%;
    animation-delay: 0s;
}

.circle-2 {
    width: 75%;
    height: 75%;
    animation-delay: 1s;
}

.circle-3 {
    width: 90%;
    height: 90%;
    animation-delay: 2s;
}

.lotus-icon {
    width: 250px;
    height: 250px;
    z-index: 2;
    position: relative;
}

.lotus-icon svg {
    width: 100%;
    height: 100%;
}

.lotus-petal {
    fill: var(--reiki-primary);
    opacity: 0.8;
}

/* ==========================================
   Sections & Cards
   ========================================== */
.section {
    position: relative;
    padding: 25px 0;
    display: flex;
    align-items: center;
}

.section-container {
    padding: 4rem 2rem;
}

/* Card Style Container */
.section-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

.section-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
}

.section-content.reverse {
    direction: rtl;
}

.section-content.reverse>* {
    direction: ltr;
}

/* Typography w/ Gradients in Sections */
.section-header {
    display: none;
    /* Hide old section header style */
}

.section-intro {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
    font-style: normal;
    color: var(--text-primary);
}

/* Gradient Text for Headings */
.section-programmation .section-intro {
    background: linear-gradient(135deg, var(--prog-primary) 0%, var(--prog-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-photographie .section-intro {
    background: linear-gradient(135deg, var(--photo-primary) 0%, var(--photo-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-reiki .section-intro {
    background: linear-gradient(135deg, var(--reiki-primary) 0%, var(--reiki-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Skills List to Tags */
.skills-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.skills-list li {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.skills-list li::before {
    display: none;
}

/* Visuals */
.section-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
}

.image-frame {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    /* Reduced height, increased width */
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    border: none;
    white-space: nowrap;
    /* Prevent text wrapping */
}

/* Primary Button Gradients */
.section-programmation .btn-outline {
    background: linear-gradient(135deg, var(--prog-primary) 0%, var(--prog-secondary) 100%);
    color: var(--bg-dark);
}

.section-programmation .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--prog-primary);
    color: var(--bg-dark);
    border: none;
}

.section-photographie .btn-outline {
    background: linear-gradient(135deg, var(--photo-primary) 0%, var(--photo-secondary) 100%);
    color: var(--bg-dark);
}

.section-photographie .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--photo-primary);
    color: var(--bg-dark);
    border: none;
}

.section-reiki .btn-outline {
    background: linear-gradient(135deg, var(--reiki-primary) 0%, var(--reiki-secondary) 100%);
    color: var(--bg-dark);
}

.section-reiki .btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px var(--reiki-primary);
    color: var(--bg-dark);
    border: none;
}

/* Hero CTA */
.btn-primary {
    background: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
    color: var(--bg-dark);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px #38bdf8;
    color: var(--bg-dark);
}

/* Visual Specifics */
.code-visual {
    background: #0f172a;
    /* Darker inner bg */
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.gallery-item {
    background: #0f172a;
    border-radius: 12px;
    border: none;
    max-height: 200px;
    /* Constrain height as requested */
    overflow: hidden;
}

.gallery-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.reiki-visual {
    background: #0f172a;
    border-color: var(--border-subtle);
}

/* Section Backgrounds */
.section-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0.05;
    pointer-events: none;
}

.section-programmation {
    background: transparent;
}

.section-photographie {
    background: transparent;
}

.section-reiki {
    background: transparent;
}

/* Contact Section */
.section-contact {
    background: transparent;
    border-top: 1px solid var(--border-subtle);
}

.contact-title {
    background: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.contact-email {
    color: var(--reiki-primary);
}

.contact-email::after {
    background: var(--reiki-primary);
}

/* Footer */
.footer {
    padding: 4rem 0 3rem;
    border-top: 1px solid var(--border-subtle);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand .logo {
    justify-content: center;
    /* Center the logo icon and text */
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-shape {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.15;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@media (max-width: 968px) {
    .section-content {
        grid-template-columns: 1fr;
        padding: 2.5rem;
        gap: 2rem;
    }

    .section-text {
        max-width: 100%;
        text-align: center;
    }

    .display-header-mobile {
        text-align: center;
    }

    .skills-list {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}