* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

:root {
    --bg-color: #f7f9fc;
    --text-primary: #1a1f36;
    --text-secondary: #4f566b;
    --accent-color: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 16px 32px rgba(31, 38, 135, 0.07);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center the whole layout vertically on large screens */
}

/* Background Liquid Orbs */
.background-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: #f7f9fc;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: #a1c4fd;
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: #c2e9fb;
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 60vw;
    height: 60vw;
    background: #ffd1fb;
    top: 30%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(10%, 10%) scale(1.1); }
    100% { transform: translate(-5%, 5%) scale(0.9); }
}

/* Layout */
.container {
    max-width: 1300px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: flex;
    gap: 4rem;
    align-items: stretch; /* Stretch cards to match heights if needed, or flex-start */
    flex: 1;
}

/* Glass Card Base */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    box-shadow: var(--glass-shadow);
    padding: 4rem; /* Increased padding to fill space */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.1);
}

/* Header / Sidebar */
header {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: sticky;
    top: 4rem;
    animation: fadeInUp 0.8s ease-out;
    justify-content: center;
}

.profile-img {
    width: 200px; /* Scaled up */
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

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

h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    color: #1a1f36;
}

.eng-name {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 2rem;
}

.academic-info {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
}

.contact-links a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.contact-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* Main Content Area */
.main-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 4rem; /* Increased gap */
    justify-content: center;
}

section {
    animation: fadeInUp 1s ease-out;
}

h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.8rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

h2::after {
    content: '';
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    opacity: 0.2;
    border-radius: 5px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem; /* Larger text */
    color: var(--text-secondary);
}

.experience-item h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    list-style: none;
}

.skill-tag {
    padding: 0.8rem 1.6rem;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: auto;
}

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

/* Rainbow Text Animation */
.rainbow-text {
    background-image: linear-gradient(90deg, #ff595e, #ffca3a, #8ac926, #1982c4, #6a4c93, #ff595e);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: rainbow 3s linear infinite;
    font-style: italic;
    font-weight: 800;
    font-size: 1.6rem;
    text-align: center;
    margin-top: 1rem;
}

@keyframes rainbow {
    to { background-position: 200% center; }
}

/* Responsive */
@media (max-width: 1000px) {
    .container {
        flex-direction: column;
        align-items: stretch;
    }
    header {
        position: static;
    }
    .main-content {
        flex: 1;
    }
}
