:root {
    --primary: #0A1628;
    --secondary: #1E3A5F;
    --accent: #E8B86D;
    --accent-bright: #F4D09B;
    --text-light: #B8C5D6;
    --bg-dark: #050B14;
    --bg-card: #0F1B2E;
    --border-subtle: rgba(232, 184, 109, 0.15);
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Animated background pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 50px, rgba(232, 184, 109, 0.02) 50px, rgba(232, 184, 109, 0.02) 51px),
        repeating-linear-gradient(-45deg, transparent, transparent 50px, rgba(232, 184, 109, 0.02) 50px, rgba(232, 184, 109, 0.02) 51px);
    pointer-events: none;
    z-index: 0;
    animation: subtleMove 60s linear infinite;
}

@keyframes subtleMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header / Hero Section */
header {
    padding: 5rem 0 3rem;
    position: relative;
    animation: fadeInDown 1s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    text-align: left;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text {
    flex: 1;
}

.profile-photo {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    border: 4px solid var(--accent);
    box-shadow: 0 10px 40px rgba(232, 184, 109, 0.3);
    transition: all 0.4s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(232, 184, 109, 0.5);
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--accent);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
    font-size: 0.95rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
}

.contact-item:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.contact-item svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

/* Section Styling */
section {
    margin: 4rem 0;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: backwards;
}

section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    font-weight: 700;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232, 184, 109, 0.05), transparent);
    transition: left 0.5s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 40px rgba(232, 184, 109, 0.15);
}

.card h3 {
    font-size: 1.5rem;
    color: var(--accent-bright);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card h4 {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 400;
    opacity: 0.9;
}

.card-date {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    font-weight: 500;
}

.card ul {
    list-style: none;
    padding-left: 0;
}

.card li {
    padding-left: 1.5rem;
    margin-bottom: 0.7rem;
    position: relative;
    line-height: 1.6;
}

.card li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.skill-category h3 {
    color: var(--accent-bright);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.skill-tag {
    background: rgba(232, 184, 109, 0.1);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(232, 184, 109, 0.2);
    border-color: var(--accent);
    color: var(--accent-bright);
    transform: scale(1.05);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-bright) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 50px rgba(232, 184, 109, 0.2);
    cursor: pointer;
}

.project-card::after {
    content: 'View Project →';
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.project-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.project-type {
    display: inline-block;
    background: rgba(232, 184, 109, 0.15);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.project-card h3 {
    color: var(--accent-bright);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.project-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Education Section */
.education-card {
    background: var(--bg-card);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gpa-highlight {
    background: linear-gradient(135deg, rgba(232, 184, 109, 0.2) 0%, rgba(232, 184, 109, 0.05) 100%);
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    text-align: center;
}

.gpa-highlight strong {
    color: var(--accent-bright);
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.3rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
    border-top: 1px solid var(--border-subtle);
}

footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
        text-align: center;
    }

    .profile-photo {
        width: 180px;
        height: 180px;
    }

    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .education-header {
        flex-direction: column;
    }

    section {
        margin: 3rem 0;
    }
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-bright);
}