:root {
    --bg-dark: #0a0a0c;
    --bg-card: rgba(25, 25, 30, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-red: #b30000;
    --accent-red-glow: rgba(179, 0, 0, 0.4);
    --accent-dark-red: #590000;
    --border-color: rgba(255, 255, 255, 0.05);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-dark-red), transparent 70%);
    animation: float 15s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #2a0808, transparent 70%);
    animation: float 20s infinite alternate-reverse ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 100;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-red);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5%;
    text-align: center;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.highlight {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red-glow);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-red);
    color: white;
    box-shadow: 0 4px 15px var(--accent-red-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--accent-red-glow);
    background-color: #cc0000;
}

/* Projects Section */
.projects-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.divider {
    height: 4px;
    width: 60px;
    background-color: var(--accent-red);
    margin: 0 auto;
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(179, 0, 0, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(179, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.app-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: contain;
    background-color: transparent;
    border: none;
    transition: var(--transition);
}

.project-card:hover .app-logo {
    transform: scale(1.05);
    border-color: var(--accent-red);
}

.project-content {
    position: relative;
    z-index: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    word-break: break-word;
    hyphens: auto;
    line-height: 1.2;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-link:hover {
    color: var(--accent-red);
}

.project-link i {
    font-size: 1.1rem;
}

/* Footer */
footer {
    padding: 5rem 5% 2rem;
    background: rgba(0,0,0,0.3);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--accent-red-glow);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    header {
        position: absolute;
        padding: 1rem 5%;
    }
    
    .logo {
        display: none;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        display: flex;
        gap: 1.2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding-top: 5rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .projects-section {
        padding: 4rem 5%;
    }

    .section-header h2 {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .app-logo {
        width: 48px;
        height: 48px;
    }

    .orb-1, .orb-2 {
        width: 300px;
        height: 300px;
    }
}
