:root {
    --primary: #2c3e50;
    --primary-dark: #1a252f;
    --accent: #16a085;
    --accent-light: #1abc9c;
    --accent-secondary: #3498db;
    --light: #f8f9fa;
    --dark: #2c2f4b;
    --text: #333;
    --text-light: #555;
    --card-bg: #ffffff;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --crystal-blue: #3498db;
    --light-gray: #f5f7fa;
    --border-color: rgba(225, 229, 242, 0.8);
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --btn-gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --btn-hover: linear-gradient(135deg, var(--accent-light), var(--accent-secondary));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Noto Sans SC', 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    background-attachment: fixed;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

header {
    background: var(--primary-dark);
    padding: 1.2rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo h1 {
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: var(--transition);
}

.logo h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-secondary));
    transition: var(--transition);
    border-radius: 2px;
}

.logo:hover h1::after {
    width: 100%;
}

.logo i {
    font-size: 1.9rem;
    color: var(--accent-light);
    animation: pulse 3s infinite;
}

.logo a {
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.4rem;
}

nav a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.15rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

nav a:hover, nav a.active {
    color: var(--accent-light);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-light);
    transition: var(--transition);
    border-radius: 2px;
}

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

.search-box {
    display: flex;
    background: rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 0.7rem 1.5rem;
    width: 320px;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.search-box:hover {
    background: rgba(255,255,255,0.25);
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    padding: 0.3rem;
    font-size: 1.05rem;
    outline: none;
}

.search-box input::placeholder {
    color: rgba(255,255,255,0.85);
    font-weight: 300;
}

.search-box button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.15rem;
    transition: transform 0.3s ease;
    padding-left: 0.5rem;
}

.search-box button:hover {
    transform: scale(1.12);
}

footer {
    background: linear-gradient(145deg, #2c2f4b, #1c1f35);
    color: white;
    padding: 7rem 2rem 3rem;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
    margin-top: 4rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 65%, rgba(255,255,255,0.03) 65%, transparent 70%),
        linear-gradient(-45deg, transparent 65%, rgba(255,255,255,0.03) 65%, transparent 70%);
    background-size: 60px 60px;
    opacity: 0.1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4.5rem;
    position: relative;
    z-index: 2;
}

.footer-column h3 {
    font-size: 1.7rem;
    margin-bottom: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Playfair Display', serif;
}

.footer-column h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

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

.footer-column ul li {
    margin-bottom: 1.3rem;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 300;
    letter-spacing: 0.3px;
    font-size: 1.1rem;
}

.footer-column ul li a i {
    transition: var(--transition);
    color: var(--accent-light);
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 8px;
}

.footer-column ul li a:hover i {
    transform: translateX(5px);
}

.footer-column p {
    color: #bbb;
    line-height: 1.8;
    margin-bottom: 2.2rem;
    font-weight: 300;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    gap: 1.6rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    transition: var(--transition);
    text-decoration: none;
    font-size: 1.4rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.copyright {
    text-align: center;
    padding-top: 6rem;
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 6rem;
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    font-weight: 300;
}

.crystal-decoration {
    position: absolute;
    color: var(--accent);
    opacity: 0.1;
    font-size: 8rem;
    z-index: -1;
}

.crystal-decoration.top-left {
    top: 20px;
    left: 20px;
}

.crystal-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    transform: rotate(180deg);
}

.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

.lazy-load:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

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

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

@keyframes sparkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@media (max-width: 768px) {
    nav ul { gap: 1rem; }
    .footer-content { gap: 3.5rem; }
    body { overflow-x: hidden; width: 100%; }
    p, li, span, div:not(.no-text-wrap) { overflow-wrap: break-word; word-wrap: break-word; hyphens: auto; min-width: 0; }
    h1, h2, h3, h4 { word-break: keep-all; overflow-wrap: break-word; }
    .content-wrapper { width: 100%; box-sizing: border-box; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
@media (max-width: 480px) {
    nav ul { gap: 0.8rem; }
    nav a { font-size: 1rem; }
    body { font-size: 16px; line-height: 1.5; }
    p { font-size: 1rem; line-height: 1.6; text-align: justify; hyphens: auto; }
    * { -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    nav ul, .search-box {
        display: none;
    }}
    
.hamburger-menu {
    display: none; 
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
}

.hamburger-menu:active {
    transform: scale(0.9);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden; 
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px 0 0 24px; 
    height: auto; 
    max-height: 100vh; 
    background: linear-gradient(165deg, #2c3e50 0%, #1a252f 100%);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.mobile-logo i {
    color: var(--accent-light);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 5px rgba(26, 188, 156, 0.5));
}

.mobile-logo h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
    font-weight: 70;
    font-family: 'Playfair Display', serif;
    text-decoration: none;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transition: var(--transition);
}

.close-menu-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    transform: rotate(90deg);
}

.mobile-nav {
    width: 100%;
    margin-bottom: 2rem; 
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px; 
    width: 100%;
}

.mobile-nav a {
    position: relative;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px 16px;
    margin-bottom: 10px;
    border-radius: 16px; 
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
    overflow: hidden;
}

.mobile-nav a i {
    width: 25px;
    margin-right: 15px;
    font-size: 1.15rem;
    color: var(--accent-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: rgba(26, 188, 156, 0.15); 
    color: #ffffff;
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
}

.mobile-nav a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    background: var(--accent-light);
    border-radius: 0 4px 4px 0;
    transition: transform 0.3s ease;
    box-shadow: 0 0 8px var(--accent-light);
}

.mobile-nav a:hover::before {
    transform: translateY(-50%) scaleY(1);
}

.mobile-nav a:hover i {
    transform: scale(1.2); 
    opacity: 1;
    text-shadow: 0 0 8px var(--accent-light);
}

.mobile-search-box {
    margin-top: auto; 
    margin-bottom: 0;
    padding-bottom: 2rem;
    width: 100%;
    flex-shrink: 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    flex-shrink: 0;
}

.mobile-search-box form {
    display: flex;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 30px; 
    padding: 5px 5px 5px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    align-items: center;
}

.mobile-search-box form:focus-within {
    background: rgba(0, 0, 0, 0.4);
    border-color: var(--accent-light);
}

.mobile-search-box input {
    background: transparent;
    border: none;
    color: #1abc9c;
    flex: 1;
    font-size: 0.95rem;
    outline: none;
    padding: 8px 0;
    width: 100%;
    outline: none;
}

.mobile-search-box button {
    background: var(--btn-gradient);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.mobile-search-box button:active {
    transform: scale(0.9);
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
    
    header nav ul {
        display: none;
    }
    
    .header-container > .search-box {
        display: none;
}}