/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B3D;
    --secondary-color: #FF8C5A;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --accent-blue: #4A90E2;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--darker-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    background-color: var(--dark-bg);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1rem;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

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

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.highlight {
    color: var(--primary-color);
}

.no-break {
    white-space: nowrap;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background-color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}

.profile-circle {
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

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

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.highlight-text {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-top: 1rem;
}

.highlight-text strong {
    color: var(--primary-color);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item {
    text-align: center;
}

.stat-item h4 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-gray);
}

/* Skills Section */
.skills {
    padding: 80px 0;
}

.skills-content {
    display: flex;
    justify-content: center;
}

.skills-center {
    width: 100%;
    max-width: 800px;
}

.skill-bar {
    margin-bottom: 2.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.progress {
    background-color: var(--dark-bg);
    height: 12px;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    transition: width 1s ease;
}

/* Learning Progress Section - Stepper Design */
.learning-progress {
    padding: 80px 0;
    background-color: var(--dark-bg);
}

/* Stepper Wrapper */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.stepper-wrapper::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, 
        #10214d 0%, 
        #10214d 50%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.1) 100%);
    z-index: 0;
}

.stepper-item {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stepper-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.stepper-item.completed .stepper-link:hover,
.stepper-item.active .stepper-link:hover {
    transform: translateY(-5px);
}

.stepper-item.completed .stepper-link:focus,
.stepper-item.active .stepper-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.stepper-item:not(.completed):not(.active) .stepper-link {
    cursor: default;
}

.step-counter {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Completed Steps */
.stepper-item.completed .step-counter {
    background: linear-gradient(135deg, #10214d, #1a3d7a);
    color: #ffffff;
}

/* Active Step */
.stepper-item.active .step-counter {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    animation: pulse-glow 2s infinite;
    box-shadow: 0 0 20px rgba(255, 107, 61, 0.6);
}

/* Upcoming Steps */
.stepper-item:not(.completed):not(.active) .step-counter {
    background-color: var(--darker-bg);
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
}

.step-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    max-width: 120px;
}

.stepper-item.completed .step-name {
    color: #ffffff;
}

.stepper-item.active .step-name {
    color: var(--primary-color);
}

.step-progress {
    width: 80px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 107, 61, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 61, 0.9);
    }
}

/* Learning Details Cards */
.learning-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.detail-card {
    background-color: var(--darker-bg);
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid transparent;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.detail-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(255, 107, 61, 0.3);
}

.card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(255, 255, 255, 0.2);
    color: var(--text-gray);
}

.card-icon.completed {
    background: linear-gradient(135deg, #10214d, #1a3d7a);
    border-color: #10214d;
    color: #ffffff;
}

.card-icon.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--primary-color);
    color: var(--text-light);
}

.detail-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.detail-card p {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.status-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-tag.completed {
    background-color: rgba(16, 33, 77, 0.3);
    color: #ffffff;
    border: 1px solid #10214d;
}

.status-tag.active {
    background-color: rgba(255, 107, 61, 0.2);
    color: var(--primary-color);
}

.status-tag:not(.completed):not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Learning Resources Badges */
.learning-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.resource-badge {
    display: inline-block;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.resource-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 61, 0.2), transparent);
    transition: left 0.5s ease;
}

.resource-badge:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 61, 0.4);
}

.resource-badge:hover::before {
    left: 100%;
}

.resource-badge:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.resource-badge:active {
    transform: translateY(0);
}

/* Projects Section */
.projects {
    padding: 80px 0;
}

.project-category {
    margin-bottom: 4rem;
}

.category-title {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.project-card {
    background-color: var(--dark-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 400px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 107, 61, 0.2);
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

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

.project-details {
    padding: 1.5rem;
}

.project-details h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-description {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background-color: rgba(255, 107, 61, 0.2);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.project-btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.project-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 61, 0.3);
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content p {
    color: var(--text-gray);
    margin: 0.5rem 0;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: -100%;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s;
        gap: 1rem;
    }

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

    .hero-content,
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .profile-circle {
        width: 300px;
        height: 300px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .stepper-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .stepper-wrapper::before {
        display: none;
    }

    .stepper-item {
        width: 100%;
    }

    .stepper-link {
        flex-direction: row;
        justify-content: flex-start;
        width: 100%;
        background-color: var(--darker-bg);
        padding: 1.5rem;
        border-radius: 10px;
    }

    .step-counter {
        margin-right: 1rem;
        margin-bottom: 0;
    }

    .step-name {
        text-align: left;
    }

    .learning-details {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.5rem;
    }

    .profile-circle {
        width: 250px;
        height: 250px;
    }

    .category-title {
        font-size: 1.5rem;
    }

    .step-counter {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .step-name {
        font-size: 0.9rem;
    }
}