:root {
    --primary-color: #000;
    --secondary-color: #333;
    --accent-color: #555;
    --background-color: #fff;
    --text-color: #000;
    --inverse-text: #fff;
    --section-spacing: 80px;
    --rain-color: rgba(0, 0, 0, 0.2);
}

.dark-theme {
    --primary-color: #fff;
    --secondary-color: #ccc;
    --accent-color: #aaa;
    --background-color: #121212;
    --text-color: #fff;
    --inverse-text: #000;
    --rain-color: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding: 0 20px;
    position: relative;
    overflow-x: hidden;
}

.rain-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.drop {
    position: absolute;
    width: 2px;
    height: 20px;
    background: linear-gradient(to bottom, var(--rain-color), transparent);
    border-radius: 0 0 5px 5px;
    animation: rain linear infinite;
    opacity: 0.6;
}

.splash {
    position: absolute;
    width: 15px;
    height: 10px;
    border-radius: 50%;
    background: var(--rain-color);
    opacity: 0;
    animation: splash 0.5s ease-out infinite;
}

@keyframes rain {
    0% {
    transform: translateY(-100px);
    opacity: 0;
    }
    10% {
    opacity: 0.6;
    }
    90% {
    opacity: 0.6;
    }
    100% {
    transform: translateY(100vh);
    opacity: 0;
    }
}

@keyframes splash {
    0% {
    opacity: 1;
    transform: scale(0);
    }
    90% {
    opacity: 0;
    transform: scale(1);
    }
    100% {
    opacity: 0;
    transform: scale(1.5);
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s linear;
    border-radius: 2px;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: var(--background-color);
    z-index: 999;
    padding: 80px 30px 30px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex-direction: column;
    gap: 20px;
    border-left: 1px solid var(--accent-color);
}

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

.mobile-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    border-bottom: 1px solid var(--accent-color);
    transition: color 0.3s ease;
}

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

.mobile-theme-toggle, .mobile-lang-toggle {
    background: none;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-theme-toggle:hover, .mobile-lang-toggle:hover {
    background-color: var(--text-color);
    color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% {
    transform: translateY(0) translateX(0);
    }
    50% {
    transform: translateY(-20px) translateX(20px);
    }
}

.header {
    text-align: center;
    padding: 80px 0 60px;
    margin-bottom: var(--section-spacing);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.header h1 {
    font-size: 72px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.header h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 50%;
}

.header p {
    font-size: 20px;
    color: var(--secondary-color);
    max-width: 600px;
    margin: 0 auto 40px;
    font-family: 'Roboto Mono', monospace;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    position: relative;
}

.dark-theme .header p {
    background-color: rgba(255, 255, 255, 0.05);
}

.header p::before {
    content: '"';
    font-size: 60px;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--accent-color);
    opacity: 0.3;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 35px;
    background-color: var(--text-color);
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .cta-button:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.section {
    margin-bottom: var(--section-spacing);
    padding: 40px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    border-radius: 50%;
}

.section-subtitle {
    font-size: 18px;
    color: var(--secondary-color);
    font-family: 'Roboto Mono', monospace;
    max-width: 700px;
    margin: 0 auto;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.dark-theme .section-subtitle {
    background-color: rgba(255, 255, 255, 0.05);
}

.about-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-family: 'Roboto Mono', monospace;
    padding: 25px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    position: relative;
}

.dark-theme .about-content p {
    background-color: rgba(255, 255, 255, 0.05);
}

.about-content p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--accent-color), transparent);
    border-radius: 5px;
}

.stack-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 50px;
    justify-content: center;
}

.stack-item {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--accent-color);
    transition: all 0.3s ease;
    border-radius: 15px;
    background-color: rgba(0, 0, 0, 0.02);
    position: relative;
    overflow: hidden;
    flex: 1 0 200px;
    max-width: calc(25% - 30px);
    box-sizing: border-box;
}

.dark-theme .stack-item {
    background-color: rgba(255, 255, 255, 0.03);
}

.stack-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.dark-theme .stack-item:hover {
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05);
}

.stack-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.stack-item:hover::before {
    left: 100%;
}

.stack-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.stack-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

@media (max-width: 1200px) {
    .stack-item {
        max-width: calc(33.333% - 30px);
    }
}

@media (max-width: 900px) {
    .stack-item {
        max-width: calc(50% - 30px); 
    }
}

@media (max-width: 600px) {
    .stack-item {
        max-width: 100%;
        flex: 1 0 100%;
    }
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 20px;
    margin-bottom: 40px;
    font-family: 'Roboto Mono', monospace;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
}

.dark-theme .contact-content p {
    background-color: rgba(255, 255, 255, 0.05);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-link {
    padding: 15px 30px;
    background-color: var(--text-color);
    color: var(--background-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 1px solid var(--text-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.contact-link:hover {
    background-color: transparent;
    color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .contact-link:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.contact-link:hover::before {
    left: 100%;
}

.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: var(--section-spacing);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer p {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: 'Roboto Mono', monospace;
}

/* Theme toggle */
.theme-toggle, .lang-toggle {
    position: fixed;
    bottom: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--text-color);
    color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.theme-toggle {
    right: 30px;
}

.lang-toggle {
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    font-size: 14px;
}

.theme-toggle:hover, .lang-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(30deg);
}

@media (max-width: 768px) {
    .header h1 {
    font-size: 48px;
    }
    
    .section-title {
    font-size: 32px;
    }
    
    .cta-buttons {
    flex-direction: column;
    align-items: center;
    }
    
    .cta-button {
    width: 100%;
    text-align: center;
    justify-content: center;
    }
    
    .contact-links {
    flex-direction: column;
    align-items: center;
    }
    
    .contact-link {
    width: 100%;
    text-align: center;
    justify-content: center;
    }

    .header p,
    .section-subtitle,
    .about-content p,
    .contact-content p {
    padding: 15px;
    }

    .hamburger {
      display: flex;
    }

    .mobile-menu {
      display: flex;
    }

    .theme-toggle, .lang-toggle {
      display: none;
    }
}