/* Custom Design Token Definitions */
:root {
    --bg-darker: #0d1117;
    --bg-dark: #161b22;
    --bg-card: #21262d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    
    /* Branding Language Accents */
    --accent-sql: #00bcff;
    --accent-dotnet: #512bd4;
    --accent-js: #f7df1e;
    --accent-php: #777bb4;
    --accent-node: #339933;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-darker);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Navigation Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #30363d;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}
.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}
.nav-links a:hover {
    color: var(--text-primary);
}

/* Button UI Components */
.btn-primary-sm {
    background: #238636;
    color: #fff !important;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}
.btn-primary-sm:hover {
    background: #2ea043;
}
.btn-primary {
    display: inline-block;
    background: #21262d;
    color: var(--text-primary);
    border: 1px solid #f0f6fc33;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
}
.btn-primary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}
.btn-secondary {
    display: inline-block;
    color: var(--text-secondary);
    padding: 0.8rem 1.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.btn-secondary:hover {
    color: var(--text-primary);
}

/* Hero Section Base */
.hero-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}
.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}
.hero-text h2 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}
.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.hero-ctas {
    display: flex;
    gap: 1rem;
}

/* Top Side-by-Side Contact Custom Card Row Layout */
.hero-contact-row {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-bottom: 2.5rem;
    width: 100%;
}
.hero-contact-row .contact-card {
    flex: 1;
    justify-content: center;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Interactive Image Space */
.avatar-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto;
}
.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    border: 3px solid var(--bg-card);
    z-index: 5;
    position: relative;
}
.accent-ring {
    position: absolute;
    top: -15px;
    left: -15px;
    width: 350px;
    height: 350px;
    border: 2px dashed rgba(88, 166, 255, 0.3);
    border-radius: 32px;
    animation: rotateRing 40s linear infinite;
}

@keyframes rotateRing {
    100% { transform: rotate(360deg); }
}

/* Skills Section Framework */
.skills-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
    border-top: 1px solid #30363d;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}
.skill-card {
    background: var(--bg-dark);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: var(--transition-smooth);
    position: relative;
}
.skill-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card);
}
.skill-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}
.years-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Card Visual Color Themes */
.card-accent-sql .skill-icon, .card-accent-sql .years-badge { color: var(--accent-sql); }
.card-accent-sql:hover { border-color: var(--accent-sql); }

.card-accent-dotnet .skill-icon, .card-accent-dotnet .years-badge { color: var(--accent-dotnet); }
.card-accent-dotnet:hover { border-color: var(--accent-dotnet); }

.card-accent-js .skill-icon, .card-accent-js .years-badge { color: var(--accent-js); }
.card-accent-js:hover { border-color: var(--accent-js); }

.card-accent-php .skill-icon, .card-accent-php .years-badge { color: var(--accent-php); }
.card-accent-php:hover { border-color: var(--accent-php); }

.card-accent-node .skill-icon, .card-accent-node .years-badge { color: var(--accent-node); }
.card-accent-node:hover { border-color: var(--accent-node); }

.card-accent-sys .skill-icon, .card-accent-sys .years-badge { color: #58a6ff; }
.card-accent-sys:hover { border-color: #58a6ff; }

/* Interactive Timeline Styles */
.timeline-section {
    background: var(--bg-dark);
    padding: 6rem 2rem;
    border-top: 1px solid #30363d;
}
.timeline-filters {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}
.filter-btn {
    background: var(--bg-darker);
    border: 1px solid #30363d;
    color: var(--text-secondary);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.filter-btn:hover, .filter-btn.active {
    background: #21262d;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}
.timeline-container {
    max-width: 850px;
    margin: 3rem auto 0 auto;
    position: relative;
    border-left: 2px solid #30363d;
    padding-left: 2rem;
}
.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    transition: var(--transition-smooth);
    opacity: 1;
    transform: translateX(0);
}
.timeline-item.hidden {
    display: none;
}
.timeline-dot {
    position: absolute;
    left: calc(-2rem - 7px);
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #30363d;
    border: 2px solid var(--bg-dark);
    transition: var(--transition-smooth);
}
.timeline-item:hover .timeline-dot {
    background: #58a6ff;
    box-shadow: 0 0 10px #58a6ff;
}
.timeline-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.timeline-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
}
.timeline-content h4 {
    font-size: 1.05rem;
    color: #58a6ff;
    font-weight: 500;
    margin-bottom: 0.8rem;
}
.timeline-content p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}
.tech-tags span {
    display: inline-block;
    background: var(--bg-card);
    border: 1px solid #30363d;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--text-primary);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Contact Footer Zone */
.contact-footer {
    padding: 6rem 2rem 2rem 2rem;
    border-top: 1px solid #30363d;
    text-align: center;
}
.contact-container h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.contact-container p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}
.contact-methods {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}
.contact-card {
    background: var(--bg-dark);
    border: 1px solid #30363d;
    padding: 1.5rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.contact-card i {
    font-size: 1.2rem;
    color: #58a6ff;
}
.contact-card:hover {
    border-color: var(--text-secondary);
    background: var(--bg-card);
}
.footer-bottom {
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid #30363d;
    padding-top: 2rem;
}

/* Responsive Scaling Queries */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    .hero-container div:nth-child(2) {
        order: -1;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-contact-row {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    .avatar-wrapper {
        width: 260px;
        height: 260px;
    }
    .accent-ring {
        width: 290px;
        height: 290px;
    }
}

@media (max-width: 500px) {
    .hero-contact-row .contact-card span {
        display: none;
    }
    .hero-contact-row .contact-card::after {
        content: " Email";
    }
    .hero-contact-row .contact-card:nth-child(2)::after {
        content: " LinkedIn";
    }
}