:root {
    --primary-color: #0f0f0f;
    --secondary-color: #121212;
    --accent-color: #e30613;
    --accent-hover: #b30000;
    --text-color: #f2f2f2;
    --text-secondary: #a7a7a7;
    --card-bg: #1a1a1a;
    --card-hover: #252525;
    --aeros-color: #1a365d;
    --speed-color: #e30613;
    --horoscope-color: #ffffff;
    --transition: all 0.3s ease;
    --angle: -12deg;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: sticky;
    top: 0;
    background-color: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
}

header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 30%;
    height: 2px;
    background-color: #fff;
}

.logo {
    display: flex;
    align-items: end;
    position: relative;
    z-index: 2;
    color: var(--text-color);
}

.by-text {
    font-size: 1rem;
    font-weight: 400;
    margin-right: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.world-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-left: 12px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.logo-img {
    height: 65px;
    transition: var(--transition);
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Hero Section Brand Styling */
.hero-brand {
    display: flex;
    align-items: end;
    justify-content: center;
    margin-bottom: 20px;
}

.by-hero {
    font-size: 2.5rem;
    font-weight: 400;
    margin-right: 20px;
    color: var(--text-secondary);
    text-transform: lowercase;
    margin-bottom: 5px;
}

.logo-hero {
    height: 85px;
    transition: var(--transition);
}

.hero-brand:hover .logo-hero {
    transform: scale(1.1);
}

/* About Section Brand Styling */
.about-brand {
    display: inline-flex;
    align-items: end;
}

.about-brand .by-text {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: lowercase;
    margin-right: 12px;
    margin-bottom: 2px;
}

.logo-about {
    height: 35px;
    margin: 0 8px;
}

.about-brand .world-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-color);
    margin-left: 12px;
    margin-bottom: 2px;
}

.logo-inline {
    height: 22px;
    vertical-align: baseline;
    margin: 0 5px;
}

/* Footer Brand Styling */
.footer-logo {
    display: flex;
    align-items: end;
}

.by-footer {
    font-size: 1rem;
    font-weight: 400;
    margin-right: 12px;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.logo-footer {
    height: 50px;
    transition: var(--transition);
}

.world-footer {
    font-size: 1.3rem;
    font-weight: 600;
    margin-left: 12px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.footer-logo:hover .logo-footer {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
    position: relative;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

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

nav ul li a:hover {
    color: var(--accent-color);
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    background: url('images/f1-hero-bg.svg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    margin-bottom: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 50px;
    background: url('images/checkered-pattern.svg') center/cover no-repeat;
    opacity: 0.7;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 50px;
    background: url('images/checkered-pattern.svg') center/cover no-repeat;
    opacity: 0.7;
    transform: rotate(180deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
    transform: skewX(var(--angle));
}

.hero h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero p {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--text-color);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 15px;
    position: relative;
}

.cta-buttons::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -150px;
    width: 100%;
    height: 100%;
    background: url('images/speed-lines.svg') center/contain no-repeat;
    opacity: 0.4;
    transform: scale(0.7);
}

.cta-primary, .cta-secondary {
    padding: 14px 28px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    z-index: 1;
}

.cta-primary {
    background-color: var(--accent-color);
    color: #fff;
    transform: skewX(var(--angle));
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.3);
}

.cta-primary:hover {
    background-color: var(--accent-hover);
    transform: skewX(var(--angle)) translateY(-5px);
    box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.2);
}

.cta-secondary {
    background-color: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    transform: skewX(var(--angle));
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.cta-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: skewX(var(--angle)) translateY(-5px);
    box-shadow: 6px 10px 0 rgba(0, 0, 0, 0.2);
}

/* App Showcase Section */
.app-showcase {
    padding: 40px 20px 80px;
    position: relative;
}

.app-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 10px;
    background: url('images/checkered-pattern.svg') center/contain repeat-x;
    opacity: 0.1;
}

.app-showcase h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    transform: skewX(var(--angle));
}

.app-showcase h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: var(--accent-color);
}

.checkered-line {
    height: 10px;
    width: 100%;
    background: url('images/checkered-pattern.svg') center/contain repeat-x;
    margin: 50px 0 0;
    opacity: 0.2;
}

.app-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.app-card {
    background-color: var(--card-bg);
    padding: 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    position: relative;
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-radius: 0;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 95%,
        95% 100%,
        0 100%
    );
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background: url('images/angle-corner.svg') center/contain no-repeat;
    transform: rotate(0deg);
}

.app-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 15px;
    height: 15px;
    background: url('images/angle-corner.svg') center/contain no-repeat;
    transform: rotate(180deg);
}

.aeros-card {
    border-top: 4px solid var(--aeros-color);
}

.speed-card {
    border-top: 4px solid var(--speed-color);
}

.horoscope-card {
    border-top: 4px solid var(--horoscope-color);
}

.app-card:hover {
    background-color: var(--card-hover);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.app-card:hover .app-logo {
    transform: scale(1.1) rotate(5deg);
}

.app-icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-logo {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.app-card h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.app-card p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    font-size: 1.05rem;
}

.app-preview {
    width: 100%;
    margin-bottom: 25px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateX(5deg);
    transition: var(--transition);
}

.app-card:hover .app-preview {
    transform: perspective(1000px) rotateX(0deg);
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: var(--transition);
}

.app-card:hover .app-screenshot {
    transform: scale(1.03);
}

.app-link {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    transform: skewX(var(--angle));
    display: inline-block;
}

.app-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: var(--transition);
}

.app-link:hover {
    background-color: var(--accent-hover);
    transform: skewX(var(--angle)) translateY(-3px);
    box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.app-link:hover::before {
    left: 100%;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
}

.about-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('images/speed-lines.svg') center/cover no-repeat;
    opacity: 0.05;
    pointer-events: none;
}

.about-content {
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    transform: skewX(var(--angle));
    display: inline-block;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    padding: 15px 20px;
    border-radius: 0;
    border-left: 3px solid var(--accent-color);
    transform: skewX(var(--angle));
    transition: var(--transition);
}

.feature:hover {
    transform: skewX(var(--angle)) translateY(-5px);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
}

.feature i {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-right: 10px;
}

.feature span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.2), transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.about-logo {
    max-width: 90%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse 3s infinite alternate;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    padding: 60px 20px 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: url('images/checkered-pattern.svg') center/contain repeat-x;
    opacity: 0.3;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

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

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

.footer-links a:hover::after {
    width: 100%;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: var(--transition);
    padding: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social a:hover {
    color: var(--accent-color);
    background-color: var(--card-hover);
    transform: translateY(-3px);
}

.footer-legal {
    border-top: 1px solid rgba(167, 167, 167, 0.1);
    padding-top: 20px;
    margin-bottom: 20px;
}

.legal-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.legal-links a:hover {
    color: var(--accent-color);
}

.legal-links a:hover::after {
    width: 100%;
}

.copyright {
    text-align: center;
    color: var(--text-secondary);
    text-transform: uppercase;  
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .by-hero {
        font-size: 2rem;
        margin-right: 15px;
    }
    
    .logo-hero {
        height: 65px;
    }
    
    .about-section {
        grid-template-columns: 1fr;
        clip-path: polygon(0 2%, 100% 0, 100% 100%, 0 100%);
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .legal-links {
        gap: 20px;
    }
    
    nav ul li {
        margin-left: 20px;
    }
    
    .about-features {
        justify-content: center;
    }
    
    .logo-img {
        height: 55px;
    }
    
    .by-text, .world-text {
        font-size: 0.9rem;
    }
    
    .logo-footer {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .by-hero {
        font-size: 1.5rem;
        margin-right: 10px;
    }
    
    .logo-hero {
        height: 50px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    nav ul li {
        margin-left: 15px;
    }
    
    .app-showcase h2, .about-content h2 {
        font-size: 2.2rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .footer-links, .legal-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-brand {
        flex-direction: column;
        gap: 10px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-content {
    animation: fadeIn 0.8s ease-out forwards;
}

.app-card {
    animation: fadeIn 0.8s ease-out forwards;
}

.about-content {
    animation: slideInLeft 0.8s ease-out forwards;
}

.about-image {
    animation: slideInRight 0.8s ease-out forwards;
}

.feature {
    animation: fadeIn 0.8s ease-out forwards;
}

.feature:nth-child(1) {
    animation-delay: 0.2s;
}

.feature:nth-child(2) {
    animation-delay: 0.4s;
}

.feature:nth-child(3) {
    animation-delay: 0.6s;
}

.app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.app-card:nth-child(3) {
    animation-delay: 0.4s;
}

header.scrolled {
    background-color: rgba(15, 15, 15, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.app-card.appear {
    opacity: 1;
    transform: translateY(0);
}
