/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #808080;
    --accent: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

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

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

/* External link styling */
.nav-link.external-link {
    position: relative;
}

.nav-link.external-link::before {
    content: '↗';
    font-size: 0.8rem;
    opacity: 0.7;
    margin-right: 0.3rem;
    transition: all 0.3s ease;
}

.nav-link.external-link:hover::before {
    opacity: 1;
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
}

/* Particles Background */
#particles-js, #particles-about, #particles-contact {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
    z-index: 3;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s ease;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.gradient-text {
    color: var(--text-primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 40px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: max-content;
    text-align: center;
    animation: fadeInUp 0.6s ease 0.8s both;
    z-index: 10;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0;
    }
}

.scroll-indicator p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-indicator.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* About Section */
.about {
    padding: 100px 0;
    background: rgba(15, 15, 15, 0.9);
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
    font-weight: 700;
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-text-wrapper {
    text-align: center;
    margin-bottom: 4rem;
}

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

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.expertise-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.expertise-item:hover {
    transform: translateY(-5px);
    border-color: var(--text-primary);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}

.expertise-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.expertise-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.expertise-icon {
    color: var(--text-primary);
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.expertise-item:hover .expertise-icon {
    opacity: 1;
    transform: translateY(-2px);
}

/* Experience Section - LinkedIn Style */
.experience {
    padding: 100px 0;
    background: var(--bg-primary);
}

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

/* Timeline connecting line */
.experience-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: var(--text-primary);
    z-index: 0;
    opacity: 0.8;
}

.experience-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-left: 20px;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Timeline dot for each card */
.experience-card::after {
    content: '';
    position: absolute;
    left: -33px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    z-index: 1;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.experience-card:hover::before {
    opacity: 1;
}

.experience-card:hover::after {
    transform: scale(1.3);
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.experience-card:hover {
    transform: translateX(10px);
    border-color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}

.company-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.experience-content {
    flex: 1;
}

.job-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.company-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.job-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.job-location {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.experience-achievements {
    list-style: none;
    margin-bottom: 1.5rem;
}

.experience-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.experience-achievements li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-badge {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Education Section */
.education {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.education-content-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.embed-option-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.linkedin-badge-container {
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.embed-instructions {
    margin-bottom: 2rem;
}

.embed-instructions p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.embed-instructions ol {
    color: var(--text-secondary);
    padding-left: 2rem;
}

.embed-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.linkedin-badge-example {
    text-align: center;
}

.custom-education-section {
    margin-top: 2rem;
}

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

/* Timeline connecting line */
.education-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 20px;
    bottom: 20px;
    width: 3px;
    background: var(--text-primary);
    z-index: 0;
    opacity: 0.8;
}

.education-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    margin-left: 20px;
    display: flex;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Timeline dot for each card */
.education-card::after {
    content: '';
    position: absolute;
    left: -33px;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--bg-secondary);
    border: 3px solid var(--text-primary);
    border-radius: 50%;
    z-index: 1;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.education-card:hover::before {
    opacity: 1;
}

.education-card:hover::after {
    transform: scale(1.3);
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.education-card:hover {
    transform: translateX(10px);
    border-color: var(--text-primary);
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.05);
}

.institution-logo {
    flex-shrink: 0;
}

.institution-logo .logo-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.education-content {
    flex: 1;
}

.degree-title {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.institution-name {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.education-duration {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.education-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.education-achievements {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.achievement-badge {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.achievement-badge:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

/* Contact Section */
.contact {
    padding: 70px 0 40px;
    background: rgba(10, 10, 10, 0.9);
    position: relative;
    z-index: 2;
}

.contact-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-content > h2 {
    grid-column: 1 / -1;
}

.contact-description {
    grid-column: 1 / -1;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info, .social-links {
    text-align: center;
}

/* Center the contact block within the grid */
.contact-info {
    grid-column: 1 / -1;
    justify-self: center;
}

.contact-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.email-link {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    transform: translateX(5px);
}

.phone-link {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: var(--text-primary);
}

.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-primary);
    transition: width 0.3s ease;
}

.social-link:hover {
    color: var(--text-primary);
}

.social-link:hover::after {
    width: 100%;
}

/* Reach me at - icon links */
.contact .contact-content { 
    justify-items: center;
}

.contact .contact-info {
    grid-column: 1 / -1 !important;
    text-align: center;
}

.contact .reach-links { 
    margin: 0 auto; 
}
.reach-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
}

.reach-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    padding: 0.8rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.reach-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.reach-link:hover::before {
    opacity: 1;
}

.reach-link:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(255, 255, 255, 0.1),
        0 4px 16px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
}

.reach-link:active {
    transform: translateY(-1px) scale(1.02);
}

.reach-icon {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.reach-link:hover .reach-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.footer-bottom {
    grid-column: 1 / -1;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

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

    .hamburger {
        display: flex;
    }

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

    .hamburger.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

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

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

    .experience-timeline::before,
    .education-timeline::before {
        left: 20px;
        width: 3px;
    }

    .experience-card, .education-card {
        flex-direction: column;
        padding: 1.5rem;
        margin-left: 10px;
    }

    .experience-card::after,
    .education-card::after {
        left: -23px;
        width: 14px;
        height: 14px;
    }

    .logo-placeholder {
        width: 50px;
        height: 50px;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info, .social-links {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}

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

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

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

    .about-paragraph {
        font-size: 1rem;
    }

    .expertise-item {
        padding: 1.5rem;
    }

    .experience-achievements li, .education-description {
        font-size: 0.9rem;
    }

    .email-link {
        font-size: 1.2rem;
    }

    .phone-link {
        font-size: 1rem;
    }
}
