:root {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.75);
    --text-color: #f8fafc;
    --accent-color: #38bdf8;
    --border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
    --bg-color: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.75);
    --text-color: #0f172a;
    --accent-color: #0284c7;
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background 0.3s, color 0.3s;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.top-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 100;
}

.control-btn {
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: 1px solid var(--border-color);
    padding: 0 14px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.section-dots {
    position: fixed;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--accent-color);
}

.hero-section {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.75);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.85));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.greeting-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
}

.highlight {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-top: 5px;
}

.location-info {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.profile-card {
    background: rgba(18, 24, 38, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 35px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    min-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.profile-avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
}

.profile-role {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 5px;
}

.link-tree-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 5px;
}

.social-icon {
    color: #94a3b8;
    font-size: 1.5rem;
    transition: 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.8rem;
    letter-spacing: 1px;
    animation: motionBounce 2.5s infinite ease-in-out;
    opacity: 0.8;
    cursor: pointer;
}

.scroll-down i {
    font-size: 1rem;
    color: var(--accent-color);
}

@keyframes motionBounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

.content-section {
    position: relative;
    min-height: 100vh;
    height: auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.75);
    z-index: 1;
}

.content-container-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
    align-items: start;
}

@media (max-width: 768px) {
    .content-container-grid {
        grid-template-columns: 1fr;
    }
}

.content-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    
    opacity: 0;
    transform: translateY(50px);
    filter: blur(10px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.content-card h2 {
    margin-bottom: 12px;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.content-card.show {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

.cyber-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cyber-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 10px;
    gap: 15px;
}

.cyber-icon {
    font-size: 3.5rem;
    color: var(--accent-color);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.cyber-content p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-color);
}

.skill-icon {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.skill-percentage {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--accent-color);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}