/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #fbfcdd;
    background-color: #f4f4f4;
}

/* FOR CV.HTML */

/* Wavy background animation */
@keyframes wave-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header {
    text-align: center;
    padding: 25px;
    background: linear-gradient(270deg, #2c3e50, #34495e, #2980b9,#34495e, #2c3e50);
    background-size: 400% 400%;
    animation: wave-animation 10s ease infinite; /* Slow animation*/
    color: #ecf0f1;
    border-radius: 1%;
    text-shadow: 5px 5px 5px rgba(0, 0, 0, 2);
}

.shadow {
    box-shadow: 10px 10px 10px rgba(0, 0, 0, .6);
}

img {
    border-radius: 60%; 
    height: auto; 
    max-width: 30%;
}

.header-name {
    color: #ecf0f1;
}

.cv {
    display: inline-block;
    font-size: 25px;
}

.cv span {
    font-size: 2rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    display: inline-block;
    animation: wave 15s infinite;
    animation-delay: calc(0.5s * var(--i));
}

.cap {
    font-size: 35px;
}

@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}
/* .link{
    color: #3498db;
} */
section {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    color: #333; /* Added dark text color for better readability */
    line-height: 1.5rem;
}

h1 {
    color: #d2e3f3;
    line-height: 2.5rem;
}
h2{
    color: #333;
    line-height: 1.5rem;
    padding-bottom: 1rem;

}
a {
    color: #c5c6d3;
}
a.link{
    color: #1e5880;
}

a:hover, h2:hover {
    color: #3498db; 
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 10px;
}

footer {
    text-align: center;
    padding: 20px;
    background: linear-gradient(270deg, #2c3e50, #34495e, #2980b9, #34495e, #2c3e50);
    background-size: 400% 400%;
    animation: wave-animation 10s ease infinite;
    border-radius: 1%;
    color: #ecf0f1;
}

/* FOR INDEX.HTML (Landing Page) */
.hero {
    height: 100vh;
    background: url('./Imgs/Jacob\ on\ a\ Bench\ attempt\ 1.webp') no-repeat center center/cover; /*Replace with your image */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Subtle gradient animation overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(230, 142, 126, 0.24), 
                                        rgba(214, 223, 92, 0),
                                        rgba(108, 233, 139, 0.24));
    background-size: 400% 400%;
    z-index: 1;
    animation: gradientMove 20s ease infinite;
}

/* Gradient animation */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.content {
    position: relative;
    z-index: 2;
    text-align: center;
    opacity: 0;
    animation: fadeIn 3s forwards;
}

/* Fade-in animation */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    background: rgba(255, 255, 255, 0.2); /* Transparent overlay */
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: background 0.3s ease, color 0.3s ease;
}
.btn-header{
    text-align: left;

}

/* Button hover effect */
.btn:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {


    h1 {
        font-size: 2rem;
    }

    .btn {
        font-size: 1rem;
        padding: 10px 20px;
    }
}
