/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #000000;
    --text-color: #1a1a1a;
    --text-gray: #666666;
    --background-color: #f4f4f4;
    --white: #ffffff;
    --section-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.08);
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --accent-color: #3d3d3d;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    width: 32px;
    height: 32px;
    display: block;
}

.logo:hover {
    color: var(--accent-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.nav-link:hover {
    color: var(--accent-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 0.5rem;
}

/* Home Section Styles */
.home {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: right center;
    background-attachment: fixed;
    overflow: hidden;
    padding-top: 80px;
}

.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.2) 100%
    );
    pointer-events: none;
}

.home-content {
    text-align: left;
    max-width: 1200px;
    width: 100%;
    padding: 0 5%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    transform: translateY(0);
}

.name {
    font-size: 5.5rem;
    font-weight: 900;
    color: var(--white);
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.tagline {
    font-size: 2rem;
    margin: 0;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Social Media Links */
.social-links {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1.25rem;
    margin: 0;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    color: var(--white);
    text-decoration: none;
}

.social-links a i.social-icon {
    font-size: 1.25rem;
    transition: all 0.3s ease;
    opacity: 0.9;
    line-height: 1;
}

/* Hover effects */
.social-links a:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.social-links a:hover i.social-icon {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-links {
        gap: 1rem;
    }

    .social-links a {
        width: 2.5rem;
        height: 2.5rem;
    }

    .social-links a i.social-icon {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        gap: 0.875rem;
    }

    .social-links a {
        width: 2.25rem;
        height: 2.25rem;
    }

    .social-links a i.social-icon {
        font-size: 1rem;
    }
}

/* Remove any old image-based icon styles */
.social-icon {
    color: inherit;
    display: block;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    /* Section Container Adjustments */
    .section-container {
        padding: 0 1rem;
    }

    /* Skills Section Mobile Adjustments */
    .skills-content {
        padding: 1rem 0;
    }

    .skills-grid {
        gap: 1rem;
    }

    .skill-card {
        padding: 1.25rem;
    }

    /* Projects Section Mobile Adjustments */
    .projects-grid {
        gap: 1.25rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-tools {
        gap: 0.5rem;
    }

    /* Contact Section Mobile Adjustments */
    .contact-form {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
    }

    /* Social Links Mobile Adjustments */
    .social-links {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Remove custom icon scaling */
    .social-links a i.social-icon {
        transform: none;
    }

    /* Mobile hover effects */
    .social-links a:hover i.social-icon {
        transform: none;
    }

    /* Section Title Mobile Adjustments */
    .section-title {
        margin-bottom: 2.5rem;
        font-size: 2.2rem;
    }

    /* General Mobile Text Adjustments */
    .skill-card h4 {
        font-size: 1.1rem;
    }

    .skill-card li,
    .project-summary p,
    .contact-form label {
        font-size: 0.95rem;
    }

    /* Mobile Spacing Adjustments */
    .section {
        padding: 4rem 0;
    }

    .skills-category {
        margin-bottom: 2.5rem;
    }

    .category-title {
        margin-bottom: 1.5rem;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 480px) {
    .section-container {
        padding: 0 0.75rem;
    }

    .skills-content,
    .project-content,
    .contact-form {
        padding: 1rem;
    }

    .social-links a {
        width: 32px;
        height: 32px;
    }

    .social-links a i.social-icon {
        font-size: 16px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Typing Animation Styles */
.typing-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.typing-text {
    color: var(--white);
    font-weight: 900;
    position: relative;
    white-space: nowrap;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.typed-text {
    border-bottom: 3px solid var(--white);
    padding-bottom: 5px;
}

.cursor {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 70%;
    background-color: var(--white);
    animation: blink 1s infinite;
}

/* CTA Button Styles */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid var(--white);
    border-radius: 3rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
    background-color: var(--white);
    color: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Section Styles */
.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--section-bg);
    border-radius: 2rem;
    margin: 2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.02) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-color);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--text-color);
    border-radius: 2px;
}

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

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-list {
        display: none;
    }

    .name {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }

    .section {
        margin: 1rem;
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .home {
        padding: 0 2rem;
        background-attachment: scroll;
    }

    .name {
        font-size: 3.5rem;
    }

    .tagline {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .social-links a {
        width: 24px;
        height: 24px;
    }
    
    .social-links {
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    /* Mobile hover effects */
    .social-links a:hover i.social-icon {
        transform: none;
    }
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 1.5rem 0;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.9);
        transform-origin: left center;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1.5rem;
    }
    
    .nav-list {
        gap: 2rem;
    }
}

/* About Section Styles */
.about-content {
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-photo {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-photo:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--hover-shadow);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Design for About Section */
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        max-width: 280px;
        margin: 0 auto;
    }

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

    .about-text {
        font-size: 1rem;
        text-align: center;
        padding: 0 1rem;
    }
}

/* Education Section Styles */
.education-content {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--accent-color);
    opacity: 0.2;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 2px solid var(--section-bg);
}

.timeline-content {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--hover-shadow);
}

.institution {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.degree {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.duration {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.achievements h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

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

.achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
    color: var(--text-color);
}

.achievements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Responsive Design for Education Section */
@media (max-width: 768px) {
    .education-content {
        padding: 0.5rem;
    }

    .timeline {
        padding: 1.5rem 0;
    }

    .timeline-item {
        padding-left: 1.5rem;
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }

    .institution {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
    }

    .degree {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .duration {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .achievements h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .achievements li {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
        padding-left: 1.25rem;
    }
}

/* Skills Section Styles */
.skills-content {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    margin-bottom: 4rem;
}

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

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.skill-card {
    background: var(--section-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--hover-shadow);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.skill-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.skill-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.skill-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.skill-card li {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.skill-card li:last-child {
    margin-bottom: 0;
}

/* Responsive Design for Skills Section */
@media (max-width: 768px) {
    .skills-content {
        padding: 0.5rem;
    }

    .skills-category {
        margin-bottom: 2.5rem;
    }

    .category-title {
        font-size: 1.8rem;
        margin-bottom: 1.25rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .skill-card {
        padding: 1.25rem;
        margin-bottom: 0.5rem;
    }

    .skill-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 1rem;
    }

    .skill-icon i {
        font-size: 1.25rem;
    }

    .skill-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    .skill-card li {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }
}

/* Projects Section Styles */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: var(--section-bg);
    color: var(--text-color);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--hover-shadow);
}

.filter-btn.active {
    background: var(--accent-color);
    color: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0 auto;
    max-width: 1200px;
}

.project-card {
    background: var(--section-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    opacity: 1;
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px var(--hover-shadow);
}

.project-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-thumbnail i {
    font-size: 4rem;
    color: var(--accent-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.project-card:hover .project-thumbnail i {
    transform: scale(1.1);
    color: var(--text-color);
}

.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    line-height: 1.3;
}

.project-summary {
    margin-bottom: 1.5rem;
    flex: 1;
}

.summary-section {
    margin-bottom: 1rem;
}

.summary-section:last-child {
    margin-bottom: 0;
}

.summary-section h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.summary-section p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.project-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--background-color);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.tool i {
    font-size: 1rem;
    color: var(--accent-color);
}

.project-next {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 0.5rem;
}

.project-next h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.project-next p {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.project-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.github-link,
.publication-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--background-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.github-link:hover,
.publication-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Design for Projects Section */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 1rem;
    }

    .project-thumbnail i {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .projects-filter {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }

    .project-card {
        margin-bottom: 0;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .project-summary {
        margin-bottom: 1rem;
    }

    .summary-section {
        margin-bottom: 0.75rem;
    }

    .project-tools {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .tool {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }

    .project-next {
        margin-bottom: 1rem;
        padding: 0.75rem;
    }

    .project-actions {
        gap: 0.75rem;
    }

    .github-link,
    .publication-link {
        padding: 0.6rem 1rem;
    }
}

/* Contact Section Styles */
.contact-cta {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-cta h3 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.contact-cta p {
    font-size: 1.2rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.contact-form {
    background: var(--section-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px var(--shadow-color);
    margin-bottom: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--background-color);
    border-radius: 0.5rem;
    background: var(--background-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
    opacity: 0.7;
}

.error-message {
    display: none;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.recaptcha-container {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--hover-shadow);
}

.submit-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(4px);
}

.success-message {
    display: none;
    background: #28a745;
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.contact-social {
    text-align: center;
    padding: 2rem 0;
}

.contact-social h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icons a i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px var(--hover-shadow);
}

.social-icons a:hover i {
    transform: scale(1.1);
}

/* Form Validation Styles */
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #dc3545;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
    .contact-content {
        padding: 0 0.5rem;
    }

    .contact-cta {
        margin-bottom: 2rem;
    }

    .contact-cta h3 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .contact-cta p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .contact-form {
        padding: 1.25rem;
        margin-bottom: 2rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-group label {
        margin-bottom: 0.25rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.75rem;
    }

    .recaptcha-container {
        margin: 1rem 0;
        transform-origin: left;
    }

    .contact-social {
        padding: 1.5rem 0;
    }

    .contact-social h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 1rem;
    }
}

/* Additional mobile optimizations */
@media (max-width: 480px) {
    .section {
        margin: 1rem 0.5rem;
        padding: 3rem 0.5rem;
        border-radius: 1.5rem;
    }

    .section-container {
        padding: 0 0.5rem;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

    .section-title::after {
        bottom: -10px;
        width: 50px;
        height: 3px;
    }
}

/* Publications Section UX */
.publications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}
@media (max-width: 900px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }
}
.publication-card {
    background: var(--section-bg);
    border-radius: 1.2em;
    box-shadow: 0 5px 18px var(--shadow-color);
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s, transform 0.3s;
    position: relative;
}
.publication-card:hover {
    box-shadow: 0 10px 32px var(--hover-shadow);
    transform: translateY(-4px) scale(1.02);
}
.pub-badge {
    font-size: 0.85rem;
    padding: 0.3em 0.8em;
    border-radius: 1em;
    font-weight: 600;
    margin-bottom: 0.7em;
    letter-spacing: 0.02em;
}
.pub-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}
.pub-modal-content {
    background: #fff;
    padding: 2.2em 2em;
    max-width: 500px;
    width: 90vw;
    border-radius: 1.2em;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}
#pub-modal-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}
#pub-modal-close:hover {
    color: var(--accent-color);
}
@media (max-width: 600px) {
    .publication-card {
        padding: 1.2rem 0.7rem 1rem 0.7rem;
    }
    .pub-modal-content {
        padding: 1.2em 0.5em;
    }
}

/* Certificate Button Styles */
.cert-button:hover {
    background: #e8e8e8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
