:root {
    --color-primary: #a7bed3;
    --color-secondary: #f0efeb;
    --color-accent: #f9f6f2;
    --color-highlight: #b5d6d6;
    --color-dark: #a7bed3;
    --color-text: #333;
    --color-white: #fff;
    --gradient-bg: linear-gradient(135deg, #a7bed3, #f9f6f2);
    --color-shadow: rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Futura', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-accent);
    background-image: url('https://source.unsplash.com/random');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
}

header {
    background: var(--gradient-bg);
    color: var(--color-white);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 4px 6px var(--color-shadow);
    animation: glow 2s ease-in-out infinite alternate;
}

header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    animation: fadeIn 1.5s ease-in-out;
}

header nav ul li {
    margin: 0 15px;
}

header nav ul li a {
    color: var(--color-white);
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;    
    padding-bottom: 2px;
}

header nav ul li a:hover {
    color: var(--color-highlight);
    transition: color 0.3s ease;
}

header nav ul li a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-highlight);
    transition: width 0.4s ease, left 0.4s ease;
}

header nav ul li a:hover:before {
    width: 100%;
    left: 0;
}

header p {
    display: inline;
    font-size: 1.2rem;
}

.resume-link {
    color: var(--color-white); 
    text-decoration: none;
    border-bottom: 1px solid var(--color-white); 
    margin-left: 10px; 
    transition: all 0.3s ease;
    animation: blink 1.5s infinite;
}

.resume-link:hover {
    border-bottom: 1px solid var(--color-highlight); 
}


.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    background: var(--color-secondary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    width: 200%;
    height: 100%;
    background: linear-gradient(60deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: skewX(-30deg);
    transition: all 1s ease;
}

.hero:hover:before {
    left: 150%;
    transition: all 1s ease;
}

.hero img {
    border-radius: 50%;
    width: 150px;
    height: 200px;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

* Floating animation for hero image */
.hero img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

.hero img:hover {
    transform: rotate(10deg) scale(1.1);
}

.hero-text {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--color-shadow);
    transition: box-shadow 0.3s ease;
}

.hero-text:hover {
    box-shadow: 0 8px 16px var(--color-shadow);
}

section {
    padding: 60px 20px;
    margin: 20px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

section:nth-child(odd) {
    background-color: var(--color-accent);
    animation: slideUp 1.5s ease-in-out;
}

section:nth-child(even) {
    background-color: var(--color-highlight);
    animation: slideUp 1.5s ease-in-out;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: var(--color-dark);
    animation: slideIn 1s forwards;
}

section h2:before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-dark);
    transition: width 0.4s ease;
}

section h2:hover:before {
    width: 100%;
    left: 0;
    transition: width 0.4s ease;
}

.project {
    background: var(--color-white);
    padding: 20px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--color-shadow);
    transition: transform 0.3s ease;
    max-width: 600px;
    animation: fadeIn 1.5s ease-in-out;
    perspective: 1000px;
}

.project:hover {
    transform: translateY(-10px);
}

.project img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.project-content {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.project:hover .project-content {
    transform: rotateY(180deg);
}

.project-front, .project-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px var(--color-shadow);
    padding: 20px;
}

.project-back {
    transform: rotateY(180deg);
    background-color: var(--color-highlight);
}


.project h3 i {
    margin-right: 10px;
    color: var(--color-primary);
}


ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
    font-size: 1.2rem;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

form input, form textarea {
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    transition: all 0.3s ease;
}

form input:focus, form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-shadow);
}

form button {
    padding: 15px 30px;
    background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--color-primary);
}

footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

/* Keyframes for animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Fun cursor effect */
body {
    cursor: url('https://example.com/custom-cursor.png'), auto;
}

a:hover {
    cursor: url('https://example.com/custom-hover-cursor.png'), auto;
}

/* Bouncing scroll-to-top button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-dark);
    color: var(--color-white);
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 8px var(--color-shadow);
    cursor: pointer;
    animation: bounce 2s infinite ease-in-out;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.scroll-to-top:hover {
    background-color: var(--color-primary);
    box-shadow: 0 8px 16px var(--color-shadow);
}

/* Keyframes for bounce effect */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Keyframes for glow effect */
@keyframes glow {
    from {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    to {
        box-shadow: 0 4px 6px rgba(255, 255, 255, 0.4);
    }
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes blink {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}