/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300&display=swap');

:root {
    --bg-black-50: #ffffff;
    --text-black-600: #898989;
    --skin-color: #3f6ff5;
    --outer-shadow: 3px 3px 3px #d0d0d0, -3px -3px 3px #f8f8f8;
    --sb-track-color: #f5f5f5;
    --sb-thumb-color: #a99fff;
    --sb-size: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* scrollbar css  */
::-webkit-scrollbar {
    width: var(--sb-size);
  }
  
  ::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px #afb2e9;
    background: var(--sb-track-color);
    border-radius: 25px;
  }
  
  ::-webkit-scrollbar-thumb {
    max-height: 10px;
    -webkit-box-shadow: inset 0 0 6px #afb2e9;
    background: var(--sb-thumb-color);
    border-radius: 25px;
    transition: 0.3s;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #ca9eff;
    
  }
  

body {

    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--bg-black-50);
    scroll-behavior: smooth;
}


.data-heading {
    color: var(--skin-color);
    font-family: Helvetica, 'Open Sans', Arial, sans-serif;
    font-size: 20px;
    text-transform: uppercase;
}

a {
    text-decoration: none;
}



.section-title {
    padding: 0 15px;
    text-align: center;
    margin-bottom: 50px;
}

.portfolio-section {
    padding: 80px 0;
    min-height: 100vh;
}

.portfolio-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.portfolio-item {
    flex: 0 0 33.33%;
    max-width: 33.33%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    opacity: 0; /* Initially hidden */
    transform: translateY(30px); /* Start slightly below */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Transition for fade and slide */
}

.portfolio-item.is-visible {
    opacity: 1; /* Make visible */
    transform: translateY(0); /* Slide up to position */
}

.portfolio-item-inner {
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
    position: relative;
}

.portfolio-item-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.portfolio-item-image img {
    border-radius: 5px;
    width: 100%;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.portfolio-item-inner:hover .portfolio-item-image img {
    transform: translateY(-10px);
    filter: blur(4px);
}

.view-project {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: white;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    background: #3f6ff5;
    padding: 10px;
    border-radius: 5px;
}

.portfolio-item-inner:hover .view-project {
    opacity: 1;
}

.portfolio-item-title {
    font-size: 16px;
    margin: 10px 0 0;
    color: var(--text-black-600);
    text-transform: capitalize;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding-top: 60px;
}

.modal-content {
    background-color: #edf5ff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 800px;
    box-sizing: border-box;
    position: relative;
    border-radius: 8px;
}

#modalImage {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.modal-link-github,
.modal-link-live {
    padding: 5px;
    margin: 0 5px;
}

.modal-tags {
    margin-top: 20px;
}

.modal-tag {
    display: inline-block;
    background-color: var(--skin-color);
    border-radius: 20px;
    padding: 5px 15px;
    margin: 5px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    border: 1px solid #b6b4b4;
}

#modalTitle,
#modalDescription {
    padding: 5px;
    margin: 5px 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
}

.modal-links {
    display: flex;
    gap: 10px;
}

.modal-links a {
    text-decoration: none;
    color: inherit;
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    position: absolute;
    top: 0;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Home Section */
.home-section {
    padding: 100px 0; 
    min-height: 100vh; /* Full height */
    display: flex; /* Flexbox layout */
    flex-direction: row; /* Default direction */
    align-items: center; /* Center vertically */
    justify-content: center; /* Center horizontally */
    /* background-color: #eff0f4; Background color */
    background: transparent;
}


/* animation effect for home-section  */
#home {
    opacity: 0;
    transform: translateX(-50px); /* Start slightly off-screen */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; /* Transition for both opacity and transform */
}

#home.fade-in {
    opacity: 1;
    transform: translateX(0); /* Move into the position */
}



.container {
    max-width: 1250px; /* Maximum width of the container */
    margin: 0 auto; /* Center the container */
    padding: 0 15px; /* Padding for responsiveness */
}

.row {
    display: flex; /* Flexbox for row */
    width: 100%; /* Full width */
}
.row-p {
    display: flex; /* Flexbox for row */
    width: 100%; /* Full width */
    justify-content: center;
    align-items: center;
}

.full-screen {
    height: 100%; /* Full height */
}

.home-text {
    flex: 1; /* Takes up available space */
    text-align: left; /* Align text to the left */
    color: #003049; /* Text color */
    align-self: center;
}

.home-text p {
    font-size: 28px; /* Size of greeting text */
    margin-bottom: 10px; /* Spacing below */
}

.home-text h1 {
    font-size: 40px; /* Size of main heading */
    font-weight: 700; /* Bold text */
    margin-bottom: 20px; /* Spacing below */
}

.link-item {
    display: inline-block; /* Makes link a block */
    padding: 10px 20px; /* Padding around link */
    border-radius: 30px; /* Rounded corners */
    background-color: #c1121f; /* Background color */
    color: #fff; /* Text color */
    text-decoration: none; /* Remove underline */
    transition: background-color 0.3s; /* Smooth transition */
}

.link-item:hover {
    background-color: #780000; /* Darker color on hover */
}

.home-image {
    flex: 1; /* Takes up available space */
    display: flex; /* Flexbox layout */
    justify-content: center; /* Center image */
    align-items: center; /* Center vertically */
}

.img-box {
    width: 100%; /* Full width */
    max-width: 500px; /* Maximum width for image box */
    overflow: hidden; /* Hide overflow */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); /* Shadow */
    border-radius: 100px 50px 100px 50px;
}

.img-box img {
    width: 100%; /* Full width of the box */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Prevent inline spacing */
    transition: transform 0.3s; /* Smooth transition */
}

.img-box:hover img {
    transform: scale(1.05); /* Slight zoom effect on hover */
}

/* Typing Animation */
#auto-typing-animation {
    display: inline-block; /* Inline block for text */
}

.typed-text {
    font-weight: bold; /* Bold text */
    color: #3f6ff5; /* Typing color */
}

.cursor {
    display: inline-block; /* Inline block for cursor */
    width: 10px; /* Width of cursor */
    height: 20px; /* Height of cursor */
    background-color: #3f6ff5; /* Cursor color */
    animation: blink 0.7s step-end infinite; /* Blinking effect */
}

/* Blinking animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .portfolio-item {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .home-section {
        flex-direction: column; /* Stack elements vertically */
    }

    .home-text {
        text-align: center; /* Center text */
    }

    .link-item {
        padding: 8px 15px; /* Adjust padding */
    }
}

@media (max-width: 480px) {
    .portfolio-item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .home-text h1 {
        font-size: 32px; /* Smaller heading */
    }

    .home-text p {
        font-size: 16px; /* Smaller text */
    }

    /* Position icons below the title */
    .modal-header {
        display: flex;
        flex-direction: column; /* Stack elements vertically */
        align-items: center; /* Center items */
    }

    .modal-links {
        display: flex;
        justify-content: center; /* Center the icons */
        margin-top: 10px; /* Space between title and links */
        width: 100%; /* Full width for links */
    }

    .modal-link-github,
    .modal-link-live {
        margin: 0 5px; /* Space between links */
    }
}

.home-icon{
    position: absolute;
}

.home-icon>a{
    padding: 10px;
    color: rgb(21, 0, 83);
}

.button {
    color: black;
    background: rgb(230, 237, 255);
    /* margin: 10px; */
    padding: 12px 30px;
    border: 2px solid  rgb(63, 111, 245);
    text-align: center;
    text-transform: uppercase;
    position: relative; 
    overflow: hidden; 
    transition: .3s;
    z-index: 1;
    font-weight: 600;
    border-radius: 5px;
}
.button:hover {
    cursor: pointer;
    color: white; 
    background-color: rgb(209, 221, 255);
}
.button:before,
.button:after {
    position: absolute;
    top: 50%;
    content: "";
    width: 20px;
    height: 20px;
    background-color: rgb(63, 111, 245);
    border-radius: 50%;
    z-index: -1;
}
.button:before {
    left: -20px;
    transform: translate(-50%, -50%);
}
.button:after {
    right: -20px;
    transform: translate(50%, -50%);
}
.button:hover:before {
    animation: circle-left 0.7s both;
    animation-direction: alternate;
}
@keyframes circle-left {
    0% {
        left: -20px;
    }
    50% {
        left: 50%;
        width: 20px;
        height: 20px;
    }
    100% {
        left: 50%;
        width: 375px;
        height: 375px;
    }
}
.button:hover:after {
    animation: circle-right 0.7s both;
    animation-direction: alternate;
}
@keyframes circle-right {
    0% {
        right: -20px;
    }
    50% {
        right: 50%;
        width: 20px;
        height: 20px;
    }
    100% {
        right: 50%;
        width: 375px;
        height: 375px;
    }
}


/* Sticky Header */
.l-header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    /* background: transparent; */
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 2px solid rgb(230 230 230);
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 20px;
}

.nav__menu {
    display: flex; /* Always flex for larger screens */
    position: relative; /* Change to relative */
    background-color: transparent; /* Transparent on larger screens */
}

.nav__list {
    display: flex;
    list-style: none;
    flex-direction: row; /* Horizontal layout on larger screens */
}

.nav__item {
    margin: 0 15px; /* Adjust margin for horizontal spacing */
}

.nav__link {
    color: black;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    font-weight: 800;
}

/* Hover and Active State */
.nav__link:hover {
    color: #3f6ff5;
}

.nav__link.active-link {
    color: #3f6ff5;
    border-bottom: 2px solid #3f6ff5; /* Blue underline for active link */
}

/* Hamburger Menu */
.nav__toggle {
    display: none;
    cursor: pointer;
}

/* Media Query for Mobile Screens */
@media (max-width: 767px) {
    .nav__menu {
        flex-direction: column; /* Stack vertically for mobile */
        position: absolute; /* Position absolute for sliding effect */
        top: 60px;
        left: -100%; /* Initially hidden outside of the viewport */
        background-color: #060121;
        width: 100%;
        transition: left 0.4s ease, opacity 0.4s ease; /* Slide-in effect */
        opacity: 0; /* Start hidden */
        align-items: center; /* Center-align items */
        text-align: center; /* Center text */
    }

    .nav__link {
        color: white;
    }
    .nav__link.active-link {
        color: white;
        border-bottom: 2px solid #3f6ff5; /* Blue underline for active link */
    }

    .nav__menu.show {
        left: 0; /* Slide the menu into view */
        opacity: 1; /* Fade in */
    }

    .nav__list {
        flex-direction: column; /* Vertical layout for mobile */
        padding: 10px 0; /* Add some padding */
    }

    .nav__item {
        margin: 10px 0; /* Margin for vertical spacing */
    }

    .nav__link {
        display: block; /* Make the link block-level for better click area */
        width: 100%; /* Full width for the link */
        padding: 10px; /* Add padding for better spacing */
    }

    .nav__toggle {
        display: block; /* Show the hamburger icon */
    }
}












