@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rowdies:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease; /* Smooth transitions for all elements */
}

/* Hide Scrollbars */
html, body {
    overflow-x: hidden; /* Hide horizontal scrollbar */
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

/* Header Section */
.header {
    position: relative;
    height: 100vh; /* Set the header to full viewport height */
    overflow: hidden; /* Ensure the video doesn't overflow */
}

.header-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the video covers the entire header */
    z-index: -1; /* Place the video behind other content */
}

.header-content {
    position: relative;
    z-index: 1; /* Ensure content is above the video */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    height: 100%; /* Ensure content takes full height of the header */
    flex-direction: column;
}

/* Header Content */
.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    margin-top: 20px;
    flex-direction: column;
}

.header-text {
    max-width: 600px; /* Adjust as needed */
}

.intro-text {
    font-size: 20px; /* Small text */
    margin-bottom: 5px;
    color: #ffffff;
    /* font-family: 'Inter', sans-serif; */
    font-family: "Libre Baskerville", serif;
}

.name {
    font-size: 80px; /* Big text */
    font-weight: 700;
    margin-bottom: 5px;
    /* font-family: "Playfair Display", serif; */
    font-family: "Open Sans", serif;
}

.name::first-letter {
    font-size: 80px;
    color: #ff0000; /* Red color for the first letter */
}

.description {
    font-size: 20px; /* Paragraph text */
    color: #ffffff;
    line-height: 1.6;
    /* font-family: 'Inter', sans-serif; */
    font-family: "Libre Baskerville", serif;
}

/* Navigation Bar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 40px 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease; /* Smooth transition for navbar */
}

/* Left: Your Name */
.logo {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
}

/* Middle: Navigation Links (Text) */
.nav-links {
    display: flex;
    gap: 50px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ff0000; /* Neon green for hover */
}

/* Right: Download CV Button */
.btn-download {
    background: #ff0000;
    /*Neongreen*/color: #2d2d2d;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    color: #fff;
    transition: background 0.3s;
}

.btn-download:hover {
    background: #c40303; /* Darker green on hover */
    color: #fff;
}

/* Sticky Navigation (Icons) */
.sticky-nav {
    position: fixed;
    top: 25%; /* Position at 25% from the top to center vertically */
    right: 0; /* Move to the right side */
    width: 80px; /* Narrow sidebar */
    height: 50vh; /* 50% of viewport height */
    background: #2d2d2d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Smooth transition for sticky-nav */
    border-radius: 40px 0 0 40px; /* 50% border radius on the left side */
}

.sticky-nav .nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    list-style: none;
}

.sticky-nav .nav-links a {
    color: #ffffff;
    font-size: 21px; /* Larger icons */
    transition: color 0.3s;
    position: relative;
}

.sticky-nav .nav-links a:hover {
    color: #ff0000; /* Neon green for hover */
}

/* Tooltips for Icons */
.sticky-nav .nav-links a::after {
    content: attr(title);
    position: absolute;
    top: 50%;
    left: -100px; /* Position tooltip to the left */
    transform: translateY(-50%);
    background: #2d2d2d;
    color: #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.sticky-nav .nav-links a:hover::after {
    opacity: 1;
    visibility: visible;
}

.sticky-nav .btn-download {
    margin-top: 15px;
    margin-bottom: 7px;
    width: 60px;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
}

/* Rest of the Page */
main {
    padding: 40px;
    background: #1A1615; /* New background color for main */
    color: #ffffff; /* Ensure text is visible on dark background */
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #ffffff; /* White text for dark background */
    font-family: "Open Sans", serif;
}

section p {
    font-size: 16px;
    color: #cccccc; /* Light gray text for better readability */
    line-height: 1.6;
    font-family: "Libre Baskerville", serif;
}

/* Sticky Navigation (Icons) */
.sticky-nav {
    position: fixed;
    top: 25%; /* Position at 25% from the top to center vertically */
    right: 0; /* Move to the right side */
    width: 80px; /* Narrow sidebar */
    height: 50vh; /* 50% of viewport height */
    background: #2d2d2d;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease; /* Smooth transition for sticky-nav */
    border-radius: 40px 0 0 40px; /* 50% border radius on the left side */
    opacity: 0; /* Initially hidden */
    visibility: hidden; /* Initially hidden */
}

/* Show Sticky Navigation After Scroll */
.sticky-nav.visible {
    opacity: 1; /* Fully visible */
    visibility: visible; /* Fully visible */
}

/* Social Media Section (Left Side) */
.social-media {
    position: absolute;
    left: 40px; /* Position on the left side */
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    z-index: 10;
}

/* Vertical Line */
.vertical-line {
    width: 2px;
    height: 100px; /* Adjust height as needed */
    background: #ffffff; /* White color */
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.social-icons a {
    color: #ffffff; /* White icons */
    font-size: 24px; /* Icon size */
    transition: color 0.3s;
    pointer-events: auto; /* Enable clickability */
    display: inline-block; /* Ensure proper box model for the anchor tags */
    z-index: 1;
}

.social-icons a:hover {
    color: #ff0000; /* Neon green on hover */
}

/* Follow Me Text */
.follow-me {
    color: #ffffff; /* White text */
    font-size: 14px;
    font-weight: 500;
    writing-mode: vertical-rl; /* Vertical text */
    transform: rotate(180deg); /* Rotate to read bottom-to-top */
}

/* Middle: Navigation Links (Text) */
.navbar .nav-links a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
    transition: color 0.3s;
    position: relative; /* Required for the pseudo-element */
}

.navbar .nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px; /* Position the line below the text */
    width: 100%;
    height: 2px; /* Thickness of the line */
    background-color: #ff0000; /* Color of the line */
    transform: scaleX(0); /* Initially hidden */
    transform-origin: bottom right;
    transition: transform 0.3s ease; /* Smooth transition */
}

.navbar .nav-links a:hover::after {
    transform: scaleX(1); /* Show the line on hover */
    transform-origin: bottom left;
}

.navbar .nav-links a:hover {
    color: #ff0000; /* Neon green for hover */
}

/* About Me Section */
#about {
    padding: 60px 40px;
    background: #1A1615; /* Dark background for consistency */
    display: flex;
    align-items: center;
    gap: 40px; /* Space between text and SVG */
}

.about-content {
    max-width: 800px;
    text-align: left;
    flex: 1;
}

.about-content p {
    font-size: 18px;
    color: #cccccc; /* Light gray text for better readability */
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 40px;
}

.contact-details h3 {
    font-size: 24px;
    color: #ffffff; /* White text for dark background */
    margin-bottom: 15px;
    font-family: "Open Sans", serif;
}

.contact-details p {
    font-size: 16px;
    color: #cccccc; /* Light gray text for better readability */
    margin-bottom: 10px;
}

.contact-details .btn-download {
    background: #ff0000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
    display: inline-block;
    margin-top: 15px;
}

.contact-details .btn-download:hover {
    background: #c40303; /* Darker red on hover */
}

/* Education Dropdown */
.education {
    text-align: left;
    margin-bottom: 30px;
}

.education-toggle {
    font-size: 24px;
    color: #ffffff; /* White text for dark background */
    margin-bottom: 20px;
    font-family: "Open Sans", serif;
    cursor: pointer; /* Indicates it's clickable */
    display: flex;
    align-items: center;
    gap: 10px; /* Space between text and icon */
}

.education-toggle i {
    font-size: 18px;
    transition: transform 0.3s ease; /* Smooth rotation for the icon */
}

.education-dropdown {
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transition: max-height 0.5s ease; /* Smooth dropdown animation */
}

.education-dropdown.open {
    max-height: 500px; /* Adjust based on content height */
}

.education-item {
    margin-bottom: 30px;
}

.education-item h4 {
    font-size: 20px;
    color: #ffffff; /* White text for dark background */
    margin-bottom: 10px;
}

.education-item p {
    font-size: 16px;
    color: #cccccc; /* Light gray text for better readability */
    line-height: 1.6;
    margin-bottom: 10px;
}

/* SVG Image Styling */
.about-svg {
    flex: 1;
    max-width: 1000px; /* Adjust as needed */
    height: auto;
}

.about-svg img {
    width: 100%;
    height: 100%;
}

/* Skills Section */
#skills {
    padding: 60px 60px;
    background: #1A1615; /* Dark background for consistency */
}

.skills-container {
    display: flex;
    align-items: center;
    gap: 40px; /* Space between image and skills */
}

.skills-image {
    flex: 1;
    max-width: 600px; /* Adjust as needed */
}

.skills-image img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* Optional: Add rounded corners */
}

.skills-list {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-name {
    font-size: 22px;
    color: #ffffff;
    width: 100px; /* Fixed width for skill names */
}

.skill-bar {
    flex: 1;
    height: 10px;
    background: #444;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: #ff0000; /* Red progress bar */
    border-radius: 5px;
    position: absolute;
    left: 0;
    top: 0;
    transition: width 0.5s ease; /* Smooth transition for progress */
}

/* Works Section */
#works {
    padding: 60px 40px;
    background: #1A1615; /* Dark background for consistency */
}

.works-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px; /* Space between boxes */
    justify-content: center;
}

.work-box {
    flex: 1 1 calc(33.333% - 40px); /* 3 boxes per row with spacing */
    max-width: calc(33.333% - 120px); /* Ensure boxes don't exceed width */
    background: #2d2d2d; /* Dark background for boxes */
    border-radius: 15px; /* Rounded corners */
    overflow: hidden; /* Ensure content stays within the box */
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    display: block; /* Make the link a block element */
    aspect-ratio: 1 / 1; /* Make the box square */
    min-width: 200px; /* Smaller box size */
}

.work-box:hover {
    transform: translateY(-10px); /* Lift the box on hover */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Add shadow on hover */
}

.work-content {
    padding: 15px; /* Smaller padding */
    text-align: center;
    position: relative;
    height: 100%; /* Ensure content takes full height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.work-content h3 {
    font-size: 20px; /* Smaller font size for heading */
    color: #ffffff; /* White text for headings */
    margin-bottom: 10px;
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.8); /* Red overlay with transparency */
    color: #ffffff; /* White text for description */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
    padding: 15px; /* Smaller padding */
    box-sizing: border-box;
}

.work-box:hover .work-overlay {
    opacity: 1; /* Show overlay on hover */
}

.work-overlay p {
    font-size: 14px; /* Smaller font size for description */
    text-align: center;
    line-height: 1.6;
}

/* Contact Section */
#contact {
    padding: 60px 60px;
    background: #1A1615;
    color: #ffffff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-evenly;
}

.contact-form, .contact-info, .map {
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    background: #2d2d2d;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.contact-form h3, .contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ffffff;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1A1615;
    color: #ffffff;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.btn-submit {
    background: #ff0000;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #c40303;
}

.contact-info p {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info p i {
    font-size: 20px;
    color: #ff0000;
}

.social-media-contact {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-media-contact a {
    color: #ffffff;
    font-size: 24px;
    transition: color 0.3s;
}

.social-media-contact a:hover {
    color: #ff0000;
}


/* Footer Section */
/* Footer Section */
.footer {
    background: #2d2d2d;
    color: #ffffff;
    padding: 20px 40px;
    text-align: center;
    border-top: 1px solid #444;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative; /* Needed for absolute positioning of the back-to-top button */
}

.footer-text {
    flex: 1; /* Takes up remaining space */
    text-align: center; /* Centers the text */
}

.footer-text p {
    font-size: 14px;
    color: #cccccc;
    margin: 0;
}

.footer-back-to-top {
    position: absolute; /* Positions the button absolutely within the footer-content */
    right: 0; /* Aligns the button to the right */
}

.footer-back-to-top a {
    color: #ffffff;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-back-to-top a:hover {
    color: #ff0000;
}

/* Active State for Sticky Navigation Icons */
.sticky-nav .nav-links a.active {
    color: #ff0000; /* Red color for active icon */
}

.sticky-nav .nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 6px;
    height: 6px;
    background-color: #ff0000; /* Red dot indicator */
    border-radius: 50%;
    transform: translateX(-50%);
}

/* Add these styles to your existing CSS file */

/* Hide sections initially */
.section-hidden {
    opacity: 0;
    transform: translateY(20px); /* Slight upward shift for a smoother reveal */
    transition: opacity 1s ease, transform 1s ease;
}

/* Animation for sliding in from the top */
.slide-in-top {
    animation: slideInTop 1s ease-out forwards;
}

/* Animation for sliding in from the bottom */
.slide-in-bottom {
    animation: slideInBottom 1s ease-out forwards;
}

/* Keyframes for sliding in from the left */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Keyframes for sliding in from the right */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Keyframes for sliding in from the top */
@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Keyframes for sliding in from the bottom */
@keyframes slideInBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header Section for Mobile */
@media (max-width: 767px) {
    .header-content {
        padding: 20px; /* Smaller padding for mobile */
    }

    .intro-text {
        font-size: 16px; /* Smaller font size for mobile */
    }

    .name {
        font-size: 36px; /* Smaller font size for mobile */
    }

    .name::first-letter {
        font-size: 36px; /* Smaller first letter for mobile */
    }

    .description {
        font-size: 14px; /* Smaller font size for mobile */
    }
}

/* Navigation Bar for Mobile */
@media (max-width: 767px) {
    .navbar {
        padding: 10px 20px; /* Smaller padding for mobile */
    }

    .logo {
        font-size: 18px; /* Smaller font size for mobile */
    }

    .nav-links {
        display: none; /* Hide nav links on mobile */
    }

    .btn-download {
        padding: 6px 12px; /* Smaller padding for mobile */
        font-size: 14px; /* Smaller font size for mobile */
    }
}

/* Sticky Navigation for Mobile */
@media (max-width: 767px) {
    .sticky-nav {
        width: 50px; /* Narrower sidebar for mobile */
        height: 30vh; /* Smaller height for mobile */
        padding: 10px 0; /* Smaller padding for mobile */
        border-radius: 15px 0 0 15px; /* Smaller border radius for mobile */
    }

    .sticky-nav .nav-links a {
        font-size: 18px; /* Smaller icon size for mobile */
    }

    .sticky-nav .btn-download {
        width: 40px; /* Smaller width for mobile */
        padding: 8px; /* Smaller padding for mobile */
        font-size: 12px; /* Smaller font size for mobile */
    }
}

/* About Me Section for Mobile */
@media (max-width: 767px) {
    #about {
        padding: 20px; /* Smaller padding for mobile */
        flex-direction: column; /* Stack content vertically on mobile */
        gap: 20px; /* Smaller gap for mobile */
    }

    .about-content {
        text-align: center; /* Center text on mobile */
    }

    .about-content p {
        font-size: 14px; /* Smaller font size for mobile */
    }

    .contact-details h3 {
        font-size: 18px; /* Smaller font size for mobile */
    }

    .contact-details p {
        font-size: 12px; /* Smaller font size for mobile */
    }

    .contact-details .btn-download {
        padding: 6px 12px; /* Smaller padding for mobile */
        font-size: 12px; /* Smaller font size for mobile */
    }

    .about-svg {
        max-width: 100%; /* Full width on mobile */
    }
}

/* Skills Section for Mobile */
/* Skills Section for Mobile */
@media (max-width: 767px) {
    #skills {
        padding: 20px; /* Smaller padding for mobile */
    }

    .skills-container {
        flex-direction: column; /* Stack content vertically on mobile */
        gap: 20px; /* Smaller gap for mobile */
    }

    .skill-name {
        font-size: 16px; /* Smaller font size for mobile */
        width: 80px; /* Smaller width for mobile */
    }

    .skill-bar {
        height: 6px; /* Smaller height for mobile */
    }
}

/* Works Section for Mobile */
@media (max-width: 767px) {
    #works {
        padding: 20px; /* Smaller padding for mobile */
    }

    .works-container {
        gap: 10px; /* Smaller gap for mobile */
    }

    .work-box {
        flex: 1 1 calc(50% - 10px); /* 2 boxes per row on mobile */
        max-width: calc(50% - 10px); /* Ensure boxes don't exceed width */
        min-width: 120px; /* Smaller box size for mobile */
    }

    .work-content h3 {
        font-size: 14px; /* Smaller font size for mobile */
    }

    .work-overlay p {
        font-size: 10px; /* Smaller font size for mobile */
    }
}

/* Contact Section for Mobile */
@media (max-width: 767px) {
    #contact {
        padding: 20px; /* Smaller padding for mobile */
    }

    .contact-container {
        flex-direction: column; /* Stack content vertically on mobile */
        gap: 20px; /* Smaller gap for mobile */
    }

    .contact-form, .contact-info, .map {
        flex: 1 1 100%; /* Full width on mobile */
        max-width: 100%; /* Full width on mobile */
        padding: 15px; /* Smaller padding for mobile */
    }

    .contact-form h3, .contact-info h3 {
        font-size: 18px; /* Smaller font size for mobile */
    }

    .form-group input, .form-group textarea {
        padding: 8px; /* Smaller padding for mobile */
        font-size: 12px; /* Smaller font size for mobile */
    }

    .btn-submit {
        padding: 8px 16px; /* Smaller padding for mobile */
        font-size: 12px; /* Smaller font size for mobile */
    }

    .contact-info p {
        font-size: 12px; /* Smaller font size for mobile */
    }

    .contact-info p i {
        font-size: 14px; /* Smaller icon size for mobile */
    }

    .social-media-contact a {
        font-size: 18px; /* Smaller icon size for mobile */
    }
}

/* Footer Section for Mobile */
@media (max-width: 767px) {
    .footer {
        padding: 10px 20px; /* Smaller padding for mobile */
    }

    .footer-content {
        flex-direction: column; /* Stack content vertically on mobile */
        gap: 10px; /* Smaller gap for mobile */
    }

    .footer-text p {
        font-size: 10px; /* Smaller font size for mobile */
    }

    .footer-back-to-top {
        position: static; /* Reset position for mobile */
        margin-top: 10px; /* Add margin for mobile */
    }

    .footer-back-to-top a {
        font-size: 14px; /* Smaller font size for mobile */
    }
}
