:root {
    --bg-color: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-main: #e0e0e0;
    --text-dim: #a0a0a0;
    --accent: #ffffff;
    --header-blur: rgba(15, 15, 15, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* --- Header & Blur Effect --- */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background-color: var(--header-blur);
    backdrop-filter: blur(14px); /* The Blur Effect */
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 2rem;
}

.logo a {
    font-weight: 600;
    font-size: 1.5rem;
    text-decoration: none;
    color: var(--accent);
}

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

.nav-list a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--accent);
}

/* --- Layout Containers --- */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Hero Section --- */
.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.landing-about {
    max-width: 700px;
}

.greeting {
    color: var(--text-dim);
    font-size: 1.1rem;
}

.landing-about h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin: 1rem 0;
    color: var(--accent);
}

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

.landing-about-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: black;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
}
 /* My Intreset Section */
.interests-section {
    padding: 6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.interests-container {
    max-width: 900px;
}

.interests-header {
    margin-bottom: 3rem;
}

.casual-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 700px;
    line-height: 1.7;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.interest-box h4 {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.interest-box p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.6;
}


/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.skill-card {
    background-color: var(--card-bg);
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative; 
    overflow: hidden;
    transition: transform 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-2px); 
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.skill-header span {
    font-size: 0.95rem;
    font-weight: 500;
}

.level {
    color: var(--text-dim);
    font-size: 0.8rem !important;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background-color: #333; 
    border-radius: 2px;
}

.progress {
    height: 100%;
    background-color: var(--accent); 
    border-radius: 2px;
    transition: width 1.5s cubic-bezier(0.17, 0.55, 0.55, 1);
}

/* Linux Tooltip Container */
.linux-skill {
    position: relative;
    cursor: help;
}

.linux-skill::after {
    content: attr(data-tooltip); 
    position: absolute;
    bottom: 125%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    
    /* Styling */
    background-color: var(--accent);
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    
    /* Animation - Hidden by default */
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.linux-skill::before {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent;
    
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease;
    z-index: 10;
}

.skill-card.linux-skill {
    overflow: visible;
}

.skills-grid {
    overflow: visible;
}

/* Hover State */
.linux-skill:hover::after,
.linux-skill:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* --- Projects Section --- */
.project-section {
    padding: 6rem 0;
}

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

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: border-color 0.3s ease;
}

.project-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.project-name {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-info {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-link {
    text-decoration: none;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .landing-about h1 {
        font-size: 2.5rem;
    }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.feats-section {
    padding: 6rem 0;
}

.feats-container {
    max-width: 800px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    margin-top: 2rem;
}

.feat-item {
    position: relative;
    margin-bottom: 3rem;
}

/* The Dot on the Line */
.feat-dot {
    position: absolute;
    left: calc(-2rem - 5px);
    top: 5px;
    width: 9px;
    height: 9px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.feat-title {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feat-description {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}


/* Animation trigger for feats */
.feat-item.reveal {
    transition-delay: 0.3s; 
}