* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #0a0a0a;
    color: white;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 400px;
    z-index: 10;
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
}

.navbar .logo img {
    height: 40px;
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

.navbar ul li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: red;
    transition: width 0.3s;
}

.navbar ul li a:hover::after,
.navbar ul li a.active::after {
    width: 100%;
}

.start {
    min-height: 10vh;
    padding: 150px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.start .title {
    font-size: 56px;
    font-weight: 900;
    color: #00ff66;
    text-shadow: 0 0 4px rgba(0, 255, 102, 0.6),
    0 0 10px rgba(0, 255, 102, 0.4);
}

.start .subtitle {
    font-size: 22px;
    font-weight: 600;
    margin-top: 10px;
}

.start p {
    font-size: 16px;
    margin-top: 10px;
    max-width: 600px;
    line-height: 1.6;
}

.buttons {
    margin-top: 25px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.3s;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.btn.blue {
    background: #007bff;
}

.btn.green {
    background: #00cc66;
}

#bg {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    z-index: -1;
}
.about {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    color: #fff;
}

.about-text h2 {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 20px;
    text-align: left;
}

.about-text h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 15px;
    text-align: left;
}

.about-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.bold { font-weight: 700; }
.bold-red { font-weight: 700; color: #ff4444; }
.bold-green { font-weight: 700; color: #00cc66; }

.social-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 2px solid #00aaff;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn img {
    width: 20px;
    height: 20px;
}

.btn:hover {
    border-color: #aa00ff;
}

.btn.coffee {
    margin-top: 20px;
    border-color: #00cc66;
}

.btn.coffee:hover {
    border-color: #ff3333;
}

.about-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 25px;
    min-width: 250px;
}

.stat {
    background: #1a1a1a;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.stat .emoji {
    font-size: 28px;
}

.portfolio {
    padding: 250px 20px;
    text-align: center;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 50px;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.portfolio-item {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.portfolio-item img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.portfolio-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.portfolio-item p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: center;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.portfolio-tags span {
    border: 1px solid #007bff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #007bff;
}

.portfolio-year {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.archive {
    padding: 80px 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

.archive-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
}

.archive-text {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.archive-btn {
    display: inline-block;
    padding: 20px 100px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    background: #00cc66;
    transition: transform 0.2s, box-shadow 0.3s;
}

.archive-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 204, 102, 0.5);
}

.contact {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 60px;
    color: #fff;
}

.contact-title {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 20px;
}

.contact-text {
    flex: 1;
    text-align: left;
}

.contact-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 600px;
    word-wrap: break-word;
}

.email-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 35px;
    border-radius: 12px;
    background: #888888;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.email-btn:hover {
    background: #aaa;
}

.contact-emoji {
    font-size: 120px;
    animation: rotatePhone 4s infinite alternate ease-in-out;
}

@keyframes rotatePhone {
    0% { transform: rotate(-15deg); }
    50% { transform: rotate(15deg); }
    100% { transform: rotate(-15deg); }
}

.popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #00cc66;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
    font-weight: 700;
    z-index: 100;
}

footer {
    margin-top: 50px;
    text-align: center;
}

.footer-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #00cc66, #00aaff);
}

.footer-text {
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    padding-bottom: 20px;
}

.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #0a0a0a;
    color: white;
    padding: 0 20px;
}

.error-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 900;
    margin-bottom: 40px;
}

.error-btn {
    padding: 20px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
}

.archive, .project-page {
    text-align: center;
    margin: 60px auto;
    max-width: 900px;
    color: white;
}

.archive-desc {
    margin: 20px 0;
    font-size: 18px;
    line-height: 1.6;
}

.projects-grid {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.project-btn {
    background: #222;
    border: 2px solid #333;
    padding: 20px;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
    color: white;
    font-weight: bold;
}

.project-btn:hover {
    border-color: #0ff;
    background: #333;
}

.project-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    object-fit: contain;
}

.project-page .project-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

.downloads-title {
    margin-top: 40px;
    font-size: 24px;
    font-weight: bold;
}

.downloads-grid {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.download-btn {
    background: #064d2f;
    padding: 15px 50px;
    border-radius: 10px;
    flex: 1 1 calc(33% - 15px);
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.download-btn:hover {
    background: #0a7d4f;
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #444;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    z-index: 100;
}

.back-btn:hover {
    background: #00cc66;
    color: #fff;
}

.language-switcher {
    position: fixed;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 8px;
    z-index: 2000;
}

.lang-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}

.lang-btn img {
    width: 20px;
    height: auto;
}

.lang-btn:hover {
    background: #555;
}

.language-toggle {
    display: none;
    margin-top: 15px;
    gap: 10px;
}

.language-toggle button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background-color: #333;
    background-size: cover;
    transition: transform 0.2s;
}

.language-toggle button:hover {
    transform: scale(1.1);
}