/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Scheme - Minimal & Professional */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #1a252f;
    --gray-light: #ecf0f1;
    --gray-medium: #95a5a6;
    --gray-dark: #7f8c8d;
    --white: #ffffff;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Playfair Display', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

section {
    padding: var(--section-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--gray-dark);
    line-height: 1.7;
}

.highlight {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #1a252f;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header - Always Transparent */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 25px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1001;
    transition: var(--transition);
}

.logo:hover {
    opacity: 0.9;
}

.logo-text {
    display: inline-block;
}

.logo strong {
    color: var(--secondary-color);
}

/* Desktop Navigation */
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.desktop-nav a:hover::after {
    width: 100%;
}

.desktop-nav a:hover {
    color: var(--secondary-color);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
    padding: 0;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-primary);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    color: var(--gray-dark);
    max-width: 90%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Circular Image Frame */
/* Circular Image Frame - FIXED */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-frame {
    position: relative;
    width: 350px; /* Slightly smaller */
    height: 350px;
}

.frame-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 12px solid var(--light-color); /* Thinner border */
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.05),
        0 15px 30px rgba(0, 0, 0, 0.08); /* Softer shadow */
    z-index: 1;
}

.image-container {
    position: absolute;
    width: calc(100% - 24px); /* Adjusted for thinner border */
    height: calc(100% - 24px);
    top: 12px;
    left: 12px;
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--gray-light);
}

/* Profile image styling - ADD THIS */
.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Adjust this to show less zoomed face */
    transform: scale(0.95); /* Slightly smaller to prevent zoom */
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1); /* Slight zoom on hover */
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray-medium);
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    padding: 20px;
    text-align: center;
}

.placeholder-image i {
    font-size: 4rem; /* Smaller icon */
    margin-bottom: 1rem;
    color: var(--gray-medium);
}

.placeholder-image p {
    font-size: 1rem;
    color: var(--gray-dark);
    margin: 0;
}

/* About Section */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-medium);
    font-size: 1.1rem;
    font-family: var(--font-primary);
    font-weight: 400;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.research-areas {
    margin-top: 2.5rem;
}

.research-area {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.research-area:hover {
    transform: translateX(5px);
}

.area-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.area-icon i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.area-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-family: var(--font-primary);
    font-weight: 600;
}

.area-content p {
    color: var(--gray-dark);
    margin-bottom: 0;
    font-size: 0.95rem;
}
/* About Image - FIXED (much smaller and better proportioned) */
.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    object-fit: cover;
    object-position: center 10%; /* Changed from "center" to "center 10%" */
}

/* Adjust for different screen sizes if needed */
@media (max-width: 768px) {
    .about-profile-image {
        object-position: center 5%; /* A bit higher on mobile */
    }
}

.about-image-placeholder {
    width: 100%;
    max-width: 400px; /* Same max-width as real image */
    height: 300px; /* Much more reasonable height */
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray-medium);
    box-shadow: var(--box-shadow);
    margin: 0 auto; /* Center it */
}

.about-image-placeholder i {
    font-size: 3rem; /* Smaller icon */
    margin-bottom: 1rem;
}

.about-image-placeholder p {
    color: var(--gray-dark);
    margin: 0;
    font-size: 0.9rem;
}

/* About content adjustments */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Reduced gap */
    align-items: center;
}

/* Responsive adjustments for about image */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-image {
        order: -1; /* Image above text on mobile */
    }
    
    .about-profile-image,
    .about-image-placeholder {
        max-width: 350px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .circular-frame {
        width: 280px;
        height: 280px;
    }
    
    .about-profile-image,
    .about-image-placeholder {
        max-width: 300px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .circular-frame {
        width: 250px;
        height: 250px;
    }
    
    .about-profile-image,
    .about-image-placeholder {
        max-width: 280px;
        height: 220px;
    }
    
    .about-image-placeholder i {
        font-size: 2.5rem;
    }
}

.about-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--gray-medium);
    box-shadow: var(--box-shadow);
}

.about-image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.about-image-placeholder p {
    color: var(--gray-dark);
    margin: 0;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-family: var(--font-secondary);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

/* Contact Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#formStatus {
    margin-top: 1rem;
    padding: 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 0;
}

.social-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.social-link i {
    width: 30px;
    font-size: 1.2rem;
}

.social-link span {
    font-size: 0.95rem;
}

/* Newsletter */
.newsletter h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-family: var(--font-primary);
    font-weight: 600;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.newsletter-input {
    display: flex;
    gap: 10px;
}

.newsletter-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-primary);
}

.newsletter-input input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-input button {
    white-space: nowrap;
    background-color: var(--secondary-color);
    border: none;
    color: var(--white);
}

.newsletter-input button:hover {
    background-color: #2980b9;
}

/* Footer Info */
.footer-logo {
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-logo strong {
    color: var(--secondary-color);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-top: auto;
}

.footer-copyright p {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
}


/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        gap: 3rem;
    }
    
    .about-content {
        gap: 3rem;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .circular-frame {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }
    
    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .research-area {
        justify-content: center;
        text-align: left;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .info-section {
        grid-column: 1 / -1;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    h1 {
        font-size: 2.3rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .newsletter-input {
        flex-direction: column;
    }
    
    .newsletter-input button {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .circular-frame {
        width: 250px;
        height: 250px;
    }
    
    .placeholder-image i {
        font-size: 3.5rem;
    }
    
    .research-area {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .area-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .about-image-placeholder {
        height: 300px;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
}