* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

:root {
    --primary-color: #06b6d4;
    --secondary-color: #3b82f6;
    --accent-color: #00b5a0;
    --bg-dark: #0f172a;
    --bg-darker: #1e293b;
    --bg-light: #334155;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #475569;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-darker) 50%, var(--bg-dark) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-mode {
    --bg-dark: #f8fafc;
    --bg-darker: #f1f5f9;
    --bg-light: #e2e8f0;
    --text-primary: #1e293b;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
}

.Cursor {
    pointer-events: none;
    position: fixed;
    display: block;
    border-radius: 0;
    transform-origin: center center;
    mix-blend-mode: difference;
    top: 0;
    left: 0;
    z-index: 1000;
}

.Cursor span {
    position: absolute;
    display: block;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: white;
    transform-origin: center center;
    will-change: transform;
    backface-visibility: hidden;
    pointer-events: none;
}

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

#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

body.light-mode #navbar {
    background: rgba(248, 250, 252, 0.95);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    flex-direction: row;
    position: static;
    background: none;
    padding: 0;
    border: none;
    opacity: 1;
    transform: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.theme-toggle:hover {
    background: var(--bg-light);
    transform: scale(1.1);
}

.theme-toggle svg {
    position: absolute;
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

.moon-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

.light-mode .sun-icon {
    opacity: 0;
    transform: rotate(180deg);
}

.light-mode .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

#svg {
    transform: scale(.9);
    z-index: 2;
    pointer-events: none;
}

#day,
#night {
    width: 80px;
    height: 40px;
    background: white;
    position: absolute;
    z-index: 1;
    cursor: pointer;
    border-radius: 100px;
    background: #9cd6ef;
    border: 6px solid #65c0e7;
}

#night {
    pointer-events: none;
}

.menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 0.5rem;
    z-index: 1100;
}

.menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

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

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 2rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.profile-img-container {
    margin-bottom: 2rem;
    display: inline-block;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    object-fit: cover;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.5);
    animation: float 4s ease-in-out infinite; /* slower */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* lighter float animation (less distance) */
@keyframes float {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(0, -15px, 0);
    }
}

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

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

.hero-title {
    font-size: clamp(4.5rem, 5vw, 2rem);
    font-weight: bold;
    margin-bottom: 1rem;
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.neon-text {
    font-size: 4rem;
    color: #fff;
    /* fewer and cheaper shadows */
    text-shadow: 0 0 6px #ff005e, 0 0 16px #ff005e, 0 0 36px #ff005e;
    animation: glow 4s ease-in-out infinite alternate;
    will-change: text-shadow;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 6px #ff005e, 0 0 16px #ff005e, 0 0 36px #ff005e;
    }
    100% {
        text-shadow: 0 0 8px #00d4ff, 0 0 22px #00d4ff, 0 0 60px #00d4ff;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::after {
    width: 100%;
}

.btn-primary {
    background: transparent;
    border-color: whitesmoke;
    color: var(--text-secondary);
}

.btn-primary::after {
    background: whitesmoke;
}

.btn-primary:hover {
    background: whitesmoke;
    color: black;
}

body.light-mode .btn-primary{
    border-color: #07090d;
}

body.light-mode .btn-primary::after{
    background: #07090d;
}

body.light-mode .btn-primary:hover{
    background: #07090d;
    color: whitesmoke
}

.btn-cv {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-cv::after {
    background: var(--accent-color);
    color: white;
}

.btn-cv:hover {
    color: white;
}

.btn-linkedin {
    background: transparent;
    border-color: #048bd3;
    color: #048bd3;
}

.btn-linkedin::after {
    background: #048bd3;
}

.btn-linkedin:hover {
    color: white;
}

.btn-mail {
    background: transparent;
    border-color: rgb(255, 81, 81);
    color: rgb(255, 81, 81);
}

.btn-mail::after {
    background: rgb(255, 81, 81);
    color: white;
}

.btn-mail:hover {
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.hero-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section {
    padding: 5rem 0;
}

.section-alt {
    background: rgba(30, 41, 59, 0.3);
}

body.light-mode .section-alt {
    background: rgba(226, 232, 240, 0.3);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
    will-change: transform;
}

body.light-mode .card {
    background: rgba(248, 250, 252, 0.7);
}

.card:hover {
    border-color: var(--primary-color);
    transform: scale(1.05) !important;
    background-color: rgba(156, 156, 157, 0.097);
}

body.light-mode .card:hover {
    background-color: rgba(226, 232, 240, 0.5);
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

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

.about-text:last-child {
    margin-bottom: 0;
}

.education-grid {
    display: grid;
    gap: 1.5rem;
}

.education-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.card-icon {
    padding: 0.75rem;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 0.5rem;
    flex-shrink: 0;
}

body.light-mode .card-icon {
    background: rgba(6, 182, 212, 0.15);
}

.card-icon svg {
    stroke: var(--primary-color);
}

.card-content {
    flex: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.card-subtitle {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

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

.skill-card {
    padding: 2rem;
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-title svg {
    stroke: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(6, 182, 212, 0.2);
    color: var(--primary-color);
}

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

.project-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-header svg {
    stroke: var(--primary-color);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.project-tech {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.project-period {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

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

@keyframes slide{
    0%{
        transform: translateX(0px);
    }
    100%{
        transform: translateX(10px);
    }
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-color);
    animation: slide 0.5s ease-in-out infinite alternate;
}

.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.achievement-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.achievement-icon {
    background: rgba(6, 182, 212, 0.2);
}

.achievement-icon svg {
    stroke: var(--primary-color);
}

.achievement-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.achievement-description {
    color: var(--text-secondary);
}

.activities-card {
    padding: 2rem;
}

.activities-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.activities-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activities-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-secondary);
}

.activities-list li::before {
    content: '▸';
    color: var(--primary-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-container {
    text-align: center;
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(30, 41, 59, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    body.light-mode .nav-links {
        background: rgba(248, 250, 252, 0.98);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-btn {
        display: flex;
    }

    .hero-title {
        font-size: 3.5rem !important;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-contact {
        flex-direction: column;
        align-items: center;
    }

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

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

    .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .Cursor {
        display: none;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .card {
        padding: 1rem;
    }

    .about-card {
        padding: 1.5rem;
    }

    .about-text {
        font-size: 1rem;
    }
}