@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 25, 0.6);
    --accent-primary: #ff7f50;
    --accent-secondary: #ff4d00;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-shine: rgba(255, 255, 255, 0.03);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    --glow-color: rgba(255, 127, 80, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Abstract Background Elements */
.bg-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(at 0% 0%, rgba(255, 127, 80, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 77, 0, 0.05) 0px, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Header */
header {
    font-family: 'TPC-Bold', sans-serif;
    text-align: center;
    animation: fadeInDown 1s ease;
}

header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

header h1 span {
    color: var(--accent-primary);
    -webkit-text-fill-color: var(--accent-primary);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px 100px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    animation: fadeInUp 0.8s forwards 0.3s;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    animation: fadeInUp 1s forwards 0.5s;
}

/* Project Card */
.project-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 35px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--glass-shine), transparent);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(255, 127, 80, 0.3);
    background: rgba(30, 30, 35, 0.8);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 127, 80, 0.1);
}

.project-card h2 {
    font-size: 1.6rem;
    color: var(--accent-primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-card h2 i {
    font-size: 1.2rem;
    opacity: 0.8;
}

.project-card ul {
    list-style: none;
}

.project-card li {
    margin-bottom: 12px;
    transition: var(--transition);
}

.project-card a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.project-card a::after {
    content: '→';
    font-size: 1.2rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    color: var(--accent-primary);
}

.project-card a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.project-card a:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5rem;
    }

    .main-container {
        padding: 0 20px 60px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 25px;
    }
}