/* ============================================
   GLOBAL STYLES & RESET
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.65;
    color: #f1f1f1;
    background: radial-gradient(circle at top, #1a0e14 0%, #09070d 35%, #080709 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(15, 15, 26, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: slideDownIn 0.6s ease-out;
}

@keyframes slideDownIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ff4d4d 0%, #c70000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.logo-symbol {
    font-size: 1.5rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #ff4d4d 0%, #c70000 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    margin-top: 80px;
    padding: 4rem 2rem 2rem;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 40%, rgba(255, 77, 77, 0.16) 0%, transparent 45%),
                radial-gradient(circle at 85% 15%, rgba(199, 0, 0, 0.14) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
}

.hero-text {
    animation: slideInLeft 0.8s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-title .word {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b 0%, #c70000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title .word:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ff4d4d 0%, #c70000 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(199, 0, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(199, 0, 0, 0.45);
}

.btn-secondary {
    background: transparent;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
}

.btn-secondary:hover {
    background: #ff4d4d;
    color: white;
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    min-height: 460px;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.floating-card {
    position: absolute;
    padding: 2rem;
    background: rgba(22, 12, 18, 0.92);
    backdrop-filter: blur(14px);
    border-radius: 24px;
    border: 1px solid rgba(255, 77, 77, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #ff6b6b;
    font-size: 1.2rem;
}

.card-1 {
    width: 150px;
    height: 150px;
    top: 8%;
    right: 4%;
    animation: float 4s ease-in-out infinite;
}

.card-2 {
    width: 120px;
    height: 120px;
    bottom: 18%;
    left: 18%;
    animation: float 5s ease-in-out infinite 0.3s;
}

.card-3 {
    width: 130px;
    height: 130px;
    bottom: 8%;
    right: 22%;
    animation: float 6s ease-in-out infinite 0.6s;
}

.floating-logo {
    position: absolute;
    width: 180px;
    min-height: 54px;
    padding: 0.95rem 1.1rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 77, 77, 0.35);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.33);
    color: #ffffff;
    font-size: 1rem;
    font-weight: 800;
    backdrop-filter: blur(16px);
    animation: float 5.5s ease-in-out infinite;
    z-index: 3;
}

.floating-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    padding: 4px;
}

.floating-logo span {
    display: inline-block;
    white-space: nowrap;
}

.logo-icon {
    display: none;
}

.floating-card,
.floating-logo {
    z-index: 3;
}

.logo-blender {
    top: 6%;
    left: 6%;
    animation-delay: 0.4s;
}

.logo-fivem {
    top: 26%;
    left: 6%;
    animation-delay: 0.8s;
}

.logo-vscode {
    top: 12%;
    left: 46%;
    animation-delay: 1.1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(2deg);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s ease-in-out infinite;
    color: #ff4d4d;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   SKILLS SECTION
   ============================================ */

.skills {
    padding: 6rem 2rem;
    background: #1a1a2e;
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 77, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: moveGradient 8s ease-in-out infinite;
}

@keyframes moveGradient {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-50px, 50px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.header-line {
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #ff4d4d 0%, #c70000 100%);
    margin: 0 auto;
    border-radius: 999px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-card {
    background: linear-gradient(135deg, #262641 0%, #1f1f35 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 100%);
    transition: left 0.3s ease;
    z-index: -1;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 22px 55px rgba(199, 0, 0, 0.18);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.skill-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.blender-logo {
    width: 50px;
    height: 50px;
}

.skill-icon-discord {
    color: #5865F2;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.skill-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.skill-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.skill-tags span {
    padding: 0.4rem 0.8rem;
    background: rgba(255, 77, 77, 0.14);
    color: #ff7a7a;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */

.projects {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    position: relative;
}

.projects-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto 1.5rem auto;
    position: relative;
}

.projects-grid-wrapper {
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding-bottom: 0.5rem;
}

.projects-grid {
    display: flex;
    gap: 2rem;
    min-width: max-content;
}

.project-card {
    flex: 0 0 350px;
    width: 350px;
}

.carousel-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 77, 77, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: rgba(255, 77, 77, 0.7);
}

.carousel-btn.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 980px) {
    .projects-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 760px) {
    .project-card {
        flex: 0 0 100%;
        width: 100%;
    }
}

.partnerships {
    max-width: 1200px;
    margin: 2rem auto 0 auto;
    padding: 1.5rem 2rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 77, 77, 0.18);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.partnerships-label {
    color: #d8d8d8;
    font-size: 0.95rem;
    margin: 0;
}

.partner-list {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.partner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: rgba(255, 77, 77, 0.12);
    color: #ffb3b3;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.project-card {
    background: #15151f;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(199, 0, 0, 0.25);
}

.project-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-visual {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2f1115 0%, #4b0a0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.visual-placeholder {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card:hover .project-visual {
    animation: zoomIn 0.6s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.1);
    }
}

.project-content {
    padding: 2.2rem;
}

.project-content h3 {
    font-size: 1.7rem;
    margin-bottom: 0.9rem;
    color: #ffffff;
}

.project-content p {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tags span {
    padding: 0.3rem 0.7rem;
    background: rgba(255, 77, 77, 0.14);
    color: #ff7a7a;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    text-decoration: none;
    color: #ff4d4d;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border: 2px solid #ff4d4d;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.project-link:hover {
    background: #ff4d4d;
    color: white;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 6rem 2rem;
    background: #1a1a2e;
    position: relative;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #b0b0b0;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-form {
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #262641;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #0f0f1a;
    color: #e0e0e0;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4d4d;
    background: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(255, 77, 77, 0.18);
}

.contact-form button {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #ff4d4d 0%, #c70000 100%);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(199, 0, 0, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: #1a1a1a;
    color: #999;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* ============================================
   SOCIAL ICONS
   ============================================ */

.social-links-section {
    text-align: center;
}

.social-label {
    font-size: 1rem;
    color: #b0b0b0;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #17141a 0%, #241923 100%);
    border: 2px solid #ff4d4d;
    border-radius: 50%;
    color: #ff4d4d;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out;
}

.social-icon:hover {
    background: linear-gradient(135deg, #ff4d4d 0%, #c70000 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(199, 0, 0, 0.3);
    border-color: transparent;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-visual {
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .skill-card,
    .project-card {
        padding: 1.5rem;
    }

    .floating-card {
        padding: 1rem;
    }
}
