@import url('physicstag.css');
@import url('carousel.css');

/* CSS CUSTOM PROPERTIES (Skeuomorphic Golden Summer Palette) */
:root {
    --sage: #CCD5AE;
    --light-olive: #E9EDC9;
    --cornsilk: #FEFAE0;
    --papaya: #FAEDCD;
    --bronze: #D4A373;
    --dark-bronze: #A67C52;
    --text-color: #4A3E3D;
    --bg-gradient: linear-gradient(135deg, #FEFAE0 0%, #FAEDCD 100%);

    /* Skeuomorphic Shadows & Highlights */
    --shadow-bevel-out: 8px 8px 16px #d1cbaf, -8px -8px 16px #ffffff;
    --shadow-bevel-in: inset 6px 6px 12px #d1cbaf, inset -6px -6px 12px #ffffff;
    --shadow-pressed: inset 3px 3px 6px #b8b29c, inset -3px -3px 6px #ffffff;
    --shadow-soft: 0 10px 30px rgba(74, 62, 61, 0.15);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;
}

/* RESET & GENERAL STYLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--cornsilk);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Subtle physical texture overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, .logo {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
}

/* ACCESSIBILITY: Focus states */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 3px solid var(--bronze);
    outline-offset: 2px;
}

/* FIXED TOP NAVIGATION BAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(254, 250, 224, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 163, 115, 0.2);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.logo {
    font-size: 1.4rem;
    color: var(--dark-bronze);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--bronze);
}

/* Hamburger Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
}

/* PARALLAX HERO SECTION */
/*.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--light-olive);
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 110%;
    background-image: linear-gradient(rgba(74, 62, 61, 0.3), rgba(74, 62, 61, 0.5)), url('https://picsum.photos/id/1015/1920/1080');
    background-size: cover;
    background-position: center;
    transform: translateY(0);
    will-change: transform;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--cornsilk);
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.4);
    animation: fadeInUp 1s ease forwards;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 1px 2px 5px rgba(0,0,0,0.4);
    animation: fadeInUp 1.2s ease forwards;
}*/

/* SECTION UTILITIES */
section {
    padding: 100px 10% 80px 10%;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    color: var(--dark-bronze);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--bronze);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

/* FADE-IN ANIMATION BASE */
.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ABOUT SECTION: Photo left, brief description right, animated menu below */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 60px;
}

.about-photo-wrapper {
    /*background: var(--light-olive);*/
    /*padding: 15px;*/
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-bevel-out);
    /*border: 1px solid rgba(255,255,255,0.6);*/
}

.about-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
    filter: sepia(20%) contrast(95%);
}

/*.about-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-bronze);
}*/

/*.about-info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}*/

/* Animated Category Menu Below Description */
.animated-menu-section {
    grid-column: 1 / -1;
    margin-top: 20px;
    background: var(--light-olive);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-bevel-in);
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.menu-tab-btn {
    background: var(--cornsilk);
    border: none;
    padding: 12px 25px;
    border-radius: var(--border-radius-md);
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    color: var(--text-color);
    cursor: pointer;
    box-shadow: var(--shadow-bevel-out);
    transition: all 0.3s ease;
}

.menu-tab-btn:hover {
    transform: translateY(-2px);
    color: var(--bronze);
}

.menu-tab-btn.active {
    box-shadow: var(--shadow-pressed);
    color: var(--dark-bronze);
    transform: translateY(0);
}

.menu-content-panes {
    position: relative;
    min-height: 100px;
}

.menu-pane {
    display: none;
    animation: fadeIn 0.5s ease forwards;
    font-size: 1.05rem;
    text-align: center;
}

.menu-pane.active {
    display: block;
}

/* PORTFOLIO LIGHTBOX GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--light-olive);
    padding: 12px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-bevel-out);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 62, 61, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    display: block;
}

.gallery-desc {
    margin-top: 12px;
    padding: 5px;
    text-align: center;
}

.gallery-desc h4 {
    font-size: 1.1rem;
    color: var(--dark-bronze);
}

.gallery-desc p {
    font-size: 0.85rem;
    color: #7A6E6D;
    margin-top: 2px;
}

/* SCROLL-BASED TIMELINE / STORYTELLING LAYOUT */
/*.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--bronze);
    top: 0; bottom: 0; left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--cornsilk);
    border: 4px solid var(--bronze);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.left-timeline { left: 0; }
.right-timeline { left: 50%; }

.right-timeline::after { left: -10px; }

.timeline-content {
    padding: 25px;
    background: var(--light-olive);
    position: relative;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-bevel-out);
}

.timeline-date {
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    color: var(--dark-bronze);
    margin-bottom: 8px;
    font-size: 1.1rem;
}*/

/* ANIMATED STATISTICS COUNTER SECTION */
/*
.stats-section {
    background-color: var(--sage);
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    padding: 60px 10%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-bevel-in);
    margin: 40px 10%;
}

.stat-card {
    text-align: center;
    flex: 1;
    min-width: 150px;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--dark-bronze);
    margin-bottom: 10px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: 'Comfortaa', cursive;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
} */

/* CONTACT FORM WITH VALIDATION */
.contact-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--light-olive);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-bevel-out);
    border: 1px solid rgba(255,255,255,0.5);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    background: var(--cornsilk);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-bevel-in);
    font-family: inherit;
    color: var(--text-color);
    font-size: 1rem;
    transition: box-shadow 0.3s ease;
}

.form-control:focus {
    box-shadow: inset 3px 3px 6px #d1cbaf, inset -3px -3px 6px #ffffff, 0 0 0 2px var(--bronze);
}

.error-msg {
    color: #C0392B;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--bronze);
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-family: 'Comfortaa', cursive;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-bevel-out);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--dark-bronze);
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-pressed);
}

.form-success-alert {
    display: none;
    background-color: #D4EDDA;
    color: #155724;
    padding: 15px;
    border-radius: var(--border-radius-md);
    text-align: center;
    margin-top: 20px;
    font-weight: 500;
}

/* BACK TO TOP BUTTON */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bronze);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-bronze);
    transform: translateY(-3px);
}

/* MULTI-COLUMN FOOTER */
footer {
    background: #E6DFCD;
    padding: 60px 10% 30px 10%;
    border-top: 1px solid rgba(212, 163, 115, 0.3);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2rem;
    color: var(--dark-bronze);
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: var(--bronze);
}

/* Social media links icon grid */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: var(--cornsilk);
    color: var(--dark-bronze);
    border-radius: 50%;
    box-shadow: var(--shadow-bevel-out);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    color: var(--bronze);
    box-shadow: 0 8px 20px rgba(74, 62, 61, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(74, 62, 61, 0.1);
    font-size: 0.9rem;
    color: #7A6E6D;
}

/* ANIMATIONS KEYFRAMES */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* RESPONSIVE DESIGN BREAKPOINTS */
@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
    }
    .timeline-item::after {
        left: 21px;
    }
    .right-timeline {
        left: 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 5% 60px 5%;
    }
    .hero h1 { font-size: 2.4rem; }
    .hero p { font-size: 1.1rem; }
    .hamburger { display: block; }
    .nav-links {
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: var(--cornsilk);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(212, 163, 115, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .stats-section { margin: 20px 0; }
}
/* ==================== 7. АДАПТИВНІСТЬ ДЛЯ МОБІЛЬНИХ ПРИСТРОЇВ ==================== */
/*@media (max-width: 992px) {
  body {
    padding-top: 70px;
  }
  .main-header {
    height: 70px;
  }
  .header-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .menu-list {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .section-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-slider {
    height: 350px;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .footer-nav ul {
    align-items: center;
  }
  .hero-content h2 {
    font-size: 2.2rem;
  }
}*/
