/* main page css */

.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, #2e2f36, #6a11cb, #2575fc);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 1rem;
}

.hero-section canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-content {
    z-index: 2;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
}

.typewriter-text {
    overflow: hidden;
    border-right: 0.15em solid white;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.1em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    max-width: 100%;
    word-break: break-word; /* Ensures long text wraps */
}

/* Ensure the typewriter wraps text in mobile */
@media (max-width: 768px) {
    .typewriter-text {
        white-space: normal;
        border-right: none;
        animation: none;
        word-break: break-word; /* Forces wrapping */
        margin: 0 auto 15px 15px !important;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem; /* Added gap for spacing */
    }
    .side-image {
        max-width: 100%;
    }
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

.side-image {
    max-width: 500px;
    height: auto;
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-content {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-content {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: auto;
    }
    .typewriter h1 {
        font-size: 1.5rem;
    }
    .typewriter p {
        font-size: 1rem;
    }
    .typewriter-text {
        word-break: break-word; /* Forces wrapping */
        margin: 0 35px 0 35px !important;
    }
}

.feature-card {
    transition: transform 0.3s;
}
.feature-card:hover {
    transform: translateY(-5px);
}

.alert {
    padding: 5px;
    margin: 5px 0;
    border-radius: 5px;
    font-size: 16px;
    position: relative;
    display: flex;
    align-items: center;
  }
  
  .alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
  }
  
  .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
  }

  .alert-warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.alert-info {
  background-color: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}
  
  .alert::before {
    content: "";
    width: 8px;
    height: 100%;
    display: inline-block;
    margin-right: 10px;
    border-radius: 3px;
  }
  
  .alert-success::before {
    background-color: #28a745;
  }
  
  .alert-danger::before {
    background-color: #dc3545;
  }
  
  .alert-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    color: inherit;
  }
  
  .alert-close:hover {
    opacity: 0.8;
  }
  


/* Minimal Process Tracker with Progress Line */
.progress-tracker-minimal {
    display: flex;
    justify-content: center;
    padding: 50px 0 0 0;
    font-size: 12px;
    position: relative;
}

/* Steps container */
.progress-steps-minimal {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 800px;
    justify-content: space-between;
    position: relative;
}

/* Base gray line (full width) */
.progress-steps-minimal::before {
    content: '';
    position: absolute;
    top: 6px; /* aligns with dot center */
    left: 0;
    right: 0;
    height: 2px;
    background-color: #ddd;
    z-index: 0;
}

/* Each step */
.progress-steps-minimal li {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    z-index: 2; /* above the lines */
    color: #aaa;
}

/* The dots */
.progress-steps-minimal .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
}

/* Labels */
.progress-steps-minimal .label {
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
}

/* Active and completed dots and labels get blue */
.progress-steps-minimal li.active .dot,
.progress-steps-minimal li.completed .dot {
    background-color: #007bff;
}

.progress-steps-minimal li.active .label,
.progress-steps-minimal li.completed .label {
    color: #007bff;
}




/* CV Tag Styles */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.tag {
    display: inline-flex;
    align-items: center;
    background-color: #007bff;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
}
.tag button {
    background: none;
    border: none;
    color: white;
    margin-left: 5px;
    cursor: pointer;
}

button.add-btn {
    padding: 8px 15px;
    border: none;
    background-color: #007bff;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.full-height-button {
    height: 100%;
}

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 55px;
    right: 10px;
    width: 38px;
    height: 38px;
    background-color: rgba(0, 123, 255, 0.3); /* Transparent blue */
    color: white;
    border: none;
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    font-size: 24px;
    z-index: 1000;
    transition: opacity 0.3s, transform 0.3s;
    backdrop-filter: blur(2px); /* Optional: adds blur effect */
}

.scroll-to-top-btn:hover {
    background-color: rgba(0, 86, 179, 0.5); /* Slightly darker on hover */
    transform: scale(1.1);
}

#editor {
    height: 500px;
    background-color: #fff;
    margin-bottom: 20px;
}


.hover-shadow:hover {
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-5px);
    transition: all 0.3s ease-in-out;
}
.transition {
    transition: all 0.3s ease-in-out;
}

@media screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

        thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    tr {
        margin-bottom: 20px;
        border: 1px solid #ddd;
    }

    td {
        border: none;
        position: relative;
        padding: 8px;
        padding-left: 0;
    }

        td:before {
            display: block;
            content: attr(data-label);
            font-weight: bold;
            margin-bottom: 4px;
        }
}


/* Simple modal styles */
.custom-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  overflow: auto;
  background: rgba(0,0,0,0.4);
}
.custom-modal-content {
  background: #fff;
  margin: 10vh auto;
  padding: 20px 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.custom-modal-close {
  position: absolute;
  right: 16px;
  top: 10px;
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
}


/* Sticky navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* Add padding to main to prevent content being hidden under navbar */
.main {
    padding-top: 80px; /* Adjust to your navbar height */
}