/* ========================================
   CSS VARIABLES - ABOUT PAGE
   ======================================== */
:root {
    --familyRoboto: 'Roboto', sans-serif;
    --familyRobotoSlab: 'Roboto Slab', serif;
    --white: #ffffff;
    --pink: #c94e7a;
    --darkPurple: #4f3961;
    --darkGrey: #a8a8a8;
    --darkerGrey: #6b6b6b;
    --yellow: #ffd700;
    --bold: 700;
    
    /* Modern additions */
    --gradient-purple: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-pink: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-overlay: linear-gradient(to bottom, rgba(79, 57, 97, 0.95), rgba(79, 57, 97, 0.98));
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.25);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   BODY & GLOBAL STYLES
   ======================================== */
body {
    margin: 0;
    background: linear-gradient(135deg, rgb(62, 61, 61) 0%, black 50%, #a7a8ac 100%);
    background-attachment: fixed;
    font-family: var(--familyRoboto);
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
}

ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

a {
    text-decoration: none;
    outline-color: var(--yellow);
    transition: var(--transition-smooth);
}

/* ========================================
   INTRO SECTION
   ======================================== */
.intro {
    margin-top: 4rem;
    padding: 2rem 1.5rem;
    position: relative;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.intro__title {
    margin: 0;
    font-family: var(--familyRobotoSlab);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--white);
    position: relative;
    display: inline-block;
    animation: slideInLeft 0.8s ease-out;
}

.intro__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background: var(--gradient-pink);
    border-radius: 10px;
    animation: expandWidth 1s ease-out 0.5s forwards;
    width: 0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expandWidth {
    to {
        width: 100px;
    }
}

.intro__subtitle {
    margin: 2.5rem 0 2rem 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    animation: fadeIn 1s ease-out 0.3s backwards;
    position: relative;
    overflow: hidden;
}

.intro__subtitle::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Button Styles */
.button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: var(--gradient-pink);
    color: var(--white);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(201, 78, 122, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(201, 78, 122, 0.6);
}

.button:hover::before {
    left: 100%;
}

.button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Image Styles */
.intro__illustration {
    max-width: 100%;
    height: auto;
    margin: 2rem auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    animation: floatAnimation 6s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.intro__illustration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.intro__illustration:hover {
    transform: scale(1.03) translateY(-10px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.2);
}

.intro__illustration:hover::before {
    opacity: 1;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ========================================
   RESPONSIVE GRID LAYOUT
   ======================================== */
@media (min-width: 32em) {
    .intro {
        margin: 4rem auto 0;
        max-width: 90%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 40px;
        align-items: center;
        grid-template-areas:
            "title img"
            "subtitle img"
            "button img";
    }

    .intro__title {
        grid-area: title;
        margin: 0;
    }

    .intro__subtitle {
        grid-area: subtitle;
        margin: 0;
    }

    .intro .button {
        grid-area: button;
        justify-self: start;
        align-self: start;
    }

    .intro__illustration {
        grid-area: img;
        align-self: center;
        margin: 0;
    }
}

@media (min-width: 60em) {
    .intro {
        max-width: 85%;
        grid-gap: 60px;
        padding: 3rem 2rem;
    }

    .intro__title {
        font-size: 5rem;
        margin-bottom: 1rem;
    }

    .intro__subtitle {
        font-size: 1.25rem;
        padding: 2.5rem;
    }

    .button {
        font-size: 1.2rem;
        padding: 1.2rem 3rem;
    }
}

/* ========================================
   SECTION TITLE
   ======================================== */
.section__title {
    color: var(--white);
    font-weight: var(--bold);
    font-size: clamp(1.85rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section__title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-pink);
    border-radius: 5px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 3rem 1.5rem;
    margin: 8rem auto 0;
    background: linear-gradient(to bottom, 
        rgba(246, 250, 251, 0.98), 
        rgba(247, 249, 251, 1));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(201, 78, 122, 0.5), 
        transparent);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 2rem;
}

.footer-title {
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--darkerGrey);
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--pink);
}

.footer-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--darkerGrey);
    display: block;
    padding: 0.5rem 0;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--pink);
    transform: translateX(5px);
}

/* Footer Social */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(201, 78, 122, 0.1);
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.footer-social a:hover {
    background: var(--gradient-pink);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 25px rgba(201, 78, 122, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-social svg {
    vertical-align: middle;
    transition: var(--transition-smooth);
}

.footer-social a:hover svg {
    filter: brightness(0) invert(1);
}

/* Copyright */
.copyright {
    flex-basis: 100%;
    text-align: center;
    color: var(--darkerGrey);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(107, 107, 107, 0.2);
    font-size: 0.9rem;
}

.dotted-link {
    color: var(--pink);
    border-bottom: 1px dashed var(--pink);
    transition: var(--transition-smooth);
}

.dotted-link:hover {
    color: #a5285c;
    border-bottom-style: solid;
}

/* ========================================
   TEXT ANIMATION
   ======================================== */
.text-animate {
    font: 700 clamp(2.5rem, 6vw, 4rem)/1 "Oswald", sans-serif;
    letter-spacing: 0;
    padding: 0.25em 0 0.325em;
    display: block;
    margin: 2rem auto;
    text-shadow: 0 0 80px rgba(255, 255, 255, 0.5);
    text-align: center;

    /* Animated Gradient Background */
    background-size: 200% 200%;
    background-color: #4f3961;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: aitf 15s linear infinite;
    
    /* Hardware acceleration */
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

@keyframes aitf {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

::selection {
    background-color: var(--pink);
    color: #fff;
}

/* ========================================
   RESPONSIVE FOOTER
   ======================================== */
@media (min-width: 32em) {
    .footer-social {
        margin-top: 3rem;
    }
}

@media (min-width: 45em) {
    .footer {
        padding: 4rem 2rem;
    }

    .footer-container {
        display: grid;
        grid-gap: 30px;
        grid-template-areas:
            "nav newsletter"
            "social-links social-links"
            "copyright copyright";
    }

    .footer-nav {
        grid-area: nav;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 20px;
    }

    .footer-title {
        margin-top: 0;
    }

    .footer-social {
        grid-area: social-links;
    }

    .copyright {
        grid-area: copyright;
        margin: 2rem 0 0 0;
    }
}

@media (min-width: 60em) {
    .footer-container {
        max-width: 85%;
        margin: auto;
    }
}

/* ========================================
   DECORATIVE ARROWS
   ======================================== */
.arrow-1,
.arrow-2 {
    margin-top: 20px;
    height: 90px;
    background-image: url(https://res.cloudinary.com/alexandracaulea/image/upload/v1583497341/line-1_dt5tua.svg);
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.arrow-2 {
    margin-top: -20px;
}

.arrow-1:hover,
.arrow-2:hover {
    opacity: 1;
}

@media (min-width: 32em) {
    .arrow-1,
    .arrow-2 {
        height: 184px;
        background-repeat: no-repeat;
        background-position: center;
    }

    .arrow-1 {
        margin-top: 70px;
        background-image: url(https://res.cloudinary.com/alexandracaulea/image/upload/v1583497341/arrow-1-sm_kkfsxp.svg);
    }

    .arrow-2 {
        background-image: url(https://res.cloudinary.com/alexandracaulea/image/upload/v1583497341/arrow-2-sm_xtrpm5.svg);
    }
}

@media (min-width: 60em) {
    .arrow-1,
    .arrow-2 {
        height: 283px;
    }

    .arrow-1 {
        margin-top: 110px;
        background-image: url(https://res.cloudinary.com/alexandracaulea/image/upload/v1583497341/arrow-1-lg_jhrqpv.svg);
    }

    .arrow-2 {
        background-image: url(https://res.cloudinary.com/alexandracaulea/image/upload/v1583497341/arrow-2-lg_cjykcq.svg);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Focus styles */
*:focus-visible {
    outline: 3px solid var(--pink);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ========================================
   LOADING ANIMATION
   ======================================== */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-pink);
    border-radius: 10px;
    border: 2px solid rgba(79, 57, 97, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}