/* Custom Properties (Variables) */
:root {
    --bg-dark: #191919;
    --card-bg: #222222;
    --text-light: #f5f5f5;
    --text-muted: #888888;
    --accent-orange: #ff6600; /* Adjusted from screenshot */
    --accent-blue: #007bff; /* For specific elements if needed */
    --border-color: #333333;
    --font-family: 'Inter', sans-serif;
    --section-gap: 80px;
    --card-border-radius: 8px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px; /* Adjust padding to match screenshot's internal spacing */
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: lighten(var(--accent-orange), 10%);
    text-decoration: none;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    margin-bottom: 0.5em; /* Adjust as per design */
    font-weight: 600;
}

p {
    margin-bottom: 1em; /* Adjust as per design */
}

/* Reusable Classes */
.common-padding {
    padding: var(--section-gap) 0;
}

.section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 60px; /* More space below title */
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-orange);
    border-radius: 5px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.95em;
    cursor: pointer;
}

.btn-icon {
    font-size: 0.9em;
}

.primary-btn {
    background-color: var(--accent-orange);
    color: #fff;
    border: 2px solid var(--accent-orange);
}

.primary-btn:hover {
    background-color: darken(var(--accent-orange), 10%); /* SCSS-like function, manual adjustment needed */
    background-color: #e65c00; /* Manually darkened */
    border-color: darken(var(--accent-orange), 10%);
    border-color: #e65c00;
    text-decoration: none;
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-orange);
    border: 2px solid var(--accent-orange);
}

.secondary-btn:hover {
    background-color: var(--accent-orange);
    color: #fff;
    text-decoration: none;
}

/* Navbar */
.navbar {
    background-color: var(--bg-dark);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--text-light);
}

.navbar nav ul {
    display: flex;
    gap: 35px; /* Spacing between nav items */
}

.navbar nav ul li a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95em;
    position: relative;
    padding-bottom: 5px;
}

.navbar nav ul li a:hover {
    color: var(--text-light);
    text-decoration: none;
}

.navbar nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after { /* Active state for current section */
    width: 100%;
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-dark);
    padding: 100px 0;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px); /* Adjust for navbar height */
}

.hero-section .hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px; /* Spacing between content and image */
}

.hero-content {
    flex: 2;
    min-width: 400px; /* Ensure content doesn't shrink too much */
}

.hero-content .greeting {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hero-content .name {
    font-size: 3.8em;
    font-weight: 900; /* Very bold */
    margin-bottom: 5px;
    line-height: 1.1;
}

.hero-content .name .highlight {
    color: var(--accent-orange);
}

.hero-content .title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 25px;
}

.hero-content .tagline {
    font-size: 1.1em;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    position: relative;
}

.hero-image img {
    width: 380px; /* Exact width from screenshot analysis */
    height: 380px; /* Exact height from screenshot analysis */
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--accent-orange); /* Orange border */
    box-shadow: 0 0 0 10px var(--card-bg), /* Inner dark border */
                0 0 0 12px var(--border-color); /* Outer subtle border */
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

.social-links.hero-social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: flex-start; /* Align with text */
}

.social-links.hero-social-links a {
    color: var(--text-muted);
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.social-links.hero-social-links a:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
    text-decoration: none;
}

/* About Section */
.about-section {
    background-color: var(--card-bg); /* Section background is slightly lighter dark */
}

.about-intro {
    font-size: 1.1em;
    color: var(--text-muted);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px auto; /* More space after intro text */
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* 4 columns for stats */
    gap: 30px; /* Gap between stat items */
    margin-bottom: 60px;
}

.stat-item {
    background-color: var(--bg-dark); /* Stat card background */
    padding: 30px;
    border-radius: var(--card-border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.stat-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    color: var(--text-light);
    font-size: 2.2em;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    border: 3px solid var(--accent-orange); /* Inner border */
    box-shadow: 0 0 0 6px var(--bg-dark); /* Outer dark ring */
}

.stat-text {
    font-size: 0.95em;
    color: var(--text-muted);
    line-height: 1.4;
    max-width: 180px; /* Constrain text width for aesthetic */
}

.services-offered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px; /* Space after stats */
}

.service-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: var(--card-border-radius);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.service-icon {
    font-size: 3.5em;
    color: var(--accent-orange);
    margin-bottom: 20px;
}

.service-name {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-light);
}

/* Technical Skills Section */
.technical-skills-section {
    background-color: var(--bg-dark);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.category-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 25px;
    text-align: center;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Gap between skill tags */
    justify-content: center;
}

.skill-item {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.skill-item i {
    color: var(--accent-orange);
    font-size: 1.1em;
}

.skill-item:hover {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    border-color: var(--accent-orange);
}

.skill-item:hover i {
    color: var(--bg-dark);
}


.currently-learning, .soft-skills {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px; /* Space between learning and soft skills */
}

.learning-title, .soft-skills-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 25px;
    text-align: center;
}

.learning-items, .soft-skills-items {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.learning-item, .soft-skill-item {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.learning-item:hover, .soft-skill-item:hover {
    background-color: var(--accent-orange);
    color: var(--bg-dark);
    border-color: var(--accent-orange);
}

/* Experience Section */
.experience-section {
    background-color: var(--card-bg);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 40px; /* Space between experience cards */
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 20px; /* Space for the timeline line */
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color); /* Light grey line */
}

.timeline-card {
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-left: 40px; /* Offset to align with timeline dot */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -50px; /* Position relative to card */
    top: 35px; /* Vertical alignment with job title */
    width: 16px;
    height: 16px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    border: 4px solid var(--bg-dark); /* Inner dark border */
    box-shadow: 0 0 0 2px var(--accent-orange); /* Outer orange ring */
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.timeline-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Align text baselines */
    margin-bottom: 5px;
}

.timeline-card .job-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 0; /* Override default h3 margin */
}

.timeline-card .job-duration {
    font-size: 0.9em;
    color: var(--text-muted);
    white-space: nowrap; /* Keep duration on one line */
}

.timeline-card .company-name {
    font-size: 1.1em;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 15px;
}

.timeline-card .job-achievements {
    list-style: disc;
    margin-left: 25px;
    color: var(--text-muted);
}

.timeline-card .job-achievements li {
    margin-bottom: 8px;
    font-size: 0.95em;
}

/* Projects Section */
.projects-section {
    background-color: var(--bg-dark);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--card-border-radius);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column; /* Stack content vertically */
    justify-content: space-between; /* Push button to bottom */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.project-card .project-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.project-card .project-tech {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-style: italic;
}

.project-card .project-description {
    font-size: 0.95em;
    color: var(--text-light);
    margin-bottom: 15px;
    flex-grow: 1; /* Allows it to take up available space */
}

.project-card .project-features {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.project-card .project-features li {
    margin-bottom: 5px;
    font-size: 0.9em;
}

.project-card .view-project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9em;
    margin-top: auto; /* Pushes button to the bottom of the card */
    padding: 8px 0; /* Adjust padding */
}

.project-card .view-project-btn:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact-section {
    background-color: var(--card-bg);
}

.contact-section .container.text-center {
    text-align: center;
}

.contact-tagline {
    font-size: 1.2em;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    padding: 15px 40px; /* Larger button */
    font-size: 1.1em;
    margin-top: 20px;
}

/* Footer */
.footer {
    background-color: var(--bg-dark);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-social-links {
    display: flex;
    gap: 25px;
}

.footer-social-links a {
    color: var(--text-muted);
    font-size: 1.5em;
    transition: color 0.3s ease, transform 0.2s ease;
}

.footer-social-links a:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
    text-decoration: none;
}

.copyright, .references-note {
    font-size: 0.9em;
    color: var(--text-muted);
    margin-bottom: 0;
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .hero-section .hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        order: 2; /* Content below image on smaller screens */
        min-width: unset;
        width: 100%;
    }

    .hero-image {
        order: 1; /* Image above content on smaller screens */
        margin-bottom: 0;
    }

    .hero-social-links {
        justify-content: center;
    }

    .hero-content .name {
        font-size: 3em;
    }

    .hero-content .title {
        font-size: 2em;
    }

    .about-stats {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .services-offered {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .experience-timeline {
        padding-left: 0; /* Remove padding for smaller screens */
        max-width: 600px; /* Constrain width */
        margin-left: auto;
        margin-right: auto;
    }

    .experience-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .timeline-card {
        margin-left: 0;
        margin-bottom: 40px;
        width: 100%; /* Full width */
    }

    .timeline-card::before {
        left: 50%;
        transform: translateX(-50%);
        top: -20px; /* Position dot above card */
    }

    .skills-grid {
        grid-template-columns: 1fr; /* Stack skill categories */
    }
}

@media (max-width: 768px) {
    .navbar .nav-container {
        flex-direction: column;
        text-align: center;
    }

    .navbar nav ul {
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-image img {
        width: 300px;
        height: 300px;
        border-width: 6px;
        box-shadow: 0 0 0 8px var(--card-bg), 0 0 0 10px var(--border-color);
    }

    .hero-content .name {
        font-size: 2.5em;
    }

    .hero-content .title {
        font-size: 1.8em;
    }

    .about-stats {
        grid-template-columns: 1fr; /* Stack stats on very small screens */
    }
    .stat-item {
        max-width: 300px; /* Limit width */
        margin: 0 auto;
    }

    .service-card {
        max-width: 300px; /* Limit width */
        margin: 0 auto;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .common-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2em;
        margin-bottom: 40px;
    }

    .contact-btn {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .navbar .logo {
        font-size: 1.4em;
    }

    .hero-content .name {
        font-size: 2em;
    }

    .hero-content .title {
        font-size: 1.5em;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 250px;
    }

    .stat-circle {
        width: 70px;
        height: 70px;
        font-size: 1.8em;
    }

    .service-icon {
        font-size: 3em;
    }

    .job-title {
        font-size: 1.2em;
    }

    .job-duration {
        font-size: 0.8em;
    }

    .project-card .project-title {
        font-size: 1.3em;
    }

    .footer-social-links {
        gap: 15px;
    }
}