
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #FFA500;        
    --secondary-color: #FFC300;      
    --accent-color: #FFD166;         
    --dark-bg: #1E1E1E;              
    --darker-bg: #363636;            
    --card-bg: #282828;              
    --text-primary: #FFFFFF;
    --text-secondary: #E0E0E0;
    --border-radius: 16px;
    --transition-speed: 0.4s;
    --glass-bg: rgba(40, 40, 40, 0.7);
    --glow-strength: 15px;
    --neuro-shadow: 5px 5px 10px rgba(0,0,0,0.3), -5px -5px 10px rgba(255,255,255,0.05);
    --background-image: url('./background.png');
    --background-size: cover;
    --background-opacity: 0.85;
}

body {
    font-family: 'Space Grotesk', 'Outfit', 'Inter', sans-serif;
    background: linear-gradient(135deg, 
                rgba(30, 30, 30, var(--background-opacity)), 
                rgba(54, 54, 54, var(--background-opacity))),
                var(--background-image);
    background-size: var(--background-size);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    padding: 4px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.loader h2 {
    color: var(--primary-color);
    font-size: 2rem;
    margin: 0;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    width: 0%;
    height: 100%;
    background: var(--primary-color);
    animation: loading 3s ease forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 55px;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.2rem;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 165, 0, 0.1);
}

.sidebar-toggle {
    display: none;
}

.sidebar-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    width: 160px;
}

.sidebar-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    padding: 2px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.sidebar-avatar:hover {
    transform: scale(1.1);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-nav {
    display: flex;
    flex-direction: row;
    gap: 0.6rem;
    list-style: none;
    justify-content: center;
    align-items: center;
    flex: 1;
    margin: 0 auto;
}

.sidebar-nav li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all var(--transition-speed) ease;
    padding: 0.35rem 0.9rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 35px;
}

.sidebar-nav li a i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.sidebar-nav li a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 165, 0, 0.2);
}

.sidebar-nav li a.active {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.2);
    color: var(--primary-color);
}

.sidebar-nav li a.active i {
    opacity: 1;
}


nav {
    position: fixed;
    top: 0;
    left: 80px; 
    width: calc(100% - 80px);
    padding: 1.2rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    transition: transform var(--transition-speed) ease;
}

.nav-avatar:hover {
    transform: scale(1.1);
}

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all var(--transition-speed) ease;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}


header {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.hero {
    text-align: center;
    max-width: 900px;
    padding: 1.5rem;
    position: relative;
    margin: 70px auto 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}

.hero::before {
    display: none;
}

.hero-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    padding: 3px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-avatar:hover {
    transform: scale(1.1);
}

.hero-content {
    text-align: left;
    max-width: 550px;
    margin: 0 auto;
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -2px;
    font-weight: 700;
    line-height: 1.1;
    text-align: left;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.hero-greeting {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.9;
    text-align: left;
}

.hero-description {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 550px;
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    margin-left: 0;
    margin-right: auto;
    opacity: 0.8;
    text-align: left;
}


.portfolio {
    padding: 8rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
}

.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.project {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 165, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
    transition: all 0.3s ease;
    position: relative;
}

.project:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 165, 0, 0.3);
}

.project-image {
    position: relative;
    height: 300px;
    overflow: hidden;
    background: var(--dark-bg);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 2rem;
    transition: transform 0.5s ease;
}

.project:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.project h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.project:hover h3 {
    color: var(--primary-color);
}

.project-description {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.project:hover .project-description {
    opacity: 1;
}

.project-visit {
    color: var(--primary-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.95rem;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    background: rgba(255, 165, 0, 0.05);
    border: 1px solid rgba(255, 165, 0, 0.1);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-visit i {
    font-size: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-color);
    opacity: 0.9;
}

.project-visit:hover {
    background: rgba(255, 165, 0, 0.1);
    border-color: rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
}

.project-visit:hover i {
    transform: translateX(4px);
}


.about {
    padding: 6rem 2rem;
    background: transparent;
    position: relative;
}

.about::before {
    display: none;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text {
    color: var(--text-secondary);
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease;
    opacity: 0.7;
}


.contact {
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
}

.social-media {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.social-link {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: var(--card-bg);
    border: 1px solid rgba(255, 165, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(255, 165, 0, 0.1) 25%, 
        transparent 50%, 
        rgba(255, 165, 0, 0.1) 75%, 
        transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.social-link:hover::before {
    transform: translateX(100%);
}

.social-link i {
    font-size: 2rem;
    color: var(--text-secondary);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-link:hover i {
    color: var(--primary-color);
    opacity: 1;
    transform: rotate(360deg);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-color);
}


footer {
    padding: 1.2rem;
    text-align: center;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.made-with {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.6;
    font-family: 'Inter', sans-serif;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.made-with i {
    color: var(--primary-color);
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

.beta-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    position: relative;
    transition: color 0.2s ease, opacity 0.2s ease;
    letter-spacing: 0.2px;
    opacity: 0.6;
}

.beta-link:hover {
    color: var(--primary-color);
    opacity: 0.8;
}

.beta-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: width 0.25s ease;
    opacity: 0.9;
}

.beta-link:hover::after {
    width: 100%;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}


@media (max-width: 768px) {
    .sidebar {
        height: auto;
        flex-direction: column;
        padding: 1rem;
        background: rgba(30, 30, 30, 0.3);
    }

    .sidebar-header {
        width: 100%;
        justify-content: space-between;
    }

    .sidebar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        display: none;
    }

    .sidebar.active .sidebar-nav {
        display: flex;
    }

    .sidebar-nav li a {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }

    .sidebar-toggle {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 1rem;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-avatar {
        width: 180px;
        height: 180px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header {
        text-align: center;
        padding: 0 1.5rem;
    }

    .project-content {
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .about-text {
        text-align: center;
    }

    .skills {
        max-width: 400px;
        margin: 0 auto;
    }

    .projects {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }

    .project {
        max-width: 100%;
    }

    .project-image {
        height: 200px;
    }

    .social-media {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .social-link {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .sidebar-avatar {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        padding: 0.8rem;
    }

    .sidebar-avatar {
        width: 40px;
        height: 40px;
    }

    .sidebar-title {
        font-size: 1.5rem;
    }

    .hero {
        margin-top: 160px;
        padding: 1.5rem 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .project-image {
        height: 180px;
    }

    .project h3 {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .hero-avatar {
        width: 150px;
        height: 150px;
    }
}


@media (max-width: 360px) {
    .hero {
        margin-top: 140px;
    }

    .sidebar-nav li a {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}


.scroll-down,
.scroll-down span,
.scroll-down:hover,
.arrow {
    display: none;
}

@keyframes bounce {
    0%, 100% { transform: none; }
    50% { transform: none; }
}
