:root {
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */

    /* Critical for the "Good Experience" */
    overflow-y: scroll; 
    -webkit-overflow-scrolling: touch; /* Smooth inertia scrolling for iOS */

    /* --- Variables for easy editing --- */
    --bg-color: #0d1117;
    --card-bg: #161b22;
    --text-primary: #c9d1d9;
    --text-secondary: #8b949e;
    --text-p-color: #a7aeb5;
    --accent-color: #58a6ff;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Hide scrollbar for Chrome, Safari and Opera */
:root::-webkit-scrollbar {
    display: none;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 50px;
}

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3 {
    color: #ffffff;
}

/* Navbar */
.navbar {
    padding: 15px 0;
    border-bottom: 1px solid #30363d;
}

.logo {
    font-size: 1.7rem;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    margin-left: 50px;
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    text-align: left;
    font-size: 1.2rem;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-p-color);
    text-align: left;
}

.hero-image img {
    border-radius: 50%;
    width: 225px;
    height: 225px;
    object-fit: cover;
    border: 3px solid #30363d;
    opacity: 0.7;
}

/* Tech Stack */
.tech-stack {
    padding: 40px 20px;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill-item {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #30363d;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: transform 0.2s;
}

.skill-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.skill-item i {
    font-size: 2rem;
}

/* Projects */
.projects {
    padding: 60px 20px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid #30363d;
    overflow: hidden;
}

.card-content {
    padding: 15px;
}

.card-content h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.card-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Timeline */
.timeline-section {
    padding: 60px 20px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #30363d;
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    right: -7px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent-color);
    top: 15px;
    left: 13px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #30363d;
}

/* Footer */
.footer {
    text-align: center;
    padding: 10px;
    border-top: 1px solid #30363d;
}

.social-links {
    margin: 2px;
}

.social-links a {
    margin: 0 10px;
    font-size: 1.1rem;
}

.websites {
    margin: 0 0 15px;
    color: var(--text-secondary);
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlighted-text {
    color: var(--text-primary);
    font-weight: 600;
}

.container > h2 {
    text-align: center;
}

.how-i-lead > div > p {
    margin-bottom: 15px;
    color: var(--text-p-color);
}

.container ul {
    padding-left: 25px;
}

.scroll-indicator {
    position: absolute;
    bottom: 1px;
    left: 50%;
}

.mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--text-secondary);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--accent-color);
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
  0% { opacity: 1; top: 5px; }
  100% { opacity: 0; top: 20px; }
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        margin-left: 20px;
    }
    .hero-inner {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 20px;
        padding-bottom: 0;
    }

    .hero-image img {
        width: 180px;
        height: 180px;
    }

    .scroll-indicator {
        display: none;
    }
}
