:root {
    --primary: #8b5cf6;
    --secondary: #a855f7;
    --accent: #c084fc;
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-light: #2a2a2a;
    --text-primary: #fff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    --gradient-alt: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    --shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.1);
    --radius: 0.8rem;
    --transition: all 0.3s ease;
    --bg-primary: var(--dark-bg);
    --bg-secondary: var(--dark-surface);
    --bg-tertiary: var(--dark-light);
    --border-color: rgba(139, 92, 246, 0.2);
    --header-bg: rgba(10, 10, 26, 0.95);
    --input-bg: var(--dark-surface);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
}

[data-theme="light"] {
    --primary: #7c3aed;
    --secondary: #8b5cf6;
    --accent: #a855f7;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --bg-primary: #fff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --border-color: rgba(124, 58, 237, 0.2);
    --header-bg: rgba(255, 255, 255, 0.95);
    --input-bg: #fff;
    --shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.1);
    --gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    --gradient-alt: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-align: center;
    border-radius: var(--radius);
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow);
}

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

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 3.6rem;
    font-weight: 700;
    margin-bottom: 1.6rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 7rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.logo-icon,
.logo-fallback {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: var(--transition);
}

.logo-fallback {
    display: none;
    background: var(--gradient);
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
}

.nav-logo h2 {
    font-size: 2.4rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.theme-icon-light,
.theme-icon-dark {
    position: absolute;
    font-size: 1.8rem;
    color: var(--primary);
    transition: all 0.3s ease;
}

.theme-toggle:hover .theme-icon-light,
.theme-toggle:hover .theme-icon-dark {
    color: white;
}

[data-theme="dark"] .theme-icon-light {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-dark {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="light"] .theme-icon-light {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

[data-theme="light"] .theme-icon-dark {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav-link {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Estilos para o botão de download do currículo */
.cv-download {
    display: flex !important;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.6rem;
    background: var(--gradient) !important;
    border-radius: var(--radius);
    color: white !important;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.cv-download:hover {
    background: var(--gradient-alt) !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -3px rgba(139, 92, 246, 0.2);
}

.cv-download::after {
    display: none !important;
}

.cv-download i {
    font-size: 1.4rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 1rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary);
    margin: 3px 0;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1.6rem;
}

.hero-description {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 3.2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-card {
    background: var(--bg-secondary);
    border-radius: 2rem;
    padding: 4rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--primary), transparent);
    animation: rotate 4s linear infinite;
    z-index: -1;
}

.profile-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-secondary);
    border-radius: inherit;
    z-index: -1;
}

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--gradient);
    overflow: hidden;
    position: relative;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.profile-img:hover img {
    transform: scale(1.05);
}

.profile-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--primary);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.about {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

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

.about-text p {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 2.4rem;
    line-height: 1.8;
}

.skills {
    margin-top: 4rem;
}

.skills h3 {
    font-size: 2.4rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    background: var(--bg-primary);
    padding: 2.4rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.skill-item i {
    font-size: 3rem;
    color: var(--primary);
}

.skill-item span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.certifications {
    padding: 10rem 0;
    background: var(--bg-primary);
}

.certifications-content {
    max-width: 1200px;
    margin: 0 auto;
}

.certifications-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.stat-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.6s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.stat-card:hover::before {
    left: 100%;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon i {
    font-size: 2.4rem;
    color: white;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.certification-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.cert-header {
    padding: 2.4rem;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.cert-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-icon i {
    font-size: 2rem;
    color: white;
}

.cert-info {
    flex: 1;
}

.cert-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.cert-institution {
    font-size: 1.4rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cert-status {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 600;
    flex-shrink: 0;
}

.cert-status.verified {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success-color);
}

.cert-status.in-progress {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning-color);
}

.cert-details {
    padding: 2.4rem;
}

.cert-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.cert-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.cert-skill {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

[data-theme="light"] .cert-skill {
    background: rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.2);
}

.cert-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.cert-date,
.cert-duration {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: var(--text-muted);
}

.cert-date i,
.cert-duration i {
    font-size: 1.2rem;
    color: var(--primary);
}

.projects {
    padding: 10rem 0;
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.project-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.project-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    gap: 1rem;
}

.project-fallback span {
    font-size: 1.2rem;
    font-weight: 600;
}

.project-content {
    padding: 2.4rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 1.4rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 1.2rem;
    font-weight: 500;
}

[data-theme="light"] .tag {
    background: rgba(124, 58, 237, 0.15);
    color: var(--primary);
}

.project-links {
    display: flex;
    gap: 1.6rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.project-link:hover {
    color: var(--accent);
}

/* Contact */
.contact {
    padding: 10rem 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
    color: var(--text-primary);
}

.contact-info p {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.contact-items {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary);
    width: 24px;
}

.contact-item div {
    display: flex;
    flex-direction: column;
}

.contact-item span:first-child {
    font-size: 1.4rem;
    color: var(--text-muted);
    font-weight: 600;
}

.contact-item span:last-child,
.contact-item a {
    font-size: 1.6rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 1.6rem;
}

.social-link {
    width: 4.8rem;
    height: 4.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 2.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.6rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-size: 1.4rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

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

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.footer-content i {
    color: var(--primary);
    margin: 0 0.4rem;
}

.back-to-top {
    position: fixed;
    bottom: 3rem;
    right: 3rem;
    width: 5rem;
    height: 5rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    cursor: pointer;
}

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

.back-to-top:hover {
    transform: translateY(-3px);
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40%,
    43% {
        transform: translateX(-50%) translateY(-10px);
    }

    70% {
        transform: translateX(-50%) translateY(-5px);
    }

    90% {
        transform: translateX(-50%) translateY(-2px);
    }
}

@media (max-width: 768px) {

    .container,
    .nav-container {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 7rem;
        flex-direction: column;
        background: var(--header-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(10px);
        padding: 2rem 0;
        height: calc(100vh - 7rem);
        overflow-y: auto;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1.5rem 0;
        font-size: 1.8rem;
        display: block;
        width: 100%;
    }

    .cv-download {
        justify-content: center;
        width: 100%;
        margin: 1rem 0;
        padding: 1.2rem 2rem;
        min-height: 48px;
    }

    .nav-logo h2 {
        font-size: 1.8rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .theme-toggle .theme-icon-light,
    .theme-toggle .theme-icon-dark {
        font-size: 1.6rem;
    }

    .hero {
        padding: 8rem 0 4rem;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-container {
        width: 100%;
        padding: 0 1.5rem;
    }

    .hero-content {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2rem;
        align-items: center;
        min-height: 60vh;
    }

    .hero-text {
        text-align: left;
        order: 1;
    }

    .hero-image {
        order: 2;
        justify-self: end;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .hero-description {
        font-size: 1.3rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        max-width: 200px;
    }

    .btn {
        padding: 1rem 1.8rem;
        font-size: 1.3rem;
        min-height: 44px;
    }

    .profile-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .scroll-indicator {
        bottom: 2rem;
        font-size: 1.8rem;
    }

    .certifications,
    .about,
    .projects,
    .contact {
        padding: 6rem 0;
    }

    .section-header {
        margin-bottom: 4rem;
    }

    .section-title {
        font-size: 2.6rem;
    }

    .section-subtitle {
        font-size: 1.5rem;
    }

    .certifications-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 4rem;
    }

    .stat-card {
        padding: 2rem 1.5rem;
    }

    .stat-icon {
        width: 50px;
        height: 50px;
    }

    .stat-icon i {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .stat-label {
        font-size: 1.3rem;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .certification-card {
        margin-bottom: 1rem;
    }

    .cert-header {
        padding: 2rem;
        flex-wrap: wrap;
    }

    .cert-icon {
        width: 45px;
        height: 45px;
    }

    .cert-icon i {
        font-size: 1.8rem;
    }

    .cert-title {
        font-size: 1.6rem;
    }

    .cert-institution {
        font-size: 1.3rem;
    }

    .cert-status {
        width: 35px;
        height: 35px;
        font-size: 1.4rem;
    }

    .cert-details {
        padding: 2rem;
    }

    .cert-description {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .cert-skills {
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .cert-skill {
        font-size: 1.1rem;
        padding: 0.3rem 0.8rem;
    }

    .cert-meta {
        gap: 1.5rem;
        flex-direction: column;
    }

    .cert-date,
    .cert-duration {
        font-size: 1.2rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 1.5rem;
    }

    .skill-item {
        padding: 1.8rem 1rem;
        min-height: 100px;
    }

    .skill-item i {
        font-size: 2.5rem;
    }

    .project-content {
        padding: 2rem;
    }

    .project-title {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .project-links {
        flex-direction: column;
        gap: 1rem;
    }

    .project-link {
        background: rgba(139, 92, 246, 0.1);
        padding: 1rem;
        border-radius: 6px;
        justify-content: center;
        min-height: 44px;
    }

    [data-theme="light"] .project-link {
        background: rgba(124, 58, 237, 0.1);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-item {
        padding: 1rem;
        background: rgba(139, 92, 246, 0.05);
        border-radius: 8px;
        margin-bottom: 1.5rem;
    }

    [data-theme="light"] .contact-item {
        background: rgba(124, 58, 237, 0.08);
    }

    .social-links {
        justify-content: flex-start;
        gap: 1.5rem;
    }

    .social-link {
        width: 4.5rem;
        height: 4.5rem;
        font-size: 1.8rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 1.4rem;
        min-height: 48px;
    }

    .form-group textarea {
        min-height: 120px;
    }

    .back-to-top {
        bottom: 2rem;
        right: 2rem;
        width: 5rem;
        height: 5rem;
    }
}

@media (max-width: 600px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
        order: 2;
    }

    .hero-image {
        order: 1;
        justify-self: center;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-subtitle {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 1.4rem;
    }

    .hero-buttons {
        max-width: 280px;
        margin: 0 auto;
    }

    .profile-card {
        padding: 2rem;
    }

    .profile-img {
        width: 140px;
        height: 140px;
    }

    .certifications-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
        gap: 1rem;
    }

    .cert-header {
        padding: 1.5rem;
        gap: 1rem;
    }

    .cert-details {
        padding: 1.5rem;
    }

    .cert-meta {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    .container,
    .nav-container {
        padding: 0 1rem;
    }

    .nav-logo h2 {
        font-size: 1.6rem;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .theme-toggle .theme-icon-light,
    .theme-toggle .theme-icon-dark {
        font-size: 1.4rem;
    }

    .hero-title {
        font-size: 2.4rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .btn {
        font-size: 1.2rem;
        padding: 1rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-item {
        padding: 1.5rem 0.8rem;
        min-height: 80px;
    }

    .skill-item i {
        font-size: 2rem;
    }

    .skill-item span {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
    }

    .profile-card {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .stat-icon {
        width: 45px;
        height: 45px;
    }

    .stat-icon i {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.4rem;
    }

    .cert-header {
        padding: 1.2rem;
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .cert-icon {
        width: 40px;
        height: 40px;
    }

    .cert-icon i {
        font-size: 1.6rem;
    }

    .cert-title {
        font-size: 1.4rem;
    }

    .cert-institution {
        font-size: 1.2rem;
    }

    .cert-details {
        padding: 1.2rem;
    }

    .cert-description {
        font-size: 1.2rem;
    }

    .cert-skills {
        gap: 0.4rem;
    }

    .cert-skill {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 360px) {
    .nav-logo h2 {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        max-width: 240px;
    }

    .btn {
        font-size: 1.1rem;
        padding: 0.9rem 1.3rem;
    }

    .profile-img {
        width: 100px;
        height: 100px;
    }

    .profile-card {
        padding: 1.2rem;
    }

    .theme-toggle {
        width: 32px;
        height: 32px;
    }

    .theme-toggle .theme-icon-light,
    .theme-toggle .theme-icon-dark {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 1.6rem;
        padding: 1.2rem 0;
    }

    .certifications-stats {
        gap: 0.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .cert-header {
        padding: 1rem;
    }

    .cert-details {
        padding: 1rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: white;
}

[data-theme="light"] ::selection {
    background: rgba(124, 58, 237, 0.2);
    color: var(--text-primary);
}