
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: white;
    color: black;
    line-height: 1.6;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: whitesmoke;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 100;
}

.nav a {
    color: black;
    text-decoration: none;
    margin: 0 1.5rem;
    position: relative;
    font-weight: 500;
}

.nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-image: linear-gradient(90deg in oklab, blue, red);
    transition: width 0.5s linear;
}

.nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/everestwithoutwatermark.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    text-shadow: 0 0 4px black;
    text-align: center;
    padding: 12rem 2rem 8rem;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: -3px;
    margin-bottom: 1rem;
    animation: fadeIn 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.8;
    
    max-width: 600px;
    margin: 0 auto;
}

/* Section Common Styles */
.section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: black;
    bottom: 0;
    left: 0;
}

/* About Section */
.about-content {
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 100%;
}

.about-content p{
    text-align: left;
    max-width: 700px;
}

.about-content a{
    text-decoration: none;
    font-size: 1.2erm;
    color: black;
    transition: color .4s ease-in;
}
.about-content a:hover{
    text-decoration: underline;
    color: red;
}
.about-content a:active{
    color: red;
    font-size: 1rem;
    font-weight: bold;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-item {
    padding: 1.5rem;
    border: 2px solid transparent;
    background-color: #222;
    color: #f0f0f0;
    border-radius: .2rem;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

/* Education Timeline */
.timeline {
    border-left: 4px solid black;
    padding-left: 2rem;
    margin-left: 1rem;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 15px;
    background: black;
    left: -2.6rem;
    top: 0.5rem;
    border-radius: 50%;
}
/* Books Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;

}



.book-item {
    color: #f0f0f0;
    background-color: #222;
    padding: 1.5rem;
    text-align: left;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 4px solid transparent;
    border-radius: .2rem;
    transition: transform, 0.5s ease;
}
.book-item::after{
    content: "";
    position: absolute;
    left: 1rem;
    top: 0;
    border-top: 1rem solid whitesmoke;
    border-right: .5rem solid whitesmoke;
    border-bottom: .5rem solid #222;
    border-left: .5rem solid whitesmoke;

}
.book-item:hover {
    transform: translateY(-5px);
}
.book-item .heading{
    height: 30%;
    display: block;
}
.book-item p{
    font-weight: bold;
}

.book-meta {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}


/* Contact Section */        /* Contact Section */
#contact{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

        .contact-info {
            margin: 1.2rem 0 2rem 0;
            display: flex;
            align-items: flex-start;
            font-size: 1.1rem;
        }

        .contact-info a{
            color: #222;
            margin: 10px;
            padding: 0 .5rem;
            font-weight: bold;
            text-align: center;
            margin-bottom: .5rem;
            text-decoration: none;
            border-radius: .5rem;
            border: .1rem solid transparent;
            transition: border.7s;
        }
        .contact-info a:hover:after{
            opacity: 1;
        }
        .contact-info a:hover{ 
            border: .1rem solid black;
        }
        .copyright{
            color: #333;
            margin-left: -1.2rem;
        }   
/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav a {
        margin: 0 0.8rem;
        font-size: 0.9rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .nav a {
        margin: 0 0.5rem;
        font-size: 0.8rem;
    }
}
@media (max-width: 768px) {
    .skills-grid, .books-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .section {
        padding: 2rem 1rem;
    }
}
