body {
    font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #b3d9ff, #d9e6f2, #e6f2ff, #f2f9ff);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    line-height: 1.8;
    font-size: 1.25rem; /* Increase body text size */
    letter-spacing: 0.01em;
    min-height: 100vh;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

body.dark-mode {
    background: linear-gradient(-45deg, #2c3e50, #34495e, #2c3e50, #34495e);
    color: #ecf0f1;
}

body.dark-mode a {
    color: #f0f0f0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem); /* Make all headings look like h1 */
    font-weight: 700;
    background: linear-gradient(135deg, #0073e6, #00a8e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 {
    color: #ecf0f1;
    -webkit-text-fill-color: #ecf0f1;
    background: none;
}

h1 {
    text-align: center;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: linear-gradient(135deg, #0073e6, #00a8e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.content {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-size: 2.5em 2.5em;
    background-position: 0 0, 0 0, 0 0, 0 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 1);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content.reveal {
    opacity: 0.95;
    transform: translateY(0);
}

body.dark-mode .content {
    background: rgba(44, 62, 80, 0.95);
    background-image: linear-gradient(0deg, rgba(236, 240, 241, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 240, 241, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(236, 240, 241, 1);
    color: #ecf0f1;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .content {
        max-width: 80%;
        padding: 20px;
    }
}

/* Remove bullets from list items */
ul {
    list-style-type: none;
    padding: 0 !important;
    overflow: hidden;
}

li {
    background: #f0f0f0;
    background-size: 2.5em 2.5em;
    background-position: 0 0, 0 0, 0 0, 0 0;
    border-radius: 12px;
    border: 2px dotted rgba(0, 0, 0, 1);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.1);
    margin: 30px auto;
    padding: 30px;
    text-align: center;
    max-width: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    font-size: 1rem; /* Default text size */
    display: flex;
    flex-direction: column;
    align-items: center;
}

li:nth-child(even) {
    transform: translateX(50px);
}

li.reveal {
    opacity: 1;
    transform: translateX(0);
}

li:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

li::before {
    content: attr(data-emoji);
    display: block;
    font-size: 4rem; /* Much larger emoji size */
    margin-bottom: 10px;
}

body.dark-mode li {
    background: #3a3a3a;
    border: 1px solid rgba(236, 240, 241, 0.1);
    color: #ecf0f1;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    li {
        max-width: 80%;
        padding: 20px;
        font-size: 0.875rem; /* Smaller text size */
    }
}

/* Call-to-action buttons base styles */
.cta {
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta a {
    display: inline-block;
    padding: 15px 30px;
    background: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    opacity: 0.85;
    text-align: center;
}

body.dark-mode .cta a {
    background: #3498db;
    color: #ecf0f1;
}

.cta a:hover {
    transform: translateY(-3px) scale(1.02) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 115, 230, 0.4);
    animation: none;
}

body.dark-mode .cta a:hover {
    box-shadow: 0 15px 30px rgba(52, 152, 219, 0.4);
}

/* Social link button styles */
.cta .social-btn {
    padding: 8px 16px;
    font-size: 0.9em;
    background: #0073e6;
    margin: 0 8px;
}

.cta .linkedin-btn {
    background: #0077b5;
    padding: 8px 16px;
    font-size: 0.9em;
    margin: 0 8px;
}

.cta .medium-btn {
    background: #000000;
    padding: 8px 16px;
    font-size: 0.9em;
    margin: 0 8px;
}

.cta .email-btn {
    background: #ea4335;
    padding: 8px 16px;
    font-size: 0.9em;
    margin: 0 8px;
}

/* Contact CTA specific styles */
.contact-cta {
    margin: 5em auto;
    perspective: 1000px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
}

.contact-cta a {
    /* Button dimensions and typography */
    padding: 30px 60px;
    font-size: 2em;
    font-weight: 700;
    opacity: 1;
    
    /* Gradient background */
    background: linear-gradient(-45deg, #0073e6, #00a8e8, #0073e6);
    background-size: 200% 200%;
    
    /* Animations */
    animation: 
        contactPulse 3s ease-in-out infinite,
        gradientShift 6s linear infinite;
    
    /* Positioning */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-cta a:hover {
    transform: translateY(-3px) scale(1.02) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 115, 230, 0.4);
    animation: none;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .contact-cta a {
        padding: 15px 30px;
        font-size: 1.2em;
    }
}

/* Shine effect */
.contact-cta a::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* Animations */
@keyframes contactPulse {
    0% {
        transform: scale(1) rotateX(0deg);
        box-shadow: 0 4px 12px rgba(0, 115, 230, 0.2);
    }
    50% {
        transform: scale(1.05) rotateX(3deg);
        box-shadow: 0 12px 24px rgba(0, 115, 230, 0.4);
    }
    100% {
        transform: scale(1) rotateX(0deg);
        box-shadow: 0 4px 12px rgba(0, 115, 230, 0.2);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shine {
    0% { transform: rotate(45deg) translateY(-100%); }
    100% { transform: rotate(45deg) translateY(100%); }
}


@keyframes zoom {
    /* display: none; */
}
.dark-mode-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 10px;
    background: #0073e6;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}
.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
}

.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 40px;
    overflow: hidden; /* Ensure the background doesn't overflow */
}

.hero-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Place the background behind the content */
}

.hero-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1; /* Ensure the content is above the background */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items to the top */
    gap: 33vh; /* Add a gap of one-third of the viewport height */
    height: 100%; /* Make the content take full height of the section */
}

.hero-title {
    font-size: clamp(3rem, 7vw, 4.5rem);
    margin-top: 0px; /* Add margin to push the title down */
    background: linear-gradient(135deg, #0073e6, #00a8e8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -0.03em;
    animation: titleFade 1s ease-in;
    text-align: center;
    position: relative;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); */
}

body.dark-mode .hero-title {
    background-color: rgba(44, 62, 80, 0.6); /* Add a semi-transparent dark background */
    padding: 0.5rem 1rem; /* Add padding for better spacing */
    border-radius: 8px; /* Slightly round the corners */
    display: inline-block; /* Ensure the background wraps the text */
}

.hero-cta {
    margin-bottom: 0px; /* Add margin to keep the button around its current position */
}

.hero-icon {
    font-size: 8em;
    margin: 1rem 0;
    animation: float 3s ease-in-out infinite;
}

.hero-button {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.5em;
    font-weight: 600;
    color: white;
    background: linear-gradient(-45deg, #0073e6, #00a8e8);
    border-radius: 50px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: buttonPulse 2s infinite;
    text-align: center;
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 115, 230, 0.3);
}

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

@keyframes buttonPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 230, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 115, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 230, 0); }
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5em;
        margin: 1rem 0.5rem;
    }
}

/* Contact form styles */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Closer vertically */
    max-width: 600px;
    margin: 40px auto;
    padding: 0; /* Remove padding */
    background: none; /* Remove background */
    border: none; /* Remove border */
    box-shadow: none; /* Remove box-shadow */
}

#contactForm input, #contactForm textarea, #contactForm select {
    width: 100%;
    padding: 1.5rem; /* Larger padding */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1.1rem; /* Larger font size */
    font-family: 'Open Sans', sans-serif;
    box-sizing: border-box;
    margin-bottom: 1rem; /* Closer vertically */
}

#contactForm input::placeholder, #contactForm textarea::placeholder {
    color: #999;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
}

#contactForm button {
    padding: 1.5rem 2rem; /* Larger padding */
    margin: 2rem 0;
    font-size: 1.3rem; /* Larger font size */
    font-weight: 600;
    color: white;
    background: linear-gradient(-45deg, #0073e6, #00a8e8);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

#contactForm button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 115, 230, 0.3);
}

/* Inline checkbox and label */
#contactForm label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-family: 'Open Sans', sans-serif;
}

#contactForm input[type="checkbox"] {
    width: auto;
    margin: 0;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    #contactForm {
        max-width: 95%;
        padding: 0; /* Remove padding */
    }

    #contactForm input, #contactForm textarea, #contactForm select {
        font-size: 1.2rem; /* Even larger font size on mobile */
    }

    #contactForm input::placeholder, #contactForm textarea::placeholder {
        font-size: 1.1rem; /* Adjust placeholder font size for mobile */
    }

    #contactForm button {
        padding: 2rem; /* Even larger padding on mobile */
        font-size: 1.4rem; /* Even larger font size on mobile */
    }
}

/* Iframe container styles */
.iframe-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Closer vertically */
    max-width: 600px;
    margin: 40px auto;
    padding: 0; /* Remove padding */
    background: none; /* Remove background */
    border: none; /* Remove border */
    box-shadow: none; /* Remove box-shadow */
}

.iframe-container iframe {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    margin-bottom: 1rem; /* Closer vertically */
}

footer {
    padding: 20px 10px;
    text-align: center;
    margin: auto;
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    background-size: 2.5em 2.5em;
    background-position: 0 0, 0 0, 0 0, 0 0;
    border: 1px solid rgba(0, 0, 0, 0);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    width: 100vw;
    /* max-width: 800px; */
    display: flex;
    flex-direction: column;
    min-height: 200px;
    border-radius: 0; /* Remove border radius */
}

body.dark-mode footer {
    background: 
        radial-gradient(circle at 100% 50%, rgba(44, 62, 80, 0.6) 20%, transparent 21%),
        radial-gradient(circle at 0% 50%, rgba(44, 62, 80, 0.6) 20%, transparent 21%),
        radial-gradient(circle at 50% 100%, rgba(44, 62, 80, 0.6) 20%, transparent 21%),
        radial-gradient(circle at 50% 0%, rgba(44, 62, 80, 0.6) 20%, transparent 21%),
        rgba(44, 62, 80, 0.95);
    background-image: linear-gradient(0deg, rgba(236, 240, 241, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(236, 240, 241, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 1px solid rgba(236, 240, 241, 0.1);
    color: #ecf0f1;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    footer {
        max-width: 90%; /* Make the footer narrower on mobile */
        padding: 20px;
    }
}

.medium-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.medium-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* Start hidden */
    transform: translateX(-50px); /* Start off-screen to the left */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

.medium-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.medium-post:nth-child(even) {
    transform: translateX(50px); /* Start off-screen to the right for even posts */
}

.medium-post.reveal {
    opacity: 1; /* Fade in */
    transform: translateX(0); /* Slide into place */
}

.medium-post-image img {
    width: 100%;
    height: auto;
}

.medium-post-content {
    padding: 20px;
    text-align: left;
}

.medium-post-content h3 {
    font-size: 1.25rem;
    margin: 0 0 10px;
}

.medium-post-content p {
    margin: 0 0 10px;
    color: #555;
}

.medium-post-content .date {
    font-size: 0.875rem;
    color: #999;
}

body.dark-mode .medium-post {
    background: #2c3e50;
    color: #ecf0f1;
}

body.dark-mode .medium-post-content p {
    color: #ecf0f1;
}

body.dark-mode .medium-post-content .date {
    color: #bdc3c7;
}

strong {
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.floating-menu {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.menu-icon {
    background: #0073e6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.menu-items {
    display: flex;
    flex-direction: column; /* Ensure vertical column layout */
    align-items: flex-start; /* Align items to the left */
    padding-left: 0px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.5);
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.menu-items.hidden {
    display: none;
}

.menu-items a {
    font-family: 'Montserrat', sans-serif; /* Match title font */
    font-size: 1.2rem; /* Slightly larger font size */
    font-weight: 700;
    color: #0073e6; /* Match site color scheme */
    text-decoration: none;
    display: block; /* Ensure proper block-level positioning */
    padding: 5px 20px !important;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: #00a8e8; /* Change text color on hover */
}

body.dark-mode .menu-items a {
    color: #ecf0f1; /* Light text color for dark mode */
}

body.dark-mode .menu-items a:hover {
    color: #3498db; /* Hover color for dark mode */
}

.floating-menu ul {
    list-style: none;
    background-color: #ffffff;
    border-radius: 15px;
}

body.dark-mode .floating-menu ul {
    background-color: #2c3e50;
}

.floating-menu li {
    margin: 0;
}

.floating-menu a {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0px;
}

.floating-menu a:hover {
    color: #00a8e8;
}

.menu-items li {
    margin: 0;
    padding: 0px;
    /* align-items: left; */
    width: 100%; /* Ensure full width for alignment */
    background: none; /* Ensure no background in dark mode */
    border: none;
    box-shadow: none;
    display: contents;
}

body.dark-mode .menu-items li {
    background: none; /* Ensure no background in dark mode */
    border: none; /* Ensure no border in dark mode */
    box-shadow: none; /* Ensure no shadow in dark mode */
}

.menu-items a {
    font-family: 'Montserrat', sans-serif; /* Match title font */
    font-size: 1.2rem; /* Slightly larger font size */
    font-weight: 700;
    color: #0073e6; /* Match site color scheme */
    text-decoration: none;
    display: block; /* Ensure proper block-level positioning */
    padding: 20px;
    transition: color 0.3s ease;
}

.menu-items a:hover {
    color: #00a8e8; /* Change text color on hover */
}

body.dark-mode .menu-items a {
    color: #ecf0f1; /* Light text color for dark mode */
}

body.dark-mode .menu-items a:hover {
    color: #3498db; /* Hover color for dark mode */
}

#about-section {
    position: relative; /* Enable positioning for the profile picture */
}

#about-section .profile-pic {
    position: absolute;
    top: -5vh; /* Adjust position relative to viewport height */
    right: 0vw; /* Adjust position relative to viewport width */
    width: 20vw; /* Set width relative to viewport width */
    height: 20vw; /* Ensure it's a perfect circle */
    max-width: 250px; /* Set a maximum size for smaller screens */
    max-height: 250px; /* Ensure consistent aspect ratio */
    border-radius: 50%; /* Crop into a circle */
    border: 3px solid white; /* Optional border for better visibility */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
    object-fit: cover; /* Ensure the image fits within the circle */
}

p {
    font-size: 1.2rem; /* Default font size for desktop */
    line-height: 1.8;
}

@media (max-width: 768px) {
    p {
        font-size: 1rem; /* Smaller font size for mobile */
    }
}

.page-container {
    max-width: 100%;
    overflow-x: hidden;
    /* padding: 0 1rem; */
    box-sizing: border-box;
}