@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --card-bg: #fff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    text-decoration: none;
    color: inherit;
}

header {
    background-color: var(--primary-color);
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    font-weight: 300;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--secondary-color);
}

.hero {
  position: relative;
  background-color: var(--primary-color);
  color: #fff;
  text-align: center;
  padding: 8rem 10%;
  overflow: hidden;
}



.parallax {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.parallax:nth-child(1) {
  background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, rgba(52, 152, 219, 0) 70%);
}

.parallax:nth-child(2) {
  background: radial-gradient(circle, rgba(46, 204, 113, 0.3) 0%, rgba(46, 204, 113, 0) 70%);
}

.parallax:nth-child(3) {
  background: radial-gradient(circle, rgba(155, 89, 182, 0.3) 0%, rgba(155, 89, 182, 0) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}


main {
    padding-top: 4rem;
}

section {
    padding: 5rem 10%;
}

h1, h2, h3 {
    margin-bottom: 1rem;
}

.hero {
  position: relative;
  height: 85dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary-color);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.scroll-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    opacity: 0.7;
    animation: float 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 10;
}

.scroll-arrow svg {
    width: 100%;
    height: 100%;
    color: white;
}

.parallax-element {
  transition: transform 0.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.hero-background {
  position: absolute;
  top: -10%;
  left: -10%;
  right: -10%;
  bottom: -10%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.8;
  z-index: 1;
}

.cta-button {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 5px;
    transition: var(--transition);
    margin-top: 1rem;
}

.cta-button:hover {
    background-color: #2980b9;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.about {
    margin-top: 20px;
}

.about-text {
    flex: 1;
}

.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.skills-list li {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--secondary-color);
    font-weight: 800;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.contact {
  margin-bottom: 100px;
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group label {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    transition: var(--transition);
    pointer-events: none;
    color: #777;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    background-color: var(--bg-color);
    padding: 0 0.3rem;
    color: var(--secondary-color);
}

button[type="submit"] {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

button[type="submit"]:hover {
    background-color: #2980b9;
}

footer {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
}

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

@media (prefers-reduced-motion: reduce) {
    .scroll-arrow {
        animation: none;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 5%;
    }

    .about-content {
        flex-direction: column;
    }

    nav ul {
        display: none;
    }

    .hero h1 {
      font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 1rem;
    }
}