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

body {
    font-family: 'Segoe UI', sans-serif;
    color: white;
    background: #0a0a0a;
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

.hero {
    position: relative;
    height: 100vh;
    width: 100vw;
    padding-top: 80px;
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
}

.content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.custom-cursor {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: difference;
}

.custom-cursor.grow {
    width: 50px;
    height: 50px;
}

h1 {
    font-size: 8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: fadeUp 0.8s ease forwards, gradient 8s ease infinite;
}

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

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.title {
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.cta {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.cta a {
    text-decoration: none;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.profile-picture {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.profile-border {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ff6b6b;
    border-right-color: #4ecdc4;
    border-bottom-color: #45b649;
    border-left-color: #ff6b6b;
    animation: rotate 4s linear infinite;
}

button {
    padding: 1rem 2rem;
    font-size: 1rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

button:hover {
    transform: scale(1.05);
}

button:hover::before {
    left: 100%;
}

.cta button {
    width: auto;
}

.primary {
    background: #fff;
    color: #000;
}

.secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

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

.nav-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.95);
        padding: 2rem;
        backdrop-filter: blur(10px);
    }

    .nav-links a {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-icon {
        width: 24px;
        height: 24px;
    }
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu span {
    width: 30px;
    height: 2px;
    background: white;
    transition: 0.3s ease;
}

.profile-container, .profile-picture, .profile-border {
    display: block;
}

.about {
    min-height: 100vh;
    padding: 6rem 2rem;
    position: relative;
    background: rgba(10, 10, 10, 0.95);
    z-index: 1;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.skill {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.about-image {
    position: relative;
}

.about-image-box {
    width: 100%;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-image-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.projects {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    position: relative;
    z-index: 1;
}

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

.projects-container h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
    text-align: center;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-preview:hover img {
    transform: scale(1.05);
}

/* Show default project icon only when no image is present */
.project-preview:not(:has(img)) .project-image {
    display: flex;
}

.project-preview:has(img) .project-image {
    display: none;
}

.project-image {
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image svg {
    width: 100%;
    height: 100%;
    fill: rgba(255, 255, 255, 0.7);
    transition: fill 0.3s ease;
}

.project-card:hover .project-image svg {
    fill: #4ecdc4;
}

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

.project-tech span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.project-card:hover .project-tech span {
    background: rgba(78, 205, 196, 0.2);
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.project-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-btn {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: 600;
}

.demo-btn:hover {
    transform: scale(1.05);
}

.project-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.github-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.github-btn:hover {
    transform: scale(1.05);
    background: #444;
}

.github-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.technical-skills {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    position: relative;
    z-index: 1;
}

.technical-skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.technical-skills h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
    text-align: center;
    grid-column: 1 / -1;
}

.skills-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.skills-category h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #fff;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.skill-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
}

.skill-percentage {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 5px;
    position: relative;
    animation: fillProgress 1.5s ease forwards;
    transform-origin: left;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.1)
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes fillProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.calc-display,
.calc-buttons,
.todo-header,
.todo-list,
.color-display,
.color-sliders {
    display: none;
}

.courses {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    position: relative;
    z-index: 1;
}

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

.courses-container h2 {
    font-size: 3rem;
    margin-bottom: 4rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
    text-align: center;
}

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

.course-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.course-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.course-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    justify-content: center;
    align-items: center;
}

.course-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.course-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: white;
}

.course-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.course-date {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
}

.certificate-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.certificate-btn:hover {
    transform: scale(1.05);
}

.contact {
    min-height: 100vh;
    padding: 6rem 2rem;
    background: rgba(10, 10, 10, 0.95);
    position: relative;
    z-index: 1;
}

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

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b649);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 300% 300%;
    animation: gradient 8s ease infinite;
    text-align: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-details li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details li a:hover {
    color: #4ecdc4;
}

.contact-details svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-right: 10px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-btn:hover {
    transform: scale(1.02);
}

html {
    scroll-behavior: smooth;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .title {
        font-size: 1.2rem;
    }
    
    .cta {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .about-container {
        grid-template-columns: 1fr;
    }

    .about {
        padding: 4rem 1rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects {
        padding: 4rem 1rem;
    }

    .projects-container h2 {
        font-size: 2.5rem;
    }

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

    .technical-skills {
        padding: 4rem 1rem;
    }

    .technical-skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .technical-skills h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .skills-category {
        padding: 1.5rem;
    }

    .skills-category h3 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .courses {
        padding: 4rem 1rem;
    }

    .courses-container h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .course-card {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.footer {
    position: relative;
    padding: 2rem;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

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

.social-link {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}