/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #658C58;
    --secondary-color: #BBC863;
    --dark-color: #31694E;
    --light-color: #F0E491;
    --success-color: #31694E;
    --gray-color: #888;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #F0E491;
    padding-top: 70px; /* Added to account for fixed header */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

/* Header and Navigation */
header {
    background: #F0E491;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
}

header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo {
    display: none;
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Home Section */
#home {
    background: linear-gradient(rgba(101, 140, 88, 0.8), rgba(49, 105, 78, 0.8)), url('https://source.unsplash.com/random/1920x1080/?workspace') no-repeat center center/cover;
    height: calc(100vh - 70px); /* Adjusted for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero {
    width: 100%;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 600;
    animation: fadeInUp 1s ease;
}

.typed-text {
    display: inline-block;
    min-width: 280px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #fff;
    padding-bottom: 5px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeIn 1.5s ease;
}

.hero .btn {
    animation: fadeIn 2s ease;
}

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

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

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

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
}

.about-img {
    flex: 1;
    min-width: 300px;
}

.img-placeholder {
    width: 300px;
    height: 300px;
    background: #BBC863;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.img-placeholder:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.img-placeholder i {
    font-size: 100px;
    color: #ccc;
}

.profile-image {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 10%;
    display: block;
    margin: 0 auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.about-text {
    flex: 2;
    min-width: 300px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 25px;
    color: var(--gray-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Skills Section */
.skills-section {
    padding-top: 20px;
    margin-bottom: 60px;
}

.skills-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    text-align: center;
    position: relative;
}

.skills-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

.skills-column {
    flex: 1;
    min-width: 300px;
}

.skills {
    margin-top: 20px;
}

.skill {
    margin-bottom: 20px;
}

.skill span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 1.05rem;
}

.skill-bar {
    height: 12px;
    background: #BBC863;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.skill-bar span {
    display: block;
    height: 100%;
    background: var(--primary-color);
    border-radius: 6px;
    transition: width 1.5s ease;
    position: relative;
}

.skill-bar span::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 6px 6px 0;
}

/* Carousel Section */
.carousel-section {
    margin-bottom: 60px;
}

.carousel-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    text-align: center;
    position: relative;
}

.carousel-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-50%);
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-button:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    padding: 10px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .carousel-slide {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .carousel-slide {
        height: 300px;
    }
    
    .carousel-button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: none;
    border: none;
    padding: 8px 20px;
    margin: 5px;
    cursor: pointer;
    font-size: 16px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
    position: relative;
    overflow: hidden;
    height: 250px;
    background-color: #BBC863;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.portfolio-img .img-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.portfolio-img .img-placeholder i {
    font-size: 60px;
}

.portfolio-info {
    padding: 20px;
    background: #F0E491;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.portfolio-info p {
    color: var(--gray-color);
}

/* Resume Section */
.resume-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 40px;
}

.resume-section {
    width: 100%;
}

.resume-section h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 10px;
}

.resume-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-color);
}

.resume-item {
    background: #BBC863;
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    border-radius: 0 5px 5px 0;
}

.resume-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.resume-item .location {
    font-weight: 500;
    margin-bottom: 5px;
}

.resume-item .date {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.resume-download {
    text-align: center;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 auto;
    max-width: 850px;
}

.contact-info-centered {
    width: 100%;
    text-align: center;
}

.contact-intro {
    margin-bottom: 40px;
}

.contact-intro p {
    font-size: 1.2rem;
    color: var(--gray-color);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

.contact-items-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
    background: #BBC863;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 250px;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 28px;
    color: var(--primary-color);
    margin-right: 20px;
    min-width: 30px;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.contact-item p {
    color: var(--gray-color);
}

.contact-item a {
    color: var(--gray-color);
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-section {
    margin-bottom: 40px;
}

.social-section h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.social-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.social-links {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: #BBC863;
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-5px);
}

.availability {
    margin-top: 30px;
}

.availability p {
    font-size: 1.1rem;
    color: var(--gray-color);
}

.status {
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.status.available {
    background-color: rgba(49, 105, 78, 0.15);
    color: var(--success-color);
}

@media (max-width: 768px) {
    .contact-items-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 350px;
    }
}

/* Portfolio Popup Styles */
.portfolio-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: none;
}

.portfolio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1002;
    display: none;
    overflow-y: auto;
}

.portfolio-popup.active {
    display: block;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 40px auto;
    background-color: #F0E491;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: var(--dark-color);
    transition: color 0.3s ease;
    z-index: 10;
}

.popup-close:hover {
    color: var(--primary-color);
}

.popup-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #658C58;
}

.popup-header h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.project-date {
    color: var(--gray-color);
    font-style: italic;
}

.popup-gallery {
    margin-bottom: 20px;
}

.popup-gallery-main {
    width: 100%;
    height: 400px;
    margin-bottom: 10px;
    overflow: hidden;
    border-radius: 5px;
}

.popup-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.popup-gallery-thumbs {
    display: flex;
    gap: 10px;
}

.popup-gallery-thumbs img {
    width: 80px;
    height: 60px;
    border-radius: 3px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-gallery-thumbs img:hover {
    transform: translateY(-3px);
}

.popup-gallery-thumbs img.active {
    border: 2px solid var(--primary-color);
}

.popup-video {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
}

.popup-video video {
    width: 100%;
    max-height: 500px;
    background-color: #000;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-itch-widget {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    justify-content: center;
}

.popup-itch-widget iframe {
    width: 100%;
    max-width: 560px;
    height: 175px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.popup-pdf {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.popup-pdf iframe {
    border: none;
    border-radius: 5px;
    background-color: #BBC863;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.pdf-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-download {
    padding: 8px 15px;
    font-size: 14px;
}

.pdf-instructions {
    color: var(--gray-color);
    font-style: italic;
    font-size: 14px;
}

.popup-details {
    display: flex;
    gap: 30px;
}

.tools-used {
    flex: 1;
    min-width: 250px;
}

.tools-used h3, .artist-statement h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

.tools-used ul {
    list-style: none;
}

.tools-used li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.tools-used i {
    color: var(--primary-color);
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.artist-statement {
    flex: 2;
    min-width: 300px;
}

.artist-statement p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--gray-color);
}

/* Make portfolio items clickable */
.portfolio-item {
    cursor: pointer;
}

/* Responsive adjustments for popups */
@media (max-width: 768px) {
    .popup-content {
        padding: 20px;
        width: 95%;
        margin: 30px auto;
    }
    
    .popup-header h2 {
        font-size: 1.8rem;
    }
    
    .popup-gallery-thumbs img {
        width: 60px;
        height: 45px;
    }
    
    .popup-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .popup-itch-widget iframe {
        width: 100%;
        max-width: 100%;
        height: 175px;
    }
}

@media (max-width: 576px) {
    .popup-content {
        padding: 15px;
        margin: 20px auto;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .tools-used h3, .artist-statement h3 {
        font-size: 1.3rem;
    }
    
    .popup-pdf iframe {
        height: 450px;
    }
    
    .pdf-controls {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 991px) {
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .about-content {
        gap: 30px;
    }
    
    .img-placeholder {
        width: 250px;
        height: 250px;
    }
    
    .popup-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 250px;
        background: #F0E491;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 50px 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 20px;
    }
    
    .about-text {
        text-align: left;
    }
    
    .skills-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .about-content {
        margin-bottom: 40px;
    }
    
    .resume-item {
        padding: 15px;
    }
    
    .contact-items-container {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-item {
        width: 100%;
        max-width: 350px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
    
    .popup-details {
        flex-direction: column;
        gap: 20px;
    }
    
    .popup-gallery-thumbs img {
        width: 60px;
        height: 45px;
    }
    
    .popup-header h2 {
        font-size: 1.8rem;
    }
    
    .popup-content {
        padding: 20px;
        margin: 30px auto;
    }
    
    /* Fix hamburger menu scrolling issues */
    body.menu-open {
        overflow: hidden;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .img-placeholder {
        width: 200px;
        height: 200px;
    }
    
    .img-placeholder i {
        font-size: 80px;
    }
    
    .about-text h3, .skills-section h3 {
        font-size: 1.5rem;
    }
    
    .popup-content {
        padding: 15px;
        margin: 20px auto;
    }
    
    .popup-close {
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
    
    .popup-header h2 {
        font-size: 1.5rem;
    }
    
    .tools-used h3, .artist-statement h3 {
        font-size: 1.3rem;
    }
    
    .portfolio-item {
        margin: 0 auto;
        max-width: 300px;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 14px;
        margin: 3px;
    }
    
    .contact-intro p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-item i {
        font-size: 24px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 380px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .img-placeholder {
        width: 180px;
        height: 180px;
    }
    
    .img-placeholder i {
        font-size: 70px;
    }
    
    .about-text p, .contact-intro p {
        font-size: 0.95rem;
    }
    
    .popup-content {
        padding: 10px;
    }
    
    .popup-gallery-thumbs img {
        width: 50px;
        height: 40px;
    }
}

/* Portrait and Landscape orientations */
@media screen and (orientation: portrait) {
    #home {
        height: 85vh;
    }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
    #home {
        height: auto;
        min-height: calc(100vh - 70px);
        padding: 50px 0;
    }
    
    .img-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .section {
        padding: 50px 0;
    }
}

/* High resolution screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        font-size: 16px;
    }
}

/* Utility class for better responsiveness */
.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent scrolling when mobile menu is open */
body.menu-open {
    overflow: hidden;
}
