/* =========================
    CSS Variables
    ========================= */
:root {
    --primary-dark: #343a40;
    --secondary-dark: #495057;
    --accent-yellow: #f4c542;
    --background-light: #f8f9fa;
    --text-main: #333;
    --text-secondary: #555;
    --link-blue: #007bff;
    --link-hover: #0056b3;
    --social-hover: #007acc;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    --border-radius: 12px;
    --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* =========================
    General Reset & Body
    ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--background-light);
    overflow-x: hidden;
    min-height: 100vh;
}

/* =========================
    Header
    ========================= */
header {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: #fff;
    text-align: center;
    padding: 3rem 1rem 2rem 1rem;
    position: relative;
    box-shadow: 0 2px 12px rgba(52, 58, 64, 0.08);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.profile-pic {
    border-radius: 50%;
    width: 160px;
    height: 160px;
    object-fit: cover;
    margin-bottom: 1.2rem;
    border: 4px solid var(--accent-yellow);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform var(--transition);
}
.profile-pic:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: fadeIn 2s;
}

header p {
    font-size: 1.5rem;
    margin-top: 0;
    font-weight: 400;
    animation: fadeIn 3s;
    color: var(--accent-yellow);
}

/* =========================
    Festive Banner
    ========================= */
.festive-banner {
    background-color: var(--accent-yellow);
    color: var(--primary-dark);
    padding: 1rem 0.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    animation: slideDown 1s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(244,197,66,0.15);
    border-bottom: 2px solid var(--primary-dark);
}

.festive-banner #countdown {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.festive-banner button {
    background-color: var(--primary-dark);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color var(--transition), box-shadow var(--transition);
    outline: none;
    box-shadow: 0 2px 6px rgba(52,58,64,0.08);
}
.festive-banner button:hover,
.festive-banner button:focus {
    background-color: var(--secondary-dark);
    box-shadow: 0 4px 12px rgba(52,58,64,0.12);
}

/* =========================
    Sections
    ========================= */
section {
    padding: 3rem 1rem;
    text-align: center;
    background-color: #fff;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

#about h2, #speciality h2, #projects h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
}

#about h2::after, #speciality h2::after, #projects h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -12px;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--primary-dark));
    border-radius: 2px;
}

#about p,
#speciality p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* =========================
    Projects
    ========================= */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 2rem 1.5rem;
    width: 320px;
    text-align: center;
    align-items: center;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}
.project-card:hover,
.project-card:focus-within {
    transform: translateY(-10px) scale(1.03);
    box-shadow: var(--card-hover-shadow);
    border-color: var(--accent-yellow);
}

.project-card h3 {
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.project-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-card a {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    transition: color var(--transition), text-decoration var(--transition);
    outline: none;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}
.project-card a:hover,
.project-card a:focus {
    color: var(--link-hover);
    text-decoration: underline;
    background-color: #f4f4f4;
}

/* =========================
    Footer
    ========================= */
footer {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
    color: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 1rem;
    margin-top: 2rem;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    box-shadow: 0 -2px 12px rgba(52,58,64,0.08);
}

footer p {
    margin: 0;
    opacity: 0.85;
}

/* =========================
    Animations
    ========================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

/* =========================
    Social Links
    ========================= */
#social-links {
    text-align: center;
    margin: 24px 0;
}

.social-container {
    display: inline-block;
    background-color: #f4f4f4;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.social-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color var(--transition), background-color var(--transition);
    outline: none;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
}
.social-link:hover,
.social-link:focus {
    color: var(--social-hover);
    background-color: #e6f2fa;
}

/* =========================
    Logo
    ========================= */
.logo {
    font-size: 2.2em;
    font-weight: bold;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3em;
    margin-bottom: 1rem;
}

.logo .left-brace {
    font-size: 4em;
    color: var(--primary-dark);
}

.logo .right-brace {
    font-size: 4em;
    color: var(--accent-yellow);
}

/* =========================
    Responsive Design
    ========================= */

/* Smallest screens */
@media (max-width: 320px) {
    .profile-pic { width: 70px; height: 70px; }
    header h1 { font-size: 1.2rem; }
    header p { font-size: 0.7rem; }
    .project-card { width: 98%; }
    section { padding: 1.5rem 0.5rem; }
}

/* Mobile screens */
@media (max-width: 480px) {
    .profile-pic { width: 90px; height: 90px; }
    header h1 { font-size: 1.5rem; }
    header p { font-size: 0.8rem; }
    .project-card { width: 98%; }
    section { padding: 2rem 0.5rem; }
}

/* Tablet screens */
@media (max-width: 768px) {
    header h1 { font-size: 1.8rem; }
    header p { font-size: 1rem; }
    .project-card { width: 95%; }
    .projects-container { gap: 1rem; }
}

/* Large tablets and small desktops */
@media (min-width: 1024px) and (max-width: 1366px) {
    header h1 { font-size: 2.5rem; }
    header p { font-size: 1.2rem; }
    .project-card { width: 45%; }
}

/* Large desktops */
@media (min-width: 1367px) and (max-width: 1920px) {
    header h1 { font-size: 3.5rem; }
    header p { font-size: 1.5rem; }
    .project-card { width: 30%; }
}
