/* Base settings to normalize styles across browsers */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", sans-serif;/* Default font for the whole website */
} 

/* Root variables to keep theme consistent and easy to manage */
:root{
    --bg-color: #111111; /* Main background color */
    --second-bg-color: #1a1a1a; /* Secondary background color */
    --text-color: white; /* Default text color */
    --main-color: #04fffb; /* Highlight and accent color */
}

/* Basic HTML element setup */
html{
    font-size: 62.5%; /* Base font size for rem calculations */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Main body styling */
body{
    background-color: var(--bg-color);
    color: var(--text-color);
    
}

/* Header styling to fix its position at the top of the viewport */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.5rem 2%; /* Reduced vertical padding (top and bottom) */
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    backdrop-filter: blur(10px); /* For Safari */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100; /* Ensure the header is always on top */
}

.header {
    -webkit-backdrop-filter: blur(10px); /* Safari */
    backdrop-filter: blur(10px);
}

.header .logo {
    display: flex;
    align-items: center; /* Center the logo vertically */
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
}

.header .logo img {
    height: 120px; /* Adjust the height to make the logo more visible */
    width: auto;
    margin: 0; /* Remove any default margin */
    padding: 0; /* Remove any default padding */
}
.logo.heading {
    font-size: 70px; /* Adjust the font size as needed */
    /* Additional styling can be added here */
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar a {
    margin-left: 1rem; /* Add space between the links */
    color: #fff; /* Ensure the text color is visible */
    text-decoration: none;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: #ccc; /* Change color on hover */
}


/* index.html */
/* Enhancing visual interaction */
.logo{
    font-size: 3rem;
    color: var(--text-color);
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

 /* Enlarge logo on hover */
.logo:hover{
    transform: scale(1.1);
}

/* Navbar links styling */
.navbar a{
   font-size: 1.8rem;
   color: white;
   margin-left: 2rem;
   font-weight: 500;
   transition: 0.3s ease-in-out;
   border-bottom: 3px solid transparent; /* Underline effect */
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color); /* Highlight active or hovered link */
}

/* Responsive menu icon styling */
#menu-icon{
    font-size: 3.6rem;
    color: var(--main-color);
    display: none; /* Hidden by default, shown in mobile view */
}

/* Section base styling */
section{
    min-height: 100vh;
    padding: 15em 9% 5rem;
}

/* Home section layout */
.home{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.home-content{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    margin-top: 3rem;
}
span{
    color: var(--main-color);
}
.logo span{
    color: var(--main-color);
}
.home-content h3{
    margin-bottom: 2rem;
    font-size: 3.5rem;
    margin-top: 1rem;
}
.home-content h1{
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
}
.home-img{
    border-radius: 50%;
}
.home-img img {
    position: relative;
    top: 3rem;
    width: 22vw; 
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    cursor: pointer;
    transition: 0.4s ease-in-out;
}
.home-img img:hover{
    box-shadow:  0 0 50px var(--main-color),
                 0 0 100px var(--main-color);    
}
.home-content p{
    font-size: 1.5rem;
    font-weight: 500;
    max-width: 1000px;
}
.social-icons a{
   display: inline-flex;
   justify-content: center;
   align-items: center;
   width: 4.5rem;
   height: 4.5rem;
   background: transparent;
   border:  0.2rem solid var(--main-color);
   font-size: 2.5rem;
   border-radius: 50%;
   color: var(--main-color);
   margin: 3rem 1.5rem 3rem 0;
   transition: 0.3s ease-in-out;
}
.social-icons a:hover {
    color: white;
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}
.btn {
    display: block; /* Makes the button a block element */
    margin-left: auto; /* Pushes the button to the center */
    margin-right: auto; /* Pushes the button to the center */
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    font-size: 1.6rem;
    color: white;
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}
.container_readmore{
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: column; /* Stack children vertically */
    height: 100%; /* Adjust height as necessary */
}

.btn:hover{
    transform: scale(1.05);
    box-shadow: 0 0 25px var(--main-color);
}

.description {
    text-align: center;
    font-size: 1.5em; /* Adjust the size as needed */
    margin: 0 auto;
    max-width: 2000px; /* Optional: limits the width of the content */
    line-height: 1.6; /* Optional: improves readability */
    color: #fff; /* Adjust text color if necessary */
}

.description h3 {
    font-size: 1.75em; /* Adjust the heading size as needed */
    margin-top: 20px;
    color: var(--main-color); /* Use the accent color for titles */
}

.description p, .description ul {
    font-size: 1.5em; /* Matches the paragraph font size with the main text */
}

.description ul {
    list-style-position: inside; /* Adjusts list style */
    padding-left: 0;
}

.youtube-iframe {
    width: 450px;
    height: 315px;
    border: none; /* Optional: removes iframe border */
}

/* web page*/ 

.large-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
    background-color: #4CAF50;
    border-radius: 8px;
    transition: background-color 0.3s ease;
  }
  
  .large-button:hover {
    background-color: #45a049;
  }






/* Styling for dynamic text effects */
.text-animation{
    font-size: 34px; 
    font-weight: 600;
    min-width: 280px;
    text-align: center; /* Center text alignment */
}
.text-animation span{
    position: relative;
}
.text-animation span::before {
    content: 'Web Developer'; /* Default text */
    color: var(--main-color);
    animation: words 20s infinite; /* Rotating words animation */
 }
.text-animation span::after{
    content: "";
    background-color: var(--bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite; /* Typing and cursor animations */
} 

/* Keyframes for cursor and typing animations */
@keyframes cursor{
  to{
    border-left: 2px solid var(--main-color);
  }
}
@keyframes words {
    0%, 20% {
        content: 'Java, Android';
    }
    21%, 40% {
        content: "C#(unity),C++";
    }
    41%, 60% {
        content: "HTML,CSS,JS,PHP";
    }
    61%, 80% {
        content: "MYSQL,SQL,PL/PGSQL";
    }
    81%, 100% {
        content: "Python";
    }
}
@keyframes typing{
    10%, 15%, 30%, 35%, 50%, 55%, 70%, 75%, 90%, 95% {
        width: 0;
    }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% {
        width: calc(100% + 8px);
    }
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2 rem;
    background: var(--second-bg-color);
    color: white;
}
.about h2 span{
    color: var(--main-color);
    text-shadow: 0 0 50px var(--main-color);
    text-shadow: 0 0 50px var(--main-color);
}
.about-img {
    border-radius: 10%;
    display: flex; /* Ensure it aligns nicely */
    justify-content: flex-start; /* Align to the left */
    align-items: center; /* Center vertically */
    padding: 0; /* Remove any default padding */
    margin: 0; /* Remove any default margin */
}

.about-img img {
    width: 32vw; /* Width relative to viewport width */
    max-width: 250px; /* Ensure it doesn't exceed a certain size */
    height: auto; /* Maintain aspect ratio */
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    top: 1rem;
    cursor: pointer;
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}
.heading{
    text-align: center;
    font-size: 8rem;
}
.about-content{
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    flex-direction: column; /* Stack children vertically */
    height: 100%; /* Adjust height as necessary */
}
.about-content h2{
    text-align: left;
    line-height: 1.5;
}
.about-content h3{
    font-size: 2.6rem;
}
.about-content p{
    font-size: 1.6rem;
    margin: 2rem 0 2rem;
}

.about-content .text-animation span::before {
    content: 'Web Developer';
    color: var(--main-color);
    animation: words 20s infinite;
 }
.about-content .text-animation span::after{
    content: "";
    background-color: var(--second-bg-color);
    position: absolute;
    width: calc(100% + 8px);
    height: 100%;
    border-left: 3px solid var(--second-bg-color);
    right: -8px;
    animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

/* about page */

/* Description section */
.description-container {
    display: flex;
    margin: 2rem auto;
    max-width: 1200px;
}

.button-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tab-button {
    padding: 1.5rem 2rem;
    margin: 0.5rem 0;
    cursor: pointer;
    border: none;
    background-color: #444;
    color: #fff;
    text-align: left;
    font-size: 1.6rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.tab-button.active, .tab-button:hover {
    background-color: #04fffb;
    color: #000;
}

.content-container {
    flex: 3;
    padding: 2rem;
    background-color: transparent;
    color: #fff;
    margin-left: 2rem;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Education Grid */
/* 3D Flip Effect for Cards */
.education-card, .experience-card {
    background-color: #333;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    perspective: 1000px;
    position: relative;
    width: 100%;
    height: 250px; /* Adjust height as necessary */
    margin: 10px; /* Add margin for spacing */
}

.education-card .card-inner, .experience-card .card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.education-card:hover .card-inner, .experience-card:hover .card-inner {
    transform: rotateY(180deg);
}

.education-card .card-front, .education-card .card-back,
.experience-card .card-front, .experience-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    box-sizing: border-box;
    text-align: center; /* Center the text */
    flex-direction: column; /* Stack the text vertically */
}

.education-card .card-back, .experience-card .card-back {
    background-color: #444;
    transform: rotateY(180deg);
}
.card-back p {
    font-size: 1.2rem;
}

/* Education Grid */
.education-grid, .experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid layout */
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Additional responsive styling */
@media (max-width: 768px) {
    .education-grid, .experience-grid {
        grid-template-columns: 1fr;
    }
}
.card-back p {
    font-size: 1.2rem;
}

.card-back ul {
    font-size: 1.2rem;
    list-style-position: inside;
}
.card-back ul li {
    font-size: 1.5rem;
}



/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns */
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center; /* Center the items horizontally */
    align-items: center; /* Center the items vertically */
}


.skill-card {
    width: 150px;
    height: 150px;
    position: relative;
}

.skill-card canvas {
    width: 100%;
    height: 100%;
    display: block;
}


.skill-card img:hover {
    box-shadow: 0 0 50px var(--main-color), 0 0 100px var(--main-color);
}


/* Additional responsive styling */
@media (max-width: 768px) {
    .description-container {
        flex-direction: column;
    }
    .content-container {
        margin-left: 0;
        margin-top: 1rem;
    }
    .education-grid {
        grid-template-columns: 1fr;
    }
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }
}


/* // */
::-webkit-scrollbar{
    width: 15px;
}
::-webkit-scrollbar-thumb{
    background: var(--main-color);
}
::-webkit-scrollbar-track{
    background: var(--bg-color);
    width: 50px;
}
.services{
    background: var(--bg-color);
    color: white;
}
.services h2{
    margin-bottom: 5rem;
    color: white;
}
.services-container{
    display: flex;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Center text inside the container */
}

.services-box {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px; /* Adjust as necessary */
}

.services-box:hover{
    background: white;
    color: var(--main-color);
    transform: scale(1.03);
}

.services-box .services-info{
    display: flex;
    flex-direction: column;
    text-align: left;
    max-height: 200px;
    justify-content: center;
    align-items: baseline;
    padding: 5em;
}
.services-info {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; /* Ensure this div takes the full height of the button */
}

.services-box .lang-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
}

.services-info p{
    font-size: 1.6rem;
    font-weight: 400;
    max-height: 100px;
    margin: auto;
}

.lang-icon img {
    display: block;
    margin: auto;
}
/* Style for the text associated with the language icon */
.lang-icon-text {
    font-size: 1.6rem; /* Reasonable font size */
    text-align: center; /* Centers the text */
    margin-top: 0.5rem; /* Adds some space between the icon and the text */
}
.contact{
    background-color: var(--second-bg-color);
}
.contact h2{
    margin-bottom: 3rem;
    color: white;
}
.contact form{
   max-width: 70rem;
   margin: 1rem auto;
   text-align: center;
   margin-bottom: 3rem;
}
.contact form .input-box{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}
.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1.5rem;  
    font-size: 1.6rem;
    color: var(--text-color);
    background: var(--bg-color);
    border-radius: 0.8rem;
    border: 2px solid var(--main-color);
    margin: 1rem 0;
    resize: none;
}

.contact form .btn{
    margin-top: 2rem;
}

.footer{
    position:  relative;
    bottom: 0;
    width: 100%;
    padding: 40px 0;
    background-color: var(--bg-color);
}
.footer .social{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
}
.footer .social a{
    text-align: center;
    padding-bottom: 25px;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    width: 42px;
    height: 42px;
    line-height: 42px;
    display: inline-block;
    text-align: center;
    border-radius: 50%;
    margin: 0 10px;
    transition: 0.3s ease-in-out;
}
.footer .social a:hover{
    transform: scale(1.2)translateY(-10px);
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color);
}
.footer ul{
    margin-top: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 0;
    text-align: center;
}
.footer ul li a{
    color: white;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}
footer ul li a:hover{
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}
.footer ul li{
    display: inline-block;
    padding: 0 15px;
}
.footer .copyright{
    margin-top: 50px;
    text-align: center;
    font-size: 16px;
    color: white;
}
/* Responsive media queries for various device widths */
@media(max-width: 1285px){
    html{
        font-size: 55%; /* Adjust font size for smaller screens */
    }
    .services-container{
        padding-bottom: 7rem;
        grid-template-columns: repeat(2,1fr);
        margin: 0 5rem
    }
}
@media(max-width: 991px){
    header{
        padding: 2rem 3%;
    }
    section{
        padding: 10rem 9% 10rem;
    }
    .services{
        padding-bottom: 7rem;
    }
    .footer{
        padding: 2rem 3%;
    }
}
@media(max-width: 895px) {
    #menu-icon {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(20px);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
    }
    .navbar.active {
        display: block;
    }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem;
        color: white;
        text-align: center; /* Center the text */
    }
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
    }
    .home-content h3 {
        font-size: 8rem;
        margin-top: 3rem;
        text-align: center; /* Center the heading */
    }
    .home-content p {
        max-width: 600px;
        margin: 0 auto;
        text-align: center; /* Center the paragraph */
    }
    .home-img img {
        width: 56vw;
        margin-top: -2rem;
    }
    .about {
        flex-direction: column-reverse;
    }
    .about-content {
        margin: 0 2rem 4rem;
        text-align: center; /* Center the text and other elements within about-content */
    }
    .about-img {
        display: flex;
        justify-content: center; /* Center the image horizontally */
    }
    .about-img img {
        width: 52vw;
        margin-top: 1rem;
        margin-bottom: 3rem;
    }
    .services h2 {
        margin-bottom: 3rem;
        text-align: center; /* Center the heading */
    }
    .services-container {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center items horizontally */
        justify-content: center; /* Center items vertically */
        text-align: center; /* Center text inside the container */
    }
    .services-box {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background-color: var(--main-color);
        color: black;
        width: 90%; /* Ensure the box does not take full width */
        max-width: 350px; /* Optional max-width to restrict the box size */
        height: 250px;
        border-radius: 3rem;
        cursor: pointer;
        transition: 0.3s ease-in-out;
        margin-bottom: 1rem; /* Add margin between service boxes */
    }
    .services-box img {
        max-width: 100%; /* Allow the image to take full width of the container */
        height: auto; /* Maintain aspect ratio */
        min-width: 50px; /* Set a reasonable minimum width */
        min-height: 50px; /* Set a reasonable minimum height */
        margin: 0 auto;
        display: block;
    }
    
    .services-box:hover {
        background: white;
        color: var(--main-color);
        transform: scale(1.03);
    }
    .services-box .services-info {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center vertically */
        align-items: center; /* Center horizontally */
        width: 100%;
        height: 100%;
        text-align: center;
        padding: 0; /* Remove padding */
    }
    .services-box .lang-icon {
        display: flex;
        justify-content: center; /* Center horizontally */
        align-items: center; /* Center vertically */
        width: 100%;
        height: 100%;
    }
    .lang-icon img {
        display: block;
        margin: 0 auto;
    }
    .about-content .heading {
        text-align: center;
        width: 100%;
    }
}
