/* Variables */
:root {
    --bg-color: #0f172a;
    --bg-color-alt: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --accent: #10b981;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
}

/* Particles Background */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-color);
}

/* Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Sections */
.section {
    min-height: 100vh;
    padding: 6rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    align-self: center;
    background: linear-gradient(90deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Home Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.subtitle {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.title {
    font-size: 4rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1.1;
}

.role {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-contact {
    margin-bottom: 2rem;
}

.hero-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-5px);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glow-effect {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 0 30px var(--primary-glow);
    border: 2px solid var(--glass-border);
    transition: var(--transition);
    animation: float 6s ease-in-out infinite;
}

.glow-effect:hover {
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.5);
    transform: scale(1.02);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Glass Card Global */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    font-size: 1.1rem;
}

.about-text p {
    text-align: justify;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--primary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.45rem;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.2rem;
}

.timeline-content h5 {
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.location {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.8rem;
    border-radius: 12px;
    margin-top: 0.5rem;
}

/* Experience */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.card-header h3 {
    font-size: 1.5rem;
    color: var(--primary);
}

.company {
    font-weight: 600;
    font-size: 1.2rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-list {
    list-style-position: inside;
    padding-left: 1rem;
}

.card-list li {
    margin-bottom: 0.8rem;
    position: relative;
    list-style-type: none;
}

.card-list li::before {
    content: "▹";
    position: absolute;
    left: -1.2rem;
    color: var(--accent);
}

.project-link {
    color: var(--text-main);
    font-size: 1.5rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary);
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1rem 0 1.5rem;
}

.tech-stack span {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.skill-group {
    margin-bottom: 2rem;
}

.skill-group h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.skill-tags span img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.skill-tags span i {
    font-size: 1.2rem;
    color: var(--primary);
}

.skill-tags span:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.skills-visual img {
    width: 100%;
    border-radius: 20px;
}

/* Achievements */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.achievements-grid h3 {
    margin-bottom: 1.5rem;
    color: var(--secondary);
    font-size: 1.4rem;
}

/* Footer */
footer {
    background: var(--bg-color-alt);
    padding: 4rem 5% 2rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-socials {
    justify-content: center;
    margin: 2rem 0;
}

.copyright {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 3rem;
}

/* Animations (Intersection Observer) */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.5, 0, 0, 1);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Child transitions for stagger effect */
.show .card {
    animation: slideUp 0.6s cubic-bezier(0.5, 0, 0, 1) forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid .card:nth-child(1) {
    animation-delay: 0.2s;
}

.projects-grid .card:nth-child(2) {
    animation-delay: 0.4s;
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-glow);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Resume Section */
.resume-container {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.resume-card {
    max-width: 600px;
    padding: 3rem;
    border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
}

.resume-card h2 {
    color: var(--primary);
}

.resume-card p {
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.resume-download-btn {
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(59, 130, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.nav-resume-btn {
    color: var(--primary) !important;
    font-weight: 700;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        flex-direction: column-reverse;
        text-align: center;
        justify-content: center;
    }

    .hero-contact p {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Could add hamburger menu here */
    .title {
        font-size: 3rem;
    }

    .section {
        padding: 5rem 5%;
    }
}