:root {
    --primary: #2f6fed;
    --accent: #00ff99;
    --dark-bg: #0b0e14;
    --light-text: #f8fafc;
    --muted: #94a3b8;
    --card-bg: #11161e;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--dark-bg);
    /* background: url("#doodad"); */
    color: var(--light-text);
    line-height: 1.6;
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(11, 14, 20, 0.95) !important;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(11, 14, 20, 0.98) !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: bold;
    color: var(--light-text) !important;
}

.navbar-nav .nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 111, 237, 0.1) 0%, rgba(47, 111, 237, 0) 70%);
    z-index: 0;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--light-text) 70%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h2 {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.hero-text p {
    color: var(--muted);
    max-width: 600px;
    font-size: 1.1rem;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-buttons .btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.hero-buttons .btn-primary:hover {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 153, 0.3);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.hero-img {
    position: relative;
    z-index: 1;
}

.hero-img img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 25px rgba(0, 255, 153, 0.4);
    transition: all 0.3s ease;
}

.hero-img img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 153, 0.6);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    position: relative;
    padding-left: 15px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--accent);
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

/* About Section Styling */
.about-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid var(--accent);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--accent);
}

.about-content {
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
    min-width: 200px;
}

.highlight-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 255, 153, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.2rem;
}

.highlight-text {
    flex: 1;
}

.highlight-text h5 {
    color: var(--light-text);
    margin-bottom: 0.2rem;
    font-size: 1rem;
}

.highlight-text p {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.experience-item {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.experience-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--accent);
}

.experience-item h4 {
    margin-bottom: 0.3rem;
    color: var(--accent);
}

.experience-item small {
    color: var(--muted);
    font-size: 0.9rem;
}

.experience-item ul {
    margin-top: 1rem;
    padding-left: 1.2rem;
}

.experience-item li {
    margin-bottom: 0.5rem;
    position: relative;
}

.experience-item li::marker {
    color: var(--accent);
}

.skill-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
    border-top: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-top: 3px solid var(--accent);
}

.skill-card h5 {
    color: var(--accent);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.skill-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.project-card h4 {
    margin-bottom: 0.8rem;
    color: var(--light-text);
}

.project-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.2rem;
}

.badges span {
    background: rgba(47, 111, 237, 0.15);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.badges span:hover {
    background: rgba(0, 255, 153, 0.2);
    transform: translateY(-2px);
}

/* Education Section Styling */
.education-card {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.education-card:hover::before {
    transform: scaleX(1);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.education-card h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.education-details {
    margin-bottom: 1.5rem;
}

.education-details h5 {
    color: var(--light-text);
    margin-bottom: 0.3rem;
}

.education-details p {
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.education-details .date {
    color: var(--accent);
    font-weight: 500;
}

.certifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certifications-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.certifications-list li:last-child {
    border-bottom: none;
}

.certification-name {
    color: var(--light-text);
    font-weight: 500;
}

.certification-source {
    color: var(--muted);
    font-size: 0.9rem;
}

.certification-date {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-links .btn {
    margin-right: 1rem;
    margin-top: 1rem;
    color: var(--light-text);
    border: 1px solid var(--primary);
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-links .btn:hover {
    background: var(--accent);
    color: var(--dark-bg);
    border-color: var(--accent);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Progress bars for skill ratings */
.skill-meter {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 60px;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-text h2 {
        font-size: 1.3rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.8rem;
    }

    .hero-img {
        margin-top: 2rem;
    }

    .hero-img img {
        width: 180px;
        height: 180px;
    }

    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .about-card,
    .education-card {
        padding: 1.5rem;
    }

    .highlight-item {
        min-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-links .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }
}
