/* ==========================================================================
   --- GLOBAL DESIGN CONSTANTS ---
   ========================================================================== */
:root {
    --bg-main: #0f172a;       /* Deep slate dark background */
    --bg-card: #1e293b;       /* Crisp contrasting card layer */
    --text-primary: #f8fafc;  /* Clean white-toned reading text */
    --text-muted: #94a3b8;    /* Muted grey for subtext and descriptions */
    --accent: #38bdf8;        /* Vivid engineering blue/cyan highlight */
    --accent-hover: #0ea5e9;  /* Darker accent shift for interactive elements */
    --border: #334155;        /* Subtle slate separator border lines */
}

/* --- BASE STYLING LAYERS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

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

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 600;
}

h2 {
    font-size: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 24px;
}

p {
    color: var(--text-muted);
}

/* --- HERO PROFILE ARCHITECTURE --- */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid var(--border);
    text-align: center;
    padding: 60px 20px;
}

.Profile-pic {
    width: 180px;              
    height: 180px;            
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent);
    margin-bottom: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    will-change: transform, box-shadow;
}

.Profile-pic:hover {
    transform: scale(1.05);   
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35); 
    cursor: pointer;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.hero h2 {
    font-size: 18px;
    color: var(--accent);
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
}

.tagline {
    font-size: 14px;
    max-width: 600px;
    margin: 0 auto 24px auto;
}

/* --- SYSTEM UTILITY BUTTONS & HOVER MECHANICS --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease, transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    will-change: transform, box-shadow;
}

.primary-btn {
    background-color: var(--accent);
    color: #0f172a;
    box-shadow: 0 4px 6px rgba(56, 189, 248, 0.1);
}

/* Float up and subtle glow for the download button */
.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(56, 189, 248, 0.3);
}

.secondary-btn {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

/* Float up and crisp highlight border for GitHub and LinkedIn links */
.secondary-btn:hover {
    background-color: var(--bg-card);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.small-btn {
    padding: 6px 14px;
    font-size: 12px;
}

/* --- ABOUT ME MATRIX --- */
.about {
    margin-bottom: 48px;
}

.about p {
    font-size: 16px;
    margin-bottom: 16px;
}

/* --- CORE TECHNICAL SKILLS --- */
.skills {
    margin-bottom: 48px;
}

.skill-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px;
    text-align: center;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

/* --- TIMELINE EXPERIENCE ROW --- */
.experience {
    margin-bottom: 48px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    background-color: var(--bg-card);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

.timeline-item h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.role {
    color: var(--accent);
    font-weight: 500;
    font-size: 14px;
}

.date {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* --- PROJECT HUB GRIDS --- */
.projects {
    margin-bottom: 48px;
}

/* Upgraded from column flex to a dynamic responsive grid architecture */
.project-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    gap: 24px;
}

/* Desktop multi-column grid layout adjustment for portfolio project matrix */
@media (min-width: 768px) {
    .project-container {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    }
}

.project-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 24px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.project-description {
    font-size: 15px;
    margin-bottom: 16px;
    flex-grow: 1; /* Ensures text blocks stretch evenly */
}

.project-tech {
    font-size: 13px;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: auto; /* Pins action buttons neatly to the bottom of the card */
}

/* --- CURRENT FUTURE REQUISITION FOCUS --- */
.learning {
    margin-bottom: 48px;
}

.learning-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.learning-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px;
    border-radius: 8px;
}

.learning-card h3 {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 8px;
}

.learning-card p {
    font-size: 14px;
}

/* --- FOOTER CONTACT CHANNELS --- */
.contact {
    text-align: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 40px 20px;
    border-radius: 8px;
}

.contact-prompt {
    margin-bottom: 20px;
}

.contact-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.contact-list a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
    display: inline-block;
}

.contact-list a:hover {
    color: var(--accent-hover);
    transform: translateY(-2px);
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
}

footer p {
    font-size: 12px;
}

/* --- GLOBAL CONTAINER HOVER FLOATING ENGINE --- */
.card, 
.project-card, 
.learning-card,
.timeline-item {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), border-color 0.3s ease;
    will-change: transform, box-shadow;
}

.card:hover,
.learning-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

/* Separated project-card layout configuration to avoid conflicts with script.js transitions */
.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.timeline-item:hover {
    transform: translateX(6px);
    box-shadow: 4px 8px 20px rgba(0, 0, 0, 0.3);
}