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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    overflow-x: hidden;
    background-color: #f8f9fa;
}


.social-btn img {
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.animated-experience-section {
    min-height: 100vh;
    padding: 4rem 1rem;
    background: #fdfdfd;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.experience-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.experience-item {
    background: #fff;
    border-left: 4px solid #0071e3;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transform: translateX(-30px);
    opacity: 0;
    animation: slideFadeIn 1s ease forwards;
}

.experience-item:nth-child(1) { animation-delay: 0.2s; }
.experience-item:nth-child(2) { animation-delay: 0.4s; }
.experience-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideFadeIn {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* ===== NAVIGATION BAR ===== */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #1d1d1f;
    padding: 0.7rem 1.5rem;
    margin: 0 0.3rem;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    border-radius: 18px;
    transition: all 0.3s ease;
}

nav a:hover {
    color: #0071e3;
    background: rgba(0, 113, 227, 0.05);
}

.resume-btn {
    background: #0071e3;
    color: white !important;
    border-radius: 18px;
}

.resume-btn:hover {
    background: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.15);
}

/* ===== HERO SECTION ===== */
#home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    background-color: #000; /* black background */
    color: white; /* text color for black background */
    position: relative;
    perspective: 1000px;
    overflow: hidden;
}

#home::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 80%; /* increased width */
    height: 100%; /* increased height */
    background: url('../images/math-bg-light.png') center center / cover no-repeat;
    opacity: 0.30;
    z-index: 0;
    transform: translateY(-50%) translateX(5%) rotateY(2deg);
    transition: opacity 1.2s ease, transform 1.2s ease;
}


#home.in-view::before {
    opacity: 0.25;
    transform: translateY(-50%) translateX(0) rotateY(0);
}

#home h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    margin-bottom: 1.8rem;
    z-index: 1;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

#home p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: #515154;
    max-width: 600px;
    z-index: 1;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

/* ===== PROJECTS ===== */
#work {
    padding: 8rem 10%;
    background: white;
}

.section-header {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.section-header.in-view {
    opacity: 1;
    transform: translateY(0);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.project-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.project-card-content {
    padding: 2rem;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.project-card p {
    font-size: 1rem;
    color: #515154;
    margin-bottom: 1.5rem;
}

.project-card a {
    padding: 0.7rem 1.5rem;
    background: #0071e3;
    color: white;
    text-decoration: none;
    border-radius: 18px;
    display: inline-block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-card a:hover {
    background: #0066cc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.2);
}

/* ===== ABOUT ===== */
#about {
    padding: 8rem 10%;
    background: #f8f9fa;
}

#about p {
    max-width: 800px;
    margin: auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #515154;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

#about p.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CONTACT ===== */
#contact {
    padding: 8rem 10%;
    background: white;
}

.contact-form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.contact-form.in-view {
    opacity: 1;
    transform: translateY(0);
}

.contact-form input,
.contact-form textarea {
    padding: 1.2rem;
    border: 1px solid #d2d2d7;
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(245, 245, 247, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #0071e3;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form button {
    padding: 1.2rem;
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
}

.contact-form button:hover {
    background: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 113, 227, 0.2);
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 3rem;
    background: #1d1d1f;
    color: #f5f5f7;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    #home::before {
        width: 60%;
        right: 0;
    }
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    #home {
        padding: 0 1.5rem;
        align-items: center;
        text-align: center;
    }

    #home::before {
        width: 100%;
        right: -25%;
        height: 40%;
        opacity: 0.15;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}
/* Animation for scroll reveal */
.experience-item.hidden {
    opacity: 0;
    transform: translateY(40px);
}

.experience-item.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}
.contact-section {
  padding: 8rem 10%;
  background: linear-gradient(to right, #ffffff, #f0f4ff);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-wrapper {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  animation: fadeUp 1s ease forwards;
}

.contact-info {
  flex: 1;
  min-width: 260px;
}

.contact-info h3 {
  font-size: 1.2rem;
  color: #0071e3;
  margin-bottom: 0.5rem;
}

.contact-info p, .contact-info a {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  margin-bottom: 1rem;
}

.contact-form {
  flex: 1;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.08);
  animation: fadeUp 1.2s ease forwards;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ccd6f6;
  border-radius: 10px;
  font-size: 1rem;
  background: #f8f9fa;
}

.contact-form button {
  padding: 1rem;
  background: #0071e3;
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #005bb5;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 113, 227, 0.2);
}
