@font-face {
    font-family: "Text-Font";
    src: url('./../fonts/rooney-regular.otf');
}

@font-face {
    font-family: "Title-Font";
    src: url('./../fonts/rooney-regular.otf');
}

@font-face {
    font-family: "Message-Font";
    src: url('./../fonts/rooney-regular.otf');
}

:root {
    --bg: #06070a;
    --bg-soft: #0b0d12;
    --bg-panel: rgba(14, 18, 27, 0.84);
    --bg-panel-strong: rgba(9, 12, 18, 0.94);
    --bg-card: rgba(255, 255, 255, 0.06);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --text: #eef2ff;
    --muted: #a9b1c7;
    --heading: #ffffff;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --accent: #7ee7d3;
    --accent-2: #7e8bff;
    --accent-3: #60a5fa;
    --accent-shadow: rgba(126, 231, 211, 0.25);
    --success: #83d17d;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --sidebar-width: 320px;
    --shadow-xl: 0 30px 80px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 15%, rgba(126, 139, 255, 0.18), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(126, 231, 211, 0.14), transparent 26%),
        radial-gradient(circle at 50% 80%, rgba(96, 165, 250, 0.12), transparent 24%),
        linear-gradient(135deg, #050608 0%, #090b10 38%, #0c1018 100%);
    color: var(--text);
    font-family: 'Text-Font', 'Helvetica', 'Arial', sans-serif;
    font-size: 17px;
    letter-spacing: -0.01em;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;

    display: flex;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

p.specialText {
    width: 100%;
    height: 100%;
    font-family: 'Title-Font', 'Helvetica', 'Arial', sans-serif;
    color: var(--muted);
    text-decoration: none;
}

.nopadding {
    padding: 0;
}

.nomargin {
    margin: 0;
}

.border {
    display: block;
    width: 90px;
    height: 1px;
    margin: 18px auto 0;
}

.dark-border,
.light-border {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.65) 50%, transparent 100%);
}

.dark-font,
.light-font {
    color: var(--heading);
    font-family: 'Title-Font', 'Helvetica', 'Arial', sans-serif;
}

.page-glow {
    position: fixed;
    inset: auto;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.55;
    z-index: 0;
}

.glow-one {
    top: -120px;
    left: -60px;
    width: 320px;
    height: 320px;
    background: rgba(126, 139, 255, 0.18);
}

.glow-two {
    right: -100px;
    bottom: 10%;
    width: 320px;
    height: 320px;
    background: rgba(126, 231, 211, 0.12);
}

.site-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    padding: 22px;
    z-index: 20;
}

.profile-card {
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(17, 22, 32, 0.96) 0%, rgba(10, 13, 20, 0.9) 100%);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
    text-align: center;
    overflow: auto;
}

.profile-badge,
.section-kicker,
.card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #c6d0ec;
    font-size: 1.6rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 8px 14px;
}

.profile-badge {
    margin: 0 auto;
}

#profile .photo {
    width: 142px;
    height: 142px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

#intro h1 {
    font-size: clamp(2rem, 2.8vw, 2.5rem);
    line-height: 1;
}

#intro h2 {
    color: var(--accent);
    font-size: 1rem;
    font-family: 'Text-Font', 'Helvetica', 'Arial', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.profile-text {
    color: var(--muted);
    font-size: 1.4rem;
    max-width: 28ch;
    margin: 0 auto;
}

.language-switcher center,
.language-switcher table,
.language-switcher tbody,
.language-switcher tr {
    width: 100%;
}

.language-switcher th {
    padding: 0 4px;
}

#profile .lang {
    width: 100%;
    min-width: 52px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

#profile .lang:hover,
#profile .lang:focus {
    transform: translateY(-2px);
    border-color: rgba(126, 231, 211, 0.7);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

.sidebar-nav {
    width: 100%;
    list-style: none;
    text-align: left;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.sidebar-nav li {
    width: 100%;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.03);
    color: #dfe5f7;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.sidebar-nav li a:hover,
.sidebar-nav li a:focus,
.sidebar-nav li a.active {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(126, 231, 211, 0.28);
    color: #fff;
    transform: translateX(4px);
}

.sidebar-nav .glyphicon {
    font-size: 1rem;
    color: var(--accent);
}

.sidebar-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.sidebar-footer span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--muted);
    font-size: 0.82rem;
}

#content {
    position: relative;
    z-index: 1;
    height: 100vh;
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    background: transparent;
}

.panel-section {
    height: 100vh;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 22px;
}

.section-container {
    width: 100%;
    height: 100%;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(15, 19, 28, 0.84) 0%, rgba(10, 13, 20, 0.82) 100%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
    overflow: auto;
    /* Firefox */
    scrollbar-width: none;
    /* IE / Edge ancien */
    -ms-overflow-style: none;
}
/* Chrome / Safari / Edge */
.section-container::-webkit-scrollbar {
    display: none;
}

.section-title {
    margin-bottom: 34px;
    text-align: center;
}

.section-title h1 {
    font-size: clamp(2rem, 3.6vw, 3.3rem);
    line-height: 1.08;
    max-width: 14ch;
    margin: 12px auto 0;
}

.hero-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.hero-copy,
.contact-copy {
    display: grid;
    gap: 20px;
}

.hero-copy h2,
.contact-copy h2 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 0.95;
    color: var(--accent);
    font-family: 'Title-Font', 'Helvetica', 'Arial', sans-serif;
}

h2.dark-font {
    margin-top: 20px;
}

.hero-copy p,
.contact-copy p,
.service-card p,
.project-content p {
    color: var(--muted);
    font-size: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
    align-content: space-around;
    justify-content: center;
}

.btn-modern,
.btn-custom {
    border: 0;
    border-radius: 16px;
    padding: 14px 20px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-modern:hover,
.btn-custom:hover {
    transform: translateY(-2px);
}

.btn-primary-soft {
    background: linear-gradient(135deg, var(--accent) 0%, #9adfff 100%);
    color: #071018;
    box-shadow: 0 18px 35px var(--accent-shadow);
}

.btn-secondary-soft {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stack {
    display: grid;
    gap: 16px;
}

.glass-card,
.service-card,
.project-card,
.form-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(12px);
}

.glass-card {
    padding: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}

.glass-card h3,
.project-content h3,
.service-card h4 {
    margin: 10px 0 10px;
    font-size: 1.35rem;
}

.glass-card p {
    color: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    padding: 24px;
    min-height: 100%;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(126, 231, 211, 0.24);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.service-icon {
    margin-bottom: 18px;
}

.service-card .hi-icon {
    color: var(--accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.project-card {
    display: grid;
    grid-template-columns: minmax(280px, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
    padding: 22px;
    align-items: center;
}

.project-visual {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--line-strong);
}

.project-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transform: scale(1.01);
}

.project-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(6, 9, 14, 0.08) 0%, rgba(6, 9, 14, 0.55) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

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

.project-link {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.2rem;
}

.project-content {
    display: grid;
    gap: 16px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
}

.project-meta li,
.contact-points span {
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #d9e1f7;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.form-panel {
    padding: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

.form-control {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(6, 9, 14, 0.62);
    color: var(--text);
    box-shadow: none;
}

.form-control::placeholder {
    color: #8891ab;
}

.form-control:focus {
    border-color: rgba(126, 231, 211, 0.55);
    box-shadow: 0 0 0 4px rgba(126, 231, 211, 0.09);
    background: rgba(6, 9, 14, 0.78);
}

textarea.form-control {
    resize: vertical;
    min-height: 180px;
}

.btn-send {
    margin-top: 16px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent) 0%, #9adfff 100%);
    color: #071018;
    box-shadow: 0 18px 35px var(--accent-shadow);
}

.reveal {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.65, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translate3d(0, 44px, 0);
}

.reveal-left {
    transform: translate3d(-42px, 0, 0);
}

.reveal-right {
    transform: translate3d(42px, 0, 0);
}

.reveal.in-view {
    opacity: 1;
    transform: translate3d(0, 0, 0);
	text-align: center;
	margin-right: 50px;
	margin-left: 50px;
}

.floating-card,
.float-soft {
    animation: floatCard 6.5s ease-in-out infinite;
}

.delay-1 {
    animation-delay: 0s;
}

.delay-2,
.stagger-1 {
    animation-delay: 0.8s;
}

.delay-3,
.stagger-2 {
    animation-delay: 1.6s;
}

@keyframes floatCard {
    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-0.4deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.45deg);
    }
    75% {
        transform: translateY(-4px) rotate(-0.25deg);
    }
}

@media (max-width: 1280px) {
    :root {
        --sidebar-width: 300px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    html,
    body {
        height: auto;
        overflow: auto;
    }

    body {
        display: block;
    }

    .site-sidebar {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        padding: 16px;
    }

    .profile-card {
        height: auto;
        padding: 22px;
        overflow: visible;
    }

    #content {
        height: auto;
        margin-left: 0;
        width: 100%;
        padding: 0 16px 16px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .panel-section {
        height: auto;
        min-height: 100vh;
        padding: 0 0 16px;
        scroll-snap-align: none;
    }

    .section-container {
        height: auto;
        min-height: calc(100vh - 32px);
        padding: 24px;
        overflow: visible;
    }

    .hero-grid,
    .contact-grid,
    .project-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .site-sidebar,
    #content {
        padding-left: 12px;
        padding-right: 12px;
    }

    .profile-card,
    .section-container,
    .service-card,
    .form-panel,
    .project-card,
    .glass-card {
        border-radius: 22px;
    }

    .services-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h2,
    .contact-copy h2 {
        font-size: clamp(2rem, 12vw, 3.2rem);
    }

    .section-title h1 {
        max-width: none;
        font-size: clamp(1.8rem, 8vw, 2.4rem);
    }

    .sidebar-nav li a {
        padding: 13px 14px;
    }

    #profile .photo {
        width: 118px;
        height: 118px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn-modern,
    .btn-custom {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

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


.hi-icon-wrap {
    text-align: center;
    margin: 0 auto;
    padding: 1em 0 1em;
}