/* --- Google Font Import --- */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600&display=swap');

:root {
    --dark-bg: #1A1A2E;
    --light-bg: #16213E;
    --primary-color: #E94560;
    --text-color: #F0F0F0;
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Lato', sans-serif;
}

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

body {
    font-family: var(--body-font); 
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    text-align: center;
    padding: 2rem 0;
}

h2 {
    font-size: 2rem;
    text-align: center;
    padding-top: 1rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

/* --- Nav Bar --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--light-bg);
}

.navbar .logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar ul {
    list-style: none;
    display: flex;
    align-items: center;
}

.navbar ul li {
    margin-left: 20px;
}

.navbar ul a {
    color: var(--text-color);
    font-weight: bold;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.navbar ul a:hover,
.navbar ul a.active {
    color: var(--primary-color);
}

/* --- Footer --- */
.site-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    margin-top: 3rem; /* Adds space above the footer */
    border-top: 1px solid var(--light-bg);
}

.social-links {
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    margin: 0 10px;
    font-size: 20px;
    color: #fff;
    background-color: #333;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px); 
}

.social-icon.linkedin:hover {
    background-color: #0077B5; 
}

.social-icon.github:hover {
    background-color: #24292e;
}

.social-icon.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}
/* --- Landing Page --- */
#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 70vh;
    text-align: center;
}

#hero .headshot {
    width: 275px;
    height: 275px;
    border-radius: 50%;
    border: 5px solid var(--primary-color);
    margin-bottom: 1.5rem;
    object-fit: cover;
}

/* --- Reusable Card --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: var(--light-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
    width: 100%;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.card .tech-list {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-style: italic;
    color: #bdc3c7;
}

/* --- Qualifications Page --- */
.qualifications-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    text-align: center;
}

.skill-category h3 {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category ul li {
    background: var(--light-bg);
    margin: 0.5rem 0;
    padding: 0.75rem;
    border-radius: 5px;
}

.resume-section {
    grid-column: 1 / -1; 
    text-align: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background: #15a185; 
}

.card .icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 20px;
}
.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--primary-color);
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}

.horizontal-card {
    grid-column: 1 / -1;
    text-align: left;
}