:root {
    --primary-color: #4a6fa5;
    --secondary-color: #166088;
    --accent-color: #4fc3dc;
    --text-color: #333;
    --light-text: #777;
    --bg-color: #fff;
    --section-bg: #f8f9fa;
    --card-bg: #fff;
    --border-color: #eaeaea;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 20px 0;
}

nav li {
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 80px 0 40px 0;
}

.hero-content {
    text-align: center;
}

.hero-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text {
    text-align: left;
    padding-top: 5px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.hero .tagline {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.hero .description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 20px;
    color: var(--light-text);
    line-height: 1.5;
}

.hero-emoji {
    font-size: 4rem;
    margin-top: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* General heading styles */
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Profile Section - New Two-Column Layout */
.profile-section {
    padding: 40px 0 100px 0;
    background-color: var(--section-bg);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1.618fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Profile Cards */
.profile-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    scroll-margin-top: 100px; /* Account for fixed header when jumping to card */
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px 20px;
    border-bottom: 2px solid var(--border-color);
}

.card-header h3 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin: 0;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.about-image {
    width: 80px;
    height: 100px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 8px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px 30px 30px;
}

.card-content h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.card-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Educational Background */
.education-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.degree-icon {
    font-size: 2rem;
}

.degree-info strong {
    color: var(--secondary-color);
}

.quick-facts ul {
    list-style: none;
    padding: 0;
}

.quick-facts li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-facts li:last-child {
    border-bottom: none;
}

/* Testimonials */
.testimonials-content {
    background-color: var(--section-bg);
    border-radius: 8px;
    padding: 20px;
    color: var(--light-text);
}

.testimonial-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.testimonial-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.testimonial-item p {
    font-style: italic;
    margin-bottom: 10px;
    line-height: 1.5;
    color: var(--text-color);
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
}

/* Projects in Right Column */
.compact-projects {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background-color: var(--section-bg);
    border-radius: 12px;
    transition: transform 0.2s;
}

.project-item:hover {
    transform: translateX(5px);
}

.project-preview {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
}

.project-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.project-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.mini-tags span {
    background-color: var(--accent-color);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.project-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.project-info a:hover {
    color: var(--secondary-color);
}

/* Writing Categories */
.writing-category {
    margin-bottom: 30px;
}

.writing-category:last-child {
    margin-bottom: 0;
}

.category-header {
    background-color: var(--section-bg);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.category-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--secondary-color);
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.writing-items {
    padding-left: 20px;
}

.writing-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.writing-item:last-child {
    border-bottom: none;
}

.writing-item h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.4;
}

.writing-date {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 8px;
    font-style: italic;
}

.writing-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.writing-item a:hover {
    color: var(--secondary-color);
}

.writing-items p em {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .left-column,
    .right-column {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0 30px 0;
    }
    
    .profile-section {
        padding: 30px 0 80px 0;
    }
    
    .hero-main {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .hero-text {
        text-align: center;
        padding-top: 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    nav li {
        margin: 0 15px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .card-header h3 {
        font-size: 1.4rem;
    }
    
    .about-image {
        width: 60px;
        height: 75px;
    }
    
    .card-content {
        padding: 20px 25px 25px;
    }
    
    .project-item {
        flex-direction: column;
        gap: 15px;
    }
    
    .project-preview {
        width: 100%;
        height: 120px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--section-bg);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.social-links a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.5rem;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
} 