:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-primary: #007bff;
    /* Electric Blue */
    --accent-secondary: #bd00ff;
    /* Purple */
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --card-bg: rgba(20, 20, 20, 0.6);
    --border-color: #222222;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --transition: all 0.3s ease;
    --glow-shadow: 0 0 20px rgba(0, 123, 255, 0.15);
}

.light-mode {
    --bg-color: #ffffff;
    --text-color: #000000;
    --text-secondary: #555555;
    --accent-primary: #0056b3;
    --accent-secondary: #8000b0;
    --gradient-main: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --card-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --glow-shadow: 0 0 15px rgba(0, 86, 179, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    z-index: 10000;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    transition: all 0.15s ease-out;
}

.cursor-dot.active,
.cursor-outline.active {
    opacity: 1;
}

.cursor-outline.hover {
    transform: translate(-50%, -50%) scale(1.5);
    border-color: var(--accent-secondary);
}

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

ul {
    list-style: none;
}

/* Header */
header {
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.theme-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.theme-btn:hover {
    transform: rotate(15deg);
    color: var(--accent-primary);
}

/* Hero */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.hero-image {
    flex-shrink: 0;
    width: 350px;
    height: 350px;
    position: relative;
    border-radius: 50%;
    /* Circular or rounded square */
    background: var(--gradient-main);
    padding: 4px;
    /* Border width */
    box-shadow: var(--glow-shadow);
    animation: float 6s ease-in-out infinite;
}

.profile-pic-hero {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: var(--bg-color);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

.name {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.name:hover {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.5s ease;
}

.tagline {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.sub-tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--gradient-main);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(189, 0, 255, 0.4);
}

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

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

/* Sections */
.section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-primary);
    margin-bottom: 4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: '';
    height: 1px;
    width: 50px;
    background: var(--gradient-main);
}

/* About */
.about-content {
    display: flex;
    flex-direction: column;
    /* Stacked since image moved */
    align-items: flex-start;
    gap: 2rem;
}

.about-image {
    flex-shrink: 0;
    width: 250px;
    height: 250px;
    position: relative;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    border: 2px solid transparent;
    background: var(--gradient-main) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    box-shadow: var(--glow-shadow);
    transition: var(--transition);
}

.about-image::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 25px;
    background: var(--gradient-main);
    z-index: -1;
    opacity: 0.3;
    filter: blur(15px);
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

/* Education Section */
.education-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.education-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.education-item {
    margin-bottom: 2rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.education-header strong {
    font-size: 1.1rem;
    color: var(--text-color);
}

.education-year {
    color: var(--accent-color);
    font-weight: 500;
}

.education-university {
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.education-focus {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-style: italic;
}

.education-recognition {
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.education-recognition i {
    color: var(--accent-secondary);
}


.relevant-courses h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.course-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.course-tags span {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.course-tags span:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

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

.highlight {
    color: var(--text-color);
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--gradient-main);
    opacity: 0.2;
    z-index: -1;
    transition: height 0.3s ease;
}

.highlight:hover::after {
    height: 100%;
    opacity: 0.4;
}

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

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.badge i {
    font-size: 1.1rem;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.badge:hover i {
    color: var(--accent-primary);
}

/* Projects Slider */
.projects-slider-container {
    width: 100%;
    overflow: hidden;
    /* Hide scrollbar for container, handle in inner */
}

.projects-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
    /* Space for scrollbar or shadow */
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.projects-slider::-webkit-scrollbar {
    height: 8px;
}

.projects-slider::-webkit-scrollbar-track {
    background: var(--card-bg);
    border-radius: 4px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.projects-slider::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

.projects-slider:active {
    cursor: grabbing;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 0;
    /* Removed padding for image */
    border-radius: 16px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-height: 350px;
    width: 300px;
    /* Fixed width to ensure equality */
    position: relative;
    backdrop-filter: blur(5px);
    scroll-snap-align: start;
    flex-shrink: 0;
    overflow: hidden;
    /* Ensure image respects border radius */
}

.project-image {
    width: 100%;
    height: 200px;
    /* Increased height for better view */
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Ensure top of UI is visible */
    transition: transform 0.5s ease;
}

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

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

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: var(--gradient-main);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-shadow);
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.year {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-family: monospace;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.project-desc {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 500;
}

.project-details {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    flex-grow: 1;
}

.project-details li {
    margin-bottom: 0.5rem;
}

.tech-stack {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tech-stack span {
    font-size: 0.8rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

/* Experience List */
.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    transition: var(--transition);
}

.experience-item:hover {
    border-color: var(--accent-secondary);
    transform: translateX(10px);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.date {
    font-family: monospace;
    color: var(--accent-secondary);
}

.company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.exp-details {
    list-style: disc;
    padding-left: 1.2rem;
    color: var(--text-secondary);
}

.exp-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
}

.contact-buttons {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.contact-btn i {
    font-size: 1.5rem;
}

.email-btn {
    background: var(--gradient-main);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.email-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(189, 0, 255, 0.5);
}

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

.linkedin-btn:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 123, 255, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.linkedin-btn i {
    color: var(--accent-primary);
}


/* Mobile */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        width: 250px;
        height: 250px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .name {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
    }

    .about-content {
        gap: 2rem;
    }

    .about-image {
        width: 150px;
        height: 150px;
    }

    .projects-slider {
        gap: 1rem;
    }

    .project-card {
        min-width: 85vw;
        /* Full width minus padding on mobile */
    }

    .exp-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section {
        padding: 5rem 5%;
    }

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