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

:root {
    --primary-color: #2d3748;
    --secondary-color: #4a5568;
    --accent-color: #718096;
    --text-dark: #1a202c;
    --text-light: #4a5568;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --skill-bg: #edf2f7;
    --skill-hover: #e2e8f0;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    font-size: 16px;
}

/* Navigation Menu */
nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 1px 3px var(--shadow-light);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.nav-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-transform: capitalize;
    position: relative;
    padding: 8px 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--text-light);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover {
    color: var(--text-dark);
    transform: translateY(-1px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero-section {
    margin-top: 80px;
    padding: 80px 20px;
    background: url('../images/nebula-bg.jpg') center center/cover no-repeat, 
                linear-gradient(135deg, rgba(13, 15, 30, 0.9), rgba(25, 30, 60, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    position: relative;
    overflow: hidden;
}

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

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 4px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.profile-image img {
    width: 105%;
    height: 105%;
    object-fit: cover;
    object-position: center 38%;
}

.hero-greeting {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-section .social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.hero-section .social-btn svg {
    flex-shrink: 0;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-links a svg {
    flex-shrink: 0;
}

.hero-section .social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Main Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* About Section */
#about {
    background: var(--bg-card);
    padding: 60px 40px;
    margin: 0 auto 60px;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 600;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-content strong {
    color: var(--text-dark);
    font-weight: 600;
}

.inspirational-quote {
    margin-top: 40px;
    padding: 25px;
    background: var(--skill-bg);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    text-align: center;
}

.inspirational-quote p {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.inspirational-quote small {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.inspirational-quote small strong {
    color: var(--text-dark);
    font-weight: 600;
}

.tribute-right {
    display: block;
    text-align: right;
    margin-top: 10px;
}

/* Cards */
.card {
    background: var(--bg-card);
    padding: 50px 40px;
    margin-bottom: 60px;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.card h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 35px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

/* Timeline Container */
.timeline-container {
    position: relative;
    padding-left: 60px;
}

.timeline-container:before {
    content: "";
    position: absolute;
    left: 38px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

/* Timeline Items */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    background: var(--bg-light);
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px var(--shadow-light);
    border: 1px solid var(--border-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item:before {
    content: "";
    position: absolute;
    left: -47px;
    top: 15px;
    width: 16px;
    height: 22px;
    background: var(--primary-color);
    clip-path: path("M8,0 C12.4,0 16,3.6 16,8 C16,12.4 8,22 8,22 S0,12.4 0,8 C0,3.6 3.6,0 8,0 Z");
    z-index: 2;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transform: translateX(1px);
}

.timeline-item:after {
    content: "";
    position: absolute;
    left: -42px;
    top: 21px;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    z-index: 3;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 12px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.skill-tag {
    background: var(--skill-bg);
    color: var(--text-dark);
    padding: 12px 18px;
    border-radius: 10px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: default;
    border: 1px solid transparent;
}

.skill-tag:hover {
    background: var(--skill-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--border-color);
}

/* Contact Section */
#contact {
    background: var(--bg-card);
    padding: 60px 40px;
    margin: 60px auto 0;
    text-align: center;
    box-shadow: 0 2px 10px var(--shadow-light);
    border: 1px solid var(--border-color);
}

#contact h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

#contact p {
    font-size: 1rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.contact-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--text-light);
    text-decoration: none;
    padding: 10px 24px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.contact-links a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white !important;
    border-radius: 50%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 18px;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-section {
        height: 400px;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .social-buttons {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 200px;
        justify-content: center;
    }

    #about {
        padding: 40px 25px;
    }

    .card {
        padding: 30px 25px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

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

    .hero-greeting {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .skill-tag {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

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

    .contact-links a {
        width: 100%;
        max-width: 250px;
    }
}