@import url(//fonts.googleapis.com/css?family=Lato:300:400);

/* About Me Section */
.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #3BAED4;
}

.about-text {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-right {
  text-align: left;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 20px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #ffffff;
    outline: none;
    box-shadow: 0 4px 8px rgba(59, 174, 212, 0.2);
}

.contact-form .btn {
    margin-top: 20px;
    align-self: center;
    background-color: white;
    color: #3BAED4;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.location-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #3BAED4;
}

.location-info p {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #555;
}

.map-container {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.social-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.8rem;
    color: white;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.contacts {
    background-color: white;
}

/* Copyright Section */
.copyright {
    background-color: #ffffff;
    color: #3BAED4;
    padding: 20px;
    text-align: center;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    min-height: 200vh;
    padding-top: 140px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-text h2 {
    font-family: 'Lato', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.hero-text .subtitle {
    font-size: 2.5rem;
    color: #2d698f;
    margin-bottom: 0.5rem;
    font-weight: 600;
    position: relative;
}

.hero-text .title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    color: #1e293b;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .hero-content {
        padding-top: 150px;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        gap: 2rem;
    }
    .hero-image {
        grid-row: 1; /* first row */
        order: 1; /* optional fallback for flexbox */
    }
    .hero-text {
        grid-row: 2; /* second row */
        order: 2;
        text-align: center;
    }

    .hero-text h2 {
        font-size: 2rem;
        color: white;
    }
}

/* Parallax Section Base */
.parallax-section {
    position: relative;
    overflow: hidden;
    min-height: 200vh;
    z-index: 0; /* Ensure it creates a stacking context */
}

.parallax-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1; /* higher than the background (z-index: 0), lower than content (z-index: 2) */
    background: rgb(0, 120, 194, 0.6);
    pointer-events: none; /* avoids blocking interaction */
}

/* The background image */
.parallax-section .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('/resources/images/clouds.jpg'); /* update path */
    background-size: cover;
    will-change: transform;
    z-index: 0;
}

/* Content stays above the background */
.parallax-section .content-overlay {
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(55deg,rgba(161, 235, 255, 1) 0%, rgba(0, 120, 194, 1) 100%);
    padding: 8px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: white;
    display: inline-block;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #64748b;
}

@media (max-width: 768px) {
    .profile-circle {
        width: 220px;
        height: 220px;
    }

    .profile-img {
        width: 190px;
        height: 190px;
    }
}

 /* Projects Section */
.projects {
    padding: 6rem 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    gap: 20px;
}

.project-card {
    position: relative;
    width: 300px;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s;
}

.project-card:hover {
    transform: translateY(-5px);
    cursor: pointer;
    filter: blur(0px);
}


.project-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    background: linear-gradient(55deg,rgb(255, 255, 255) 0%, rgb(208, 237, 255) 100%);
    filter: blur(4px);
    transition: filter 0.3s ease;
}

.project-card:hover .project-card-image {
    filter: blur(0px);
}

.project-card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center; /* or space-between */
    height: 100%;
}

.project-card-content h3 {
    font-size: 24px;
    font-weight: 600;
}

.project-card-content p {
    padding: 10px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    .project-card {
        width: 300px;
        height: 300px;
    }
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: white;
}

.services-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f0f4f7;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

@media (max-width: 768px) {
    .services-content {
        grid-template-columns: 1fr;
    }
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9fcff;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


.stat-item:hover {
    transform: translateY(-3px);
}

.stat-heading {
    font-size: 1.6rem;
    font-weight: 400;
    color: #3BAED4;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr;
    }
}

/* Tech Section */
.tech-bar {
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 999;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.tech-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.tech-stack {
    display: flex;
    gap: 2rem;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    animation: techSlide 20s linear infinite;
    padding: 0 2rem;
}

.tech-stack:hover {
    animation-play-state: paused;
}

.tech-item {
    color: #64748b;
    font-weight: 500;
    padding: 8px 20px;
    background: white;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    min-width: fit-content;
}

.tech-item:hover {
    transform: translateY(-3px) scale(1.05);
    color: #3b82f6;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

@keyframes techSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-20%); }
}

@media (max-width: 768px) {
    .tech-stack {
        gap: 1rem;
        padding: 0 1rem;
    }

    .tech-item {
        padding: 6px 14px;
        font-size: 0.9rem;
    }
}