/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: white;
  color: black;
  line-height: 1.6;
}

/* Navbar */
.navbar {
  background: #362b55;
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
}

/* Hide menu toggle by default */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}


/* Navbar buttons */
.nav-buttons .btn {
  background: white;
  color: #362b55;
  border: 2px solid #362b55;
  border-radius: 6px;
  margin-left: 10px;
  padding: 8px 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.3s;
}

.nav-buttons .btn:hover {
  background: #362b55;
  color: white;
}

/* Hero Section */
.hero {
  position: relative;
  height: 120vh;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 5rem 8%;
  overflow: hidden;
  color: #3a3a3a;
}

/* Curved shape at bottom */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  background: white;
  border-top-left-radius: 100% 50px;
  border-top-right-radius: 100% 50px;
}

/* Image on the left */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.hero-image img {
  width: 700px;
  max-width: 100%;
  height: auto;
  animation: float 6s ease-in-out infinite alternate;
}

/* Text content */
.hero-content {
  flex: 1;
  z-index: 2;
  max-width: 550px;
  min-width: 400px;
}

.hero-content h1 {
  color: #362b55;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-content p {
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 480px;
}

/* Buttons */
button,
.btn,
.cta-btn,
.scan-btn,
.add-btn,
.nav-btn,
.download-btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  background: #362b55;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

button:hover,
.btn:hover,
.cta-btn:hover,
.scan-btn:hover,
.add-btn:hover,
.nav-btn:hover,
.download-btn:hover {
  background: #291f44;
}

/* Floating animation */
@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

/* Headings */
h1, h2, h3, .section-title, .resume-name, .resume-section-title {
  color: #362b55;
}

 .main-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            padding: 4rem 0;
            min-height: calc(100vh - 1000px);
        }

#builder {
  max-width: 1800px;
  margin: 0 auto;            /* centers horizontally */
  padding: 2rem;             /* space inside */
  display: flex;
  justify-content: center;
  align-content: space-between;
}

        .form-section {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            max-height: 100vh;
            overflow-y: auto;
            border: #291f44;
            
        }

        .preview-section {
            background: white;
            padding: 2rem;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            position: sticky;
            top: 2rem;
            max-height: 90vh;
            overflow-y: auto;
        }

        .section-title {
            background: #362b55;
            color: white;
            padding: 1rem;
            margin: -2rem -2rem 2rem -2rem;
            border-radius: 15px 15px 0 0;
            font-size: 1.3rem;
            font-weight: bold;
            text-align: center;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #362b55;
            font-weight: 600;
        }

        .form-group input,
        .form-group textarea,
        .form-group select {
            width: 100%;
            padding: 0.8rem;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #362b55;
            box-shadow: 0 0 0 3px rgba(43, 54, 24, 0.1);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }

        .add-btn, .remove-btn, .nav-btn {
            padding: 0.8rem 1.5rem;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1rem;
            font-weight: 600;
            margin: 0.5rem 0.5rem 0 0;
            transition: all 0.3s ease;
        }

        .add-btn {
            background: #362b55;
            color: white;
        }

        .add-btn:hover {
            background: #3a4723;
            transform: translateY(-2px);
        }

        .remove-btn {
            background: #dc3545;
            color: white;
        }

        .remove-btn:hover {
            background: #c82333;
            transform: translateY(-2px);
        }

        .tab-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 2rem;
            padding: 1.5rem;
            background: linear-gradient(135deg, #f8f9fa, #e9ecef);
            border-radius: 12px;
            border: 2px solid #dee2e6;
        }

        .nav-btn {
            padding: 1rem 2rem;
            font-weight: 600;
            font-size: 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
        }


/* Scan Resume Styles */


.scan-section h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.scan-btn {
    background: #fff;
    color:  #362b55;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.scan-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.scan-results {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



.scan-score {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    min-width: 120px;
}

.score-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
}

.score-text {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
}

.scan-excellent {
    background: #d4edda;
    color: #362b55;
    border: 1px solid #c3e6cb;
}

.scan-good {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.scan-needs-work {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.scan-poor {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.scan-assessment {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.scan-list {
    list-style: none;
    padding: 0;
}

.scan-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.scan-list li:last-child {
    border-bottom: none;
}

.scan-pass {
    color: #362b55;
}

.scan-warning {
    color: #856404;
}

.scan-fail {
    color: #721c24;
}

.scan-bonus {
    color: #0c5460;
}

.scan-tips {
    background: #e7f3ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border-left: 4px solid #362b55;
}

.scan-tips h4 {
    color: #362b55;
    margin-bottom: 1rem;
}

.scan-tips ul {
    margin: 0;
    padding-left: 1.5rem;
}

.scan-tips li {
    margin-bottom: 0.5rem;
    color: #333;
}

/* Container for scanned resume results */
#scan-results {
    display: none;
    background: #362b55;
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Header inside the scan result section */
.scan-header h3 {
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: bold;
}



/* Headings inside upload options */
.upload-option h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: #ffffff;
}

/* Buttons */
.upload-btn, .scan-form-btn {
    background: #ffffff;
    color: #362b55;
    border: none;
    padding: 10px 24px;
    font-size: 1rem;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover, .scan-form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

/* Divider "OR" text */
.upload-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #ccc;
}

/* Upload status message */
.upload-status {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #d1d1d1;
}


        .back-btn {
            background: #362b55;
            color: white;
        }

        .back-btn:hover {
            background: #362b55;
            transform: translateY(-2px);
        }

        .save-btn {
            background: #362b55;
            color: white;
        }

        .save-btn:hover {
            background: #362b55;
            transform: translateY(-2px);
        }

        .next-btn {
            background: #362b55;
            color: white;
        }

        .next-btn:hover {
            background: #362b55;
            transform: translateY(-2px);
        }

        .complete-btn {
            background: #362b55;
            color: white;
        }

        .complete-btn:hover {
            background: #362b55;
            transform: translateY(-2px);
        }

        .preview-toggle {
            text-align: center;
            margin: 1rem 0;
        }

        .preview-btn {
            background: #362b55;
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .preview-btn:hover {
            background: #362b55;
            transform: translateY(-2px);
        }

        .success-message {
            background: #d4edda;
            color: #362b55;
            padding: 1rem;
            border-radius: 8px;
            margin: 1rem 0;
            text-align: center;
            display: none;
            border: 1px solid #c3e6cb;
        }

        .download-section {
            text-align: center;
            margin: 2rem 0;
            padding: 2rem;
            background: linear-gradient(135deg, #362b55, #301d38);
            border-radius: 15px;
            color: white;
        }

        .download-section,h3 {
          color: #ffffff;
        
        }

        .download-btn {
            background: white;
            color: #362b55;
            border: none;
            padding: 1rem 2rem;
            margin: 0.5rem;
            border-radius: 8px;
            cursor: pointer;
            font-weight: bold;
            transition: all 0.3s ease;
        }

        .download-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(255,255,255,0.3);
        }

        /* Resume preview box */
.resume-preview {
  border: 2px solid #362b55;           /* visible border */
  border-radius: 15px;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 6px 18px rgba(54, 43, 85, 0.15);
  color: #333;
  max-width: 600px;
  margin: 0 auto;  
  width: 1000px;                    /* center horizontally */
}

        .resume-header {
            text-align: center;
            margin-bottom: 2rem;
            padding-bottom: 1rem;
            border-bottom: 2px solid #362b55;
        }

        .resume-name {
            font-size: 2rem;
            font-weight: bold;
            color: #362b55;
            margin-bottom: 0.5rem;
        }

        .resume-contact {
            color: #555;
            font-size: 0.9rem;
        }

        .resume-section {
            margin-bottom: 1.5rem;
        }

        .resume-section-title {
            background: #362b55;
            color: white;
            padding: 0.5rem 1rem;
            font-weight: bold;
            font-size: 1.1rem;
            margin-bottom: 1rem;
        }

        .resume-item {
            margin-bottom: 1rem;
        }

        .resume-item-header {
            font-weight: bold;
            color: #362b55;
        }

        .resume-item-subheader {
            color: #666;
            font-style: italic;
            margin-bottom: 0.5rem;
        }

        .resume-item ul {
            margin-left: 1rem;
        }

        .footer {
            background: #362b55;
            color: white;
            text-align: center;
            padding: 2rem 0;
            margin-top: 4rem;
        }

        .tab-container {
            display: flex;
            margin-bottom: 2rem;
            background: #f8f9fa;
            border-radius: 10px;
            overflow: hidden;
        }

        .tab {
            flex: 1;
            padding: 1rem;
            border: none;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .tab.active {
            background: #362b55;
            color: white;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        #about{
  
             display: flex;
             flex-direction: column;
              align-items: center;
              justify-content: center;
              padding: 2rem 5%;
              overflow: hidden;
              color: #3a3a3a;
              margin-bottom: 8rem;
            }
      
      

        .hero2 h2 {
   text-align: center;
  margin-bottom: 20px;
  color: #362b55;            /* optional styling */
}

.hero2 p {
  max-width: 1200px;          /* keeps text readable */
  line-height: 1.6;
}




        @media (max-width: 1200px) {
            
            .main-content {
              max-width: 1000px;
                grid-template-columns: 1fr;
                gap: 1rem;

            }

            .preview-section {
                position: static;
                max-height: none;
            }
        }

/* Buttons in desktop view */
.nav-buttons {
  display: flex;
  gap: 10px;
}

.nav-buttons .btn {
  background: white;
  color: #362b55;
  border: 2px solid #362b55;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 500;
  transition: 0.3s;
}

.nav-buttons .btn:hover {
  background: #362b55;
  color: white;
}






/* MOBILE VIEW */
@media (max-width: 768px) {


  .menu-toggle {
    display: block; /* show the dots */
  }

  /* hide the buttons initially */
  .nav-buttons {
    display: none;
    flex-direction: column;
    width: 100%;
    background: #362b55;
    position: absolute;
    top: 60px;
    left: 0;
    text-align: center;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* show menu after click */
 .navbar {
    padding: 0.1rem 0;
  }

    .navbar .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
 
  .logo{
    font-size: 0.8rem;
  }

  .menu-toggle {
    font-size: 1.2rem;
    cursor: pointer;
  }

  .nav-buttons.active {
    display: flex;
  }



  .nav-buttons .btn {
    width: 90%;
    margin: 5px auto;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 0.7rem;
    padding: 10px;
  }

  .nav-buttons .btn:hover {
    background: white;
    color: #362b55;
  }
 
  /* Hero section */

  .hero {
    flex-direction: column-reverse;
    height: 120vh;
    padding: 2rem 1rem;
    text-align: center;
  
  }

  .hero-image {
    order: 1;
  }

  .hero-image img {
    width: 320px;
  }

  .hero-content{
    padding: 1rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
    line-height: 1.3;


  }

  .hero-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
    
  }

  .cta-btn,
  .scan-btn {
    width: 50%;
    margin: 0.7rem 0;
    padding: 10px;
    font-size: 0.95rem;
  }



/*Main-content mobile view*/

  .container2 {
    padding: 0.5rem;
  }

  .main-content {
    flex-direction: column;
    display: flex;
  }

  .form-section {
    width: 100%;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .resume-preview {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 2px solid #ccc;
  }

  .tab-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .tab {
    flex: 1 1 45%;
    font-size: 0.8rem;
    padding: 0.5rem;
  }

  .form-row {
    flex-direction: column;
  }

  .form-group {
    width: 100%;
  }

  input, textarea {
    width: 100%;
    font-size: 0.7rem;
  }

  .nav-btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    margin-top: 0.5rem;
  }

  .add-btn, .download-btn {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  h3 {
    font-size: 1rem;
    text-align: center;
  }

  ::placeholder {
  font-size: 0.85rem; /* adjust as needed */
}


  .section-title {
    text-align: center;
    font-size: 1rem;
  }

  .download-section {
    text-align: center;
  }

 .container {
    text-align: center;
    padding: 1rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

  .footer .container {
    text-align: center;
    padding: 0.5rem;
  }
}
