/* ===== GENERAL STYLES ===== */
:root {
    --primary-color: #0077ff;
    --secondary-color: #25c2a0;
    --dark-color: #121212;
    --dark-light-color: #1f1f1f;
    --gray-color: #2d2d2d;
    --text-color: #f5f5f5;
    --accent-color: #0077ff;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

.accent {
    color: var(--accent-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.primary {
    background: var(--primary-color);
    color: white;
}

.primary:hover {
    background: #0055cc;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 119, 255, 0.3);
}

.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.separator {
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(18, 18, 18, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(18, 18, 18, 0.95);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu li {
    margin-left: 25px;
}

.nav-link {
    position: relative;
    padding: 5px 0;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    bottom: 0;
    left: 0;
    transition: var(--transition);
}

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

.blog-link {
    background: var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    color: white;
}

.blog-link:hover {
    background: #0055cc;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 255, 0.3);
}

.blog-link i {
    font-size: 0.8rem;
    margin-left: 5px;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(to right, rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.7)), url('images/hero-bg.jpg') no-repeat center/cover;
    padding-top: 80px;
}

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

.hero-text {
    flex: 1;
    padding-right: 30px;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 15px;
}

.hero-text h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #bbb;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #aaa;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-color);
    transition: var(--transition);
}

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

.social-icons i {
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    width: 350px;
    border-radius: 20px;
    box-shadow: var(--box-shadow);
    animation: float 5s ease-in-out infinite;
    border: 4px solid var(--primary-color);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.friendlynodes-box {
    background: var(--dark-light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.friendlynodes-box:hover {
    transform: translateY(-10px);
}

.friendlynodes-box img {
    max-width: 150px;
    margin: 20px 0;
}

.friendlynodes-box h3 {
    color: var(--primary-color);
}

/* ===== SKILLS SECTION ===== */
.skills-container {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.skills-primary, .skills-learning {
    flex: 1;
    background: var(--dark-light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.skills-primary h3, .skills-learning h3 {
    margin-bottom: 25px;
    text-align: center;
    color: var(--primary-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.progress-bar {
    height: 10px;
    background: var(--gray-color);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient);
    border-radius: 5px;
    transition: width 1.5s ease-in-out;
}

.chart-wrapper {
    height: 250px;
}

.tech-stack {
    text-align: center;
}

.tech-stack h3 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

.tech-icons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--dark-light-color);
    padding: 20px;
    border-radius: var(--border-radius);
    width: 120px;
    transition: var(--transition);
}

.tech-icon:hover {
    transform: translateY(-10px);
    background: var(--gray-color);
}

.tech-icon i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* ===== LANGUAGES CHART SECTION ===== */
.language-chart-container {
    display: flex;
    align-items: flex-start; /* Align items to the start for better spacing */
    gap: 50px; /* Increased gap for more space */
    background: var(--dark-light-color);
    padding: 50px; /* Increased padding for more space */
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.language-chart {
    flex: 1;
    max-width: 500px; /* Increased max-width for more space */
}

.language-info {
    flex: 1;
    padding-left: 30px; /* Added padding for more space */
}

.language-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px; /* Increased margin for more space */
    font-size: 1.5em; /* Increased font size for better readability */
}

.language-info p {
    margin-bottom: 20px; /* Increased margin for better spacing between paragraphs */
    line-height: 1.8; /* Increased line-height for better readability */
    font-size: 1.1em; /* Increased font size for better readability */
    color: var(--text-color); /* Ensure text color is readable */
}

.language-info ul {
    list-style-type: disc; /* Added list style for better readability */
    padding-left: 20px; /* Added padding for better spacing */
}

.language-info ul li {
    margin-bottom: 10px; /* Added margin for better spacing between list items */
    font-size: 1.1em; /* Increased font size for better readability */
    color: var(--text-color); /* Ensure text color is readable */
}

/* ===== PROJECTS SECTION ===== */
.featured-project {
    margin-bottom: 40px;
}

.featured-project h3 {
    margin-bottom: 20px;
    text-align: center;
}

.project-card {
    background: var(--dark-light-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.project-card.featured {
    border-left: 4px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-content {
    padding: 30px;
}

.project-content h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-links {
    margin-top: 20px;
}

.project-links .btn {
    margin-right: 10px;
}

.repo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.repo-card {
    background: var(--dark-light-color);
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.repo-card:hover {
    transform: translateY(-10px);
}

.repo-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.repo-card .repo-desc {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #bbb;
    flex-grow: 1;
}

.repo-card .repo-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.repo-card .repo-footer .language {
    display: flex;
    align-items: center;
}

.repo-card .repo-footer .language .lang-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.repo-card .repo-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.repo-card .repo-link:hover {
    text-decoration: underline;
}

.view-more {
    text-align: center;
    margin-top: 40px;
}

/* ===== TIMELINE SECTION ===== */
.timeline-container {
    position: relative;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    width: 3px;
    background: var(--gray-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    padding-left: 40px;
    text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
    padding-right: 40px;
    text-align: right;
}

.timeline-dot {
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-date {
    position: absolute;
    width: 110px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    text-align: center;
    top: 0;
    font-weight: 600;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: 55%;
}

.timeline-item:nth-child(even) .timeline-date {
    left: 55%;
}

.timeline-content {
    width: 45%;
    background: var(--dark-light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-10px);
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-slider {
    position: relative;
    background: var(--dark-light-color);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
}

.testimonial-card {
    text-align: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 30px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 3px solid var(--primary-color);
}

.author-info h4 {
    margin-bottom: 5px;
}

.author-info p {
    color: #bbb;
    font-size: 0.9rem;
}

.testimonial-nav {
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.testimonial-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-nav button:hover {
    background: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: flex;
    gap: 40px;
}

.contact-info, .contact-form {
    flex: 1;
    background: var(--dark-light-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 20px;
    width: 20px;
}

.contact-item h4 {
    margin-bottom: 5px;
}

.contact-item a {
    color: #bbb;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-color);
    transition: var(--transition);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--gray-color);
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-light-color);
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo a {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links h3, .footer-newsletter h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter {
    flex: 2;
    min-width: 300px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: var(--gray-color);
    border: none;
    border-radius: 5px 0 0 5px;
    color: white;
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-color);
}

.footer-bottom p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #bbb;
}

.footer-bottom i {
    color: #ff3366;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--box-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #0055cc;
    transform: translateY(-5px);
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .skills-container {
        flex-direction: column;
    }

    .language-chart-container {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }

    .timeline-container::before {
        left: 40px;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        text-align: left !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .timeline-dot {
        left: 40px;
    }

    .timeline-date {
        left: 40px !important;
        top: -40px !important;
        width: auto;
    }
}

@media screen and (max-width: 768px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--dark-color);
        width: 100%;
        height: calc(100vh - 70px);
        padding: 40px 0;
        transition: var(--transition);
        z-index: 999;
    }

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

    .nav-menu li {
        margin: 15px 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

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

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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