@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Raleway', sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #ffffff;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    background: linear-gradient(135deg, #f13413 0%, #ff6b35 100%);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header__logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
}

.header__tagline {
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.95;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav__link {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

.nav__link:hover {
    opacity: 0.8;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav__link:hover::after {
    width: 100%;
}

/* ============================================
   SLIDER SECTION
   ============================================ */

.slider {
    background: linear-gradient(135deg, #f2f2f2 0%, #ffffff 100%);
    padding: 60px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slider__container {
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    gap: 2rem;
    position: relative;
}

.slider__body {
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr max-content;
    align-items: center;
    gap: 3rem;
    transition: opacity 0.8s ease-in-out;
}

.slider__body--show {
    opacity: 1;
    pointer-events: unset;
}

.slider__texts {
    max-width: 600px;
    animation: slideInLeft 0.8s ease-out;
}

.subtitle {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d32f2f;
    font-weight: 700;
    transition: color 0.3s ease, transform 0.3s ease;
    line-height: 1.2;
}

.subtitle:hover {
    color: #f13413;
    transform: translateX(5px);
}

.slider__review {
    font-weight: 300;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.slider__picture {
    margin: 0;
    animation: slideInRight 0.8s ease-out;
}

.slider__img {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 4px solid white;
}

.slider__img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* Slider Arrows */
.slider__arrow {
    cursor: pointer;
    width: 50px;
    height: 50px;
    border: none;
    background: linear-gradient(135deg, #f13413 0%, #ff6b35 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 0;
    font-size: 0;
}

.slider__arrow svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.slider__arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(241, 52, 19, 0.4);
}

.slider__arrow:active {
    transform: scale(0.95);
}

.slider__arrow--prev {
    justify-self: start;
}

.slider__arrow--next {
    justify-self: end;
}

/* Slider Indicators */
.slider__indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d32f2f;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.indicator--active {
    background-color: #d32f2f;
    transform: scale(1.3);
}

.indicator:hover {
    background-color: #f13413;
    border-color: #f13413;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.about__container {
    max-width: 900px;
}

.about__title {
    font-size: 2.5rem;
    color: #d32f2f;
    margin-bottom: 30px;
    font-weight: 700;
}

.about__text {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 40px;
}

.about__skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.skill h3 {
    color: #d32f2f;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.skill p {
    color: #777;
    font-size: 0.95rem;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    background: linear-gradient(135deg, #d32f2f 0%, #f13413 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.contact__container {
    max-width: 700px;
}

.contact__title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact__text {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.contact__links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact__link {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid white;
}

.contact__link--email {
    background-color: white;
    color: #d32f2f;
}

.contact__link--email:hover {
    background-color: transparent;
    color: white;
}

.contact__link--social {
    background-color: transparent;
    color: white;
}

.contact__link--social:hover {
    background-color: white;
    color: #d32f2f;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: #222;
    color: #999;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer__container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__text {
    margin: 0;
}

.footer__text--small {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header__container {
        flex-direction: column;
        gap: 1rem;
    }

    .header__logo h1 {
        font-size: 1.5rem;
    }

    .nav__list {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .slider__container {
        grid-template-columns: 40px 1fr 40px;
        gap: 1.5rem;
    }

    .slider__body {
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 2rem;
    }

    .slider__picture {
        grid-row: 1/2;
        order: -1;
    }

    .slider__img {
        width: 240px;
        height: 240px;
    }

    .subtitle {
        font-size: 2rem;
    }

    .slider__review {
        font-size: 1rem;
    }

    .about__title,
    .contact__title {
        font-size: 2rem;
    }

    .about__skills {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }

    .header__logo h1 {
        font-size: 1.3rem;
        letter-spacing: 1px;
    }

    .header__tagline {
        font-size: 0.65rem;
    }

    .nav__list {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .slider {
        padding: 40px 0;
        min-height: auto;
    }

    .slider__container {
        grid-template-columns: 30px 1fr 30px;
        gap: 1rem;
    }

    .slider__arrow {
        width: 40px;
        height: 40px;
    }

    .slider__arrow svg {
        width: 20px;
        height: 20px;
    }

    .slider__img {
        width: 180px;
        height: 180px;
    }

    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .slider__review {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .slider__texts {
        max-width: 100%;
    }

    .about,
    .contact {
        padding: 50px 0;
    }

    .about__title,
    .contact__title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .about__text,
    .contact__text {
        font-size: 1rem;
    }

    .contact__links {
        flex-direction: column;
        gap: 15px;
    }

    .contact__link {
        width: 100%;
    }

    .slider__indicators {
        gap: 10px;
        margin-top: 30px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav__link:focus,
.slider__arrow:focus,
.indicator:focus,
.contact__link:focus {
    outline: 2px solid #f13413;
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #d32f2f;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
