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

:root {
    --primary: #2d3561;
    --secondary: #c05c7e;
    --accent: #f3826f;
    --light: #f7f7f2;
    --dark: #1a1a2e;
}

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--light);
    color: var(--dark);
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero Section with Parallax */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent);
    bottom: 15%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: var(--secondary);
    top: 60%;
    left: 70%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* About Section */
.about {
    padding: 4rem 2rem;
    background: var(--light);
    position: relative;
}
.about p{
      font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    color: var(--primary);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: var(--secondary);
    margin: 1rem auto;
}

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

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}


.about-text p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--secondary);
    font-weight: 600;
}

.education-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.education-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.education-card p {
    color: #666;
    margin-bottom: 0.5rem;
}

/* Projects Section with Parallax */
.projects {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--light) 0%, #e8e8dd 100%);
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

.project-card:nth-child(3) {
    animation-delay: 0.3s;
}

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

.project-header {
    padding: 2.5rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    position: relative;
}

.project-number {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.2;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.project-tech {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.project-body {
    padding: 2rem;
}

.project-description {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    background: var(--dark);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
    opacity: 0.1;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.contact-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.contact h2 {
    color: white;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: scale(1.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: white;
}

/* Footer */
footer {
    background: #0f0f1e;
    color: white;
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '↓';
    font-size: 2rem;
    color: white;
    opacity: 0.7;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Parallax effect */
.parallax {
    transition: transform 0.1s ease-out;
}

/* ================= NAVBAR ================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    background: var(--secondary);
    left: 0;
    bottom: -6px;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        display: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }

    .nav-links a {
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav-links.active {
        display: flex;
    }
}

/* ===== CONTACT FORM ===== */

form input,
form select,
form textarea {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Work Sans', sans-serif;
    font-size: 1rem;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 2px rgba(192, 92, 126, 0.2);
}

form select {
    background: white;
}

.education-card p a {
    text-decoration: none;
    color: #1a1a2e;
}
.education-card p a:hover {
    text-decoration: none;
    color: #c05c7e;
}

/* ===============================
   MOBILE TYPOGRAPHY FIX
   =============================== */

@media (max-width: 768px) {

  body {
    font-size: 15px;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.3;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 1.35;
  }

  h3 {
    font-size: 1.3rem;
  }

  p,
  li {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .cta-button {
    font-size: 0.95rem;
    padding: 10px 18px;
  }
}
@media (max-width: 480px) {

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.6rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  p {
    font-size: 0.9rem;
  }
}
