:root {
    --primary-color: #ff69b4;
    /* Hot pink */
    --secondary-color: #34495e;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --hover-bg: #000000;
    --bg-color: #000000;
    /* Light green background */
    --black-accent: #000000;
    --black-transparent: rgba(0, 0, 0, 0.1);
    --star-color: #cccccc;
}

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

body {
    font-family: 'Baumans', cursive;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    position: relative;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'MedievalSharp', cursive;
}

/* Header and Navigation */
.main-nav {
    padding: 0.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border-bottom: none;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.nav-left,
.nav-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 2rem;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 2rem;
}

.logo {
    position: relative;
    padding: 0;
    transition: transform 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.logo img {
    height: 220px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.nav-links li {
    margin: 0;
}

.nav-links li:nth-child(1),
.nav-links li:nth-child(2) {
    margin-right: auto;
}

.nav-links li:nth-child(3),
.nav-links li:nth-child(4) {
    margin-left: auto;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'MedievalSharp', cursive;
    border: none;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--black-transparent);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--primary-color);
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border-radius: 0;
}

.dropdown-content a:hover {
    background-color: var(--black-accent);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Main Content */
main {
    min-height: 100vh;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.artist-info {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem;
    background-color: rgba(255, 228, 235, 0.95);
    border-radius: 20px;
    border: 5px solid var(--primary-color);
}

.artist-info h1 {
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    color: var(--primary-color);
    font-size: 3.5rem;
}

.artist-info h1:hover {
    transform: scale(1.05);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.3);
}

.artist-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.artist-image {
    width: 300px;
    flex-shrink: 0;
}

.artist-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    border: none;
    transition: transform 0.3s ease;
}

.artist-image img:hover {
    transform: scale(1.05);
}

.artist-text {
    flex: 1;
    text-align: left;
}

.artist-text p {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.artist-text p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 5px solid var(--black-accent);
}

.footer-nav {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 0 2rem;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'MedievalSharp', cursive;
    border: none;
}

.footer-nav a:visited {
    color: #fff;
}

.footer-nav a:hover {
    background-color: var(--black-accent);
    box-shadow: 0 0 10px var(--black-transparent);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    margin: 0 1rem;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    border: none !important;
    outline: none;
}

.social-links a:hover {
    background-color: var(--black-accent);
    box-shadow: 0 0 10px var(--black-transparent);
    border: none !important;
    outline: none;
}

.social-links a:focus {
    border: none !important;
    outline: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem 1rem;
    }

    .nav-container {
        flex-direction: column;
        align-items: center;
    }

    .nav-left,
    .nav-right {
        padding: 0;
    }

    .logo {
        padding: 0;
    }

    .logo img {
        height: 250px;
        width: auto;
    }

    .hamburger {
        display: flex !important;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;
        border-radius: 5px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .mobile-nav {
        display: none;
        width: 100%;
        background-color: transparent;
        padding: 1rem;
        margin-top: 0;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    .mobile-nav .nav-links li {
        margin: 0.2rem 0;
        width: 100%;
        text-align: center;
    }

    .mobile-nav .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: var(--primary-color);
    }

    .mobile-nav .dropdown.active .dropdown-content {
        display: block;
    }

    .footer-nav {
        padding: 0 1rem !important;
        margin-bottom: 2rem !important;
    }

    .footer-nav ul {
        flex-direction: column !important;
        gap: 0.8rem !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer-nav li {
        width: 100% !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .footer-nav a {
        display: block !important;
        width: 100% !important;
        padding: 0.8rem !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

    .footer-nav .dropdown {
        width: 100% !important;
        position: relative !important;
    }

    .footer-nav .dropdown-content {
        position: static !important;
        display: none !important;
        width: 100% !important;
        box-shadow: none !important;
        background-color: var(--black-accent) !important;
        margin-top: 0.5rem !important;
        border-radius: 0 !important;
        transform: none !important;
        left: 0 !important;
    }

    .footer-nav .dropdown.active .dropdown-content {
        display: block !important;
    }

    .footer-nav .dropdown-content a {
        padding: 0.6rem !important;
        font-size: 1rem !important;
        text-align: center !important;
    }

    .social-links {
        margin: 1.5rem 0 !important;
    }

    .social-links a {
        font-size: 1.3rem !important;
        margin: 0 0.8rem !important;
    }

    .copyright {
        margin-top: 1rem !important;
        font-size: 0.9rem !important;
    }

    .nav-links {
        gap: 1rem;
    }

    /* Consistent container styles for mobile */
    .portfolio-container,
    .commission-box,
    .prints-info,
    .artwork-card,
    .contact-form,
    .contact-info {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem !important;
        margin: 0 0 2rem 0 !important;
        border-radius: 20px !important;
        box-sizing: border-box;
    }

    .gallery {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
        gap: 1.5rem !important;
        margin-bottom: 4rem !important;
    }

    .gallery-item img {
        height: auto !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .content-container {
        padding: 1rem;
        display: block;
        min-height: auto;
    }

    .artist-info {
        padding: 2rem;
        width: 100%;
        margin-bottom: 5rem !important;
        border-radius: 20px;
        background-color: rgba(255, 228, 235, 0.95);
    }

    .artist-content {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .artist-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .artist-text {
        text-align: center;
        padding: 0;
        width: 100%;
    }

    .artist-text h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .artist-text p {
        font-size: 1.3rem !important;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        color: var(--secondary-color);
    }

    .artist-text p:last-child {
        margin-bottom: 0;
    }

    .featured-works {
        width: 100%;
        padding: 2rem;
        margin-top: 5rem !important;
        border-radius: 20px;
        background-color: rgba(255, 228, 235, 0.95);
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        width: 100%;
        margin-top: 2rem;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-item img {
        height: 300px;
        width: 100%;
    }

    body .contact-page .artist-card {
        background: #ffe4eb !important;
        border: 3px solid red !important;
    }
}

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background-color: var(--bg-color);
}

.floating-element {
    position: absolute;
    background: var(--star-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: float 15s infinite linear;
    opacity: 0.5;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-duration: 20s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 30%;
    animation-duration: 25s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    top: 30%;
    left: 70%;
    animation-duration: 18s;
}

.floating-element:nth-child(4) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-duration: 22s;
}

.floating-element:nth-child(5) {
    width: 60px;
    height: 60px;
    top: 15%;
    left: 50%;
    animation-duration: 17s;
}

.floating-element:nth-child(6) {
    width: 90px;
    height: 90px;
    top: 45%;
    left: 85%;
    animation-duration: 23s;
}

.floating-element:nth-child(7) {
    width: 70px;
    height: 70px;
    top: 80%;
    left: 15%;
    animation-duration: 19s;
}

.floating-element:nth-child(8) {
    width: 110px;
    height: 110px;
    top: 25%;
    left: 40%;
    animation-duration: 21s;
}

.floating-element:nth-child(9) {
    width: 50px;
    height: 50px;
    top: 55%;
    left: 65%;
    animation-duration: 16s;
}

.floating-element:nth-child(10) {
    width: 130px;
    height: 130px;
    top: 85%;
    left: 45%;
    animation-duration: 24s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(100px, 100px) rotate(90deg) scale(1.1);
    }

    50% {
        transform: translate(0, 200px) rotate(180deg) scale(1);
    }

    75% {
        transform: translate(-100px, 100px) rotate(270deg) scale(0.9);
    }

    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

.featured-works {
    max-width: 500px;
    margin: 0;
    padding: 2rem;
    background-color: rgba(255, 228, 235, 0.95);
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    border: 5px solid var(--primary-color);
}

.featured-works h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    font-family: 'MedievalSharp', cursive;
    transition: transform 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.featured-works h2:hover {
    transform: scale(1.05);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.2);
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0;
}

.gallery-item {
    text-align: center;
    transition: transform 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.gallery-item:hover {
    transform: translateY(-10px);
    color: inherit;
    text-decoration: none;
}

.gallery-item h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 0.5rem;
    font-family: 'MedievalSharp', cursive;
    text-decoration: none;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
}

.gallery-item a:hover {
    text-decoration: none;
    color: inherit;
}

.hamburger {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1000;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger i {
    font-size: 1.5rem;
    color: white;
    transition: transform 0.3s ease;
}

.backup-icon {
    font-size: 1.5rem;
    color: white;
    display: none;
}

.hamburger.active i {
    transform: rotate(90deg);
}

.yin-yang {
    text-align: center;
    margin-top: 2rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.yin-yang i {
    transition: transform 0.3s ease;
}

.yin-yang i:hover {
    transform: rotate(180deg);
}

/* Footer dropdown menu opens upward and is compact */
.footer-nav .dropdown {
    position: relative;
}

.footer-nav .dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    /* Open upward */
    left: 50%;
    transform: translateX(-50%);
    min-width: 120px;
    background-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 10;
    padding: 0.2rem 0;
}

.footer-nav .dropdown:hover .dropdown-content,
.footer-nav .dropdown.active .dropdown-content {
    display: block;
}

.footer-nav .dropdown-content a {
    color: white;
    padding: 8px 14px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    border-radius: 0;
    text-align: center;
}

.footer-nav .dropdown-content a:hover {
    background-color: var(--hover-bg);
}

/* Desktop hover state */
@media (min-width: 769px) {
    main {
        min-height: 100vh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .content-container {
        max-width: 1400px;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8rem;
        align-items: center;
    }

    .artist-info {
        width: 100%;
        max-width: 1200px;
        padding: 2rem;
        margin: 0 auto;
        border-radius: 20px;
        background-color: rgba(255, 228, 235, 0.95);
        display: flex;
        flex-direction: column;
    }

    .artist-info h1 {
        text-align: center;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        color: var(--primary-color);
        font-size: 4rem;
    }

    .artist-content {
        display: flex;
        gap: 3rem;
        align-items: center;
        width: 100%;
    }

    .artist-image {
        width: 350px;
        flex-shrink: 0;
    }

    .artist-image img {
        width: 100%;
        height: auto;
        object-fit: contain;
        border-radius: 15px;
    }

    .artist-text {
        flex: 1;
        text-align: left;
    }

    .featured-works {
        width: 100%;
        max-width: 700px;
        padding: 2rem;
        margin: 3rem auto 0 auto;
        border-radius: 20px;
        background-color: rgba(255, 228, 235, 0.95);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        width: 100%;
    }

    .gallery-item {
        text-align: center;
        transition: transform 0.3s ease;
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .gallery-item img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 15px;
        margin-bottom: 1rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .content-container {
        padding: 1rem;
        display: block;
        min-height: auto;
    }

    .artist-info {
        padding: 2rem;
        width: 100%;
        margin-bottom: 5rem !important;
        border-radius: 20px;
        background-color: rgba(255, 228, 235, 0.95);
    }

    .artist-content {
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
    }

    .artist-image {
        width: 100%;
        max-width: 100%;
        margin: 0;
    }

    .artist-text {
        text-align: center;
        padding: 0;
        width: 100%;
    }

    .artist-text h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }

    .artist-text p {
        font-size: 1.3rem !important;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        color: var(--secondary-color);
    }

    .artist-text p:last-child {
        margin-bottom: 0;
    }

    .featured-works {
        width: 100%;
        padding: 2rem;
        margin-top: 5rem !important;
        border-radius: 20px;
        background-color: rgba(255, 228, 235, 0.95);
    }
}

.artist-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    border: none;
    transition: transform 0.3s ease;
}

.artist-image img:hover {
    transform: scale(1.05);
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 0.5rem 1rem;
    }

    .nav-container {
        flex-direction: column;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .logo {
        padding: 0;
    }

    .logo img {
        height: 250px;
        width: auto;
    }

    .mobile-nav {
        display: none;
        width: 100%;
    }

    .mobile-nav.active {
        display: block;
    }

    .mobile-nav .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        margin-top: 1rem;
    }

    .mobile-nav .nav-links li {
        margin: 0.2rem 0;
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex !important;
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        background-color: transparent;
        border-radius: 5px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        z-index: 1000;
    }

    .mobile-nav .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: var(--primary-color);
    }

    .mobile-nav .dropdown.active .dropdown-content {
        display: block;
    }
}

.artwork-card {
    background-color: rgba(255, 228, 235, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 5px solid var(--primary-color);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--primary-color);
}

.contact-form {
    background-color: rgba(255, 228, 235, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--primary-color);
}

.contact-info {
    background-color: rgba(255, 228, 235, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--primary-color);
}

.artist-card .commission-box,
.artist-card .prints-info,
.commission-box,
.prints-info {
    max-width: 600px !important;
    margin: 2rem auto !important;
}

@media (max-width: 768px) {

    .artist-card .commission-box,
    .artist-card .prints-info,
    .commission-box,
    .prints-info {
        max-width: 100% !important;
        width: 100% !important;
        margin: 1.5rem 0 !important;
        padding: 1rem !important;
    }
}

.commission-box:hover,
.prints-info:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
}

.info-list {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 1rem auto;
    color: var(--secondary-color);
    font-size: 1.1rem;
    line-height: 1.6;
    padding-left: 1.2em;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
    .artist-info {
        max-width: 1200px;
    }

    .artist-image {
        width: 400px;
    }
}

/* Medium screens (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .content-container {
        padding: 0 3rem;
    }

    .artist-info {
        max-width: 1000px;
        height: 75vh;
        padding: 2.5rem;
    }

    .artist-image {
        width: 350px;
    }

    .artist-text h1 {
        font-size: 3.5rem;
    }

    .artist-text p {
        font-size: 1.2rem;
    }
}

/* Small screens (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .content-container {
        padding: 0 2rem;
    }

    .artist-info {
        max-width: 800px;
        height: auto;
        min-height: 70vh;
        padding: 2rem;
    }

    .artist-content {
        gap: 2rem;
    }

    .artist-image {
        width: 300px;
    }

    .artist-text h1 {
        font-size: 3rem;
    }

    .artist-text p {
        font-size: 1.1rem;
    }

    .featured-works {
        max-width: 800px;
        padding: 2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Extra small screens (up to 767px) */
@media (max-width: 767px) {
    main {
        padding: 1rem 0;
    }

    .content-container {
        padding: 0 1rem;
    }

    .artist-info {
        padding: 1.5rem;
    }

    .artist-content {
        flex-direction: column;
        gap: 1.5rem;
    }

    .artist-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .artist-text {
        text-align: center;
    }

    .artist-text h1 {
        font-size: 2.5rem;
    }

    .artist-text p {
        font-size: 1.3rem !important;
    }

    .featured-works {
        max-width: 100%;
        padding: 1.5rem;
        margin: 1rem 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item img {
        height: 250px;
    }
}

/* Very small screens (up to 480px) */
@media (max-width: 480px) {
    .content-container {
        padding: 0.5rem;
    }

    .artist-info {
        padding: 1rem;
    }

    .artist-text h1 {
        font-size: 2rem;
    }

    .artist-text p {
        font-size: 1.3rem !important;
    }

    .featured-works {
        padding: 1rem;
    }

    .gallery-item img {
        height: 200px;
    }
}

.main-nav .dropdown-content a {
    text-align: center;
}

@media (max-width: 768px) {
    .contact-page {
        padding: 0.5rem !important;
    }

    .contact-page .artist-card {
        padding: 1.2rem !important;
        border-radius: 16px !important;
    }

    .contact-page h1 {
        font-size: 2.2rem !important;
        margin-bottom: 1.2rem !important;
    }

    .contact-page .contact-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 1.2rem !important;
        margin-bottom: 1.2rem !important;
    }

    .contact-page .contact-info-box,
    .contact-page .contact-form-box {
        padding: 1rem !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        margin: 0 !important;
        width: 100% !important;
    }

    .contact-page .contact-info-box p {
        font-size: 1.1rem !important;
    }

    .contact-page .contact-item {
        font-size: 1rem !important;
    }

    .contact-page .form-group label {
        font-size: 1rem !important;
    }

    .contact-page .form-group input,
    .contact-page .form-group textarea {
        font-size: 1.1rem !important;
        padding: 0.7rem !important;
        border-radius: 7px !important;
    }

    .contact-page .submit-btn {
        font-size: 1.1rem !important;
        padding: 0.9rem 1.2rem !important;
        border-radius: 7px !important;
    }

    .contact-page .contact-info-box .social-links {
        gap: 1rem !important;
        margin-top: 0.7rem !important;
    }

    .contact-page .contact-info-box .social-links .social-icon {
        font-size: 1.5rem !important;
    }

    .contact-page .yin-yang {
        margin-top: 1.2rem !important;
        font-size: 1.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

.gallery {
    margin-bottom: 6rem !important;
}

@media (max-width: 768px) {
    .gallery {
        margin-bottom: 4rem !important;
    }
}