@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

/* Header Styles */
header {
/*     margin-top: 20px; */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    filter: drop-shadow(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo {
    font-size: 2rem;
    color: #b74b4b;
    font-weight: 800;
    cursor: pointer;
    transition: 0.5s ease;
}

.logo:hover {
    transform: scale(1.1);
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover,
nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 5rem 9% 5rem;
}

.heading {
    font-size: 4.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

.heading span {
    color: #b74b4b;
}

/* Home Section */
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home .home-content h1 {
    font-size: 6rem;
    font-weight: 700;
    line-height: 1.3;
}

span {
    color: #b74b4b;
}

.home-content h3 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.home-content p {
    font-size: 1.6rem;
}

.home-img {
    border-radius: 50%;
}

.home-img img {
    position: relative;
    width: 32vw;
    border-radius: 50%;
    box-shadow: 0 0 25px solid #b74b4b;
    cursor: pointer;
    transition: 0.2s linear;
    filter: brightness(0.85);
    
}

.home-img img:hover {
    transform: scale(1.05);
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    background-color: transparent;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background-color: black;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.03);
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}

/* Typewriter Styles */
.typing-text {
    font-size: 34px;
    font-weight: 600;
    min-width: 280px;
}

.typing-text span {
    color: #b74b4b;
    display: inline-block;
    position: relative;
}

.typewriter-cursor {
    color: #b74b4b;
    font-weight: 100;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Skills Section */
.skills {
    background-color: #161616;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.skill-item {
    background-color: #222;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.skill-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.skill-item:hover {
    border-color: #b74b4b;
    transform: translateY(-5px);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-info h3 {
    font-size: 1.8rem;
    color: white;
}

.percentage {
    font-size: 1.6rem;
    color: #b74b4b;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    height: 1rem;
    background-color: #444;
    border-radius: 0.5rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #b74b4b, #ff6b6b);
    border-radius: 0.5rem;
    width: 0%;
    transition: width 2s ease-in-out;
}

/* Education & Experience Sections */
.education, .experience {
    background-color: black;
}

.education-container, .experience-container {
    max-width: 1000px;
    margin: 0 auto;
}

.timeline {
    position: relative;
    margin-top: 4rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #b74b4b, #ff6b6b);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin: 4rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.timeline-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    text-align: right;
    padding-right: 4rem;
}

.timeline-item:nth-child(even) .timeline-content {
    right: 0;
    text-align: left;
    padding-left: 4rem;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2rem;
    height: 2rem;
    background-color: #b74b4b;
    border: 4px solid black;
    border-radius: 50%;
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.2);
    background-color: #ff6b6b;
}

.timeline-content {
    position: relative;
    width: 45%;
    background-color: #222;
    padding: 2rem;
    border-radius: 1rem;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    border-color: #b74b4b;
    transform: translateY(-5px);
}

.timeline-date {
    font-size: 1.4rem;
    color: #b74b4b;
    font-weight: 600;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1.6rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.timeline-content p {
    font-size: 1.4rem;
    line-height: 1.6;
    color: #aaa;
}

/* Contact Section */
.contact {
    background-color: #161616;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    margin-top: 4rem;
    align-items: start;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.contact-info.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: #222;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(183, 75, 75, 0.3);
}

.contact-item i {
    font-size: 2.5rem;
    color: #b74b4b;
    margin-right: 2rem;
}

.contact-item h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.contact-item p {
    font-size: 1.4rem;
    color: #ccc;
}

.contact-form {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.contact-form.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1.5rem;
    background-color: #222;
    border: 2px solid #444;
    border-radius: 0.5rem;
    color: white;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #b74b4b;
    box-shadow: 0 0 10px rgba(183, 75, 75, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .timeline::before {
        left: 3rem;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 8rem);
        left: 8rem;
        text-align: left;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    .timeline-dot {
        left: 3rem;
    }
}

@media (max-width: 995px) {
    html {
        font-size: 55%;
    }
    
    .home {
        flex-direction: column;
        margin: 5rem 4rem;
        gap: 4rem;
    }
    
    .home .home-content h3 {
        font-size: 2.5rem;
    }
    
    .home-content h1 {
        font-size: 5rem;
    }
    
    .home-img img {
        width: 70vw;
        margin-top: 4rem;
    }
    
    .skills-content {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
    }
    
    nav a {
        margin-left: 2rem;
        font-size: 1.6rem;
    }
    
    section {
        padding: 5rem 5%;
    }
    
    .heading {
        font-size: 3.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}
