:root {
    --background-color: #1a1a1f; 
    --text-color: #e0e0e0; 
    --secondary-text-color: #a0a0a5; 
    --primary-accent-color: #34d399;
    --secondary-accent-color: #059669; 
    --glass-background: rgba(40, 40, 45, 0.65); 
    --border-color: rgba(255, 255, 255, 0.1); 
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0; padding: 0; background-color: var(--background-color); color: var(--text-color);
}
body.modal-open { overflow: hidden; }

header {
    position: fixed; top: 0; width: 100%;
    background-color: var(--glass-background); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    z-index: 1000; border-bottom: 1px solid var(--border-color);
}
nav { display: flex; justify-content: space-between; align-items: center; max-width: 1100px; margin: 0 auto; padding: 1rem 2rem; }
.logo a { text-decoration: none; color: var(--text-color); font-weight: 700; font-size: 1.2rem; }
nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; }
nav ul li a { text-decoration: none; color: var(--text-color); font-weight: 600; transition: color 0.3s ease; }
nav ul li a:hover { color: var(--primary-accent-color); }

main { padding-top: 80px; }
section { max-width: 1000px; margin: 2.5rem auto; padding: 1rem 2rem; text-align: center; }

#hero {
    min-height: 45vh;
    display: flex; align-items: center; justify-content: center; text-align: center;
}

.subheading {
    font-size: 1.2rem; font-style: italic; color: var(--secondary-text-color);
    margin: 0 auto 1.5rem auto; max-width: 450px; position: relative;
    padding-left: 3.5rem; text-align: left; border: none;
}
.subheading::before {
    content: '“'; position: absolute; left: 0; top: -0.5rem;
    font-family: serif; font-size: 4rem; color: var(--primary-accent-color);
    opacity: 0.6; line-height: 1;
}

.hero-content h1 { font-size: 4.5rem; font-weight: 700; }
.hero-content h1 span { color: var(--primary-accent-color); }

.cta-button {
    display: inline-flex; align-items: center; gap: 0.5rem; background-color: var(--primary-accent-color);
    color: #1a1a1f; padding: 1rem 2rem; border-radius: 30px; text-decoration: none;
    font-weight: 600; transition: background-color 0.3s ease; border: none; cursor: pointer;
    font-family: inherit; font-size: inherit;
}
.cta-button:hover { background-color: var(--secondary-accent-color); color: #fff; }

.job { margin-bottom: 2rem; text-align: left; border-left: 3px solid var(--primary-accent-color); padding-left: 1.5rem; color: var(--secondary-text-color); }
.job h3 { margin: 0; color: var(--text-color); font-weight: 700; }

@keyframes scroll { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

#tech-carousel h2 { margin-bottom: 3rem; }
.logo-slider {
    background: transparent; box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.125); height: 100px;
    margin: auto; overflow: hidden; position: relative; width: 100%;
}
.logo-slider::before, .logo-slider::after {
    background: linear-gradient(to right, var(--background-color) 0%, rgba(26, 26, 31, 0) 100%);
    content: ""; height: 100%; position: absolute; width: 15%; z-index: 2; pointer-events: none;
}
.logo-slider::before { left: 0; top: 0; }
.logo-slider::after { right: 0; top: 0; transform: rotateZ(180deg); }
.logo-slide-track { 
    animation: scroll 40s linear infinite;
    display: flex; 
    width: calc(250px * 16); 
}


.slide { height: 100px; width: 250px; display: flex; align-items: center; justify-content: center; padding: 15px; }
.slide img { max-height: 55px; max-width: 160px; width: auto; filter: grayscale(100%) opacity(0.6); transition: filter 0.3s ease; }
.slide:hover img { filter: grayscale(0%) opacity(1); }

.contact-actions { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.contact-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center; }
.social-links { 
    display: flex; 
    justify-content: center; 
    width: 100%; 
}
.social-links a {
    display: inline-flex;
    transition: transform 0.3s ease;
    transform: translateX(-7px);
}
.social-links a:hover { 
    transform: scale(1.1);
}
.social-links a img {
    height: 40px;
    width: 40px;
}

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); z-index: 3000;
    display: none; align-items: center; justify-content: center;
}
.modal-content {
    background-color: var(--glass-background); border: 1px solid var(--border-color);
    border-radius: 20px; box-shadow: 0 10px 30px var(--shadow-color);
    width: 90%; max-width: 500px;
    transform: scale(0.95); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal-overlay.active { display: flex; }
.modal-overlay.active .modal-content { transform: scale(1); opacity: 1; }
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-color);
}
.modal-header h3 { margin: 0; font-size: 1.2rem; }
.close-btn {
    background: none; border: none; color: var(--text-color);
    font-size: 2rem; line-height: 1; cursor: pointer; opacity: 0.7;
}
.close-btn:hover { opacity: 1; }
.modal-body { padding: 1.5rem; }
.form-group { margin-bottom: 1rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--secondary-text-color); }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.75rem; background-color: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-color);
    font-size: 1rem; font-family: 'Montserrat', sans-serif; box-sizing: border-box;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary-accent-color);
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.5);
}
form .cta-button { width: 100%; justify-content: center; }

footer { text-align: center; padding: 2rem; border-top: 1px solid var(--border-color); margin-top: 2rem; }
.footer-glass {
    display: inline-block; background-color: var(--glass-background); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); padding: 0.5rem 1.5rem; border-radius: 30px; border: 1px solid var(--border-color);
}
footer p { margin: 0; font-size: 0.8rem; color: var(--secondary-text-color); }

#toast-notification {
    position: fixed; bottom: 20px; right: 20px; background-color: var(--primary-accent-color);
    color: #1a1a1f; padding: 1rem 1.5rem; border-radius: 10px; font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); opacity: 0; transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease; z-index: 4000;
}
#toast-notification.show { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
        align-items: center;
    }
    nav ul {
        width: 100%;
        justify-content: center; 
        margin-top: 1rem;
        padding-left: 0;
    }
    .hero-content h1 { font-size: 3rem; } 
    .logo-slide-track { animation-duration: 35s; } 
}

@media (max-width: 480px) { 
    .hero-content h1 { font-size: 2.5rem; } 
    #toast-notification { left: 20px; right: 20px; bottom: 20px; text-align: center; } 
}