/* Section Styles */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background-color: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition-normal);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
}

.nav__logo {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
}

.nav__logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav__link {
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--color-accent);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 0.375rem;
    padding: 0.5rem;
}

.nav__toggle-icon {
    display: block;
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all var(--transition-normal);
}

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

.nav__toggle--active .nav__toggle-icon:nth-child(2) {
    opacity: 0;
}

.nav__toggle--active .nav__toggle-icon:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--color-bg-secondary);
        flex-direction: column;
        justify-content: center;
        padding: var(--space-xl);
        transition: right var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }
    
    .nav__menu--active {
        right: 0;
    }
    
    .nav__toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero__content {
    text-align: center;
    max-width: 800px;
}

.hero__greeting {
    font-size: var(--font-size-lg);
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    font-weight: var(--font-weight-medium);
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-md);
}

.hero__description {
    font-size: var(--font-size-lg);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
}

.hero__buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero__social {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
}

.hero__scroll {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.hero__scroll-icon {
    animation: bounce 2s infinite;
}

@media (max-width: 640px) {
    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero__buttons .btn {
        width: 100%;
    }
}

/* About Section */
.about__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
    align-items: center;
}

.about__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    background: var(--gradient-primary);
}

.about__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-md);
    color: var(--color-accent);
}

.about__description {
    margin-bottom: var(--space-md);
}

.about__stats {
    display: flex;
    gap: var(--space-lg);
    margin: var(--space-lg) 0;
}

@media (max-width: 768px) {
    .about__content {
        grid-template-columns: 1fr;
    }
    
    .about__stats {
        flex-wrap: wrap;
    }
}

/* Skills Section */
.skills {
    background-color: var(--color-bg-secondary);
}

.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.skill-category {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    padding: var(--space-lg);
}

.skill-category__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-accent);
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.skill-item__name {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: var(--font-weight-medium);
}

.skill-item__bar {
    width: 100%;
    height: 8px;
    background-color: var(--color-bg-primary);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
}

.skill-item__progress {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    transition: width 1s ease-out;
}

/* Projects Section */
.projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.project-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-card__img {
    transform: scale(1.1);
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 10, 15, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-card__overlay {
    opacity: 1;
}

.project-card__links {
    display: flex;
    gap: var(--space-md);
}

.project-card__link {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-accent);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-lg);
    transition: all var(--transition-fast);
}

.project-card__link:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.1);
}

.project-card__content {
    padding: var(--space-lg);
}

.project-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-sm);
}

.project-card__description {
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-md);
}

.project-card__tech {
    display: flex;
    flex-wrap: wrap;
}

/* Contact Section */
.contact {
    background-color: var(--color-bg-secondary);
}

.contact__content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-xl);
}

.contact__info-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

.contact__info-text {
    margin-bottom: var(--space-lg);
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact__detail {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact__detail i {
    color: var(--color-accent);
    font-size: var(--font-size-xl);
    margin-top: 0.25rem;
}

.contact__detail-label {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.contact__detail-value {
    color: var(--color-text-primary);
    font-weight: var(--font-weight-medium);
}

.contact__social {
    display: flex;
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .contact__content {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background-color: var(--color-bg-primary);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-md);
}

.footer__content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer__brand {
    margin-bottom: var(--space-lg);
}

.footer__tagline {
    margin-top: var(--space-md);
    color: var(--color-text-secondary);
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

.footer__link-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    color: var(--color-text-primary);
}

.footer__link-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link-list a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer__link-list a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer__copyright,
.footer__credits {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.footer__credits i {
    color: var(--color-error);
}

@media (max-width: 640px) {
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }
}