/* --- MODERN SLATE & CYAN CORE BRANDING LOGIC --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #0d1117; /* High-quality developer matte charcoal */
    color: #c9d1d9;
    line-height: 1.6;
}

/* Header & Nav Layout */
header {
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: #00f5d4; /* Vibrant technical cyan */
    letter-spacing: 0.5px;
}

nav a {
    color: #8b949e;
    text-decoration: none;
    margin-left: 22px;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #00f5d4;
}

/* Hero Section */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 110px 20px;
    text-align: left;
}

.hero h2 {
    font-size: 44px;
    font-weight: 800;
    color: #f0f6fc;
    line-height: 1.2;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    max-width: 720px;
    color: #8b949e;
    margin-bottom: 35px;
}

.btn {
    display: inline-block !important;
    padding: 12px 26px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    margin-right: 15px;
    cursor: pointer !important; /* Forces mobile touch recognition */
    position: relative;        /* Places click layer above background structures */
    z-index: 5;
}

.btn.primary {
    background-color: #00f5d4;
    color: #0d1117;
}

.btn.primary:hover {
    background-color: #00e0c2;
    transform: translateY(-2px);
}

.btn.secondary {
    border: 1px solid #30363d;
    background-color: #21262d;
    color: #c9d1d9;
}

.btn.secondary:hover {
    background-color: #30363d;
    border-color: #8b949e;
    transform: translateY(-2px);
}

/* Global Content Sections */
.section-padding {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
}

.section-title {
    font-size: 26px;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 40px;
    border-left: 3px solid #00f5d4;
    padding-left: 14px;
}
/* Project Cards Structural Portfolio Layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
}

.project-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Smooth 0.2-second color fade constraint */
    transition: border-color 0.2s ease, box-shadow 0.2s ease; 
}

/* ✅ FIXED HOVER RULE: Completely removed 'transform: translateY(-4px)' */
.project-card:hover {
    border-color: #00f5d4; /* Vivid cyan border highlight kicks in */
    box-shadow: 0 4px 12px rgba(0, 245, 212, 0.05); /* Adds a subtle, premium glowing depth */
}

.project-image-box {
    width: 100%;
    height: 195px;
    overflow: hidden;
    background-color: #0d1117;
    border-bottom: 1px solid #30363d;
}

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ✅ FIXED IMAGE HOVER RULE: Removed 'transform: scale(1.02)' to drop the image zoom */
.project-card:hover .project-image-box img {
    transform: none !important; 
}


.project-image-box {
    width: 100%;
    height: 195px;
    overflow: hidden;
    background-color: #0d1117;
    border-bottom: 1px solid #30363d;
}

.project-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image-box img {
    transform: scale(1.02);
}

.card-content-wrapper {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.card-header h4 {
    font-size: 19px;
    font-weight: 700;
    color: #f0f6fc;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tag.client-tag {
    background-color: rgba(0, 245, 212, 0.1);
    color: #00f5d4;
}

.tag.personal-tag {
    background-color: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}

.tech-stack {
    font-size: 13px;
    color: #58a6ff; /* Clean identifier blue */
    font-weight: 600;
    margin-bottom: 14px;
}

.project-desc {
    color: #8b949e;
    font-size: 14.5px;
    margin-bottom: 25px;
}

.card-action-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #30363d;
    padding-top: 16px;
    margin-top: auto;
}

.card-link {
    text-decoration: none;
    font-weight: 700;
    font-size: 13.5px;
    transition: color 0.2s ease;
}

.card-link.live-link {
    color: #00f5d4;
}

.card-link.live-link:hover {
    color: #00e0c2;
}

.card-link.disabled-link {
    color: #484f58;
    cursor: not-allowed;
}

.card-link.repo-link {
    color: #8b949e;
}

.card-link.repo-link:hover {
    color: #f0f6fc;
}

/* --- ⚡ MODERN SKILLS GRID BADGE PLATFORM --- */
.skills-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.skill-group-card {
    background-color: #161b22;
    border: 1px solid #30363d;
    padding: 24px;
    border-radius: 8px;
    transition: border-color 0.2s ease;
}

.skill-group-card:hover {
    border-color: #30363d;
}

.group-title {
    color: #f0f6fc;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-badge {
    background-color: #21262d;
    border: 1px solid #30363d;
    color: #c9d1d9;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.skill-badge:hover {
    border-color: #00f5d4;
    color: #00f5d4;
    background-color: #161b22;
}

/* Footer & Contact Section */
footer {
    background-color: #161b22;
    border-top: 1px solid #30363d;
    padding: 55px 20px;
    text-align: center;
    font-size: 14.5px;
    color: #8b949e;
}

footer a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    color: #00f5d4;
    text-decoration: underline;
}

.footer-cta-text {
    color: #00f5d4;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 12px;
}

.social-links {
    margin: 16px 0;
}

.copyright {
    font-size: 12px;
    margin-top: 24px;
    color: #484f58;
}

/* Mobile Viewport Custom Scaling */
@media (max-width: 768px) {
    .header-container { flex-direction: column; gap: 14px; padding: 15px; }
    nav a { margin: 0 12px; font-size: 14px; }
    .hero h2 { font-size: 32px; }
    .hero { padding: 65px 20px; }
    .project-grid { gap: 20px; }
}
