:root {
    --primary: #007aff;
    --primary-rgb: 0, 122, 255;
    --secondary: #f0f7ff;
    --accent: #0056b3;
    --text: #2d2d2d;
    --text-light: #6b7280;
    --background: #ffffff;
    --surface: #ffffff;
    --radius: 12px;
}

[data-theme="dark"] {
    --primary: #60a5fa;
    --primary-rgb: 96, 165, 250;
    --secondary: #1a1f2e;
    --accent: #93c5fd;
    --text: #ffffff;
    --text-light: #9ca3af;
    --background: #0f172a;
    --surface: #1e293b;
}

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

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navbar */
.navbar {
    height: 80px;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    height: 45%;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img.theme-logo {
    height: 100%;
    width: auto;
    object-fit: contain;
    content: url("../img/logo-tema-claro.webp");
}

[data-theme="dark"] .logo img.theme-logo {
    content: url("../img/logo-tema-escuro.webp");
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.nav-btn {
    background: var(--primary);
    color: var(--background) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, var(--background) 0%, var(--secondary) 100%);
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%23007aff' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(-50, 0)'/%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%23007aff' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(0, 20)'/%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%23007aff' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(50, 40)'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: repeat;
    opacity: 1;
    z-index: 0;
}

[data-theme="dark"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%2360a5fa' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(-50, 0)'/%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%2360a5fa' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(0, 20)'/%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%2360a5fa' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(50, 40)'/%3E%3C/svg%3E");
    opacity: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--background) 0%, rgba(240, 247, 255, 0.4) 100%);
    opacity: 0.95;
    z-index: 0;
}

[data-theme="dark"] .hero::after {
    background: linear-gradient(135deg, var(--background) 0%, transparent 100%);
    opacity: 0.9;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.subtitle {
    display: inline-block;
    background: var(--surface);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: var(--primary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.2rem);
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-btns {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

.hero-btns .btn {
    min-width: 150px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
    background: var(--primary);
    color: var(--background);
    border: none;
    cursor: pointer;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-2px);
}

/* Skills Section */
.skills {
    padding: 60px 0;
    background: var(--secondary);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    width: 100%;
    padding: 2rem 0;
}

.skills-swiper {
    width: 100%;
    padding: 2rem 0 4rem;
}

.skills-swiper .swiper-slide {
    height: auto;
}

.skill-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    height: 100px;
}

.skill-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: rgba(var(--primary-rgb), 0.1);
}

.skill-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 12px;
    color: var(--background);
}

.skill-icon i {
    font-size: 1.5rem;
}

.skill-info {
    flex: 1;
}

.skill-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.skill-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Swiper Navigation */
.skills-swiper .swiper-button-next,
.skills-swiper .swiper-button-prev {
    color: var(--primary);
    background: var(--surface);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    top: 100px;
    margin-top: 0;
}

.skills-swiper .swiper-button-next:after,
.skills-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
}

.skills-swiper .swiper-button-next:hover,
.skills-swiper .swiper-button-prev:hover {
    background: var(--primary);
    color: var(--background);
}

/* Swiper Pagination */
.skills-swiper .swiper-pagination {
    position: relative;
    bottom: 0;
    margin-top: 2rem;
}

.skills-swiper .swiper-pagination-bullet {
    background: var(--primary);
    opacity: 0.5;
    width: 8px;
    height: 8px;
}

.skills-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Responsive Styles */
@media (min-width: 768px) {
    .skills-swiper {
        padding: 2rem 4rem;
    }
}

@media (max-width: 767px) {
    .skills-swiper {
        padding: 2rem 1rem;
    }
    
    .skill-card {
        padding: 1.25rem;
    }
}

/* Dark Theme Adjustments */
[data-theme="dark"] .skills-swiper .swiper-button-next,
[data-theme="dark"] .skills-swiper .swiper-button-prev {
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .skills-swiper .swiper-button-next:hover,
[data-theme="dark"] .skills-swiper .swiper-button-prev:hover {
    background: var(--primary);
    color: var(--background);
}

/* Projects Section */
.projects {
    padding: 60px 0 80px;
    background: var(--background);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.projects.opensource {
    background: var(--secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    padding-bottom: 8px;
}

.project-card {
    width: 100%;
    padding: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.08) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 350px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

@keyframes shine {
    to {
        background-position-x: -200%;
    }
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

.project-image[src*="via.placeholder.com"] {
    opacity: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.project-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover .project-image-container::after {
    opacity: 0.7;
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text);
    font-size: 1.3rem;
}

.project-card p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.project-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.project-techs span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--text-light);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text);
    white-space: nowrap;
}

.project-link {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--background);
    text-decoration: none;
    font-weight: 500;
    border-radius: var(--radius);
    transition: opacity 0.3s ease;
}

.project-link:hover {
    opacity: 0.9;
}

.project-link i {
    font-size: 1.2rem;
}

@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-card {
        min-height: auto;
    }
    
    .project-image-container {
        height: 180px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .navbar {
        height: 70px;
    }

    .logo {
        height: 50%;
    }

    .project-image {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .projects {
        padding: 60px 0 80px;
    }

    .project-card {
        min-height: auto;
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .project-content {
        padding: 1.25rem;
    }
    
    .project-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .project-card p {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
    }
    
    .project-techs span {
        padding: 0.2rem 0.5rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 100px 0 50px;
    }

    .subtitle {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        min-width: auto;
    }

    .contact-form .btn {
        width: 100%;
    }

    .section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .project-image {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* Contact Form */
.contact {
    padding: 60px 0;
    background: var(--background);
}

.contact-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--text-light);
    border-radius: var(--radius);
    background: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--surface);
}

.form-group label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--text-light);
    background: var(--surface);
    padding: 0 0.5rem;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background: var(--surface);
    padding: 0 0.5rem;
    color: var(--text);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: left;
    font-weight: 500;
    display: none;
    position: relative;
    padding-left: 50px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.form-message::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

.form-message.success {
    display: block;
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.success::before {
    content: "\f00c";
    color: #059669;
}

.form-message.error {
    display: block;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-message.error::before {
    content: "\f00d";
    color: #dc2626;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    background: var(--secondary);
}

.social-links {
    margin-bottom: 1rem;
}

.social-links a {
    color: var(--text);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    color: var(--accent);
}

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Language Toggle Button */
.lang-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.5rem;
    transition: color 0.3s ease;
}

.lang-toggle:hover {
    color: var(--primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.theme-toggle:hover {
    color: var(--primary);
}

/* Dark Theme Adjustments */
[data-theme="dark"] .navbar {
    background: rgba(18, 18, 18, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .skill-card,
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.15) 100%);
    border-color: var(--text-light);
    color: var(--text);
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
    border-color: var(--accent);
}

[data-theme="dark"] .form-group label {
    background: var(--surface);
}

[data-theme="dark"] .form-group input:focus ~ label,
[data-theme="dark"] .form-group textarea:focus ~ label,
[data-theme="dark"] .form-group input:valid ~ label,
[data-theme="dark"] .form-group textarea:valid ~ label {
    background: var(--surface);
    color: var(--text);
}

[data-theme="dark"] .project-card {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.15) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .project-techs span {
    background: var(--secondary);
    border-color: transparent;
    color: var(--text);
}

[data-theme="dark"] .btn {
    background: var(--primary);
    color: var(--background);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--primary);
    color: var(--background);
}

[data-theme="dark"] .nav-btn {
    background: var(--primary);
    color: var(--background) !important;
}

[data-theme="dark"] .project-link {
    background: var(--primary);
    color: var(--background);
}

/* Career Section */
.career {
    padding: 60px 0;
    background: var(--background);
}

.career h2 {
    margin-bottom: 2rem;
}

.career .container {
    max-width: 1100px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.career-content {
    max-width: 1000px;
    margin: 0 auto;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    width: 100%;
}

.career-highlight {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.05) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

.career-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.1);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.career-highlight h3 {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.career-highlight h3 i {
    font-size: 1.5rem;
}

.career-highlight p {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.career-timeline {
    margin-top: 4rem;
    position: relative;
    padding: 2rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.career-timeline h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.timeline-item {
    padding-left: 2rem;
    border-left: 2px solid var(--primary);
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
}

.career-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    width: 100%;
}

.stat-item {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .career-grid,
    .career-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

[data-theme="dark"] .career-highlight,
[data-theme="dark"] .career-timeline,
[data-theme="dark"] .stat-item {
    background: linear-gradient(135deg, var(--surface) 0%, rgba(var(--primary-rgb), 0.15) 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .career-highlight:hover {
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.2);
}

[data-theme="dark"] .hero {
    background: linear-gradient(135deg, var(--background) 0%, var(--surface) 100%);
}

[data-theme="dark"] .hero::before {
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%2360a5fa' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(-50, 0)'/%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%2360a5fa' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(0, 20)'/%3E%3Cpath d='M10 35c15 -25, 35 -25, 50 0s35 25, 50 0' stroke='%2360a5fa' stroke-width='0.5' fill='none' stroke-opacity='0.07' transform='translate(50, 40)'/%3E%3C/svg%3E");
    opacity: 1;
}

/* Scroll Reveal Animations */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-100px);
}

.reveal-right {
    transform: translateX(100px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Animation Delays */
.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

.delay-4 {
    transition-delay: 0.8s;
}

.delay-5 {
    transition-delay: 1s;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--background);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        display: flex;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: calc(var(--item-index) * 0.1s);
    }

    .nav-menu.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        position: static;
    }
}

/* Additional Mobile Adjustments */
@media (max-width: 480px) {
    .hero {
        padding: 100px 0 50px;
    }

    .subtitle {
        font-size: 0.85rem;
        padding: 0.5rem 1.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        min-width: auto;
    }

    .section {
        padding: 50px 0;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

section {
    width: 100%;
    overflow: hidden;
}

.container {
    overflow: hidden;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--background);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        display: flex;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transition-delay: calc(var(--item-index) * 0.1s);
    }

    .nav-menu.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-btn {
        width: 100%;
        justify-content: center;
    }

    .theme-toggle {
        margin-left: 0.5rem;
        position: static;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--background);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    background: var(--accent);
}

[data-theme="dark"] .scroll-to-top {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Section Titles */
section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

[data-theme="dark"] section h2 {
    background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 768px) {
    section h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 480px) {
    section h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

/* Section Description */
.section-description {
    text-align: center;
    margin: -1rem auto 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.section-description strong {
    color: var(--text);
    font-weight: 500;
}

[data-theme="dark"] .section-description strong {
    color: var(--primary);
}

@media (max-width: 768px) {
    .section-description {
        font-size: 1rem;
        margin: -0.5rem auto 2.5rem;
    }
}

@media (max-width: 480px) {
    .section-description {
        font-size: 0.95rem;
        margin: -0.5rem auto 2rem;
        line-height: 1.6;
    }
}

/* About Section */
.about-container {
    display: block;
    margin-bottom: 3rem;
    position: relative;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.about-container::after {
    content: "";
    display: table;
    clear: both;
}

.profile-image-container {
    float: left;
    width: 250px;
    height: 250px;
    margin: 0 2.5rem 2rem 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.2);
    border: 6px solid var(--surface);
    position: relative;
    transform: rotate(0deg);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: 1.5s shine linear infinite;
}

.profile-image-container::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 3px dashed rgba(var(--primary-rgb), 0.4);
    border-radius: 24px;
    z-index: -1;
}

.profile-image-container:hover {
    transform: rotate(0deg);
    box-shadow: 0 12px 24px rgba(var(--primary-rgb), 0.3);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.about-container .section-description {
    text-align: left;
    margin: 0 0 1.5rem;
    padding: 0;
    display: block;
    overflow: visible;
    line-height: 1.8;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .profile-image-container {
        float: none;
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }
    
    .about-container .section-description {
        text-align: center;
    }
}

[data-theme="dark"] .profile-image-container {
    border-color: var(--surface);
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.3);
    background: linear-gradient(110deg, #1e293b 8%, #2d3748 18%, #1e293b 33%);
}

[data-theme="dark"] .profile-image-container::before {
    border-color: rgba(var(--primary-rgb), 0.4);
}

[data-theme="dark"] .profile-image-container::after {
    background: linear-gradient(to top, rgba(var(--primary-rgb), 0.3), transparent);
}

