:root {
    --primary-color: #800000;
    /* Maroon */
    --secondary-color: #FDFBF7;
    /* Cream */
    --text-color: #333333;
    --text-light: #666666;
    --accent-color: #A52A2A;
    --border-color: #E0E0E0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    background-color: var(--secondary-color);
    padding: 1rem 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.navbar a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

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

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 2rem;
}

.profile-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 1rem;
    background-color: #ddd;
    /* Placeholder color */
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-info {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-info span {
    display: inline-flex;
    align-items: center;
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-top: 2rem;
    text-align: justify;
}

.summary-text {
    flex: 1;
}

/* Sections */
section {
    margin-bottom: 2.5rem;
}

/* Scroll Revel Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Experience & Education Items */
.item {
    margin-bottom: 1.5rem;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.item-title {
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
}

.item-subtitle {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.item-date,
.item-location {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

.item-details ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.item-details li {
    margin-bottom: 0.25rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 0.5rem;
}

.skill-list {
    list-style: none;
}

.skill-list li {
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    position: relative;
}

.skill-list li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Landing Page Specifics */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
}

.landing-content {
    background: white;
    padding: 3rem 4rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 950px;
    width: 95%;
    border-top: 6px solid var(--primary-color);
    margin: 2rem 0;
}

.btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
    margin-top: 2rem;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.btn:hover {
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(128, 0, 0, 0.2);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Assignments Section */
.assignments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.assignments-section h3 {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.assignment-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.assignment-item {
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    overflow: hidden;
}

.assignment-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.assignment-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.assignment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.assignment-item:hover .assignment-img img {
    transform: scale(1.05);
}

.assignment-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.assignment-info h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0;
}

.assignment-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.assignment-btns {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0 1.5rem 1.5rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    background-color: var(--primary-color);
    color: white;
    transition: all 0.2s;
}

.btn-sm:hover {
    background-color: var(--accent-color);
    text-decoration: none;
    color: white;
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .item-header {
        flex-direction: column;
    }

    .item-date {
        margin-top: 0.25rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 1rem;
    }

    .profile-summary {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }

    header {
        border-bottom: 1px solid #000;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .btn,
    footer {
        display: none;
    }

    a {
        text-decoration: none;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }
}