@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&display=swap');

/* Color Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #0056b3;
    --background-color: #f4f6f8;
    --card-background: #ffffff;
    --text-color: #333;
    --muted-color: #6c757d;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 20px;
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

.container {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
}

.sidebar {
    flex: 1;
    max-width: 250px;
    background-color: #e9ecef;
    border-radius: 10px; /* Increased border-radius for softer corners */
    padding: 20px;
    box-shadow: 0 8px 25px var(--shadow-color); /* Deeper shadow for a more elevated look */
    opacity: 0;
    animation: fadeIn 0.5s forwards; 
}

@keyframes fadeIn {
    to {
        opacity: 1; 
    }
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav li {
    font-size: 18px;
    margin: 15px 0;
}

.sidebar nav li a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease, transform 0.3s ease; 
    position: relative; /* For the hover effect */
}

.sidebar nav li a::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.sidebar nav li a:hover {
    color: var(--primary-color); 
    transform: translateY(-2px);
}

.sidebar nav li a:hover::after {
    width: 100%; /* Expanding underline on hover */
}

.main {
    flex: 3;
    background-color: var(--card-background);
    border-radius: 10px; /* Increased border-radius */
    box-shadow: 0 8px 20px var(--shadow-color); /* Deeper shadow for elevation */
    padding: 20px;
    margin-left: 20px; 
}

h1, h2 {
    font-family: 'Playfair Display', serif; 
    color: var(--primary-color); 
    margin-bottom: 15px; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05); /* Subtle shadow for depth */
}

p {
    margin-bottom: 20px; 
}

.infoContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 100px 0;

.devInfo {
    max-width: fit-content; 
}

.hello {
    font-size: 3em;
    color: var(--primary-color);
    font-weight: bold;
}

.name {
    font-size: 3.5em;
    font-weight: bold;
}

.buttons {
    margin-top: 20px;
}

.btn {
    padding: 10px 15px;
    border-radius: 5px;
    color: #eeeeee;
    background-color: var(--primary-color);
    font-weight: 600; 
    font-size: 1em;
    margin: 5px;
    border: none; 
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
}

.btn:hover {
    background-color: var(--secondary-color); 
    transform: scale(1.05); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Shadow effect on hover */
}

.contactform {
    padding: 20px;
    margin: 40px 0; 
    background-color: var(--card-background); 
    border-radius: 10px; /* Increased border-radius */
    box-shadow: 0 8px 10px var(--shadow-color);
    opacity: 0; 
    animation: fadeIn 0.5s forwards; 
}

.contactform h1 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 15px; 
}

.contactform form div {
    margin: 15px 0; 
}

.contactform form div input {
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
    padding: 10px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease; /* Added box-shadow transition */
}

.contactform form div input:focus {
    border-color: var(--secondary-color); 
    outline: none; 
    box-shadow: 0 0 5px var(--secondary-color); /* Soft glow effect on focus */
}

.blogItem {
    background-color: var(--card-background); 
    padding: 20px; 
    border-radius: 10px; /* Increased border-radius */
    box-shadow: 0 2px 15px var(--shadow-color);
    margin: 20px 0; 
    opacity: 0; 
    animation: slideIn 0.5s forwards; 
}

@keyframes slideIn {
    from {
        transform: translateY(20px); 
    }
    to {
        transform: translateY(0);
        opacity: 1; 
    }
}

.blogItem h2 {
    font-family: 'Playfair Display', serif; 
    color: var(--primary-color); 
}

.skillContainer {
    display: grid;
    grid-template-columns: repeat(1, 1fr); 
    margin-top: 20px; 
}

.skillItem {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif; 
    font-weight: 600; 
    margin: 10px 0; 
}
.devPic img {
    height: 78vh;
    box-shadow: 2px 2px 10px black;
    border-radius: 25px;
    margin: -50;
    
}

.aboutme{
    border: black;
    margin: 30px 30px;
    padding: 10px;
    box-sizing: border-box;
}

@media (max-width: 1615px) {
    .devInfo{
        font-size: 10px;
    }
    .buttons{
        font-size: 6px;
    }
        .devPic{
            display: flex;
        }
        .intro,.blogContainer,.contactform{
            margin: 50px 8px ;
    
        }
        
    }
}