:root {
    --primary-green: #10b981;
    --primary-green-dark: #059669;
    --primary-green-darker: #047857;
    --primary-green-light: #6ee7b7;
    --primary-green-lighter: #1fc089;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: rgba(16, 185, 129, 0.1);
    
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --text-white: #ffffff;
    
    --gray-100: #f9fafb;
    --gray-200: #d1d5db;
    --gray-300: #9ca3af;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #1a1a1a;
    
    --border-color: #d1d5db;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

body.dark-mode {
    --bg-primary: #1a1a1a;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: rgba(16, 185, 129, 0.2);
    
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-tertiary: #9ca3af;
    
    --gray-100: #2d2d2d;
    --gray-200: #404040;
    --gray-700: #d1d5db;
    --gray-800: #f9fafb;
    
    --border-color: #404040;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.4);
}

*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html 
{
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

.container 
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hidden 
{
    display: none !important;
}
.header-desktop 
{
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--primary-green-lighter);
    backdrop-filter: blur(8px);
}

.header-container 
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content 
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-title 
{
    color: var(--text-white);
    font-size: 1.25rem;
    font-weight: 500;
}

.nav-desktop 
{
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.btn-curriculum {
    background: var(--text-white);
    color: var(--primary-green-dark);
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
    text-decoration: none;
}

.btn-curriculum:hover {
    background: rgba(255, 255, 255, 0.9);
}

.header-mobile {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(8px);
}

.header-mobile-content {
    padding: 0 1rem;
}

.header-mobile-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.header-mobile-title {
    color: var(--text-white);
    font-size: 1.125rem;
    font-weight: 500;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-white);
    padding: 0.5rem;
    cursor: pointer;
}

.menu-icon,
.close-icon {
    width: 24px;
    height: 24px;
}

.sidebar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 16rem;
    background: linear-gradient(to bottom, var(--primary-green), var(--bg-tertiary));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 40;
}

.sidebar-mobile.open {
    transform: translateX(0);
}

.sidebar-content {
    padding-top: 5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-link {
    color: var(--text-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.sidebar-button {
    margin-top: 2rem;
}

.btn-curriculum-mobile {
    width: 100%;
    background: var(--text-white);
    color: var(--primary-green-dark);
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-curriculum-mobile:hover {
    background: rgba(255, 255, 255, 0.9);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 30;
    display: none;
}

.mobile-overlay.show {
    display: block;
}

.hero {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--primary-green), var(--primary-green-light), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
    position: relative;
}

.hero-content {
    text-align: center;
    padding: 0 1.5rem;
    transition: transform 0.1s ease-out, opacity 0.1s ease-out;
    will-change: transform, opacity;
}

.hero-title {
    font-size: 3rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: var(--text-white);
    color: var(--primary-green-dark);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.btn-secondary {
    background: var(--text-white);
    color: var(--primary-green-dark);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: var(--shadow-md);
    font-weight: 500;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.skills {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-card {
    background: var(--bg-secondary);
    padding: 2rem;
    margin: 30px;
    border-radius: 1rem;
    transition: box-shadow 0.3s ease;
}

.skill-card:hover {
    box-shadow: var(--shadow-lg);
}

.skill-icon {
    color: var(--primary-green-dark);
    margin-bottom: 1rem;
}

.skill-icon i {
    width: 48px;
    height: 48px;
}

.skill-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.skill-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-tertiary);
    color: var(--primary-green-darker);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.projects {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    gap: 2rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
}

.project-image {
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-image:hover img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-green-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--primary-green-darker);
}

.project-link i {
    width: 18px;
    height: 18px;
}

.contact {
    padding: 5rem 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-section-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon i {
    color: var(--primary-green-dark);
    width: 20px;
    height: 20px;
}

.contact-primary {
    color: var(--text-primary);
    font-weight: 500;
}

.contact-secondary {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.social-title {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green-dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: rgba(16, 185, 129, 0.2);
}

.social-link i {
    width: 20px;
    height: 20px;
}

.contact-form-container {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 1rem;
}

.form-title {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--bg-tertiary);
}

.form-textarea {
    resize: none;
}

.form-submit {
    width: 100%;
    background: var(--primary-green-dark);
    color: var(--text-white);
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.form-submit:hover {
    background: var(--primary-green-darker);
}

.footer {
    background: var(--gray-800);
    color: var(--text-white);
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.footer-text {
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-subtitle {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-tertiary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-white);
}

.footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--text-tertiary);
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: var(--text-tertiary);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
    
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) {
    .header-desktop {
        display: block;
    }
    
    .header-mobile {
        display: none;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.social-media
{
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.hero-image
{
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

#darkmode-toggle 
{
    display: none;
}

.toggle-label 
{
    position: relative;
    display: block;
    width: 60px; 
    height: 30px; 
    background-color: var(--gray-200); 
    border-radius: 30px; 
    cursor: pointer;
    transition: background-color 0.3s;
}

.toggle-label::after 
{
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    background-color: var(--text-white);
    border-radius: 50%;
    transition: transform 0.3s, background-color 0.3s;
}

#darkmode-toggle:checked + .toggle-label 
{
    background-color: var(--primary-green-dark);
}

#darkmode-toggle:checked + .toggle-label::after 
{
    transform: translateX(30px);
    background-color: var(--text-white); 
}

.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.skill-card.animate-ready {
    transform: translateY(30px) scale(0.95);
}

.skill-card.animate-in {
    transform: translateY(0) scale(1) !important;
}

.project-card.animate-ready {
    transform: translateY(40px);
    opacity: 0;
}

.project-card.animate-in {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

.contact-item.animate-ready {
    transform: translateX(-30px);
    opacity: 0;
}

.contact-item.animate-in {
    transform: translateX(0) !important;
    opacity: 1 !important;
}

.social-link.animate-ready {
    transform: scale(0);
    opacity: 0;
}

.social-link.animate-in {
    transform: scale(1) !important;
    opacity: 1 !important;
}

.hero-content,
.hero-image,
.animate-ready {
    backface-visibility: hidden;
    perspective: 1000px;
}