/* Design Tokens */
:root {
    --bg: #0f172a; /* slate-900 */
    --bg-elevated: rgba(255, 255, 255, 0.06);
    --text: #e2e8f0; /* slate-200 */
    --muted: #94a3b8; /* slate-400 */
    --primary: #47b1ff;
    --primary-600: #1e90ff;
    --accent: #22d3ee; /* cyan-400 */
    --danger: #ef4444;
    --radius: 12px;
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.25);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.35);
    --shadow-lg: 0 22px 40px rgba(0,0,0,0.45);
    --border: 1px solid rgba(255,255,255,0.08);
}

/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text);
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(34, 211, 238, 0.12), transparent 50%),
        radial-gradient(1000px 500px at 110% -10%, rgba(71, 177, 255, 0.12), transparent 50%),
        linear-gradient(180deg, #0b1220 0%, #0f172a 60%);
}

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

h1, h2 {
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.2px;
}

p {
    text-align: center;
}

header {
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: var(--border);
}

header h1 {
    font-size: 2.2em;
    margin: 0;
}

header a {
    text-decoration: none; /* Removes the underline */
    color: inherit; /* Inherits the color from the parent element */
}

header a:hover {
    color: var(--primary);
}
.intro {
    background: var(--bg-elevated);
    border: var(--border);
    border-radius: var(--radius);
    padding: 60px 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    text-align: center;
}

.intro h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    background: linear-gradient(180deg, var(--primary), var(--primary-600));
    color: #fff;
    text-decoration: none;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(30, 144, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border: 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(30, 144, 255, 0.45);
    filter: saturate(1.1);
}

.btn:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.7);
    outline-offset: 3px;
}

/* Skills Section */
.skills {
    background: var(--bg-elevated);
    border: var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
}

.skills h2 {
    color: var(--text);
}

.skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style-type: none;
    padding: 0;
}

.skills li {
    margin: 10px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: var(--border);
    border-radius: 999px;
    font-weight: 600;
    color: var(--text);
    box-shadow: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.skills li:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.14);
}

/* Education Section */
.education {
    background: var(--bg-elevated);
    border: var(--border);
    border-radius: var(--radius);
    padding: 40px 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    text-align: center;
}

.education p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

/* Main section styling */
main {
    padding: 50px 0;
}

h2 {
    text-align: center;
    font-size: 2.4em;
    margin-bottom: 20px;
    color: var(--primary);
}

.projects-container {
    display: flex;
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.project-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    border: var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: 22px;
    width: calc(33.333% - 20px);
    box-sizing: border-box;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,255,255,0.14);
}

.project-card h3 {
    margin-bottom: 10px;
    font-size: 1.35em;
}

.project-card p {
    margin-bottom: 20px;
    color: var(--muted);
}

.github-link {
    display: inline-block;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    border: 1px solid var(--primary);
    border-radius: 999px;
    padding: 8px 14px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.github-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* Main section styling */
.work-exp {
    padding: 20px;
}

.work-exp h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* Work item styling */
.work-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    border: var(--border);
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.work-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,255,255,0.14);
}

.work-icon {
    width: 80px;
    height: 75px;
    margin-right: 20px;
}

.work-details {
    flex: 1;
}

.work-details h3 {
    margin: 0;
}

.work-details p {
    margin: 5px 0;
    color: var(--muted);
}

.work-details p strong {
    display: block;
    color: var(--text);
}

.work-details p em {
    color: #9aa7b8;
}

/* Footer styling */
footer {
    background: linear-gradient(0deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    border-top: var(--border);
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--accent);
}

footer p {
    margin: 5px 0;
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.linkedin-logo {
    width: 50px;
    height: auto;
}

.linkedin-logo:hover {
    transform: scale(1.1); /* Slightly enlarges the logo on hover */
    filter: invert(50%) sepia(100%) saturate(5000%) hue-rotate(190deg); /* Changes to LinkedIn blue on hover */
}

/* Responsive layout */
@media (max-width: 1024px) {
    .project-card { width: calc(50% - 20px); }
}

@media (max-width: 680px) {
    .project-card { width: 100%; }
    .work-item { flex-direction: column; align-items: center; text-align: center; }
    .work-icon { margin-right: 0; margin-bottom: 12px; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}
