/* ================= VARIABLES ================= */
:root {
    --bg-color: #0b0d17;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #3a86ff;
    --secondary: #8338ec;
    --accent: #ff006e;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease-in-out;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 13, 23, 0.85);
    backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo .dot { color: var(--primary); font-size: 2rem; line-height: 0; }

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.btn-contact {
    padding: 8px 20px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary) !important;
}

.btn-contact:hover {
    background: var(--primary);
    color: white !important;
}

.menu-btn { display: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* ================= HERO SECTION ================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(58, 134, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text span { color: var(--secondary); }

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 550px;
}

.cta-group { display: flex; gap: 15px; margin-bottom: 30px; }

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 20px rgba(58, 134, 255, 0.3);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(58, 134, 255, 0.4); }

.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    background: var(--card-bg);
}

.btn-outline:hover { border-color: var(--text-main); }

.social-icons a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-right: 20px;
    transition: var(--transition);
}

.social-icons a:hover { color: var(--primary); transform: translateY(-3px); }

/* Hero Image & Floating Cards */
.hero-image-wrapper { position: relative; display: flex; justify-content: center; }

.image-box {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    border: 3px solid var(--glass-border);
    overflow: hidden;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 50px rgba(58, 134, 255, 0.2);
}

.image-box img { width: 100%; height: 100%; object-fit: cover; }

.floating-card {
    position: absolute;
    background: rgba(20, 20, 30, 0.9);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--glass-border);
    animation: float 4s ease-in-out infinite;
    z-index: 2;
}

.floating-card i { color: var(--accent); font-size: 1.2rem; }
.floating-card span { font-size: 0.9rem; font-weight: 600; }

.c1 { top: 20px; left: -20px; }
.c2 { bottom: 40px; right: -10px; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* ================= SECTIONS & ABOUT ================= */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-darker { background: rgba(0,0,0,0.2); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 50px; align-items: center; }

.about-img img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0 var(--card-bg);
    border: 1px solid var(--glass-border);
}

.about-content h3 { font-size: 1.8rem; margin-bottom: 20px; color: var(--primary); }
.about-content p { color: var(--text-muted); margin-bottom: 20px; line-height: 1.7; }
.about-content strong { color: var(--text-main); }

.info-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.info-item span { color: var(--primary); font-weight: 600; display: block; font-size: 0.9rem; }

/* ================= SKILLS ================= */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover { transform: translateY(-10px); border-color: var(--primary); }
.skill-card i { font-size: 3rem; color: var(--primary); margin-bottom: 20px; }
.skill-card h3 { margin-bottom: 10px; }
.skill-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ================= PROJECTS ================= */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }

.card-image { position: relative; height: 200px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.project-card:hover img { transform: scale(1.1); }

.overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

.project-card:hover .overlay { opacity: 1; }
.overlay a {
    width: 50px; height: 50px; background: white; color: black;
    border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.2rem;
}

.card-content { padding: 25px; }
.card-content h4 { font-size: 1.2rem; margin-bottom: 10px; }
.card-content p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 15px; }

.tags span {
    font-size: 0.75rem;
    padding: 5px 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    margin-right: 5px;
    color: var(--primary);
}

/* ================= TIMELINE ================= */
.timeline { position: relative; border-left: 2px solid var(--glass-border); margin-left: 20px; }
.timeline-item { margin-bottom: 40px; padding-left: 40px; position: relative; }
.timeline-dot {
    width: 16px; height: 16px; background: var(--primary);
    border-radius: 50%; position: absolute; left: -9px; top: 0;
    box-shadow: 0 0 10px var(--primary);
}
.timeline-date { color: var(--primary); font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.timeline-content h3 { font-size: 1.2rem; margin-bottom: 5px; }
.timeline-content p { color: var(--text-muted); }

/* ================= CONTACT ================= */
.contact-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
    padding: 60px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.contact-box h2 { margin-bottom: 15px; }
.contact-buttons { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 30px; }

footer {
    text-align: center; padding: 20px; border-top: 1px solid var(--glass-border);
    color: var(--text-muted); font-size: 0.9rem; margin-top: 50px;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .menu-btn { display: block; }
    .nav-links {
        position: fixed; top: 70px; right: -100%;
        width: 80%; height: 100vh; background: #0b0d17;
        flex-direction: column; padding: 50px; transition: 0.4s;
        border-left: 1px solid var(--glass-border);
    }
    .nav-links.active { right: 0; }
    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-image-wrapper { order: -1; margin-bottom: 40px; }
    .hero-text h1 { font-size: 2.5rem; }
    .cta-group { justify-content: center; }
    .info-list { text-align: left; }
}