:root {
    --primary-color: orangered;
    --secondary-color: #ff6347;
    --bg-color: #111;
    --text-color: #fff;
    --text-secondary: #9ca3af;
    --gradient: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--bg-color);
    color: var(--text-color);
    scroll-behavior: smooth;
}

#hero {
    min-height: 100vh;
    background: var(--bg-color);
    color: var(--text-color);
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease-in-out;
}

.hero-image img:hover {
    transform: translateY(-10px) scale(1.02);
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: start;
}

.hero-text p {
    text-align: start;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.primary-btn, .ghost-btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.primary-btn {
    background: var(--gradient);
    color: white;
}

.primary-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.ghost-btn {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.ghost-btn:hover {
    background: var(--gradient);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-stack span {
    padding: 0.5rem 1rem;
    background: rgba(255, 69, 0, 0.1);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: rgba(255, 69, 0, 0.2);
    transform: translateY(-2px);
}

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(17, 17, 17, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.offcanvas {
    border-left: 2px solid var(--primary-color);
}

.link-canvas a {
    position: relative;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.link-canvas a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.link-canvas a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        text-align: center;
    }

    .hero-text p {
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .tech-stack {
        justify-content: center;
    }
}

.skill-text h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.skill-text p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #8892a0;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.tech-icons i {
    transition: transform 0.3s ease;
}

.tech-icons i:hover {
    transform: scale(1.1) rotate(5deg);
}

.project-card {
    background-color: rgb(19, 19, 19);
    border-radius: 20px;
    border: 2px solid transparent;
    background-image: var(--gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.2);
}

footer {
    background: linear-gradient(to bottom, #111, #000);
}

.social-link {
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}

.back-to-top {
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);
    color: var(--primary-color) !important;
}
.moduli {
    position: relative;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.modulo {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.95);
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    min-width: 180px;
    z-index: 1000;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
}

.modulo span {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 6px;
}

.modulo span:hover {
    color: orangered;
    background: rgba(255,69,0,0.1);
    transform: translateX(5px);
}

.moduli:hover .modulo {
    display: block;
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #222;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}


* {
    scrollbar-width: thin;
    scrollbar-color: #444 #222;
}