@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #2a211c;
    --bg-medium: #4a3b32;
    --bg-light: #8e7865;
    --accent: #d4c3a3;
    --text-light: #f5f0e6;
    --text-dark: #1a1411;
    --shadow: 0 10px 30px rgba(0,0,0,0.2);
}

body {
    background-color: var(--bg-medium);
    color: var(--text-light);
    line-height: 1.6;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 6px;
    border: 3px solid var(--bg-dark);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: rgba(42, 33, 28, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: padding 0.3s;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

#lang-btn {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: 0.3s ease;
}

#lang-btn:hover {
    background: var(--accent);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(142, 120, 101, 0.2) 0%, rgba(42, 33, 28, 0.4) 100%), url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDQwIDQwIj48ZyBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNkNGMzYTMiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTAgMGg0MHY0MEgwVjB6bTIwIDIwaDIwdjIwSDIWMjB6TTAgMjBoMjB2MjBIMFYyMHoyMCAwaDIwdjIwSDIwVjB6Ii8+PC9nPjwvZz48L3N2Zz4=');
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-width: 900px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--accent);
    max-width: 700px;
}

.btn {
    padding: 18px 35px;
    background-color: var(--accent);
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.btn:hover {
    background-color: #e8d8b9;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 7px 14px rgba(0,0,0,0.15);
}

section {
    padding: 100px 50px;
}

section h2 {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--accent);
    text-transform: uppercase;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-section {
    background-color: var(--bg-dark);
    text-align: center;
}

.about-content p {
    max-width: 850px;
    margin: 0 auto;
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.8;
}

.skills-section {
    background-color: var(--bg-medium);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: 0.4s ease;
    border: 1px solid rgba(212, 195, 163, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.service-card i {
    font-size: 3.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 1.3rem;
}

.service-card p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.projects-section {
    background-color: var(--bg-light);
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiIHZpZXdCb3g9IjAgMCA0IDQiPjxwYXRoIGZpbGw9IiM0YTNidzIiIGZpbGwtb3BhY2l0eT0iMC4wNSIgZD0iTTAgMGgydjJIMFYwek0yIDJoMnYySDJWMnpNMiAwaDJ2MkgyejBWMnpNMCAyaDJ2MkgwVjJ6Ii8+PC9zdmc+');
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    flex: 1 1 320px;
    max-width: 380px;
    background-color: var(--bg-dark);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(212, 195, 163, 0.1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: var(--accent);
}

.project-img {
    height: 200px;
    background-color: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.4s ease;
}

.project-card:hover .project-img {
    background-color: rgba(255,255,255,0.1);
}

.project-img i {
    font-size: 5rem;
    color: var(--bg-light);
    transition: 0.4s ease;
}

.project-card:hover .project-img i {
    transform: scale(1.1);
    color: var(--accent);
}

.project-info {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h3 {
    color: var(--accent);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.links {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: auto;
    text-align: center;
}

.links a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.links a:hover {
    color: var(--text-light);
}

.contact-section {
    background-color: var(--bg-dark);
}

form {
    max-width: 650px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

input, textarea {
    width: 100%;
    padding: 18px;
    background-color: var(--bg-medium);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    background-color: rgba(74, 59, 50, 0.5);
}

footer {
    background-color: #1a1411;
    text-align: center;
    padding: 40px;
    font-size: 0.9rem;
    border-top: 1px solid rgba(212, 195, 163, 0.1);
}

.fade-in {
    animation: fadeIn 1.5s;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    section {
        padding: 60px 20px;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.admin-body {
    padding: 50px;
    background-color: var(--bg-dark);
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
}

.hidden {
    display: none !important;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h2 {
    color: var(--accent);
    margin: 0;
    text-align: left;
}

.admin-header h2::after {
    display: none;
}

#loginSection h2 {
    color: var(--accent);
    text-align: center;
    margin-bottom: 30px;
}

#loginSection h2::after {
    display: none;
}

.message-card {
    background: var(--bg-medium);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border-left: 5px solid var(--accent);
}

.message-card h4 {
    color: var(--accent);
    margin-bottom: 5px;
}

.message-card small {
    color: #ccc;
}

.message-card p {
    margin-top: 15px;
}

#logoutBtn {
    background-color: #e34f26;
    margin: 0;
}

.message-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

.delete-btn {
    background-color: #e34f26;
    padding: 10px 20px;
}

.delete-btn:hover {
    background-color: #c13d1c;
}

.reply-btn {
    background-color: var(--accent);
    color: var(--bg-dark);
    padding: 10px 20px;
    text-align: center;
}

.reply-btn:hover {
    background-color: #e8d8b9;
}

.custom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background-color: var(--bg-medium);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    max-width: 450px;
    width: 90%;
}

.modal-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.cancel-btn {
    background-color: var(--bg-light);
    color: var(--text-light);
}

.cancel-btn:hover {
    background-color: #7a6553;
}
