/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    color: #333;
    background-color: #f4f4f9;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navigation Bar */
nav {
    background-color: #1e3a5f;
    color: white;
    padding: 1rem;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Navigation Bar H2 Styling */
nav h2 {
    font-size: 1rem;
    color: #f2f3f3; 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 700;
    letter-spacing: 1px;    
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Add subtle hover effect to make it fun but polished */
nav h2:hover {
    color: #ff6f3c; 
    transform: translateY(-3px); 
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    font-size: 1rem;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ff6f3c;
}

/* Hero Section */
#home {
    height: 100vh; /* Full height of the viewport */
    background: linear-gradient(120deg, #1e3a5f, #19d3da);
    color: white;
    display: flex;
    justify-content: center; /* Center content */
    align-items: center; /* Center items vertically */
    text-align: center;
    padding-top: 60px; /* To offset nav height */
    overflow: hidden; /* Prevent overflow for animations */
}

/* Animated Entry for Intro Text and Profile Picture */
.intro-text {
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px); /* Start slightly below */
    animation: fadeInUp 0.8s forwards; /* Animation for intro text */
    animation-delay: 0.2s; /* Delay for smoother appearance */
}

.profile-pic-container {
    opacity: 0; /* Start hidden for animation */
    transform: scale(0.8); /* Start smaller */
    animation: scaleIn 0.8s forwards; /* Animation for profile picture */
    animation-delay: 0.4s; /* Delay for smoother appearance */
}



/* Keyframe Animations */
@keyframes fadeInUp {
    to {
        opacity: 1; /* Fade in */
        transform: translateY(0); /* Move to original position */
    }
}

@keyframes scaleIn {
    to {
        opacity: 1; /* Fade in */
        transform: scale(1); /* Scale to normal size */
    }
}

.home-content {
    display: flex;
    justify-content: center; /* Center content */
    align-items: flex-start; /* Align items to start */
    width: 90%; /* More width for smaller devices */
    max-width: 1200px; /* Keep max width for larger screens */
    margin: auto;
}

/* Intro Text */
.intro-text {
    flex: 1;
    margin-right: 20px; /* Space between text and image */
}

.intro-text h1 {
    font-size: 3rem; /* Main title font size */
}

.intro-text .tagline {
    font-size: 1.5rem; /* Tagline font size */
    margin: 10px 0;
}


.cta-buttons {
    margin-top: 20px;
}

.cta-btn {
    background-color: #19d3da; /* Button color */
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    margin-right: 10px;
    border: none;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.cta-btn:hover {
    background-color: #ff6f3c; /* Button hover color */
}

.profile-pic-container {
    width: 250px; /* Default profile picture size */
    height: 250px; /* Maintain aspect ratio */
    border-radius: 50%;
    overflow: hidden;
    margin-left: 30px; /* Space between image and text */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure the image covers the container */
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 20px;
    /* left: 50%; */
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    animation: bounce 1.5s infinite;
}

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

/* About Section */
#about {
    padding: 70px 20px;
    background-color: white;
    text-align: center;
}

#about p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* Experience Section */
#experience {
    padding: 70px 20px;
    background-color: #f4f4f9;
}

.job {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.job-title-container {
    display: flex;
    align-items: center; /* Center logo and title */
}

.company-logo {
    width: 50px; /* Adjust width as needed */
    height: auto; /* Maintain aspect ratio */
    margin-right: 15px; /* Space between logo and title */
}

.job h3 {
    font-size: 1.8rem;
    color: #1e3a5f;
}

.job p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 10px;
}

.job ul {
    list-style-type: disc;
    margin: 10px 0 20px 20px;
}

.job ul li {
    margin-bottom: 5px;
}

p a {
    color: #1e90ff; /* Customize link color */
    text-decoration: underline; /* Underline the link */
    font-weight: bold; /* Make it bold for emphasis */
}

p a:hover {
    color: #ff6f3c; /* Change color on hover */
    text-decoration: none; /* Remove underline on hover */
}

/* Skills Section */
#skills {
    padding: 70px 20px;
    background-color: white;
}

#skills ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#skills ul li {
    background-color: #19d3da;
    color: white;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

#skills ul li:hover {
    background-color: #ff6f3c;
}

/* Education Section */
#education {
    padding: 70px 20px;
    background-color: #f4f4f9;
}

.education-item {
    background-color: white;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.education-item h3 {
    font-size: 1.8rem;
    color: #1e3a5f;
}

.education-item p {
    font-size: 1.1rem;
    color: #666;
}

/* Contact Section */
#contact {
    padding: 70px 20px;
    background-color: white;
    text-align: center;
}

#contact p {
    font-size: 1.2rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .home-content {
        flex-direction: column; /* Stack text and image vertically on mobile */
        align-items: center; /* Center align for mobile */
        text-align: center; /* Center text for better readability */
    }

    .intro-text {
        margin-right: 0; /* Remove right margin for mobile */
        margin-bottom: 20px; /* Add space below text */
    }

    .profile-pic-container {        
        width: 200px; /* Adjust size for mobile */
        height: 200px; /* Maintain aspect ratio */
        margin: 0 auto; /* Center the image */
        margin-top: 50px;
    }


    .profile-pic {
        width: 100%; /* Ensure it fills the container */
        height: 100%; /* Ensure it fills the container */
        object-fit: cover; /* Maintain aspect ratio */
        border-radius: 50%; /* Make it circular */
    }

    .intro-text h1 {
        font-size: 2.5rem; /* Smaller font size for mobile */
    }

    .intro-text .tagline {
        font-size: 1.2rem; /* Smaller tagline font size */
    }

    .cta-btn {
        font-size: 1rem; /* Smaller button font size */
    }

    nav ul {
        flex-direction: column; /* Stack nav items vertically */
    }

    nav ul li {
        margin-left: 0; /* Reset margin for stacked items */
        margin-top: 10px; /* Add top margin for spacing */
    }

    nav h2 {
        font-size: 1.5rem; /* Adjust font size */
    }

    .company-logo {
        width: 40px; /* Reduce logo size on mobile */
    }

    section h2 {
        font-size: 2rem; /* Adjust heading size */
    }
}

.social-icon {
    width: 25px; /* Adjust size as needed */
    height: auto;
    margin-left: 15px; /* Space before the icon */
    vertical-align: middle; /* Aligns the icon vertically */
}

.trilochan-logo {
    width: 35px; /* Adjust size as needed */
    height: auto;
    margin-left: 5px; /* Space before the icon */
    vertical-align: middle; /* Aligns the icon vertically */
}


/* Certifications Section */
#certifications {
    padding: 70px 20px; /* Add padding for spacing */
    background-color: #f4f4f9; /* Light gray background for the section */
}

#certifications h2 {
    font-size: 2.5rem; /* Heading size */
    color: #1e3a5f; /* Dark blue color */
    text-align: center; /* Center the heading */
    margin-bottom: 40px; /* Space below the heading */
}

.certification-item {
    background-color: white; /* White background for individual items */
    padding: 20px; /* Padding for each certification */
    margin: 15px 0; /* Margin between items */
    border-radius: 8px; /* Rounded corners */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    transition: transform 0.3s, box-shadow 0.3s; /* Transition effects for hover */
}

.certification-item:hover {
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.certification-item h3 {
    font-size: 1.8rem; /* Certification title size */
    color: #1e3a5f; /* Dark blue color for certification titles */
    margin-bottom: 10px; /* Space below the title */
}

.certification-item p {
    font-size: 1rem; /* Font size for additional details */
    color: #555; /* Gray color for text */
    margin: 5px 0; /* Margin for spacing */
}

.tag, .tag-small {
    font-family: 'Dancing Script', cursive; /* Use the cursive font */
    font-size: 1.3rem; /* Adjust size as needed */
    color: #f2f3f3;  /* Match your color scheme */
    margin-left: 10px; /* Space between the icon and tagline */
}
.tag-small{
    display: none;
}

/* Floating Navigation Styles */
.floating-nav {
    position: fixed; /* Fixed positioning */
    right: 20px; /* Position from the right */
    bottom: 20px; /* Position from the bottom */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between buttons */
    z-index: 1000; /* Ensure it’s above other content */
}

.floating-nav a {
    background-color: #1e3a5f; /* Dark blue background */
    color: white; /* White text color */
    width: 50px; /* Width for circular button */
    height: 50px; /* Height for circular button */
    border-radius: 50%; /* Make the button circular */
    display: flex; /* Flexbox to center the text */
    align-items: center; /* Vertically center the text */
    justify-content: center; /* Horizontally center the text */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underline */
    font-size: 20px; /* Font size for the icon/text */
    transition: background-color 0.3s; /* Transition for hover effect */
    border: none; /* No border */
}

.floating-nav a:hover {
    background-color: #ff6f3c; /* Change color on hover */
}

.scroll-to-top,
.scroll-to-bottom, .scroll-to-previous, .scroll-to-next {
    background-color: #1e3a5f; /* Dark blue background */
    color: white; /* White text color */
    padding: 10px 15px; /* Padding for buttons */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s; /* Transition for hover effect */
    font-size: 24px; /* Increase icon size */
    font-weight: bolder;
}

.scroll-to-top:hover,
.scroll-to-bottom:hover, .scroll-to-previous:hover, .scroll-to-next:hover {
    background-color: #ff6f3c; /* Change color on hover */
}

/* General Styles */
.nav-menu {
    display: none; /* Hide the menu by default for mobile */
}

.dropdown {
    position: relative; /* Position for dropdown */
    display: inline-block; /* Inline display for the button */
}

.dropbtn {
    background-color: #1e3a5f; /* Dark blue background */
    color: white; /* White text */
    padding: 10px 15px; /* Padding for the button */
    border: none; /* No border */
    cursor: pointer; /* Pointer cursor on hover */
    font-size: 16px; /* Font size */
    margin: 0; /* No margin */
}

.dropdown-content {
    display: none; /* Hidden by default */
    position: absolute; /* Position the dropdown */
    background-color: white; /* White background for dropdown */
    min-width: 160px; /* Minimum width of the dropdown */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Shadow for depth */
    z-index: 1; /* Above other content */
    left: -26px;
}

.dropdown-content ul {
    list-style-type: none; /* Remove default list styles */
    padding: 0; /* No padding */
    margin: 0; /* No margin */
}

.dropdown-content ul li {
    padding: 12px 16px; /* Padding for each item */
}

.dropdown-content ul li a {
    text-decoration: none; /* Remove underline */
    color: black; /* Text color */
}

.dropdown-content ul li:hover {
    background-color: #f1f1f1; /* Background on hover */
}

.dropdown:hover .dropdown-content {
    display: block; /* Show the dropdown on hover */
}



@media (max-width: 1240px) {
    .tag {
        display: none; /* Hide the tag on smaller screens */
    }    
   
    .tag-small{
        display: inline;
    }
        
    .floating-nav {
        display: none;
    }
    .trilochan-logo{
        width: 50px; /* Further reduce logo size on smaller screens */
    }
}

@media (min-width: 1024px) {
    .tag-small{
        display: none;
    }    
}
/* Additional Styles for Responsive Design */
@media (min-width: 821px) {
  
    .certification-item {
        padding: 15px; /* Adjust padding for mobile */
    }

    .certification-item h3 {
        font-size: 1.5rem; /* Reduce heading size on mobile */
    }

    .certification-item p {
        font-size: 0.9rem; /* Reduce paragraph size on mobile */
    }

    .nav-menu {
        display: flex; /* Show the horizontal menu */
        list-style-type: none; /* Remove default list styles */
    }

    .nav-menu li {
        margin: 0 10px; /* Space between items */
    }

    .nav-menu li a {
        color: white; /* Color for links */
        text-decoration: none; /* Remove underline */
        padding: 10px; /* Padding for links */
        transition: background-color 0.3s; /* Transition for hover effect */
    }

    .dropdown {
        display: none; /* Hide dropdown on larger screens */
    }
}


@media (max-width: 480px) {
    .home-content {
        width: 90%; /* Use more width on smaller screens */
    }

    .intro-text h1 {
        font-size: 2rem; /* Smaller heading font size */
    }

    .intro-text .tagline {
        font-size: 0.9rem; /* Smaller tagline font size */
    }

    .cta-btn {
        padding: 8px 16px; /* Adjust button padding */
    }

    .profile-pic-container {
        width: 180px; /* Further reduce size of profile picture */
        height: 180px; /* Maintain aspect ratio */
        margin-top: 20px;
    }

    nav h2 {
        font-size: 1.3rem; /* Smaller size for smaller screens */
    }

    .company-logo {
        width: 30px; /* Further reduce logo size on smaller screens */
    }
    .floating-nav {
        display: none;
    }
    .scroll-down {
        bottom: 10px;
    }

    #about {
        padding: 95px 20px;
    }
    #experience  {
        padding: 95px 20px;
    }
    #skills  {
        padding: 95px 20px;
    }
    
    #education {
        padding: 95px 20px;
    }
    
    #certifications  {
        padding: 95px 20px;
    }
    
    #contact {
        padding: 95px 20px;
    }
}


@media (max-width: 360px) {
    .tag-small{
        display: none;
    }
}