:root {
    --color-primary: #6c63ff; /* A vibrant tech purple for accents */
    --color-background: #1a1a2e; /* Dark, deep background */
    --color-text-main: #f0f0f5;
    --color-card-bg: #2a2c42;
    --color-border: #4e4a6a;
    --font-stack: 'Poppins', sans-serif;
}

/* Base Styles & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-stack);
    background-color: var(--color-background);
    color: var(--color-text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--color-text-main);
    font-weight: 700;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

/* Header/Hero Section */
.hero-section {
    padding: 80px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--color-background) 0%, #0f101f 100%);
}

.profile-card {
    max-width: 800px;
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--color-primary);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.4);
    margin-bottom: 30px;
}

.sub-header {
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #a49ecf;
}

.intro-text {
    font-size: 1.1rem;
    margin: 30px 0;
    line-height: 1.7;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    color: #c0c0d5;
}

.linkedin-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--color-primary);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
}

.linkedin-link:hover {
    background-color: #7a72ff;
    transform: translateY(-2px);
}

/* Section Styling */
.section {
    padding: 60px 0;
}

.section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #c0c0d5;
}

/* Projects Grid */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.project-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--color-text-main);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Project Card Hover Animation */
.project-card:hover {
    transform: translateY(-10px) rotateZ(1deg); /* Lift and subtle tilt */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5), 0 0 10px var(--color-primary);
}

.project-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    /* Subtle pulsing effect */
    animation: pulse 4s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

.project-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.project-summary {
    font-size: 0.95rem;
    color: #c0c0d5;
}

/* Career Highlights Grid */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.highlight-item {
    background-color: var(--color-card-bg);
    padding: 25px;
    border-radius: 8px;
    border-left: 5px solid var(--color-primary);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.highlight-item h4 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.2rem;
}

.highlight-item ul {
    list-style-type: '— '; /* Custom list marker */
    padding-left: 20px;
    font-size: 0.95rem;
}

.highlight-item li {
    margin-bottom: 8px;
}

/* Divider */
hr {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color-border), rgba(0, 0, 0, 0));
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid var(--color-border);
    color: #8c8c9e;
    font-size: 0.9rem;
}

/* Animations (Keyframes) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Utility classes for initial load animation */
.fade-in-delay {
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.profile-pic { animation-delay: 0.2s; }
h1 { animation-delay: 0.4s; }
.sub-header { animation-delay: 0.6s; }
.intro-text { animation-delay: 0.8s; }
.links { animation-delay: 1.0s; }

/* Scroll Reveal Animation (Targeted by JS) */
.reveal-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
    }
    h1 {
        font-size: 2.5rem;
    }
    h2 {
        font-size: 1rem;
    }
    .project-grid, .highlight-grid {
        grid-template-columns: 1fr;
    }
}