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

/* Remove all default browser styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base typography and layout */
html,
body {
    font-family: 'afacad';
    font-style: normal;
    line-height: 1.6;
    color: #333;
    width: 100%;
    min-height: 100vh;
}

/* Main container with gradient background */
html {
    background: linear-gradient(135deg, #6930C3 0%, #56CFE1 120%);
    padding: clamp(1rem, 3vw, 3rem) clamp(1rem, 3vw, 3rem) 0 clamp(1rem, 3vw, 3rem);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Body layout */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 75rem;
    gap: clamp(1.5rem, 3vw, 3rem);
    flex: 1;
}


/* ===================================
   MAIN CONTENT SECTIONS
   =================================== */
/* Main content container */
.main {
    background: #ffffff;
    border-radius: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.5rem, 3vw, 3rem);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Body layout for content sections */
.body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}


/* ===================================
   PROJECT CARD COMPONENT
   =================================== */

/* Project card container */
.project-card {
    position: relative;
    width: 100%;
    max-width: 22.5rem;
    aspect-ratio: 1;
    flex-shrink: 0;
}

/* Project card image styling */
.card-image {
    position: absolute;
    left: 13%;
    top: 8%;
    width: 74%;
    height: 83%;
    border-radius: clamp(1.5rem, 3vw, 3rem);
    overflow: hidden;
}

.card-image img {
    width: 266px;
    height: 302px;
    object-fit: cover;
    display: block;
}


/* ===================================
   GREETINGS & INTRO SECTION
   =================================== */

/* Greetings container */
.greetings {
    flex: 1;
    font-weight: 400;
}

/* Main name/title */
.greetings .name {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin: 0 0 1rem 0;
}

/* Description text */
.greetings .text {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    line-height: 1.6;
}


/* ===================================
   SOCIAL NETWORKS MENU
   =================================== */

/* Social media links container */
.social-networks-menu {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Individual social media item */
.item {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #6458cb;
    height: 4rem;
    border-radius: 50px;
    padding: 0 1.5rem;
    text-decoration: none;
    color: white;
    transition: background 0.3s, transform 0.3s;
}

.item:hover {
    background: #607fd2;
    transform: rotate(2deg);
}

.item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.item svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: white;
}


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

/* About section layout */
#about {
    padding: clamp(1rem, 2vw, 2rem);
}

.about {
    display: flex;
    gap: 2rem;
}

/* About text content */
.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1.5rem 0;
}

.about-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    margin: 0;
}

/* Photo gallery in about section */
.photos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 20rem;
}

.photos img {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
}

.photos img:first-child {
    width: 320;
    height: 320;
}

.photos img:last-child {
    width: 320;
    height: 354;
}


/* ===================================
   SPOTIFY INTEGRATION
   =================================== */

/* Spotify embed container */
.spotify {
    width: 100%;
    margin-top: 2rem;
}

.spotify iframe {
    border-radius: 1.5rem;
    width: 100%;
}

/* ===================================
   PROJECTS SECTION
   =================================== */
#projects {
    padding: clamp(1rem, 2vw, 2rem);
}

.project-section h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.8;
    margin: 0 0 1.5rem 0;
}

.project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

/* Left column projects */
.left-project-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.left-project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* Right column projects */
.right-project-card {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.right-project-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

/* Decorative squares */
.left-project-card .square,
.right-project-card .square {
    min-width: 4rem;
    width: 4rem;
    height: 4rem;
    background: #607fd2;
    border-radius: 0.75rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.left-project-card:hover .square,
.right-project-card:hover .square {
    background: #5ba7da;
    transform: rotate(5deg);
}

/* Text content */
.text h2 {
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #000000;
}

/* Remove underline and color changes from links in h2 */
.text h2 a {
    text-decoration: none;
    color: inherit;
    transition: none;
}

.text h2 a:hover,
.text h2 a:visited,
.text h2 a:focus,
.text h2 a:active {
    text-decoration: none;
    color: inherit;
}

.text p {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: rgba(0, 0, 0, 0.7);
}

/* ===================================
   FIND ME SECTION
   =================================== */

/* Find me section layout */
#contact {
    padding: clamp(1rem, 2vw, 2rem);
}

.findme h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 1.5rem 0;
}

/* Social media links container */
.findme .social-networks-menu {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Individual social media item */
.findme .item {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #5ba7da;
    height: 4rem;
    border-radius: 50px;
    padding: 0 1.5rem;
    text-decoration: none;
    color: white;
    transition: background 0.3s, transform 0.3s;
}

.findme .item:hover {
    background: #56cfe1;
    transform: rotate(2deg);
}

.findme .item p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.findme .item svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: white;
}

/* ===================================
   NAVIGATION
   =================================== */

/* Floating navigation menu */
.floating-menu {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: calc(100% - 2rem);
}

/* Main navigation list */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: clamp(0.5rem, 2vw, 2rem);
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

/* Navigation links */
.main-nav a {
    text-decoration: none;
    color: #333;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: clamp(1rem, 2vw, 1.5rem);
    white-space: nowrap;
}

.main-nav a:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

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

/* Footer container */
footer {
    width: 100%;
    background: #ffffff;
    border-radius: clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) 0 0;
    padding: clamp(1rem, 2vw, 2rem);
    margin-top: auto;
    margin-bottom: 0;
}

/* Footer content layout */
.footer-content {
    max-width: 1200px;
    padding: 0 clamp(1rem, 2vw, 2rem);
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: center;
}

.footer-content p {
    margin: 0;
    color: #000000;
}

/* ===================================
   RESPONSIVE BREAKPOINTS
   =================================== */

/* Tablets and below (768px) */
@media (max-width: 768px) {
    /* Body layout stacks vertically */
    .body {
        flex-direction: column;
    }

    /* Project card centered */
    .project-card {
        max-width: 100%;
        width: 100%;
    }

    /* About section stacks vertically */
    .about {
        flex-direction: column;
    }

    .photos {
        max-width: 100%;
    }

    /* Projects grid becomes single column */
    .project {
        grid-template-columns: 1fr;
    }

    /* Social menu items stack */
    .social-networks-menu,
    .findme .social-networks-menu {
        flex-direction: column;
    }

    .item,
    .findme .item {
        width: 100%;
        min-width: unset;
    }

    /* Navigation adjustments */
    .floating-menu {
        top: 10px;
    }

    .main-nav ul {
        gap: 0.5rem;
    }

    .main-nav a {
        padding: 0.4rem 1rem;
        font-size: 1rem;
    }
}

/* Mobile devices (480px) */
@media (max-width: 480px) {
    html {
        padding: 1rem;
    }

    body {
        gap: 1rem;
    }

    .main {
        border-radius: 1.5rem;
        padding: 1.5rem;
    }

    /* Project cards adjust for mobile */
    .left-project-card,
    .right-project-card {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .left-project-card .square,
    .right-project-card .square {
        width: 100%;
        height: 3rem;
    }

    /* Photos stack on mobile */
    .photos img:first-child,
    .photos img:last-child {
        height: auto;
        aspect-ratio: 16/9;
    }

    /* Footer stacks vertically */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    /* Disable hover effects on mobile */
    .left-project-card:hover,
    .right-project-card:hover {
        transform: none;
    }

    .item:hover,
    .findme .item:hover {
        transform: none;
    }

    .main-nav a:hover {
        transform: none;
    }
}

/* Large tablets (992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .project {
        gap: 1rem;
    }

    .left-project-card,
    .right-project-card {
        padding: 1rem;
        gap: 1rem;
    }

    .left-project-card .square,
    .right-project-card .square {
        min-width: 3rem;
        width: 3rem;
        height: 3rem;
    }
}

/* Extra small devices (320px) */
@media (max-width: 320px) {
    .greetings .name {
        font-size: 1.5rem;
    }

    .greetings .text {
        font-size: 0.9rem;
    }

    .text h2 {
        font-size: 1.1rem;
    }

    .text p {
        font-size: 0.85rem;
    }
}