
:root {
    --primary: #ff3131;
    --bg-dark: #080808;
    --card-bg: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #a1a1aa;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/*Background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 49, 49, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/*Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--primary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/*Main*/
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 49, 49, 0.3);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.cta-btn {
    padding: 1rem 2.5rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(255, 49, 49, 0.2);
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 49, 49, 0.4);
}

/*Apps Section*/
.section-header {
    margin-top: 2%;
    padding: 4rem 10% 2rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.section-header::after {
    content: "";
    height: 1px;
    background: var(--border-color);
    flex-grow: 1;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 10% 6rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    border-color: var(--primary);
    background: rgba(255, 49, 49, 0.02);
    transform: translateY(-10px);
}

.card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.badge-group {
    display: flex;
    gap: 0.6rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    border: 1px solid var(--border-color);
    color: var(--text-dim);
}

/* About Me*/
.aboutme {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10% 4rem;
}

.profile-layout {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    max-width: 900px;
    margin-bottom: 3rem;
}

.profile-img {
    width: 220px;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    object-fit: cover;
}

.profile-text-content {
    text-align: left;
}

.profile-text-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.profile-text-content p {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.section-text {
    width: 100%;
    max-width: 900px;
    text-align: left;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 20px;
}

.section-text h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-text p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.8;
}

.section-text p a{
    text-decoration: none;
    color: var(--primary);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dim);
    border-radius: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(255, 49, 49, 0.05);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 49, 49, 0.2);
}

.social-links svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .section-header {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .profile-layout {
        flex-direction: row; 
        align-items: flex-start;
        gap: 1.2rem;
        width: 100%;
        margin-bottom: 2rem;
    }

    .profile-img {
        margin-top: 3%;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        flex-shrink: 0;
        object-fit: cover;
    }

    .profile-text-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.4rem;
        line-height: 1.3;
    }

    .profile-text-content p {
        font-size: 0.9rem;
    }
    
    .section-text {
        padding: 1.5rem;
    }

    .social-links {
        justify-content: flex-start;
        gap: 1rem;
        margin-top: 1.2rem;
    }
}

/*Footer */
footer {
    padding: 5rem 10%;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-links {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.5rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
}

.copyright {
    color: #444;
    font-size: 0.8rem;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card-link:focus {
    outline: none;
}

.card:hover {
    cursor: pointer;
    border-color: var(--primary);
    background: rgba(255, 49, 49, 0.05);
}

.icon {
    height: 45px; 
    width: 45px; 
    margin-left: 65%;
}

.terms-section {
    padding: 4rem 10%;
    max-width: 1000px;
    margin: 0 auto;
}
.terms-content {
    padding: 2.5rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-dim);
}
.terms-content p {
    margin-bottom: 1.5rem;
}
.terms-content strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.3rem;
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hero h1 { font-size: 3rem; }
    .grid-container { grid-template-columns: 1fr; }
    .icon { height: 40px; width: 40px; margin-left: 52%;}
}

.hidden {
    display: none !important;
}