/* cursor */
.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d6b48a;
    transition: 0.1s;
    transform: translate(-50%, -50%);
    pointer-events: none;
    mix-blend-mode: difference;
}

:root {
    --primary: #38040e;
    --secondary: #250902;
    --accent: #80221E;
    --light: #D4B4A1;
    --dark: #0f0205;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--primary);
    color: var(--light);
    overflow-x: hidden;
}


html {
    scroll-behavior: smooth;
}


.navbar {
    background-color: rgba(56, 4, 14, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 2rem;
}

.navbar.scrolled {
    padding: 0.5rem 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
    margin: 0 0.5rem;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--light);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Home section */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    opacity: 0.15;
    filter: drop-shadow(0 0 5px #80211e79);
}

.shape-circuit {
    width: 300px;
    height: 200px;
    background:
        linear-gradient(to right,
            transparent 45%,
            var(--light) 45% 55%,
            transparent 55%),
        linear-gradient(to bottom,
            transparent 45%,
            var(--light) 45% 55%,
            transparent 55%);
    background-size: 30px 30px;
    top: 20%;
    left: 10%;
    animation: float 25s infinite linear;
}

.shape-dots {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center,
            var(--light) 10%,
            transparent 10.5%);
    background-size: 20px 20px;
    top: 60%;
    right: 15%;
    animation: float 30s infinite linear reverse;
}

.shape-tech {
    width: 250px;
    height: 250px;
    background:
        conic-gradient(from 45deg,
            transparent 0deg 90deg,
            var(--light) 90deg 180deg,
            transparent 180deg 270deg,
            var(--light) 270deg 360deg);
    bottom: 10%;
    left: 25%;
    animation: float 40s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, 15px) rotate(5deg);
    }

    50% {
        transform: translate(20px, 5px) rotate(0deg);
    }

    75% {
        transform: translate(10px, -10px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .shape {
        display: none;
        /* Hide on mobile for better performance */
    }
}

#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 180, 161, 0.1) 0%, rgba(56, 4, 14, 0) 70%);
    top: -100px;
    left: -100px;
}

#home::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 180, 161, 0.1) 0%, rgba(56, 4, 14, 0) 70%);
    bottom: -50px;
    right: -50px;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: clamp(1rem, 3vw, 1.5rem);
    opacity: 0.8;
}

/* About section */
#resume {
    padding: 6rem 0;
    background-color: var(--secondary);
}

.resume-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: #80221E;
    /* Your accent color */
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.resume-button:hover {
    background-color: #a82d27;
    /* Slightly lighter accent */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.resume-button:active {
    transform: translateY(0);
}

.resume-button i {
    font-size: 1.2em;
}

.about-img {
    border-radius: 1rem;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s ease;
    max-width: 100%;
    height: auto;
}

.about-img:hover {
    transform: scale(1.03);
}

.about-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Projects section */
#projects {
    padding: 6rem 0;
    background-color: var(--primary);
}

.project-card {
    background: linear-gradient(145deg, #c15e64, #b43c44, #ad2831, #9f040e, #500207);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-card .card-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-card .card-text {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-number {
    font-size: 3rem;
    font-weight: 700;
    opacity: 0.1;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

/* Skills section */
.skill-section {
    padding: 6rem 0;
    background-color: var(--secondary);
}

.skill-item {
    background: rgba(212, 180, 161, 0.05);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.skill-item:hover {
    background: rgba(212, 180, 161, 0.1);
    transform: translateX(5px);
}

.skill-icon {
    width: 40px;
    height: 40px;
    margin-right: 1rem;
    object-fit: contain;
}

.skill-category {
    color: var(--light);
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(212, 180, 161, 0.3);
}

/* Contact section */
#contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--accent) 0%, #5c1916 100%);
}

.contact-form {
    background: rgba(212, 180, 161, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--light);
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--light);
    box-shadow: none;
}

.form-control::placeholder {
    color: rgba(212, 180, 161, 0.7);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background-color: var(--dark);
}

.social-icon {
    font-size: 1.5rem;
    color: var(--light);
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-content {
        margin-top: 3rem;
    }

    .project-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 1rem;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    #home,
    #resume,
    #projects,
    .skill-section,
    #contact {
        padding: 4rem 0;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .about-content h1,
    .section-title {
        font-size: 2rem;
    }
}