:root {
    --primary: #3b82f6;
    --secondary: #64748b;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --text: #e2e8f0;
    --accent: #22d3ee;
}

body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--bg); color: var(--text); margin: 0; line-height: 1.6; }
.container { max-width: 850px; margin: 0 auto; padding: 20px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

/* HEADER & SOCIAL ICONS */
header { text-align: center; padding: 60px 0 40px; border-bottom: 1px solid #334155; }
h1 { color: var(--primary); margin: 0; font-size: 2.5rem; }
.subtitle { color: var(--secondary); font-size: 1.1rem; margin-top: 5px; }

.social-links { margin-top: 20px; display: flex; justify-content: center; gap: 20px; }
.social-links a { font-size: 1.5rem; color: var(--text); padding: 10px; border-radius: 50%; background: var(--card-bg); width: 25px; height: 25px; display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px); }

/* ABOUT SECTION */
.about-card { background: var(--card-bg); padding: 25px; border-radius: 12px; border-left: 5px solid var(--accent); }
.skill-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.skill-cloud span { background: #334155; color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; border: 1px solid #475569; }

/* HOVER PROJECT CARDS */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 20px; }

.card {
    background: var(--card-bg);
    border-radius: 12px;
    position: relative; /* Essential for overlay */
    overflow: hidden;   /* Hides content that slides out */
    height: 200px;      /* Fixed height for uniformity */
    border: 1px solid #334155;
    transition: transform 0.3s ease;

    /* NEW: Make it behave like a link */
    display: block; 
    text-decoration: none; 
    color: inherit; 
    cursor: pointer;
}

.card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }

/* The visible content (Title + Tech) */
.card-content {
    padding: 25px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.card h3 { margin: 0 0 10px 0; color: var(--accent); }
.tech-tag { color: var(--secondary); font-size: 0.9rem; font-family: monospace; }

/* The HIDDEN content (Description) */
.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95); /* Dark semi-transparent overlay */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    opacity: 0;           /* Hidden by default */
    transition: opacity 0.3s ease;
}

/* Show overlay on hover */
.card:hover .card-overlay { opacity: 1; }

/* FORM STYLES */
input, textarea { width: 96%; padding: 12px; margin-bottom: 15px; background: #0f172a; border: 1px solid #334155; color: white; border-radius: 6px; font-family: inherit; }
button { background: var(--primary); color: white; border: none; padding: 12px 25px; cursor: pointer; border-radius: 6px; font-weight: bold; width: 100%; transition: 0.2s; }
button:hover { background: #2563eb; }

ul { list-style: none; padding: 0; }
li { background: var(--card-bg); margin-bottom: 12px; padding: 15px; border-radius: 8px; border-left: 4px solid var(--primary); }
small { color: #94a3b8; display: block; margin-top: 5px; font-size: 0.8rem; }