:root {
    --primary: #0d6efd;
    --bg-dark: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #1a1a1a;
    --border-color: #2a2a2a;
}

* {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 76px;
    overflow-x: hidden;
}

.text-muted {
    color: #a0a0a0 !important;
}

.lead.text-muted {
    color: #b0b0b0 !important;
}

small.text-muted {
    color: #888 !important;
}

::selection {
    background: var(--primary);
    color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.navbar {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar .nav-link {
    position: relative;
    transition: color 0.3s;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin-bottom: 20px;
    border-radius: 2px;
}

.hero-section {
    min-height: calc(100vh - 76px);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-name {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-family: 'Courier New', monospace;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.hero-image-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0.5;
}

.hero-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border: 3px solid var(--primary);
    position: relative;
    z-index: 1;
}

.social-links a {
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.info-card h6 {
    color: #e0e0e0;
}

.info-card p {
    color: #a0a0a0 !important;
}

.info-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.skill-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.skill-category-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.1);
}

.skill-item .progress {
    background: #222;
    border-radius: 10px;
}

.skill-item .progress-bar {
    border-radius: 10px;
    transition: width 1.5s ease;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-info {
    background: var(--bg-card);
}

.timeline {
    position: relative;
    padding-left: 40px;
}

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

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-icon {
    position: absolute;
    left: -32px;
    top: 0;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 2;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.timeline-content:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.form-floating > .form-control,
.form-floating > .form-select {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: #e0e0e0;
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
    background: var(--bg-dark);
    color: #e0e0e0;
}

.form-floating > label {
    color: #888;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary);
}

.form-control::placeholder {
    color: transparent;
}

.page-header {
    min-height: 40vh;
    background: linear-gradient(to bottom, var(--bg-dark), #0d1b2a);
}

.breadcrumb {
    background: transparent;
}

.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #888;
}

.project-content {
    line-height: 1.8;
}

.btn-primary {
    background: var(--primary);
    border: none;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

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

.badge {
    font-weight: 500;
}

.alert {
    border-radius: 10px;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-name {
        font-size: 2.5rem;
    }
    .hero-image {
        width: 250px;
        height: 250px;
    }
    .section-padding {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .navbar .nav-link.btn {
        margin-left: 0 !important;
        margin-top: 8px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-name {
        font-size: 2rem;
    }
    .hero-image {
        width: 200px;
        height: 200px;
    }
}
