:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --primary-color: #38bdf8;
    --secondary-color: #818cf8;
    --accent-color: #f472b6;
    --text-color: #f8fafc;
    --nav-height: 70px;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: var(--bg-color);
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Starfield Background Styles */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#stars,
#stars2,
#stars3 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 200%;
    height: 200%;
    background: transparent;
}

#stars {
    width: 1px;
    height: 1px;
    box-shadow: 444px 1913px #FFF, 1133px 1863px #FFF, 460px 154px #FFF, 407px 1199px #FFF, 900px 321px #FFF, 1572px 1452px #FFF, 1836px 1475px #FFF, 1195px 632px #FFF, 1162px 283px #FFF, 1547px 194px #FFF, 1353px 1132px #FFF, 1804px 1918px #FFF, 1157px 1269px #FFF, 538px 1279px #FFF, 1713px 406px #FFF, 1481px 1162px #FFF, 1548px 1188px #FFF, 64px 337px #FFF, 492px 1856px #FFF, 1085px 1016px #FFF, 1729px 785px #FFF, 1109px 1919px #FFF, 1070px 1271px #FFF, 1553px 1248px #FFF, 1727px 1405px #FFF, 621px 1928px #FFF, 1878px 1081px #FFF, 715px 1215px #FFF, 1261px 1891px #FFF, 1585px 1850px #FFF, 290px 42px #FFF, 1435px 235px #FFF, 1632px 1530px #FFF, 1021px 1297px #FFF, 650px 1448px #FFF, 1716px 1601px #FFF, 152px 694px #FFF, 1177px 590px #FFF, 345px 1845px #FFF, 1827px 1262px #FFF, 1077px 69px #FFF, 1373px 1495px #FFF, 1726px 197px #FFF, 915px 446px #FFF, 492px 1351px #FFF, 508px 304px #FFF, 1559px 158px #FFF, 1147px 1500px #FFF, 1546px 635px #FFF, 107px 1205px #FFF, 1221px 1961px #FFF, 1024px 1749px #FFF, 121px 1268px #FFF, 1030px 1085px #FFF, 1819px 512px #FFF, 936px 1636px #FFF, 1532px 1303px #FFF, 755px 1419px #FFF, 1021px 1162px #FFF, 434px 1241px #FFF, 1812px 1021px #FFF, 1378px 1121px #FFF, 1515px 109px #FFF, 1408px 1132px #FFF, 307px 158px #FFF, 1175px 1118px #FFF, 167px 321px #FFF, 1184px 1850px #FFF, 1133px 1150px #FFF, 572px 1801px #FFF, 144px 1913px #FFF, 133px 1863px #FFF, 46px 154px #FFF, 40px 1199px #FFF, 90px 321px #FFF, 157px 1452px #FFF, 183px 1475px #FFF, 119px 632px #FFF, 116px 283px #FFF, 154px 194px #FFF;
    animation: parallaxStar 100s linear infinite;
}

#stars2 {
    width: 2px;
    height: 2px;
    box-shadow: 1548px 118px #FFF, 1162px 1283px #FFF, 157px 1452px #FFF, 407px 199px #FFF, 1133px 1863px #FFF, 1195px 632px #FFF, 1157px 1269px #FFF, 538px 1279px #FFF, 1713px 406px #FFF, 1481px 1162px #FFF, 1548px 1188px #FFF, 64px 337px #FFF, 492px 1856px #FFF, 1085px 1016px #FFF, 1729px 785px #FFF, 1109px 1919px #FFF, 1070px 1271px #FFF, 1553px 1248px #FFF, 1727px 1405px #FFF, 1000px 500px #FFF, 1200px 800px #FFF, 300px 1500px #FFF, 1800px 200px #FFF, 600px 1200px #FFF;
    animation: parallaxStar 150s linear infinite;
}

#stars3 {
    width: 3px;
    height: 3px;
    box-shadow: 1726px 197px #FFF, 915px 446px #FFF, 492px 1351px #FFF, 508px 304px #FFF, 1559px 158px #FFF, 1147px 1500px #FFF, 1546px 635px #FFF, 107px 1205px #FFF, 1221px 1961px #FFF, 1024px 1749px #FFF, 500px 500px #FFF, 1500px 1500px #FFF;
    animation: parallaxStar 200s linear infinite;
}

#nebula {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(129, 140, 248, 0.07) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(244, 114, 182, 0.05) 0%, transparent 60%);
    filter: blur(60px);
    animation: nebulaMove 40s ease-in-out infinite alternate;
}

@keyframes parallaxStar {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-2000px);
    }
}

@keyframes nebulaMove {
    from {
        transform: scale(1) translate(0, 0);
    }

    to {
        transform: scale(1.2) translate(3%, 3%);
    }
}

/* Shooting Stars */
.shooting-star {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 2px;
    background: linear-gradient(-45deg, var(--primary-color), rgba(0, 0, 255, 0));
    border-radius: 999px;
    filter: drop-shadow(0 0 6px var(--primary-color));
    animation: tail 3s ease-in-out infinite, shooting 3s ease-in-out infinite;
    z-index: -1;
}

.shooting-star::before,
.shooting-star::after {
    content: '';
    position: absolute;
    top: calc(50% - 1px);
    right: 0;
    height: 2px;
    background: linear-gradient(-45deg, rgba(0, 0, 255, 0), var(--primary-color), rgba(0, 0, 255, 0));
    border-radius: 999px;
    transform: translateX(50%) rotateZ(45deg);
    animation: shining 3s ease-in-out infinite;
}

.shooting-star::after {
    transform: translateX(50%) rotateZ(-45deg);
}

.shooting-star:nth-child(5) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shooting-star:nth-child(6) {
    top: 30%;
    left: 60%;
    animation-delay: 1.5s;
}

.shooting-star:nth-child(7) {
    top: 70%;
    left: 20%;
    animation-delay: 2.5s;
}

@keyframes tail {
    0% {
        width: 0;
    }

    30% {
        width: 100px;
    }

    100% {
        width: 0;
    }
}

@keyframes shining {
    0% {
        width: 0;
    }

    50% {
        width: 30px;
    }

    100% {
        width: 0;
    }
}

@keyframes shooting {
    0% {
        transform: translateX(0) translateY(0) rotateZ(45deg);
    }

    100% {
        transform: translateX(300px) translateY(300px) rotateZ(45deg);
    }
}

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

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-color);
}

.cursor-active .cursor-dot {
    background-color: var(--accent-color);
}

.cursor-active .cursor-outline {
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    background-color: rgba(244, 114, 182, 0.1);
}

@media (max-width: 1024px) {
    * {
        cursor: auto;
    }

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

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

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 10px;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

#navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo span {
    color: var(--primary-color);
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero-content {
    z-index: 1;
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0 1rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    display: inline-block;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    border: none;
    cursor: none;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(56, 189, 248, 0.4);
}

.btn i {
    margin-right: 8px;
}

/* Background Animated Shape */
.background-shape {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    animation: move 10s infinite alternate;
}

@keyframes move {
    0% {
        top: 10%;
        left: 10%;
    }

    100% {
        top: 60%;
        left: 70%;
    }
}

/* Sections */
section {
    padding: 100px 0;
    background: transparent;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-img img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.about-img:hover img {
    transform: scale(1.1);
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #cbd5e1;
}

.info-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.edu-info,
.lang-info {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.edu-info:hover,
.lang-info:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.edu-info h3,
.lang-info h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.edu-info ul,
.lang-info ul {
    list-style: none;
}

.edu-info li,
.lang-info li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.edu-info li::before {
    content: '\f19d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.lang-info li::before {
    content: '\f1ab';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

@media (max-width: 600px) {
    .info-lists {
        grid-template-columns: 1fr;
    }
}

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

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

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

.project-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    background: rgba(30, 41, 59, 1);
    transform: scale(1.02);
}

.project-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.project-card p {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.tags {
    margin-bottom: 1.5rem;
}

.tags span {
    display: inline-block;
    background: rgba(129, 204, 248, 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.project-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    transition: var(--transition);
}

.project-link:hover {
    color: var(--primary-color);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--card-bg);
    border-radius: 25px;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.service-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 1rem;
    width: 25px;
}

.contact-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.5rem;
}

.contact-socials a {
    font-size: 1.4rem;
    color: #94a3b8;
    transition: var(--transition);
}

.contact-socials a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 10px;
    color: #fff;
    margin-bottom: 1rem;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    animation: fadeIn 0.4s ease;
}

.form-status.hidden {
    display: none;
}

#form-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

#form-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

#form-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

footer {
    text-align: center;
    padding: 2rem;
    background: #0b1120;
}

footer i {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 968px) {

    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .about-img {
        max-width: 400px;
        margin: 0 auto;
    }
}

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

/* Funny Warning Overlay Styles */
.funny-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.5s ease;
}

.funny-overlay.hidden {
    display: none;
}

.funny-content {
    max-width: 600px;
    background: rgba(30, 41, 59, 0.8);
    padding: 3rem;
    border-radius: 30px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 50px rgba(244, 114, 182, 0.3);
    position: relative;
    z-index: 1;
}

.fox-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    animation: bounce 2s infinite;
}

.funny-content h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.funny-content p,
.funny-list {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-color);
}

.funny-list {
    list-style: none;
    text-align: left;
    display: inline-block;
    margin: 1.5rem 0;
}

.funny-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 2rem;
}

.funny-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
}

.dismiss-hint {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #94a3b8;
    font-style: italic;
}

.floating-emojis {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-emojis span {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.6;
    animation: floatAround 10s infinite linear;
}

.floating-emojis span:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-emojis span:nth-child(2) {
    top: 20%;
    left: 80%;
    animation-delay: -2s;
}

.floating-emojis span:nth-child(3) {
    top: 70%;
    left: 15%;
    animation-delay: -4s;
}

.floating-emojis span:nth-child(4) {
    top: 80%;
    left: 75%;
    animation-delay: -6s;
}

.floating-emojis span:nth-child(5) {
    top: 40%;
    left: 50%;
    animation-delay: -8s;
}

.floating-emojis span:nth-child(6) {
    top: 15%;
    left: 40%;
    animation-delay: -1s;
}

.floating-emojis span:nth-child(7) {
    top: 30%;
    left: 10%;
    animation-delay: -3s;
}

.floating-emojis span:nth-child(8) {
    top: 60%;
    left: 90%;
    animation-delay: -5s;
}

.floating-emojis span:nth-child(9) {
    top: 90%;
    left: 30%;
    animation-delay: -7s;
}

.floating-emojis span:nth-child(10) {
    top: 5%;
    left: 60%;
    animation-delay: -9s;
}

.floating-emojis span:nth-child(11) {
    top: 45%;
    left: 25%;
    animation-delay: -1.5s;
}

.floating-emojis span:nth-child(12) {
    top: 75%;
    left: 55%;
    animation-delay: -4.5s;
}

@keyframes floatAround {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -50px) rotate(20deg);
    }

    66% {
        transform: translate(-30px, 50px) rotate(-20deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes bounce {

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

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