@import url("https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700&display=swap");

body {
    font-family: 'Lato', sans-serif;
}

/* General Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

:root {
    --bg-color: #000000;
    --second-bg-color: #000000;
    --text-color: rgb(255, 255, 255);
    --main-color: #005eff;
    --hover-color: #000000;
}

html {
    font-size: 60%;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background: url('https://afremov.com/media/catalog/product/image_854.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    transition: background 0.4s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 3rem 12%; 
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
    transition: padding 0.3s ease;
}

.header:hover {
    padding: 3rem 10%; 
}

.logo {
    font-size: 3.5rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    transform: scale(1.15);
    color: var(--main-color);
}

.logo span {
    text-shadow: 0 0 20px var(--main-color);
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    justify-content: flex-end; 
    flex-grow: 1; 
}

.navbar a {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-left: 3rem; 
    transition: color 0.3s ease, border-bottom 0.3s ease;
    border-bottom: 3px solid transparent;
    letter-spacing: 0.05rem;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

/* Menu icon for mobile */
#menu-icon {
    font-size: 3.6rem;
    color: var(--main-color);
    cursor: pointer;
    display: none;
}

@media (max-width: 768px) {
    .header {
        padding: 1.5rem 5%;
    }

    .navbar {
        display: none;
    }

    #menu-icon {
        display: block;
    }

    .navbar.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 5%;
        background-color: var(--bg-color);
        width: 90%;
        padding: 1rem;
    }

    .navbar a {
        margin: 10px 0;
        font-size: 2rem;
    }
}

/* Sections */
section {
    min-height: 100vh;
    padding: 10rem 12% 10rem;
}

/* Home Section */
.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10rem;
}

.home-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
    text-align: left;
    justify-content: center;
    margin-top: 3rem;
}

span {
    color: var(--main-color);
}

.home-content h3 {
    margin-bottom: 2rem;
    margin-top: 2rem;
    font-size: 3.5rem;
    color: var(--main-color);
    letter-spacing: 0.1rem;
    text-shadow: 0 0 10px rgba(0, 26, 255, 0.5);
}

.home-content h1 {
    font-size: 7rem;
    font-weight: 700;
    margin-top: 1.5rem;
    line-height: 1;
    color: var(--text-color);
    text-shadow: 0 0 20px rgba(0, 26, 255, 0.5);
}

.home-img img {
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    object-fit: cover;
    cursor: pointer;
    transition: box-shadow 0.4s ease-in-out, transform 0.4s ease;
}

.home-img img:hover {
    box-shadow: 0 0 50px var(--hover-color);
    transform: scale(1.05);
}

.home-content p {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.8;
    max-width: 1000px;
}

/* Social Icons */
.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 2px solid var(--main-color);
    font-size: 2.5rem;
    border-radius: 50%;
    color: var(--main-color);
    margin: 3rem 1.5rem 3rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.3) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
    background-color: var(--main-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    box-shadow: 0 0 25px var(--main-color);
    border-radius:4rem;
    font-size: 1.6rem;
    color:white; 
    border: 2px solid transparent;
    letter-spacing: 0.1rem;
    font-weight: 600;
    border-radius: 50px; 
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}
.heading{
    font-size: 8rem;
    text-align: center;
    margin: 5rem 0;
}
.education {
    background: var(--second-bg-color);
    padding: 100px 15px;
}

.contact-info i {
    color: white;
}

.heading {
    font-size: 8rem;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    animation: fadeIn 1s ease-in-out;
}

.timeline-items {
    position: relative;
    max-width: 1000px;
    margin: auto;
}

.timeline-items::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 100%;
    background-color: var(--main-color);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    animation: expandLine 2s ease-in-out;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
    animation: slideIn 1s ease-in-out;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    height: 25px;
    width: 25px;
    background-color: var(--main-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 15px var(--main-color);
    animation: bounce 2s infinite;
}

.timeline-date {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.timeline-content {
    background-color: var(--bg-color);
    padding: 20px 30px;
    border-radius: 50%;
    border: 3px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.1);
    box-shadow: 0 0 30px var(--main-color);
}

.timeline-content h3 {
    font-size: 2rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-color);
    font-size: 1.4rem;
    text-align: center;
    padding: 0 10px;
}

/* Animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandLine {
    0% {
        height: 0;
    }
    100% {
        height: 100%;
    }
}

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

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        text-align: left;
    }

    .timeline-items::before {
        left: 10px;
    }

    .timeline-dot {
        left: 10px;
    }

    .timeline-content {
        width: 250px;
        height: 250px;
    }
}
/* Skills Section */
.Skills {
    background: var(--second-bg-color);
    padding: 100px 15px;
}

.Thanks-info p {
    font-size: 5rem; /* Adjust the size as needed */
}
.Skills h2 {
    margin-bottom: 5rem;
    color: var(--text-color);
    text-align: center;
    font-size: 8rem;
    text-transform: uppercase;
    letter-spacing: 0.5rem;
    animation: fadeIn 1s ease-in-out;
}


.Skills-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 0 15px;
}

.skills-info {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 0 25px var(--main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideIn 1s ease-in-out;
}


.skills-info:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px var(--main-color);
}


.skills-info h4 {
    font-size: 2.4rem;
    color: var(--main-color);
    margin-bottom: 1.5rem;
    letter-spacing: 0.1rem;
}


.skills-info p {
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.8;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .Skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* Achievements Section */
.achievements {
    background: var(--second-bg-color);
    padding: 100px 15px;
}

.achievements-container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    max-width: 1000px;
    margin: auto;
}


.achievements-info {
    background-color: var(--bg-color);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 0 20px var(--main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.achievements-info h4 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.achievements-info p {
    font-size: 1.6rem;
    color: var(--text-color);
    line-height: 1.8;
}

.achievements-info:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--main-color);
}
.typing-container h4 {
    font-size: 1.5em;
    font-weight: 500;
    color: #333; 
}
#typing-text {
    color: #fdfcfb; 
}
.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: black;
    position: absolute;
    pointer-events: none;
    z-index: 999;
    transition: transform 0.1s ease;
}
.cursor-follower {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    pointer-events: none;
    z-index: 998;
    transition: transform 0.2s ease;
}
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px; 
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px; 
    font-size: 2rem;
}

.contact-info i {
    font-size: 3rem;
    color: #000; 
}
.contact .heading {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 15px;
}