/* Mobile Responsive Styles - Clean Version */

/* Desktop navigation styles */
@media (min-width: 769px) {
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        background: none;
        border: none;
        z-index: 1002;
        position: relative;
    }
    
    .nav-toggle .hamburger {
        width: 25px;
        height: 3px;
        background: white !important;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        min-width: 150px;
        z-index: 1000;
        margin-top: 5px;
    }
    
    .nav-dropdown.show {
        display: block;
    }
    
    .nav-dropdown .nav-link {
        display: block;
        padding: 12px 20px;
        color: black !important;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-dropdown .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown .nav-link:hover {
        background: #fed012;
        color: black !important;
    }
}

/* Tablet and smaller */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .gallery-preview-grid,
    .project-gallery-grid,
    .photo-gallery-grid,
    .testimonials-grid,
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .background-content {
        gap: 3rem;
    }
}

/* Mobile landscape and smaller */
@media (max-width: 803px) {
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 20px 15px !important;
        z-index: 2;
    }
    
    .hero-text {
        text-align: center !important;
        flex: none !important;
        padding-right: 0 !important;
        order: 1 !important;
        background: rgba(0, 0, 0, 0.7);
        padding: 20px;
        border-radius: 10px;
        margin: 0 10px;
    }
    
    .hero-image {
        order: 2 !important;
        flex: none !important;
        width: 100%;
        margin: 0;
        padding: 0 10px;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .cover-image {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .nav {
        padding: 1rem;
        min-height: 70px;
        position: relative;
        display: block !important;
    }
    
    .nav-menu {
        position: relative;
        display: block !important;
    }
    
    .nav-toggle {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        background: none;
        border: none;
        z-index: 1002;
        position: relative;
    }
    
    .nav-toggle .hamburger {
        width: 25px;
        height: 3px;
        background: white !important;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-toggle.active .hamburger:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active .hamburger:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active .hamburger:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: white !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        border-radius: 8px;
        min-width: 150px;
        z-index: 1000;
        margin-top: 5px;
    }
    
    .nav-dropdown.show {
        display: block;
    }
    
    .nav-dropdown .nav-link {
        display: block;
        padding: 12px 20px;
        color: black !important;
        text-decoration: none;
        font-weight: 500;
        transition: background-color 0.3s ease;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-dropdown .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-dropdown .nav-link:hover {
        background: #ee922f;
        color: white;
    }
    
    .logo-image {
        height: 60px;
        width: 60px;
    }
    
    .logo h1 {
        font-size: 1.3rem;
    }
    
    .main,
    .portfolio-main {
        margin-top: 0;
    }
    
    .hero {
        padding: 60px 0 20px;
        min-height: auto;
        height: auto;
    }
    
    
    .header {
        height: 60px;
        padding: 0 15px;
        justify-content: flex-start;
    }
    
    .header .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1000;
    }
    
    .header .nav {
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        min-height: auto !important;
        max-width: none !important;
    }
    
    .hero .logo-image {
        height: 50px;
        width: 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        color: #fff0c8;
        margin-bottom: 15px;
    }
    
    .hello-text {
        display: block;
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .name-text {
        display: block;
        font-size: 2.5rem;
        font-weight: bold;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        color: #fff;
        line-height: 1.4;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 20px 15px !important;
        z-index: 2;
    }
    
    .hero-text {
        text-align: center !important;
        flex: none !important;
        padding-right: 0 !important;
        order: 1 !important;
        background: rgba(0, 0, 0, 0.7);
        padding: 20px;
        border-radius: 10px;
        margin: 0 10px;
    }
    
    .hero-image {
        order: 2 !important;
        flex: none !important;
        width: 100%;
        margin: 0;
        padding: 0 10px;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .cover-image {
        width: 100% !important;
        height: 250px !important;
        min-height: 250px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
        max-width: 100% !important;
    }
    
    .gallery-preview h3,
    .about-text h3,
    .background-right h3,
    .project-gallery h3,
    .testimonials h3,
    .contact h3 {
        font-size: 2.5rem;
    }
    
    .gallery-preview h4 {
        font-size: 1.3rem;
    }
    
    .about-content,
    .background-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .background-left {
        order: 2;
    }
    
    .background-right {
        order: 1;
    }
    
    .background-layout {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    .background-right {
        order: 1;
    }
    
    .background-left {
        order: 2;
    }
    
    .logo-item {
        flex-direction: row;
        text-align: left;
        margin-bottom: 1rem;
        padding: 0.5rem 0;
        align-items: center;
    }
    
    .logo-icon {
        font-size: 1.2rem;
        margin-right: 0.8rem;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .logo-details h4 {
        font-size: 0.9rem;
        margin-bottom: 0.2rem;
    }
    
    .university,
    .job-title,
    .business-name {
        font-size: 0.8rem;
        margin: 0.1rem 0;
    }
    
    .separator-line {
        height: 1px;
        margin: 0.3rem 0;
    }
    
    .degree,
    .duration,
    .start-date {
        font-size: 0.75rem;
        margin: 0.1rem 0;
    }
    
    .background-text {
        padding: 1.5rem;
        margin-top: 1rem;
    }
    
    .background-text p {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
        text-align: left;
    }
    
    .gallery-preview-grid,
    .photo-gallery-grid,
    .testimonials-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Featured Series Mobile Styles */
    .series-item {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
        padding: 1.5rem;
        text-align: center;
    }
    
    .series-image {
        flex: none;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .series-image .gallery-image {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }
    
    .series-text h4 {
        font-size: 1.8rem;
    }
    
    .series-text p {
        font-size: 1rem;
    }
    
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .gallery-image,
    .project-image,
    .photo-image {
        height: 250px;
    }
    
    .testimonial-item {
        padding: 1.5rem;
    }
    
    .painting {
        flex-direction: column !important;
        margin-bottom: 40px;
        min-height: auto;
    }
    
    .painting-image,
    .painting-info {
        padding: 15px;
        width: 100%;
    }
    
    .placeholder-painting {
        height: 250px;
    }
    
    .painting-info h3 {
        font-size: 2rem;
    }
    
    .portfolio-header h2 {
        font-size: 2.5rem;
    }
    
    .footer {
        padding: 1.5rem 0;
    }
}

/* Mobile portrait */
@media (max-width: 650px) {
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 22px !important;
        padding: 22px 18px !important;
    }
    
    .hero-text {
        background: rgba(0, 0, 0, 0.5);
        padding: 22px;
        margin: 0 12px;
        border-radius: 12px;
        order: 1;
        flex: none !important;
        text-align: center !important;
        padding-right: 0 !important;
    }
    
    .hero-image {
        order: 2;
        flex: none !important;
        text-align: center !important;
        height: auto !important;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .hello-text {
        font-size: 1.5rem;
    }
    
    .name-text {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .cover-image {
        height: 260px;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }
}

@media (max-width: 600px) {
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
        padding: 20px 15px !important;
    }
    
    .hero-text {
        background: rgba(0, 0, 0, 0.6);
        padding: 20px;
        margin: 0 10px;
        border-radius: 10px;
        order: 1;
        flex: none !important;
        text-align: center !important;
        padding-right: 0 !important;
    }
    
    .hero-image {
        order: 2;
        flex: none !important;
        text-align: center !important;
        height: auto !important;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hello-text {
        font-size: 1.4rem;
    }
    
    .name-text {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cover-image {
        height: 240px;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }
}

@media (max-width: 520px) {
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 18px !important;
        padding: 18px 12px !important;
    }
    
    .hero-text {
        background: rgba(0, 0, 0, 0.7);
        padding: 18px;
        margin: 0 8px;
        border-radius: 9px;
        order: 1;
        flex: none !important;
        text-align: center !important;
        padding-right: 0 !important;
    }
    
    .hero-image {
        order: 2;
        flex: none !important;
        text-align: center !important;
        height: auto !important;
    }
    
    .hero-title {
        font-size: 1.9rem;
    }
    
    .hello-text {
        font-size: 1.3rem;
    }
    
    .name-text {
        font-size: 2.1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .cover-image {
        height: 220px;
        width: 100%;
        object-fit: cover;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .nav {
        padding: 0.8rem;
        min-height: 60px;
    }
    
    .logo-image {
        height: 50px;
        width: 50px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    .hero {
        padding: 60px 0 15px;
        min-height: auto;
        height: auto;
    }
    
    .hero-content {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        padding: 15px 10px !important;
    }
    
    .hero-text {
        order: 1;
        flex: none !important;
        text-align: center !important;
        padding-right: 0 !important;
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        margin: 0 5px;
        border-radius: 8px;
    }
    
    .hero-image {
        order: 2;
        flex: none !important;
        text-align: center !important;
        height: auto !important;
        width: 100%;
        margin: 0;
        padding: 0 5px;
    }
    
    .cover-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 0;
    }
}

@media (max-width: 470px) {
    .hero-text {
        background: rgba(0, 0, 0, 0.8);
        padding: 15px;
        margin: 0 5px;
        border-radius: 8px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hello-text {
        font-size: 1.2rem;
    }
    
    .name-text {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .cover-image {
        height: 180px;
    }
    
    .hero .logo {
        top: 15px;
    }
}

@media (max-width: 360px) {
    .hero-text {
        background: rgba(0, 0, 0, 0.9);
        padding: 12px;
        margin: 0 3px;
        border-radius: 6px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hello-text {
        font-size: 1rem;
    }
    
    .name-text {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .cover-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .hero .logo-image {
        height: 45px;
        width: 45px;
    }
}
    
    
    .gallery-preview h3,
    .about-text h3,
    .background-right h3,
    .project-gallery h3,
    .testimonials h3,
    .contact h3 {
        font-size: 2rem;
    }
    
    .gallery-preview h4 {
        font-size: 1.1rem;
    }
    
    .about-text p,
    .background-right p,
    .contact-message p {
        font-size: 0.95rem;
    }
    
    .background-text {
        padding: 1rem;
        margin-top: 0.5rem;
    }
    
    .background-text p {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    .background-layout {
        gap: 1.5rem;
    }
    
    .background-left {
        order: 2;
    }
    
    .logo-icon {
        font-size: 1rem;
        width: 25px;
        height: 25px;
        margin-right: 0.6rem;
    }
    
    .logo-details h4 {
        font-size: 0.8rem;
    }
    
    .university,
    .job-title,
    .business-name {
        font-size: 0.7rem;
    }
    
    .degree,
    .duration,
    .start-date {
        font-size: 0.65rem;
    }
    
    .gallery-image,
    .project-image,
    .photo-image {
        height: 200px;
    }
    
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .testimonial-item {
        padding: 1rem;
    }
    
    .testimonial-text p {
        font-size: 0.9rem;
    }
    
    .painting-info h3 {
        font-size: 1.8rem;
    }
    
    .painting-info p {
        font-size: 0.9rem;
    }
    
    .portfolio-header h2 {
        font-size: 2rem;
    }
    
    .portfolio-header p {
        font-size: 1rem;
    }
    
    .placeholder-painting {
        height: 200px;
    }
    
    .placeholder-painting span {
        font-size: 1rem;
    }
    
    .placeholder-painting p {
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
    }
    
    .gallery-preview h3,
    .about-text h3,
    .background-right h3,
    .project-gallery h3,
    .testimonials h3,
    .contact h3 {
        font-size: 1.8rem;
    }
    
    .gallery-preview h4 {
        font-size: 1rem;
    }
    
    .about-text p,
    .background-right p,
    .contact-message p {
        font-size: 0.9rem;
    }
    
    .background-text {
        padding: 0.8rem;
        margin-top: 0.5rem;
    }
    
    .background-text p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.7rem;
    }
    
    .gallery-image,
    .project-image,
    .photo-image {
        height: 180px;
    }
    
    .painting-info h3 {
        font-size: 1.6rem;
    }
    
    .painting-info p {
        font-size: 0.85rem;
    }
    
    .portfolio-header h2 {
        font-size: 1.8rem;
    }
    
    .placeholder-painting {
        height: 180px;
    }
    
    .hero {
        padding: 50px 0 25px;
        min-height: auto;
        height: auto;
    }
    
    
    .hero .logo {
        top: 10px;
    }
    
    .hero .logo-image {
        height: 40px;
        width: 40px;
    }
}

/* Contact Layout Mobile Responsiveness */
@media (max-width: 768px) {
    .contact-main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-container {
        margin-top: 0;
        padding: 0 10px;
    }
    
    .contact-form-container h4 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .contact-form {
        padding: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.85rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .contact-info {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-main-layout {
        gap: 1.5rem;
    }
    
    .contact-form-container {
        padding: 0 5px;
    }
    
    .contact-form-container h4 {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .contact-form {
        padding: 12px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 0.8rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 7px 9px;
        font-size: 0.8rem;
    }
    
    .submit-btn {
        padding: 9px 18px;
        font-size: 0.85rem;
    }
    
    .contact-info {
        gap: 1rem;
    }
}
