/* ===== Global Styles ===== */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4834df;
    --dark-bg: #1a1a2e;
    --light-bg: #16213e;
    --accent-color: #0f3460;
    --text-light: #ffffff;
    --text-muted: #e0e0e0;
    --success-color: #00d4aa;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f0f1e;
    color: var(--text-light);
    padding-top: 76px;
}

/* ===== Navigation ===== */
.navbar {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--success-color) !important;
}

.nav-link {
    margin: 0 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--accent-color) 100%);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%236c63ff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,96C1248,75,1344,53,1392,42.7L1440,32L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 40px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    background: transparent;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== Section Styles ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    margin: 20px auto 0;
    border-radius: 2px;
}

/* ===== Project Cards ===== */
.project-card {
    background: var(--light-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.3);
    border-color: var(--primary-color);
}

.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover img {
    transform: scale(1.1);
}

.project-card-body {
    padding: 1.5rem;
}

.project-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.project-card p {
    color: #e0e0e0;
    margin-bottom: 1rem;
}

.badge-custom {
    background: rgba(108, 99, 255, 0.2);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    margin-right: 5px;
    margin-bottom: 5px;
    display: inline-block;
}

/* ===== Filter Buttons ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.filter-btn {
    background: var(--light-bg);
    border: 2px solid transparent;
    color: var(--text-light);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===== Skills Section ===== */
.skill-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(108, 99, 255, 0.1);
    height: 100%;
}

.skill-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.2);
}

.skill-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-item h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.progress {
    height: 10px;
    background: var(--accent-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--success-color));
    border-radius: 10px;
}

/* ===== About Section ===== */
.about-img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3);
    border: 5px solid var(--light-bg);
}

.about-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* ===== Contact Form ===== */
.contact-form {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.form-control {
    background: var(--dark-bg);
    border: 2px solid rgba(108, 99, 255, 0.2);
    color: var(--text-light);
    padding: 12px 20px;
    border-radius: 10px;
    transition: var(--transition);
}

.form-control:focus {
    background: var(--dark-bg);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
}

.form-control::placeholder {
    color: #999;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* ===== Alert Styles ===== */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background: rgba(0, 212, 170, 0.1);
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert-danger {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid #ff4757;
}

/* ===== Footer ===== */
footer {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--light-bg) 100%) !important;
    border-top: 1px solid rgba(108, 99, 255, 0.1);
}

.hover-link:hover {
    color: var(--primary-color) !important;
    transition: var(--transition);
}

.social-links a {
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ===== Discord Profile Link Styles ===== */
#discord-profile-link img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(114, 137, 218, 0.3);
}

#discord-profile-link:hover p {
    color: #5865f2 !important;
}

