/* Custom Fonts */
@font-face {
    font-family: 'Racing Engine Sharps';
    src: url('RacingEngine-Sharps.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff88;
    --secondary-color: #0a0a0a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-color: #00ff88;
    --background-dark: #000000;
    --background-light: #0f0f0f;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
    animation: fadeInScale 0.8s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-logo-text {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.6),
                 0 0 60px rgba(0, 255, 136, 0.4);
    font-family: 'Inter', sans-serif;
    padding-right: 0.2em;
}

.loading-logo {
    max-width: 100%;
    height: auto;
    max-height: 120px;
    margin: 0 auto 2rem auto;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(0, 255, 136, 0.5));
    display: block;
}

.loading-bar {
    display: none;
}

.loading-progress {
    display: none;
}

.matrix-dot {
    display: none;
}

.loading-wheel {
    width: 120px;
    height: 120px;
    position: relative;
    margin-bottom: 2rem;
    animation: spinWheel 1.5s linear infinite;
}

.wheel-outer {
    width: 100%;
    height: 100%;
    border: 8px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5),
                inset 0 0 20px rgba(0, 255, 136, 0.3);
}

.wheel-spokes {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
}

.spoke {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3px;
    height: 50%;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    transform-origin: top center;
}

.spoke:nth-child(1) { transform: translate(-50%, 0) rotate(0deg); }
.spoke:nth-child(2) { transform: translate(-50%, 0) rotate(60deg); }
.spoke:nth-child(3) { transform: translate(-50%, 0) rotate(120deg); }
.spoke:nth-child(4) { transform: translate(-50%, 0) rotate(180deg); }
.spoke:nth-child(5) { transform: translate(-50%, 0) rotate(240deg); }
.spoke:nth-child(6) { transform: translate(-50%, 0) rotate(300deg); }

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--primary-color);
}

.loading-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spinWheel {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Animated Motorcycle Wheel Background */
#laser-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.navbar.scrolled {
    background-color: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 20px rgba(0, 255, 136, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 150px;
    transition: transform 0.3s ease;
    object-fit: contain;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 50%, #000000 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 2rem;
}

.hero-logo {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-logo-img {
    max-width: 150px;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 255, 136, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-description p {
    margin: 0.5rem 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 1s ease 0.6s backwards;
}

.scroll-indicator span {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* Quote Section */
.quote-section {
    padding: 8rem 2rem;
    background-color: #1a1a1a;
    position: relative;
    z-index: 1;
}

.main-quote {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.main-quote p {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.4;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.signature {
    display: flex;
    justify-content: center;
}

.signature-svg {
    width: 200px;
    height: 60px;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 8rem 2rem;
    background-color: #0a0a0a;
    position: relative;
    z-index: 1;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-color);
}

.section-subtitle {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image {
    position: relative;
}

/* Image Grid Section */
.image-grid-section {
    padding: 4rem 2rem;
    background-color: var(--background-dark);
}

.grid-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: translateY(-10px);
}

.grid-item.large {
    grid-column: span 2;
}

.grid-item.wide {
    grid-column: span 2;
}

.image-caption {
    margin-top: 1rem;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Image Placeholder */
.image-placeholder {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 2px solid rgba(0, 255, 136, 0.1);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.image-placeholder:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.image-placeholder span {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* Work Section */
.work-section {
    padding: 8rem 2rem;
    background-color: var(--background-light);
    position: relative;
    z-index: 1;
}

.work-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

@media (max-width: 900px) {
    .work-cards {
        grid-template-columns: 1fr;
    }
}

.work-card {
    position: relative;
    background-color: transparent;
    transition: transform 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.work-card:hover {
    transform: translateY(-10px);
}

.work-card-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 12px;
    box-sizing: border-box;
}

.work-card-image .image-placeholder {
    height: 100%;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.work-card-content {
    padding: 2rem;
    background-color: var(--background-dark);
    border-radius: 12px;
    margin-top: 1.5rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.work-card-content h3 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--text-color);
    margin-bottom: 0;
}

.work-card-content h4 {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.work-card-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.work-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: transform 0.3s ease;
}

.work-link:hover {
    transform: translateX(10px);
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 2rem;
    background-color: var(--background-dark);
    position: relative;
    z-index: 1;
}

.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 3rem;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-info {
    margin-top: 1rem;
}

.gallery-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.gallery-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Social Section */
.social-section {
    padding: 8rem 2rem;
    background-color: var(--background-light);
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

.social-link {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.social-link:hover::after {
    width: 100%;
}

/* Contact Section */
.contact-section {
    padding: 8rem 2rem;
    background-color: var(--background-dark);
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 3rem;
}

.contact-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.1em;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background-color: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/* Footer */
.footer {
    padding: 3rem 2rem;
    background-color: var(--background-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.footer-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo-img:hover {
    opacity: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .work-cards {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .grid-item.large,
    .grid-item.wide {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.98);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .work-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .nav-container {
        padding: 1rem 0.5rem;
        width: 100%;
    }
    
    .logo-img {
        height: 35px;
        max-width: 120px;
    }
    
    .hero-logo-img {
        max-width: 180px;
    }
    
    .footer-logo-img {
        height: 50px;
    }
    
    .hero {
        padding: 4rem 0.5rem 2rem 0.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 3rem;
    }
    
    .scroll-indicator {
        bottom: 1.5rem;
        font-size: 0.7rem;
    }
    
    .quote-section,
    .about-section,
    .gallery-section,
    .social-section,
    .contact-section {
        padding: 4rem 0.5rem;
    }
    
    .work-section {
        padding: 4rem 0.25rem;
    }
    
    .work-section .container {
        padding: 0 0.25rem;
    }
    
    .work-cards {
        gap: 2rem;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .work-card {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .work-card-image {
        width: 100%;
        height: 300px;
        border: 1px solid rgba(0, 255, 136, 0.1);
        box-sizing: border-box;
    }
    
    .work-card-image .image-placeholder {
        border: none;
    }
    
    .work-card-content {
        padding: 1rem 0.75rem;
        width: 100%;
    }
    
    .work-card-content h3,
    .work-card-content h4 {
        font-size: 1.8rem;
        overflow-wrap: break-word;
        word-break: break-word;
    }
}
}
