/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0b0b0b;
    --secondary-color: #ffffff;
    --accent-color: #f09301;
    --text-dark: #f5f5f5;
    --text-light: #b6b6b6;
    --bg-light: #121212;
    --border-color: #2a2a2a;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects .container {
    max-width: 1400px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    line-height: 1;
}

.brand-logo {
    height: 48px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

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

/* Burger menu - hidden on desktop */
.nav-toggle {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-svg {
    width: 100%;
    height: 100%;
    position: absolute;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.hero-cta {
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 68, 68, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 68, 68, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-20px) translateX(10px);
    }
    66% {
        transform: translateY(10px) translateX(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.rotate-animation {
    animation: rotate 20s linear infinite;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.about {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.18;
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -18px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 68, 68, 0.14), transparent 60%);
    border-radius: 9999px;
    filter: blur(0.2px);
    pointer-events: none;
    z-index: 0;
}

.image-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    background: rgba(18, 18, 18, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-placeholder svg {
    width: 80%;
    height: 80%;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.image-placeholder.avatar {
    border-radius: 9999px;
}

.image-placeholder.avatar img {
    border-radius: 9999px;
}

.placeholder-text {
    position: absolute;
    bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-item {
    display: flex;
    gap: 1rem;
    align-items: start;
    padding: 1.5rem;
    background: rgba(18, 18, 18, 1);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    background: var(--accent-color);
    border-radius: 9999px;
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
    border-color: rgba(255, 68, 68, 0.18);
}

.info-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.info-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-item p {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* New About Intro Styles */
.about-intro {
    margin-bottom: 2rem;
}

.about-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.about-role {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 1rem;
}

.meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
}

.meta-divider {
    color: var(--text-light);
    opacity: 0.5;
}

.about-description {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.about-description p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-description p:last-child {
    margin-bottom: 0;
}

/* Projects Section */
.projects {
    background-color: var(--primary-color);
}

/* PrestaShop Modules */
.prestashop {
    background: var(--bg-light);
}

.modules {
    margin-top: 2rem;
}

.modules-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.modules-content h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.modules-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.modules-description strong {
    color: var(--text-dark);
}

.modules-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.modules-visual img {
    width: 100%;
    height: auto;
    display: block;
}

.modules-visual svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact */
.contact {
    background: var(--bg-light);
}

/* Support */
.support {
    background: var(--primary-color);
}

.icon {
    width: 78px;
    height: 78px;
    flex: 0 0 auto;
}

.support-title {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-content {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.support-card {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
}

.support-actions-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.support-actions-centered .btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.support-actions-centered .btn-large .icon {
    width: 28px;
    height: 28px;
}

.support-copy h3 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.support-copy p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.support-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
}

.support-help {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.support-help a {
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 68, 68, 0.35);
    transition: var(--transition);
}

.support-help a:hover {
    color: var(--accent-color);
    border-bottom-color: rgba(255, 68, 68, 0.75);
}

.contact-form {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(18, 18, 18, 1);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-field label {
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: rgba(11, 11, 11, 1);
    color: var(--text-dark);
    font-size: 1rem;
    transition: var(--transition);
}

.form-field textarea {
    resize: vertical;
    min-height: 160px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.12);
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-help {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
}

.project-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "image content";
    gap: 5rem;
    margin-bottom: 6rem;
    --parallax-y: 0px;
    --hover-scale: 1;
    transform: translate3d(0, var(--parallax-y), 0) scale(var(--hover-scale));
    will-change: transform;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    --hover-scale: 1.02;
    will-change: transform;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card.reverse {
    grid-template-areas: "content image";
}

.project-image {
    grid-area: image;
    --parallax-y: 0px;
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65);
    transition: var(--transition);
    transform: translateY(var(--parallax-y));
    will-change: transform;
    position: relative;
}

.modules-visual img {width:100%;height:auto;display:block;}

.project-card:hover .project-image {
    transform: translateY(var(--parallax-y)) scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75);
}

.project-content {
    grid-area: content;
}

.project-image svg {
    width: 100%;
    height: auto;
    display: block;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
}

.project-image img.img-base {
    position: relative;
    z-index: 1;
}

.project-image img.img-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.project-image:hover img.img-hover {
    opacity: 1;
}

.project-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.project-description {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.project-features {
    list-style: none;
    margin-bottom: 2rem;
}

.project-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 2rem;
}

.project-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--accent-color);
    color: white;
}

/* Project Download Buttons */
.project-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-downloads .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.project-downloads .btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-rpm {
    background: linear-gradient(135deg, #ee0000 0%, #cc0000 100%);
    color: #ffffff;
}

.btn-rpm:hover {
    background: linear-gradient(135deg, #ff2222 0%, #ee0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(238, 0, 0, 0.4);
}

.btn-appimage {
    background: linear-gradient(135deg, #4a90d9 0%, #2d6cb5 100%);
    color: #ffffff;
}

.btn-appimage:hover {
    background: linear-gradient(135deg, #5aa0e9 0%, #3d7cc5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.4);
}

/* Footer */
.footer {
    background: #000000;
    color: var(--text-dark);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-info {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.footer-brand p {
    color: var(--text-light);
    font-size: 1rem;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-contact ul,
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.footer-contact li svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-contact li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-contact li a:hover {
    color: var(--accent-color);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    /* Scale down brand logo on tablets */
    .brand-logo {
        height: 36px;
        width: auto;
    }

    /* Burger Menu */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .hamburger {
        position: relative;
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger::before,
    .hamburger::after {
        content: '';
        position: absolute;
        left: 0;
        width: 24px;
        height: 2px;
        background: var(--text-dark);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .hamburger::before {
        top: -7px;
    }

    .hamburger::after {
        bottom: -7px;
    }

    /* Burger animation when open */
    .nav-toggle.active .hamburger {
        background: transparent;
    }

    .nav-toggle.active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .nav-toggle.active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(11, 11, 11, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
    }

    /* Overlay when menu is open */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .footer-info {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .project-card,
    .project-card.reverse {
        grid-template-columns: 1fr;
        grid-template-areas:
            "image"
            "content";
    }

    .modules-inner {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

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

    .form-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .support-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .navbar .container {
        padding: 1rem;
    }

    /* Ensure burger menu stays visible */
    .nav-toggle {
        display: flex !important;
    }

    .nav-menu {
        width: 100%;
    }

    /* Scale down brand logo on small screens */
    .brand-logo {
        height: 30px;
        width: auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .project-content h3 {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
