:root {
    --bg-color: #0a0a0a;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --primary-color: #ffffff;
    --accent-color: #3b82f6;
    /* Subtle blue accent */
    --card-bg: #171717;
    --border-color: #333333;
    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    /* Android Fix */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Custom cursor */
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transform-origin: center center;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    margin-left: -4px;
    margin-top: -4px;
    will-change: transform;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    margin-left: -20px;
    margin-top: -20px;
    will-change: transform;
}

body:hover .cursor-outline {
    width: 40px;
    height: 40px;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

/* 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: 100;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-speed);
}

.navbar.scrolled {
    border-bottom: 1px solid var(--border-color);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-speed);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-contact {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    transition: all var(--transition-speed);
}

.btn-contact:hover {
    background: var(--primary-color);
    color: var(--bg-color) !important;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
}

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

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.subtitle {
    display: block;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-speed);
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
}

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

.btn-secondary:hover {
    border-color: var(--primary-color);
}

.image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 2rem;
    overflow: hidden;
    margin: 0 auto;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter var(--transition-speed);
}

.image-wrapper:hover img {
    filter: grayscale(0%);
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

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

.skills-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.list-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-weight: 500;
}

.skill-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
}

.dot.filled {
    background: var(--primary-color);
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: all var(--transition-speed);
}

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

/* Timeline */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    margin-left: 1rem;
    padding-left: 2rem;
}

.timeline-item {
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-color);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-role {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.2rem;
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.timeline-desc {
    margin-bottom: 1rem;
    font-style: italic;
}

.timeline-responsibilities {
    list-style-type: none;
}

.timeline-responsibilities li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.timeline-responsibilities li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

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

.education-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed);
}

.education-card:hover {
    transform: translateY(-5px);
}

.edu-degree {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.edu-institution {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.edu-date {
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Contact */
.contact-section {
    min-height: 80vh;
    /* Make it take up more space */
    display: flex;
    align-items: center;
}

.contact-card {
    background: linear-gradient(145deg, var(--card-bg), #222);
    /* Subtle gradient */
    padding: 6rem 2rem;
    /* Much bigger padding */
    border-radius: 3rem;
    text-align: center;
    border: 2px solid var(--border-color);
    /* Thicker border */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    /* Deep shadow for pop */
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

.contact-card h2 {
    font-size: 3.5rem;
    /* Bigger title */
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 1.5rem;
    /* Bigger text */
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3rem auto;
    /* Center the text block */
    line-height: 1.6;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 4rem;
    /* More space between items */
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.3rem;
    /* Bigger links */
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid transparent;
    transition: all var(--transition-speed);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .image-wrapper {
        max-width: 300px;
        order: -1;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-toggle {
        display: block;
        cursor: pointer;
        z-index: 101;
    }

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

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

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

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

@media (max-width: 1024px) {

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

/* Portfolio Card */
.portfolio-card {
    background: var(--card-bg);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition-speed);
    cursor: pointer;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: auto;
    /* Show default cursor in lightbox */
}

.lightbox * {
    cursor: auto;
    /* Ensure all children also show default cursor */
}

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 1rem;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    margin-top: 1rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    transition: all var(--transition-speed);
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
}

.prev-btn {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.next-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 768px) {
    .lightbox-content {
        width: 100%;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        position: fixed;
    }

    .prev-btn,
    .next-btn {
        position: fixed;
        bottom: 20px;
        top: auto;
        transform: none;
    }

    .prev-btn {
        left: 20px;
    }

    .next-btn {
        right: 20px;
    }
}