/* ==================== */
/* CSS Variables & Reset */
/* ==================== */
:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-secondary: #b2b2b2;
    --accent-color: #c8c8c8;
    --accent-hover: #818cf8;
    --border-color: #1e293b;
    --card-bg: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== */
/* Particle Canvas */
/* ==================== */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ==================== */
/* Navigation Bar */
/* ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 60px;
    box-shadow: var(--shadow-md);
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 40px 60px;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 0px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.4), var(--shadow-lg);
    animation: float 3s ease-in-out infinite;
    position: relative;
}

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

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-name {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    color: var(--text-color);
    text-shadow: 0 0 40px rgba(99, 102, 241, 0.5);
}

.hero-tagline {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 50px;
}

.social-link {
    position: relative;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid transparent;
}

.social-link::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, bottom 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.social-link:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    filter: drop-shadow(0 8px 20px rgba(99, 102, 241, 0.4));
}

.social-link:hover::before {
    opacity: 1;
    bottom: -45px;
}

/* ==================== */
/* About Section */
/* ==================== */
.about {
    padding: 80px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-text {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* ==================== */
/* Section Titles */
/* ==================== */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-hover));
    border-radius: 2px;
}

/* ==================== */
/* Projects Section */
/* ==================== */
.projects {
    padding: 100px 0;
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(99, 102, 241, 0.2);
    border-color: var(--accent-color);
}



.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent-hover);
    transform: translateX(5px);
}

/* ==================== */
/* Experience Timeline */
/* ==================== */
.experience {
    padding: 100px 0;
    background: var(--card-bg);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -56px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-color);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

.timeline-date {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.timeline-content {
    background: var(--bg-color);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md), 0 0 30px rgba(99, 102, 241, 0.15);
    transform: translateX(10px);
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.tech-badge-sm {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ==================== */
/* Contact Section */
/* ==================== */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 40px;
}

.contact-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--card-bg);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 2px solid transparent;
    z-index: 1;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        var(--accent-color) 60deg,
        var(--accent-hover) 120deg,
        transparent 180deg,
        transparent 360deg
    );
    animation: rotateBorder 3s linear infinite;
    z-index: -2;
    opacity: 1;
}

.contact-btn::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--card-bg);
    border-radius: 48px;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.contact-btn:hover {
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), 0 0 25px rgba(99, 102, 241, 0.4);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
    padding: 40px 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 5px 0;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 24px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        padding: 30px;
        border-radius: 10px 0 0 10px;
        border: 1px solid var(--border-color);
        border-right: none;
        box-shadow: var(--shadow-lg);
        transition: right 0.3s ease;
        gap: 25px;
    }

    .nav-menu.active {
        right: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-name {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .container {
        padding: 0 24px;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-item {
        padding-left: 20px;
    }

    .timeline-item::before {
        left: -41px;
    }

    .about-text {
        font-size: 1.25rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .contact-btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .social-icons {
        gap: 15px;
    }

    .social-link {
        width: 40px;
        height: 40px;
    }
}