:root {
    --primary-color: #64ffda;
    --secondary-color: #8892b0;
    --bg-color: #0a192f;
    --bg-light: #112240;
    --text-color: #ccd6f6;
    --heading-color: #e6f1ff;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.3s ease-in-out;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(10, 25, 47, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-color);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.btn-download {
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--primary-color) !important;
}

.btn-download:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4rem;
    color: var(--heading-color);
    margin-bottom: 10px;
}

.hero-text h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

.btn-outline {
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Page Sections */
.page-section {
    padding: 100px 0;
    min-height: 100vh;
}

.section-title {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 2px;
    background-color: var(--primary-color);
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background-color: var(--bg-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-image .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image .overlay {
    opacity: 1;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
}

.tech-stack {
    margin-top: 15px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.tech-stack span {
    margin-right: 10px;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--bg-light);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: 6px;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--text-color);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert.success {
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--primary-color);
}

.alert.error {
    background-color: rgba(255, 99, 71, 0.1);
    color: tomato;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* Social Icons Contact */
.social-icons-contact {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-icons-contact a {
    font-size: 2rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.social-icons-contact a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-info ul li i {
    width: 25px;
    color: var(--primary-color);
}

