/* 
   Celia Serpi - Style Sheet
   Editorial Theme: Beige, Cream, and Dark Brown Typography
*/

/* DESIGN SYSTEM VARIABLES */
:root {
    --bg-primary: #FAF7F2;      /* Soft warm cream/beige */
    --bg-secondary: #F3ECE2;    /* Soft sand beige */
    --bg-card: #FAF9F6;         /* Off-white linen for cards */
    --bg-white: #FFFFFF;
    
    --text-primary: #2D1B18;     /* Dark espresso brown for headings */
    --text-secondary: #533E3A;   /* Deep cocoa brown for paragraphs */
    --text-muted: #7E6763;       /* Warm clay brown for metadata/subtle text */
    
    --accent: #A67D72;           /* Soft pastel terracotta */
    --accent-hover: #8F665C;     /* Warm dark terracotta */
    --accent-light: #F4EAE7;     /* Blush pastel cream */
    
    --border-color: #EBE1D3;     /* Subtle warm border */
    
    --shadow-sm: 0 4px 12px rgba(45, 27, 24, 0.04);
    --shadow-md: 0 12px 24px rgba(45, 27, 24, 0.06);
    --shadow-lg: 0 24px 48px rgba(45, 27, 24, 0.09);
    
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* CSS RESET & GENERAL STYLES */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--accent-hover);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(166, 125, 114, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 125, 114, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    transform: translateY(-2px);
}

.btn-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.2);
}

.btn-ig:hover {
    filter: brightness(1.05);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* SHARED SECTION STYLES */
section {
    padding: 6.5rem 0;
    position: relative;
}

.section-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.section-header-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4.5rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.paragraph {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* HEADER & NAVIGATION */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(235, 225, 211, 0.4);
    z-index: 1000;
    transition: var(--transition);
}

.main-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(250, 247, 242, 0.95);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: var(--transition);
}

.main-header.scrolled .header-container {
    height: 60px;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-serif {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.logo-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 2px;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2.2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

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

.nav-btn {
    background-color: var(--accent-light);
    color: var(--text-primary);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover {
    background-color: var(--accent);
    color: var(--bg-white);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 60px;
    background: radial-gradient(circle at 50% 50%, #FAF5ED 0%, var(--bg-primary) 70%);
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1.1rem;
    background-color: var(--accent-light);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Book Graphic (CSS Illustration) */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.book-graphic {
    position: relative;
    width: 260px;
    height: 380px;
    perspective: 1000px;
    transform: rotate(-5deg);
    animation: floatBook 6s ease-in-out infinite;
}

.book-cover {
    width: 100%;
    height: 100%;
    background-color: var(--text-primary);
    border-radius: 4px 16px 16px 4px;
    position: relative;
    box-shadow: 12px 12px 25px rgba(45, 27, 24, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1.5rem;
    border-left: 5px solid #1a0f0d;
    z-index: 2;
    transform-style: preserve-3d;
}

.book-spine {
    position: absolute;
    left: 4px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(0,0,0,0.25));
}

.book-title {
    font-family: var(--font-serif);
    color: var(--bg-primary);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    border-top: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    padding: 1.5rem 0.5rem;
    letter-spacing: 0.05em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.book-mark {
    font-size: 1.8rem;
}

.book-pages {
    position: absolute;
    right: -12px;
    top: 15px;
    bottom: 15px;
    width: 15px;
    background-color: #f7ede2;
    border-radius: 0 4px 4px 0;
    box-shadow: 3px 3px 5px rgba(0,0,0,0.1);
    z-index: 1;
    background-image: repeating-linear-gradient(90deg, transparent, transparent 2px, #e8d8c8 2px, #e8d8c8 3px);
}

.floating-badge {
    position: absolute;
    bottom: -15px;
    left: -25px;
    background-color: var(--accent);
    color: var(--bg-white);
    padding: 1rem 1.2rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transform: rotate(12deg);
    z-index: 3;
    animation: rotateBadge 12s linear infinite;
}

.badge-number {
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
}

.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounceScroll 2s infinite;
}

.scroll-indicator a {
    color: var(--text-muted);
    font-size: 1.3rem;
}

/* ABOUT SECTION */
.about-section {
    background-color: var(--bg-secondary);
}

.section-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-card {
    background-color: var(--bg-primary);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    position: relative;
    border: 1px solid var(--border-color);
}

.about-placeholder-img {
    height: 300px;
    background-color: var(--accent-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent);
    position: relative;
    overflow: hidden;
}

.about-placeholder-img::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 60%);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.stat-item {
    text-align: center;
}

.stat-num {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2.5rem;
}

.feature-item {
    display: flex;
    gap: 1.2rem;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background-color: var(--bg-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(235, 225, 211, 0.5);
}

.feature-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* SERVICES SECTION */
.services-section {
    background-color: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
    margin-bottom: 4rem;
}

.service-card {
    background-color: var(--bg-card);
    border-radius: 20px;
    padding: 3rem 2.2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card.highlighted {
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.service-card.highlighted:hover {
    box-shadow: var(--shadow-lg);
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: var(--accent-light);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.service-card.highlighted .service-icon {
    background-color: var(--accent-light);
}

.service-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.service-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2.2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.service-features li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--accent);
    font-size: 0.85rem;
}

.service-link {
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.service-link i {
    font-size: 0.8rem;
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(4px);
}

.services-cta {
    background-color: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.services-cta p {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

/* INSTAGRAM FEED SECTION */
.feed-section {
    background-color: var(--bg-secondary);
}

.ig-link {
    font-weight: 700;
    text-decoration: underline;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.instagram-item-fallback {
    grid-column: 1 / -1;
    background-color: var(--bg-primary);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px dashed var(--border-color);
}

.ig-fallback-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Card of Instagram post */
.instagram-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.instagram-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.instagram-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* square ratio */
    background-color: #ece5dc;
    overflow: hidden;
}

.instagram-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 27, 24, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: var(--bg-white);
    font-size: 1.8rem;
    z-index: 2;
}

.instagram-card:hover .instagram-overlay {
    opacity: 1;
}

.instagram-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 100vw/3); /* dynamic sizing fallback */
}

/* Let's keep height fixed for cards since aspect ratios matter */
.instagram-body {
    height: 140px;
}

.instagram-caption {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
}

.instagram-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}


/* Text-only layout for cards without images */
.instagram-card.text-only {
    display: flex;
    flex-direction: column;
}

.instagram-card.text-only .instagram-body {
    height: 100%;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
}

.instagram-text-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.instagram-platform {
    color: var(--text-muted);
}

.instagram-card.text-only .instagram-caption {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
    -webkit-line-clamp: 6;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.feed-cta {
    text-align: center;
}

/* CONTACT SECTION */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: flex-start;
}

.contact-info {
    position: sticky;
    top: 120px;
}

.contact-details {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.icon-circle {
    width: 52px;
    height: 52px;
    background-color: var(--accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.contact-detail-item h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 0;
}

.contact-detail-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.social-circles {
    display: flex;
    gap: 1rem;
}

.social-circles a {
    width: 44px;
    height: 44px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-circles a:hover {
    background-color: var(--accent);
    color: var(--bg-white);
    transform: translateY(-3px);
}

/* Form Styling */
.contact-form-container {
    background-color: var(--bg-card);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.95rem 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(166, 125, 114, 0.1);
}

.form-status {
    font-size: 0.95rem;
    padding: 0.8rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background-color: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #C8E6C9;
}

.form-status.error {
    display: block;
    background-color: #FFEBEE;
    color: #C62828;
    border: 1px solid #FFCDD2;
}

/* FOOTER */
.main-footer {
    background-color: var(--text-primary);
    color: #FAF5ED;
    padding: 5rem 0 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    color: #FAF5ED;
    font-size: 1.6rem;
    margin-bottom: 0.8rem;
}

.footer-brand p {
    color: #BCAAA4;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-links ul {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.footer-links a {
    color: #FAF5ED;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    grid-column: 1 / -1;
    border-top: 1px solid #3E2723;
    padding-top: 2rem;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #8D6E63;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ANIMATIONS */
@keyframes floatBook {
    0% {
        transform: rotate(-5deg) translateY(0px);
    }
    50% {
        transform: rotate(-3deg) translateY(-12px);
    }
    100% {
        transform: rotate(-5deg) translateY(0px);
    }
}

@keyframes rotateBadge {
    0% {
        transform: rotate(12deg);
    }
    50% {
        transform: rotate(16deg) scale(1.02);
    }
    100% {
        transform: rotate(12deg);
    }
}

@keyframes bounceScroll {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-8px);
    }
    60% {
        transform: translateX(-50%) translateY(-4px);
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-container {
        gap: 2rem;
    }
    .section-grid {
        gap: 3rem;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.8rem;
    }
    .services-grid .service-card:last-child {
        grid-column: 1 / -1;
        max-width: 600px;
        margin: 0 auto;
    }
    .instagram-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    .contact-grid {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4.5rem 0;
    }
    .main-header {
        padding: 0.5rem 0;
    }
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-primary);
        padding: 3rem 1.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.open {
        transform: translateX(0);
    }
    
    .nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .nav-btn {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1rem 0;
        font-size: 1.1rem;
    }
    
    .hero-container {
        padding-top: 40px;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .about-image-container {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }
    
    .services-grid .service-card:last-child {
        max-width: 100%;
    }
    
    .instagram-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        position: static;
    }
    
    .contact-form-container {
        padding: 2.5rem 1.8rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ==========================================
   SKILLS & CURRICULUM SECTION
   ========================================== */
.skills-section {
    padding: 7rem 0;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.skill-card {
    background-color: var(--bg-card);
    padding: 3rem 2.2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background-color: var(--accent);
    color: var(--bg-card);
}

.skill-card h4 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.skill-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .skill-card {
        padding: 2.5rem 1.8rem;
    }
}

/* ==========================================
   ADMIN PANEL STYLES
   ========================================== */
.admin-body-bg {
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

.admin-login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.admin-login-card {
    background-color: var(--bg-card);
    padding: 3.5rem 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 450px;
}

.admin-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 2.5rem;
}

.admin-dashboard-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-dashboard-header {
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-main {
    padding-top: 3rem;
    padding-bottom: 5rem;
    flex-grow: 1;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.admin-form-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.admin-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: 550px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbar for posts list */
.admin-posts-list::-webkit-scrollbar {
    width: 6px;
}
.admin-posts-list::-webkit-scrollbar-track {
    background: transparent;
}
.admin-posts-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.admin-post-item {
    background-color: var(--bg-primary);
    border-radius: 12px;
    padding: 1.2rem;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.admin-post-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.admin-post-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    min-width: 0;
}

.admin-post-icon {
    width: 40px;
    height: 40px;
    background-color: var(--accent-light);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.admin-post-details {
    min-width: 0;
}

.admin-post-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
}

.admin-post-info {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.btn-delete {
    background: none;
    border: none;
    color: #C62828;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background-color: #FFEBEE;
    color: #B71C1C;
    transform: scale(1.1);
}

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

.text-error {
    color: #C62828;
}

@media (max-width: 1024px) {
    .admin-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
}

@media (max-width: 500px) {
    .admin-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    .admin-post-actions {
        align-self: flex-end;
        width: 100%;
        justify-content: flex-end;
        border-top: 1px solid var(--border-color);
        padding-top: 0.8rem;
    }
}
