/* Custom styles */
body {
    font-family: 'Inter', sans-serif;
}

/* Fixed header styles */
header {
    height: 72px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 50;
    transition: all 0.3s ease;
}

/* Common gradient background */
.gradient-bg, .hero-bg {
    background: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
    min-height: 100vh;
    padding-top: 96px;
    transition: padding 0.3s ease;
}

.hover-grow {
    transition: transform 0.3s ease;
}

.hover-grow:hover {
    transform: scale(1.02);
}

.animate-fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Updated color scheme with darker hover states */
.text-purple-500 {
    color: #E0B0FF;
}

.hover\:text-purple-500:hover {
    color: #B080D0;
}

.hover\:text-purple-600:hover {
    color: #9060B0;
}

.bg-purple-500 {
    background-color: #E0B0FF;
}

.hover\:bg-purple-600:hover {
    background-color: #B080D0;
}

/* Welcome text styles */
.welcome-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    color: #1a1a1a;
}

/* Featured post title styles */
.featured-post-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Profile picture styles */
.profile-picture {
    width: 330px;
    height: 330px;
    object-fit: cover;
    margin: 2rem auto;
    border-radius: 50%;
    transition: all 0.3s ease;
}

/* Container and section styles */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    transition: padding 0.3s ease;
}

.content-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    transition: padding 0.3s ease;
}

.section-padding {
    padding: 4rem 1rem;
    transition: padding 0.3s ease;
}

/* Newsletter section styles */
#subscribe {
    background: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
    padding: 4rem 1rem;
}

.newsletter-heading {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.newsletter-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-container iframe {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    min-height: 320px !important;
}

/* Mobile menu styles */
.mobile-menu {
    display: none;
}

.mobile-menu-button {
    padding: 0.75rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-items {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.mobile-menu-items.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    0% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .hero-bg {
        padding-top: 140px; /* Updated as requested */
        min-height: auto;
        padding-bottom: 2rem;
    }

    .gradient-bg {
        padding-top: 100px; /* Increased padding */
        min-height: auto;
        padding-bottom: 2rem;
    }

    .container {
        padding: 1.5rem; /* Increased padding */
    }

    .content-container {
        padding: 1.5rem; /* Increased padding */
    }

    .profile-picture {
        width: 250px;
        height: 250px;
        margin: 2.5rem auto; /* Increased margin */
    }

    /* Profile picture wrapper adjustment */
    .md\:w-1\/2:last-child {
        margin-top: 2rem;
    }

    .section-padding {
        padding: 2rem 1rem;
    }

    .desktop-menu {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .mobile-menu-items a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid #f0f0f0;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }

    .mobile-menu-items a:last-child {
        border-bottom: none;
    }

    /* Typography for mobile */
    .text-5xl {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .text-4xl {
        font-size: 2rem;
        line-height: 1.2;
    }

    .text-3xl {
        font-size: 1.75rem;
        line-height: 1.2;
    }

    .text-2xl {
        font-size: 1.5rem;
        line-height: 1.2;
    }

    .text-xl {
        font-size: 1.25rem;
        line-height: 1.4;
    }

    /* Newsletter heading mobile styles */
    .newsletter-heading {
        font-size: 2rem;
        font-family: 'Space Grotesk', sans-serif;
        font-weight: 300;
    }

    /* Grid layouts */
    .grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin: 0 1rem;
    }

    /* Featured posts adjustments */
    .featured-post-title {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }

    /* Newsletter section mobile adjustments */
    .newsletter-container {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 12px;
    }

    #subscribe {
        padding: 2rem 1rem;
    }
}

/* Utility classes */
.flex-col-reverse {
    flex-direction: column-reverse;
}

@media (min-width: 768px) {
    .md\:flex-row {
        flex-direction: row;
    }

    .md\:w-1/2 {
        width: 50%;
    }

    .container, .content-container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .newsletter-container {
        padding: 2rem;
    }
}

/* Touch device optimizations */
@media (hover: none) {
    .hover-grow:hover {
        transform: none;
    }

    .hover\:text-purple-500:hover {
        color: inherit;
    }

    .hover\:text-purple-600:hover {
        color: inherit;
    }
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 20px;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    margin: auto;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
}

.clickable-image-container {
    position: relative;
    margin-bottom: 1rem;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 100%;
}

.clickable-image:hover {
    transform: scale(1.02);
    opacity: 0.95;
}

.image-zoom-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.clickable-image-container:hover .image-zoom-icon {
    opacity: 1;
}

.image-caption {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Project image thumbnail sizes */
.project-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Left-aligned text in projects */
.project-content {
    text-align: left;
}

/* Responsive modal */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
}