:root {
    --bg-color: #0b0f19;
    --bg-surface: #151b2b;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --accent-primary: #00ff88;
    --accent-secondary: #00b8ff;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(21, 27, 43, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-color: #f8f9fa;
    --bg-surface: #ffffff;
    --text-primary: #212529;
    --text-secondary: #495057;
    --accent-primary: #2f9e44;
    --accent-secondary: #0e76a8;
    --border-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 700;
}

p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Glassmorphism Navbar */
.navbar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: var(--bg-surface) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar-brand .fa-linkedin, .navbar-brand .fa-github {
    color: var(--text-primary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-brand:hover .fa-linkedin {
    color: #0e76a8;
    transform: scale(1.1);
}

.navbar-brand:hover .fa-github {
    color: var(--accent-primary);
    transform: scale(1.1);
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    position: relative;
    padding-bottom: 6px;
    transition: color 0.3s ease;
}

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

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.35s ease;
    border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar-toggler {
    border-color: var(--border-color);
}

#menuIcon {
    color: var(--text-primary);
}

/* Sections Global */
section {
    scroll-margin-top: 100px;
    margin-bottom: 80px;
}

#work-experience {
    padding-top: 0.1px;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1b263b 0%, var(--bg-color) 70%);
    overflow: hidden;
}

body.light-mode .hero-section {
    background: radial-gradient(circle at center, #e0f2fe 0%, var(--bg-color) 70%);
}

/* Background animated elements for Hero */
.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: rgba(0, 255, 136, 0.2);
    animation-delay: 0s;
}

.shape-2 {
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: rgba(0, 184, 255, 0.2);
    animation-delay: -5s;
}

body.light-mode .shape-1 {
    background: rgba(47, 158, 68, 0.1);
}

body.light-mode .shape-2 {
    background: rgba(14, 118, 168, 0.1);
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(20deg); }
}

.hero-content {
    z-index: 2;
    text-align: center;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content h3 {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.typing-cursor {
    display: inline-block;
    margin-left: 2px;
    color: var(--accent-primary);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0; }
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--text-secondary);
    z-index: 2;
    animation: bounce 2s infinite;
    transition: color 0.3s;
}

.scroll-down:hover {
    color: var(--accent-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(10px); }
    60% { transform: translateX(-50%) translateY(5px); }
}

/* Glass Cards */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 50%);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card.accent-hover:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

/* Skills icons */
.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.skills-list li::before {
    content: '\f105'; /* FontAwesome angle-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-primary);
    margin-right: 10px;
    font-size: 0.8rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 20px;
}

.tool-item i {
    font-size: 2.5rem;
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.tool-item:hover i {
    color: var(--accent-primary);
    transform: scale(1.2);
}

.tool-item p {
    font-size: 0.85rem;
    margin-top: 10px;
}

/* Timeline for Experience and Study */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    --bg-alpha: rgba(0, 255, 136, 0.1);
    --shadow-alpha: rgba(0, 184, 255, 0.05);
}

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

.timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 10px 30px var(--shadow-alpha);
}

.timeline-date {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-alpha);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Company Themes */
.timeline-globalpay {
    --accent-primary: #00b8ff;
    --accent-secondary: #0051ff;
    --bg-alpha: rgba(0, 184, 255, 0.1);
    --shadow-alpha: rgba(0, 81, 255, 0.05);
}

.timeline-carossi {
    --accent-primary: #ffaa00;
    --accent-secondary: #ff3300;
    --bg-alpha: rgba(255, 170, 0, 0.1);
    --shadow-alpha: rgba(255, 51, 0, 0.05);
}

.timeline-esfe {
    --accent-primary: #b042ff;
    --accent-secondary: #ff0073;
    --bg-alpha: rgba(176, 66, 255, 0.1);
    --shadow-alpha: rgba(255, 0, 115, 0.05);
}

/* Image styles */
.profile-img {
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: transform 0.5s ease, border-color 0.5s ease;
    filter: grayscale(20%);
}

.profile-img:hover {
    transform: scale(1.02);
    border-color: var(--accent-primary);
    filter: grayscale(0%);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.15);
}

/* Contact Info */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--bg-surface);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.contact-item a, .contact-item span {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Theme Button */
.floating-theme-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.floating-theme-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
/* Technology Badge Colors */
.tech-csharp { color: #9b4993 !important; }
.tech-net { color: #512bd4 !important; }
.tech-mysql { color: #e48e00 !important; }
.tech-php { color: #777bb4 !important; }
.tech-bootstrap { color: #7952b3 !important; }
.tech-html { color: #e34f26 !important; }
.tech-css { color: #1572b6 !important; }
.tech-js { color: #f7df1e !important; }
body.light-mode .tech-js { color: #a18d00 !important; }

/* Tool Icons Brand Colors */
.color-linux { color: #f5f5f5 !important; }
body.light-mode .color-linux { color: #000000 !important; }
.color-git { color: #F05032 !important; }
.color-github { color: #ffffff !important; }
body.light-mode .color-github { color: #181717 !important; }
.color-claude { color: #d97757 !important; }
.color-antigravity { color: #a100ff !important; }
.color-android { color: #3DDC84 !important; }
.color-sqlserver { color: #CC292B !important; }
.color-mysql { color: #00758F !important; }
.color-aws { color: #FF9900 !important; }
.color-wordpress { color: #21759B !important; }

/* Override default hover for tools with specific colors */
.tool-item:hover i[class*="color-"] {
    filter: brightness(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content h3 { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
}
