/* Variables */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a42e8;
    --text-color: #f2f2f2;
    --dark-bg: #050505;
    --card-bg: rgba(30, 30, 30, 0.5);
    --blur-bg: rgba(30, 30, 30, 0.2);
    --border-radius: 8px;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--dark-bg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Particle canvas styling */
.particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.7;
}

.bg-element-1 {
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.1) 0%, rgba(108, 99, 255, 0) 70%);
    z-index: -1;
}

.bg-element-2 {
    position: absolute;
    bottom: -200px;
    left: -200px;
    z-index: -1;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.07) 0%, rgba(108, 99, 255, 0) 70%);
}

.bg-element-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.03) 0%, rgba(108, 99, 255, 0) 70%);
}

/* Header */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 15px 0;
    background: rgba(5, 5, 5, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 5px 10px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2.5px 0;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 50px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.sub-title {
    font-size: 1.5rem;
    margin: 30px 0 20px;
}

/* About Section */
.about-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-content {
    flex: 1;
}

.about-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-image {
    flex-shrink: 0;
}

.about-image img {
    width: 250px;
    height: 250px;
    border-radius: 10px;
    object-fit: cover;
    border: 4px solid rgba(108, 99, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(108, 99, 255, 0.3);
}

/* Skills */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 20px;
}

.skill-category {
    flex: 1;
    min-width: 250px;
}

.skill-category h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.skill-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-pills span {
    padding: 8px 16px;
    background: var(--blur-bg);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.skill-pills span:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Projects Section */
.project-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(108, 99, 255, 0.3);
}

.project-content {
    padding: 25px;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.project-links a {
    color: var(--text-color);
    margin-left: 15px;
    font-size: 18px;
    transition: color 0.3s ease;
}

.project-links a:hover {
    color: var(--primary-color);
}

.project-meta {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.language {
    font-size: 0.9rem;
    padding: 3px 10px;
    background: rgba(108, 99, 255, 0.15);
    border-radius: 4px;
    color: var(--primary-color);
}

.stats {
    font-size: 0.9rem;
    opacity: 0.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-tags span {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: var(--blur-bg);
    border-radius: 4px;
    opacity: 0.7;
}

/* More Projects */
.more-projects {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.more-projects h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.more-projects ul {
    list-style: none;
}

.more-projects li {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.more-projects li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.more-projects a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.more-projects a:hover {
    color: var(--primary-color);
}

.more-projects span {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 120px;
}

.timeline-item {
    padding: 10px 40px 40px 160px;
    position: relative;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 113px;
    top: 15px;
    z-index: 1;
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 12px;
    width: 100px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
}

.timeline-content {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
}

.timeline-content h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.timeline-content h5 {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.8;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-used span {
    font-size: 0.8rem;
    padding: 4px 8px;
    background: var(--blur-bg);
    border-radius: 4px;
    opacity: 0.7;
}

/* Recognition Section */
.recognition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.recognition-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: var(--text-color);
}

.recognition-item:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 99, 255, 0.3);
    color: var(--text-color);
}

.recognition-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.recognition-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.recognition-item p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-text {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.contact-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.4);
}

.contact-btn i {
    margin-right: 10px;
}

.contact .social-links {
    justify-content: center;
    margin-top: 0;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .timeline::before {
        left: 60px;
    }
    
    .timeline-item {
        padding-left: 100px;
    }
    
    .timeline-dot {
        left: 53px;
    }
    
    .timeline-date {
        width: 45px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn span {
        transition: all 0.3s ease;
    }
    
    .mobile-menu-btn span.rotate-45 {
        transform: rotate(45deg) translateY(6px);
    }
    
    .mobile-menu-btn span.opacity-0 {
        opacity: 0;
    }
    
    .mobile-menu-btn span.-rotate-45 {
        transform: rotate(-45deg) translateY(-6px);
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 999;
    }
    
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hero {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .section-title, .about-content, .sub-title {
        text-align: center;
    }
    
    .about-wrapper {
        flex-direction: column-reverse;
    }
    
    .about-image {
        margin-bottom: 30px;
    }
    
    .about-image img {
        width: 200px;
        height: 200px;
    }
    
    .skills {
        justify-content: center;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        padding: 0 0 30px 0;
    }
    
    .timeline-dot, .timeline-date {
        display: none;
    }
    
    .timeline-content {
        margin-left: 0;
    }
    
    .timeline-content:hover {
        transform: none;
    }
    
    .project-cards {
        grid-template-columns: 1fr;
    }
    
    .recognition-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .sub-title {
        font-size: 1.3rem;
    }
    
    .contact-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}
