:root {
    --bg-color: #0a0a0a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #8a2be2;
    /* BlueViolet */
    --accent-secondary: #00ffff;
    /* Cyan */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-hover: rgba(255, 255, 255, 0.1);
}

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

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

/* Background Animated Blobs */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.blob-one {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -20%;
    left: -20%;
}

.blob-two {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.blob-three {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, #ff007f, transparent 70%);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo .dot {
    color: var(--accent-secondary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 10px var(--accent-secondary);
}

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

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-primary), #6a1b9a);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    background: rgba(0, 255, 255, 0.05);
}

/* Common Section Styles */
.section-padding {
    padding: 100px 5%;
}

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

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    border-radius: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}

.glass:hover {
    background: var(--card-hover);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.about-card {
    text-align: center;
}

.about-card .icon {
    font-size: 2.5rem;
    color: var(--accent-secondary);
    margin-bottom: 1.5rem;
}

.about-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #ddd;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    /* Center line */
    margin-left: -2px;
    border-radius: 2px;
}

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

/* Left side */
.timeline-item:nth-child(even) {
    left: 0;
    text-align: right;
}

/* Right side */
.timeline-item:nth-child(odd) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background-color: var(--accent-primary);
    position: absolute;
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 15px var(--accent-primary);
}

.timeline-item:nth-child(even) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(odd) .timeline-dot {
    left: -10px;
}

.timeline-date {
    font-weight: 700;
    color: var(--accent-secondary);
    margin-bottom: 10px;
    display: block;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-style: italic;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
    justify-content: center;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    cursor: default;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 10px;
    transition: color 0.3s;
    color: #fff;
    /* Default white */
}

/* Color reveal on hover */
.skill-card:hover i {
    color: var(--color);
    filter: drop-shadow(0 0 10px var(--color));
}

.skill-card:hover {
    border-color: var(--color);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 10px var(--color);
}

.skill-card span {
    font-weight: 600;
    margin-top: 5px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    padding: 80px 0 30px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.big-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
}

.social-links {
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--accent-secondary);
    transform: scale(1.1);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        clip-path: circle(0px at 100% 0px);
        transition: clip-path 0.5s ease-in-out;
        pointer-events: none;
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0px);
        pointer-events: all;
    }

    .hamburger {
        display: flex;
    }

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

    .subtitle {
        font-size: 1.1rem;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even),
    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: left;
    }

    .timeline-item:nth-child(even) .timeline-dot,
    .timeline-item:nth-child(odd) .timeline-dot {
        left: 22px;
        right: auto;
    }
}

/* Animation Keyframes */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glitch Effect - simplified for performance & aesthetics */
.glitch {
    position: relative;
    color: var(--text-primary);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(20px, 9999px, 50px, 0);
    }

    15% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    25% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    30% {
        clip: rect(90px, 9999px, 70px, 0);
    }

    35% {
        clip: rect(40px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(60px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 10px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(40px, 9999px, 20px, 0);
    }

    5% {
        clip: rect(20px, 9999px, 50px, 0);
    }

    10% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    15% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(50px, 9999px, 10px, 0);
    }

    25% {
        clip: rect(80px, 9999px, 60px, 0);
    }

    30% {
        clip: rect(30px, 9999px, 40px, 0);
    }

    35% {
        clip: rect(60px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

/* --- New Styles for Enhanced Sections --- */

/* Experience Section (LinkedIn Style) */
.experience-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.job-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary));
    opacity: 0.7;
}

.job-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.company-logo-placeholder {
    width: 60px;
    height: 60px;
    background: #333;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.job-info h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.job-info h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.job-dates,
.job-location {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.job-description ul {
    list-style-type: none;
    padding-left: 1rem;
}

.job-description ul li {
    position: relative;
    margin-bottom: 0.8rem;
    color: #ccc;
    font-size: 0.95rem;
}

.job-description ul li::before {
    content: '▹';
    position: absolute;
    left: -1.2rem;
    color: var(--accent-secondary);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    /* Override default glass padding for image */
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    height: 180px;
    overflow: hidden;
}

.project-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.5s;
}

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

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 15px;
    color: var(--accent-secondary);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.btn-sm {
    padding: 8px 15px;
    background: var(--glass-border);
    border-radius: 5px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-sm:hover {
    background: var(--accent-primary);
}

.btn-sm.other:hover {
    background: var(--accent-secondary);
    color: black;
}

/* Enhanced Footer */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    text-align: left;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: white;
}

.about-col p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.links-col ul,
.contact-col ul {
    list-style: none;
}

.links-col ul li {
    margin-bottom: 0.8rem;
}

.links-col a,
.contact-list li {
    color: var(--text-secondary);
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.links-col a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.contact-list li {
    margin-bottom: 1rem;
}

.social-links-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links-footer a {
    width: 40px;
    height: 40px;
    background: var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
}

.social-links-footer a:hover {
    background: var(--accent-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

@media (max-width: 768px) {
    .job-header {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .links-col a,
    .contact-list li {
        justify-content: center;
    }

    .social-links-footer {
        justify-content: center;
    }
}