/* ===================
   CSS Variables  
   =================== */
:root {
    /* Using GitHub Dark-inspired colors for a professional tech feel */
    --bg-color: #0d1117;          
    --bg-color-alt: #161b22;      
    --text-main: #c9d1d9;         
    --text-heading: #f0f6fc;      
    --accent-color: #58a6ff;      /* Professional blue accent */
    --accent-hover: #3182ce;
    --card-bg: #21262d;
    --border-color: #30363d;
    
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from reveal animations */
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-color-alt);
}

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

.section-title {
    color: var(--text-heading);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Underline decoration for section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
}

/* ===================
   Buttons & General UI
   =================== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
}

/* ===================
   Navbar
   =================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
}

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

/* Hamburger menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-main);
    transition: var(--transition);
}

/* ===================
   Hero Section
   =================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Offset for navbar */
}

.hero-title {
    font-size: 4rem;
    color: var(--text-heading);
    margin-bottom: 0.5rem;
}

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

.hero-subtitle {
    font-size: 2rem;
    color: #8b949e;
    margin-bottom: 1.5rem;
}

.hero-description {
    max-width: 600px;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* ===================
   About Section
   =================== */
.about-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    max-width: 800px;
}

/* ===================
   Skills Section
   =================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-category {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

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

.skill-category h3 {
    color: var(--text-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.skill-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

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

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.card-content {
    padding: 2rem;
}

.card-title {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.card-tech span {
    font-size: 0.85rem;
    color: var(--accent-color);
    background-color: rgba(88, 166, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.card-links .link {
    margin-right: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.card-links .link:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===================
   Experience/Timeline Section
   =================== */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 10px;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: 4px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 2px solid var(--bg-color-alt);
}

.timeline-content h3 {
    color: var(--text-heading);
    font-size: 1.3rem;
}

.timeline-date {
    display: inline-block;
    color: #8b949e;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    margin-top: 0.2rem;
}

/* ===================
   Contact Section
   =================== */
.contact-desc {
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-size: 1.1rem;
}

.social-links {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links a {
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* ===================
   Footer
   =================== */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color-alt);
}

/* ===================
   Reveal Animation
   =================== */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* ===================
   Responsive Design
   =================== */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background-color: var(--card-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }
}
