body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; /* Light Gray */
    background-image: url('texture.png'); 
    background-repeat: repeat;
    overflow-x: hidden;
}

header {
    background-color: #2C3E50; /* Dark Blue Gray */
    color: #ecf0f1; /* Light Gray */
    text-align: center;
    padding: 15px 0;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease-in-out;
}

header:hover {
    background-color: #34495e; /* Slightly Darker Blue Gray */
}

nav {
    background-color: #2980b9; /* Dark Blue */
    text-align: center;
    padding: 10px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

nav a {
    color: #ecf0f1; /* Light Gray */
    text-decoration: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
}

nav a:hover {
    color: #3498db; /* Light Blue */
}

section {
    padding: 40px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.welcome img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: rotate 2s linear infinite;
}

.welcome {
    text-align: center;
    margin-top: 20px;
    font-size: 24px;
    opacity: 0;
    animation: fadeInUp 1.5s ease-in-out 0.5s forwards;
}

.info-card, .skills-card, .projects-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 1.5s ease-in-out forwards;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: inline-block;
    vertical-align: top;
    margin-right: 2%;
}

.info-card:hover, .skills-card:hover, .projects-card:hover {
    transform: scale(1.05); /* Enlarge on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.info-card h2, .skills-card h2, .projects-card h2 {
    text-indent: 20px; /* Add indentation to the heading */
}

.info-card img {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: rotate 2s linear;
}

.skills-card {
    background-color: #3498db;
    color: #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 1.5s ease-in-out forwards;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.projects-card {
    background-color: #f39c12; /* Orange */
    color: #ecf0f1;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    width: 65%;
    animation: fadeInUp 1.5s ease-in-out forwards;
    overflow-x: auto;
    white-space: nowrap;
}

.project-card {
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    margin-right: 20px;
    width: 40%;
    height: 250px;
    overflow-x: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: inline-block;
    vertical-align: top;
}
.project-card h3{
    text-align: center;
    color: #8c66ff;
    text-overflow: auto;
}
.project-card h3:hover{
    color: #65975e;
}
.project-card p{
    text-align: center;
    color: #f4690c;
    text-overflow: auto;
}
.project-card p:hover{
    color: #65975e;
}

.project-card:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

a {
color: #66a3ff; 
text-decoration: none;
transition: color 0.3s ease;
}

a:hover {
color: #65975e; 
}

a:visited {
color: #8c66ff; 
}

a:active {
color: #004080; 
}
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}