* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #F5F1ED;
    --secondary-bg: #FEFDFB;
    --accent-navy: #3D5170;
    --accent-pink: #E8B4BD;
    --accent-pink-dark: #D89BA5;
    --text-navy: #3D5170;
    --text-color: #4A5568;
    --light-text: #6B7280;
    --border-color: #E5E7EB;
    --placeholder-gray: #9CA3AF;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--primary-bg);
    position: relative;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-bg);
    position: relative;
    overflow: hidden;
}

.portfolio-title-image {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.portfolio-title-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Section */
.about {
    padding: 20px 20px 60px 20px;
    background-color: var(--secondary-bg);
    position: relative;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Top Section: Profile + Hello + Contacts */
.profile-hello-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 60px;
    align-items: start;
}

.profile-image-container {
    position: relative;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    height: 420px;
    background-color: var(--placeholder-gray);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    z-index: 2;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse at center, 
        rgba(244, 181, 198, 0.5) 0%, 
        rgba(244, 181, 198, 0.3) 50%,
        transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
}

.profile-image-container::after {
    content: '';
    position: absolute;
    top: 40px;
    left: -40px;
    width: 100px;
    height: 100px;
    background: 
        radial-gradient(circle at 20% 30%, #E89AAC 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, #E89AAC 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, #E89AAC 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, #E89AAC 2px, transparent 2px);
    background-size: 20px 20px;
    background-repeat: repeat;
    border-radius: 10px;
    z-index: 0;
}

/* Decorative flowers */
.profile-image-container {
    position: relative;
}

.hello-contacts {
    padding-top: 20px;
}

.greeting {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-navy);
}

.greeting-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--accent-pink-dark) 0%, transparent 100%);
    margin-bottom: 25px;
}

.intro {
    font-size: 1rem;
    line-height: 1.9;
    color: var(--text-color);
    margin-bottom: 40px;
}

.contacts-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-navy);
    margin-bottom: 20px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.contact-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(56%) sepia(18%) saturate(837%) hue-rotate(297deg) brightness(93%) contrast(89%);
}

/* Bottom Section: Education, Skills, Language, Softwares + Photo */
.info-bottom-section {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 60px;
    align-items: start;
}

.info-left {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.info-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.info-card {
    background-color: transparent;
    padding: 0;
}

.info-card h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--accent-navy);
}

.section-underline {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--accent-pink-dark) 0%, transparent 100%);
    margin-bottom: 20px;
}

.info-card p {
    margin-bottom: 10px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.education-item {
    margin-bottom: 25px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.education-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-navy);
}

.education-item p {
    font-size: 0.9rem;
    color: var(--text-color);
}

.info-card ul {
    list-style: none;
    padding: 0;
}

.info-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-color);
    font-size: 0.95rem;
}

.info-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--accent-navy);
    font-size: 1.2rem;
}

/* Language proficiency dots */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.language-item span {
    color: var(--text-navy);
    font-weight: 500;
}

.proficiency-dots {
    display: flex;
    gap: 5px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-pink);
    background-color: transparent;
}

.dot.filled {
    background-color: var(--accent-pink);
}

.software-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 300px;
}

.software-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    filter: brightness(0) saturate(100%) invert(56%) sepia(18%) saturate(837%) hue-rotate(297deg) brightness(93%) contrast(89%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.software-icon:hover {
    filter: brightness(0) saturate(100%) invert(44%) sepia(32%) saturate(671%) hue-rotate(297deg) brightness(89%) contrast(88%);
    transform: scale(1.1);
}

.icon-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background-color: var(--placeholder-gray);
    border-radius: 8px;
}

/* Second profile image on right */
.profile-image-right {
    position: relative;
}

.profile-image-container-2 {
    position: relative;
}

.profile-image-2 {
    width: 100%;
    max-width: 350px;
    height: 420px;
    background-color: var(--placeholder-gray);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    position: relative;
    z-index: 2;
}

.profile-image-container-2::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(ellipse at center, 
        rgba(244, 181, 198, 0.5) 0%, 
        rgba(244, 181, 198, 0.3) 50%,
        transparent 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
}

.profile-image-container-2::after {
    content: '';
    position: absolute;
    bottom: 40px;
    right: -40px;
    width: 100px;
    height: 100px;
    background: 
        radial-gradient(circle at 20% 30%, #B8B8B8 2px, transparent 2px),
        radial-gradient(circle at 60% 40%, #B8B8B8 2px, transparent 2px),
        radial-gradient(circle at 40% 70%, #B8B8B8 2px, transparent 2px),
        radial-gradient(circle at 80% 80%, #B8B8B8 2px, transparent 2px);
    background-size: 20px 20px;
    background-repeat: repeat;
    border-radius: 10px;
    z-index: 0;
}

/* Table of Contents Section */
.toc-section {
    padding: 60px 20px 80px;
    background-color: var(--primary-bg);
    text-align: center;
}

.toc-section-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-navy);
    margin-bottom: 60px;
    letter-spacing: 0.05em;
}

.toc-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
}

.toc-card {
    background: white;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 3px solid white;
    position: relative;
}

.toc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--accent-navy);
}

.toc-card-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-navy);
    margin-bottom: 5px;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.toc-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-navy);
    text-align: center;
    margin: 0;
    padding: 0 20px;
    line-height: 1.3;
}

/* Sticky Navbar */
.sticky-navbar {
    position: sticky;
    top: 0;
    background-color: var(--accent-navy);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    border-bottom: none;
    transition: all 0.3s ease;
}

/* Hide entire navbar on desktop until sticky (redundant with TOC section) */
.sticky-navbar:not(.is-sticky) {
    opacity: 0;
    pointer-events: none;
}

.sticky-navbar.is-sticky {
    opacity: 1;
    pointer-events: auto;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    min-height: 60px;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 18px 20px;
    z-index: 1002;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease;
}

/* Menu backdrop blur overlay */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.navbar-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;
}

.navbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 18px 25px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.navbar-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: var(--accent-pink);
}

.navbar-item.active {
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: var(--accent-pink);
}

.navbar-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.navbar-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toc-section-title {
        font-size: 2.5rem;
        margin-bottom: 40px;
    }

    .toc-cards {
        gap: 15px;
    }

    .toc-card {
        width: 150px;
        height: 150px;
    }

    .toc-card-number {
        font-size: 2rem;
    }

    .toc-card-title {
        font-size: 0.85rem;
    }

    .navbar-toggle {
        display: block;
        position: absolute;
        right: 20px;
        z-index: 1002;
    }

    .navbar-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 60px;
        box-shadow: 2px 0 15px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1001;
    }

    .navbar-menu.active {
        left: 0;
    }

    .navbar-item {
        padding: 18px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-left: 3px solid transparent;
        color: var(--accent-navy);
    }

    .navbar-item:hover,
    .navbar-item.active {
        border-bottom-color: rgba(255, 255, 255, 0.1);
        border-left-color: var(--accent-pink);
        background-color: rgba(59, 81, 113, 0.05);
    }
    
    .navbar-menu {
        background-color: white;
    }
    
    .navbar-item .navbar-number,
    .navbar-item .navbar-title {
        color: var(--accent-navy);
    }

    .navbar-number {
        font-size: 1rem;
    }

    .navbar-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .toc-section {
        padding: 60px 20px 60px;
    }

    .toc-section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .toc-cards {
        gap: 12px;
    }

    .toc-card {
        width: 130px;
        height: 130px;
    }

    .toc-card-number {
        font-size: 1.8rem;
    }

    .toc-card-title {
        font-size: 0.75rem;
        padding: 0 10px;
    }
}

/* Remove old TOC styles */

/* Project Sections */
.project-section {
    padding: 100px 20px;
    background-color: var(--secondary-bg);
}

.project-section:nth-child(even) {
    background-color: var(--primary-bg);
}

/* Specific alternating backgrounds for project sections */
#brand-identity {
    background-color: var(--accent-navy);
}

#brand-identity .section-header h2,
#brand-identity .section-description,
#brand-identity .project-card h3,
#brand-identity .project-description {
    color: white;
}

#brand-identity .section-number {
    background-color: white;
    color: var(--accent-navy);
}

/* RECOMMENDED IMAGE SIZES (based on reference site analysis):
 * 
 * HERO SECTION:
 * - Portfolio Title/Logo: 800x286px (landscape banner)
 * 
 * PROFILE PHOTOS:
 * - About Section Photos: 534x800px (portrait, 2:3 aspect ratio)
 * 
 * BRAND IDENTITY:
 * - Say The Shop Product Display: 799x529px (landscape, 3:2 ratio)
 * - Software Icons: 800x800px (square)
 * 
 * SOCIAL MEDIA:
 * - Instagram Posts (top row, 3 images): 640x800px each (portrait, 4:5 ratio)
 * - Instagram Featured (bottom, large image): 800x600px+ (landscape/square)
 * 
 * ILLUSTRATION:
 * - Sticker Design (individual stickers in grid): 640x800px (portrait, 4:5)
 * - Photocard Holder (collection view): 800x768px (square-ish)
 * - Custom Illustration (avatars): 800x800px (square)
 * 
 * PROJECT SECTIONS:
 * - Standard project images: 640x800px (portrait, 4:5 ratio)
 * - Large featured images: 800x600-800px (landscape/square)
 */

.project-image-large {
    width: 100%;
    height: auto;
    background-color: transparent;
    border-radius: 15px;
    overflow: hidden;
}

.project-image-large img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Say The Shop Special Layout */
.say-the-shop-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.say-the-shop-image {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.say-the-shop-image .project-image-large {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
}

.say-the-shop-content h3 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: white;
}

.say-the-shop-content .project-description {
    color: white;
    font-size: 1.1rem;
    line-height: 1.9;
}

/* Social Media Section Background */
#social-media {
    background-color: #495D7E;
}

#social-media .section-header h2,
#social-media .section-description,
#social-media .project-card h3 {
    color: white;
}

#social-media .section-number {
    background-color: white;
    color: var(--accent-navy);
}

/* Instagram Feeds Special Layout */
.instagram-feeds-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.instagram-row-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.instagram-row-top .project-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.instagram-row-bottom {
    width: 100%;
    display: flex;
    justify-content: center;
}

.instagram-row-bottom .project-image-large {
    width: 100%;
    max-width: 1200px;
    height: auto;
    object-fit: cover;
}

/* Project Single Image Layout */
.project-single-image {
    width: 100%;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.project-single-image .project-image-large {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    flex-shrink: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.section-number {
    font-size: 5rem;
    font-weight: 700;
    color: white;
    background-color: white;
    border: 4px solid var(--accent-navy);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: var(--accent-navy);
    flex-shrink: 0;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--accent-navy);
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-color);
    margin-bottom: 60px;
    max-width: 900px;
    line-height: 1.8;
}

.project-card {
    margin-bottom: 80px;
}

.project-card:last-child {
    margin-bottom: 0;
}

.project-card h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--accent-navy);
}

.project-subtitle {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 20px;
}

.project-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.9;
    max-width: 900px;
}

.project-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
    overflow-x: auto;
}

.project-images-grid .project-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
}

.instagram-grid .project-image {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Standard project image placeholders - Optimized for 640x800px (4:5 portrait ratio) */
.project-image {
    width: 100%;
    min-height: 350px; /* Maintains 4:5 aspect ratio for portrait images */
    height: auto;
    background-color: var(--placeholder-gray);
    border-radius: 10px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.project-images-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    margin-top: 30px;
    padding-bottom: 20px;
    -webkit-overflow-scrolling: touch;
}

.project-images-carousel .project-image {
    height: auto;
    max-height: 400px;
    width: auto;
    flex-shrink: 0;
}

.carousel-note {
    font-size: 0.95rem;
    color: var(--light-text);
    font-style: italic;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .toc-grid {
        gap: 0;
        padding: 8px 10px;
    }
    
    .toc-item {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .toc-number {
        font-size: 1rem;
    }
    
    .toc-title-spaced {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
    }
    
    .profile-hello-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .profile-image-container {
        max-width: 350px;
        margin: 0 auto;
    }
    
    .info-bottom-section {
        grid-template-columns: 1fr;
    }
    
    .profile-image-right {
        display: none;
    }
}

@media (max-width: 768px) {
    .greeting {
        font-size: 2.5rem;
    }

    .intro {
        font-size: 0.95rem;
    }

    .section-number {
        font-size: 3.5rem;
        width: 100px;
        height: 100px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .project-card h3 {
        font-size: 1.6rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-images-carousel .project-image {
        max-height: 350px;
    }

    .info-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-links {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-hello-section {
        grid-template-columns: 1fr;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
    
    .about {
        padding: 60px 20px;
    }
    
    .project-section {
        padding: 80px 20px;
    }
    
    /* Say The Shop Mobile */
    .say-the-shop-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .say-the-shop-image .project-image-large {
        max-height: 400px;
    }
    
    /* Instagram Feeds Mobile */
    .instagram-row-top {
        grid-template-columns: 1fr;
    }
    
    .instagram-row-top .project-image {
        min-width: 100%;
    }
    
    .instagram-row-bottom .project-image-large {
        max-height: 350px;
    }
    
    /* Single image responsive */
    .project-single-image .project-image-large {
        max-height: 400px;
    }
}

@media (max-width: 480px) {
    .portfolio-title-image {
        height: 150px;
        max-width: 400px;
    }

    .profile-image {
        height: 250px;
        max-width: 300px;
    }
    
    .profile-image-2 {
        height: 250px;
        max-width: 300px;
    }

    .instagram-grid {
        grid-template-columns: 1fr;
    }

    .project-images-grid {
        grid-template-columns: 1fr;
    }
    
    .greeting {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-number {
        font-size: 3rem;
        width: 90px;
        height: 90px;
    }
    
    .software-icons {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .about {
        padding: 40px 20px 60px;
    }
    
    .about-content {
        gap: 50px;
    }
    
    .project-section {
        padding: 60px 20px;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .project-description {
        font-size: 0.95rem;
    }
    
    .project-images-carousel .project-image {
        max-height: 300px;
    }
    
    .project-card h3 {
        font-size: 1.4rem;
    }
    
    .project-subtitle {
        font-size: 1.05rem;
    }
    
    .contacts-section h3 {
        font-size: 1.5rem;
    }
    
    .info-card h3 {
        font-size: 1.4rem;
    }
    
    /* Fix profile image decorative elements on mobile */
    .profile-image-container::after,
    .profile-image-container-2::after {
        display: none;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .portfolio-title-image {
        height: 120px;
        max-width: 320px;
    }
    
    .greeting {
        font-size: 1.7rem;
    }
    
    .profile-image,
    .profile-image-2 {
        height: 300px;
        max-width: 250px;
    }
    
    .section-number {
        font-size: 2.5rem;
        width: 80px;
        height: 80px;
    }
    
    .section-header h2 {
        font-size: 1.6rem;
    }
    
    .toc-title-spaced {
        font-size: 0.65rem;
    }
    
    .project-images-carousel .project-image {
        max-height: 250px;
    }
}
