:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --text-color: #e94560;
  --light-text: #CFCDFF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: var(--primary-color);
  color: var(--light-text);
}

/* Navigation */
.navbar {
  background-color: var(--secondary-color);
  padding: 1rem 2rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-links {
  display: flex;
  justify-content: space-around;
  list-style: none;
}

.nav-links a {
  color: var(--light-text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

/* Cards */
.card {
  background: var(--secondary-color);
  border-radius: 15px;
  padding: 20px;
  margin: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

/* Note Card */
.note-card {
  background: #ffd93d;
  color: #000;
  transform: rotate(-2deg);
  padding: 20px;
  margin: 20px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.note-card p {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
}

/* Certificate Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.certificate-card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
}

/* Animations */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    flex-direction: column;
    align-items: center;
  }
  
  .gallery {
    grid-template-columns: 1fr;
  }
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
}

.admin-header {
    margin-bottom: 30px;
}

.admin-header h1 {
    color: var(--text-color);
    margin-bottom: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-card i {
    font-size: 2rem;
    color: var(--text-color);
}

.stat-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.stat-info .count {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-color);
}

.admin-sections {
    display: grid;
    gap: 30px;
}

.admin-section {
    background: var(--secondary-color);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.toggle-form-btn {
    background: var(--accent-color);
    color: var(--light-text);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle-form-btn:hover {
    background: var(--text-color);
}

.admin-form {
    background: var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.admin-form.hidden {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.file-input-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.file-input {
    background: var(--secondary-color);
    padding: 10px;
    border-radius: 5px;
}

.file-input label {
    display: block;
    margin-bottom: 5px;
    color: var (--text-color);
}

.messages-grid {
    display: grid;
    gap: 20px;
}

.message-card {
    background: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    position: relative;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.message-card .email {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.message-card .content {
    margin-bottom: 15px;
    color: var(--light-text);
}

.message-card .date {
    font-size: 0.8rem;
    opacity: 0.7;
}

.delete-message {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--text-color);
    color: var(--light-text);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.note-item {
    background: var(--primary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.note-item .date {
    display: block;
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Certificate Page Styles */
.certificates-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 100px auto 0; /* Added top margin to account for fixed navbar */
}

.page-title {
    font-size: 2.8rem;
    color: #ffffff;
    text-align: center;
    margin: 2rem 0 3rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(207, 205, 255, 0.5),
                 0 0 20px rgba(207, 205, 255, 0.3),
                 0 0 30px rgba(207, 205, 255, 0.2);
    position: relative;
    padding: 20px 0;
}

.page-title::before {
    content: '✧';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(207, 205, 255, 0.4);
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite;
}

.page-title::after {
    content: '✧';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(207, 205, 255, 0.4);
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite 0.5s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--secondary-color);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    min-height: 200px;
}

.category-card:hover {
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    position: relative;
    margin-bottom: 1rem;
}

.card-header i {
    font-size: 2.5rem;
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #7367f0; /* Add universal color for all icons */
}

/* Remove or comment out the individual icon colors */
/* Icon-specific colors */
/* .card-header .fa-brain { color: #00ff9d; }
.card-header .fa-code { color: #61dafb; }
.card-header .fa-network-wired { color: #f7df1e; }
.card-header .fa-shield-alt { color: #ff6b6b; }
.card-header .fa-database { color: #4facfe; }
.card-header .fa-laptop-code { color: #7367f0; }
.card-header .fa-server { color: #ff9f43; }
.card-header .fa-robot { color: #00cfe8; }
.card-header .fa-cloud { color: #45aaf2; }
.card-header .fa-tools { color: #8e44ad; }
.card-header .fa-mobile-alt { color: #2ecc71; }
.card-header .fa-desktop { color: #9b59b6; }
.card-header .fa-shield-virus { color: #e74c3c; } */

.card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-header p {
    font-size: 0.875rem;
    color: var(--light-text);
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.certificate-card {
    background: var(--secondary-color);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.certificate-card:hover {
    transform: translateY(-5px);
}

.cert-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
}

.cert-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.certificate-card:hover .cert-image img {
    transform: scale(1.05);
}

.cert-info {
    padding: 1.5rem;
}

.cert-info h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.cert-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.cert-info i {
    color: var(--text-color);
}

.certificates-list {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--primary-color);
    padding: 10px;
    border-radius: 8px;
    position: relative;
}

.cert-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.cert-details {
    flex: 1;
}

.cert-details h4 {
    margin-bottom: 5px;
}

.cert-details .category {
    font-size: 0.8rem;
    color: var (--text-color);
}

.delete-cert {
    background: var (--text-color);
    color: var (--light-text);
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.delete-cert:hover {
    background: #d13850;
}

/* Certificate Enhancements */
.certificates-grid.hidden {
    display: none;
}

.category-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--text-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card.active::after {
    transform: scaleX(1);
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.image-modal img {
    max-width: 75%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-zoom {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--text-color);
    color: var(--light-text);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.close-zoom:hover {
    background: #d13850;
    transform: scale(1.1);
}

.certificate-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.certificate-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.cert-img {
    cursor: zoom-in;
}

/* Form Field Icons */
.field-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.field-icon i {
    color: var(--text-color);
    font-size: 1.1rem;
    min-width: 20px;
}

/* Adjust existing form styles */
.form-grid .form-control {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 5px;
    padding: 8px 12px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--light-text);
    padding-left: 8px;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
    outline: none;
}

/* Section Icons */
.section-icon {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Remove or comment out the section at the bottom */
/* Icon-specific colors */
/* .fa-brain { color: #00ff9d; }
.fa-code { color: #61dafb; }
.fa-network-wired { color: #f7df1e; }
.fa-shield-alt { color: #ff6b6b; }
.fa-database { color: #4facfe; }
.fa-laptop-code { color: #7367f0; }
.fa-server { color: #ff9f43; }
.fa-robot { color: #00cfe8; }
.fa-cloud { color: #45aaf2; }
.fa-tools { color: #8e44ad; }
.fa-mobile-alt { color: #2ecc71; }



.fa-shield-virus { color: #e74c3c; } */.fa-desktop { color: #9b59b6; }.cert-icon {
    color: #7367f0;
}

/* Login Form Styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-form {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-form h2 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: var(--primary-color);
    color: var(--light-text);
}

.error-message {
    color: var(--text-color);
    background: rgba(233, 69, 96, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}

.login-form button {
    width: 100%;
    padding: 10px;
    background: var (--text-color);
    color: var(--light-text);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.login-form button:hover {
    background: #d13850;
}

.admin-footer {
    background: var(--secondary-color);
    padding: 1rem;
    text-align: center;
    margin-top: 2rem;
    color: var(--light-text);
}

.admin-footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.item-card {
    background: var(--primary-color);
    border-radius: 8px;
    padding: 15px;
    position: relative;
}

.view-all-btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--light-text);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.view-all-btn:hover {
    background: var(--text-color);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.note-card {
    background: #ffd93d;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    transform: rotate(-1deg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.note-card p {
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

/* Home Page Styles */
.home-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 100px auto 0;
}

.hero-section {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-section h1 {
    font-size: 2.8rem;
    color: #ffffff;
    text-align: center;
    margin: 2rem 0 3rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(207, 205, 255, 0.5),
                 0 0 20px rgba(207, 205, 255, 0.3),
                 0 0 30px rgba(207, 205, 255, 0.2);
    position: relative;
    padding: 20px 0;
}

.hero-section h1::before {
    content: '✧';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(207, 205, 255, 0.4);
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite;
}

.hero-section h1::after {
    content: '✧';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(207, 205, 255, 0.4);
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite 0.5s;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-box {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(207, 205, 255, 0.3);
    transition: all 0.3s ease;
}

.stat-box:hover i {
    color: var(--text-color);
    transform: scale(1.1);
}

/* Project Tab Styles */
.project-tabs {
    display: flex;
    justify-content: center;
    margin: 0 auto 32px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
    width: fit-content;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    color: var(--light-text);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button.active {
    background: var(--secondary-color);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Updated Project Card Styles */
.project-card {
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 20px;
}

.project-info {
    flex: 1;
}

.project-actions {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.project-actions .action-btn {
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-actions .delete-btn {
    background: var(--text-color);
    color: var(--light-text);
    border: none;
}

.project-actions .delete-btn:hover {
    background: #d13850;
    transform: translateY(-2px);
}

.project-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-info .description {
    color: var(--light-text);
    margin-bottom: 16px;
    line-height: 1.6;
}

.project-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.project-links a,
.project-links button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 36px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-links .delete-btn {
    background: var(--text-color);
    border: none;
}

.project-links .delete-btn:hover {
    background: #d13850;
}

.project-links a:hover {
    background: var(--accent-color);
}

.project-stats {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(207, 205, 255, 0.7); /* #CFCDFF with opacity */
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(207, 205, 255, 0.7); /* #CFCDFF with opacity */
}

.projects-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 100px auto 0; /* Increased top margin */
}

.projects-container .page-title {
    margin: 2rem 0 3rem;
    color: var(--text-color);
    text-align: center;
    font-size: 2.5rem;
}

/* Notes Page Styles */
.notes-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 100px auto 0; /* Increased top margin */
}

.notes-container .page-title {
    margin: 2rem 0 3rem;
    color: var(--text-color);
    text-align: center;
    font-size: 2.5rem;
}

/* Contact Page Styles */
.contact-container {
    padding: 2rem;
    max-width: 800px;
    margin: 100px auto 0;
}

.contact-container .page-title {
    margin: 2rem 0 3rem;
    color: var(--text-color);
    text-align: center;
    font-size: 2.5rem;
}

.contact-form {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: var(--primary-color);
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--text-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.2);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background: var(--text-color);
    color: var(--light-text);
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.contact-form button:active {
    transform: translateY(0);
}

.success-message,
.error-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.success-message {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
}

.error-message {
    background: rgba(233, 69, 96, 0.1);
    color: var(--text-color);
}

/* Updated Page Title Styles */
.page-title,
.hero-section h1,
.projects-container .page-title,
.notes-container .page-title,
.contact-container .page-title {
    font-size: 2.8rem;
    color: #ffffff;
    text-align: center;
    margin: 2rem 0 3rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(207, 205, 255, 0.5),
                 0 0 20px rgba(207, 205, 255, 0.3),
                 0 0 30px rgba(207, 205, 255, 0.2);
    position: relative;
    padding: 20px 0;
}

.page-title::before,
.hero-section h1::before,
.projects-container .page-title::before,
.notes-container .page-title::before,
.contact-container .page-title::before {
    content: '✧';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(207, 205, 255, 0.4);
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite;
}

.page-title::after,
.hero-section h1::after,
.projects-container .page-title::after,
.notes-container .page-title::after,
.contact-container .page-title::after {
    content: '✧';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(207, 205, 255, 0.4);
    font-size: 1.5rem;
    animation: twinkle 1.5s infinite 0.5s;
}

/* Footer Styles */
.site-footer {
    background-color: var(--secondary-color);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.copyright {
    color: var(--light-text);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--light-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--text-color);
}

.footer-link i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Add these new styles for the delete button */
.delete-btn {
    background: var(--text-color);
    color: var(--light-text);
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.delete-btn:hover {
    opacity: 1;
    background: #d13850;
    transform: translateY(-2px);
}

.delete-btn:active {
    transform: translateY(0);
}

/* Enhanced Certificate Card Styles */
.certificate-card {
    display: flex;
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cert-thumb {
    width: 120px;
    min-width: 120px;
    height: 100%;
    overflow: hidden;
}

.cert-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cert-thumb img:hover {
    transform: scale(1.1);
}

.cert-details {
    padding: 15px;
    flex: 1;
}

.cert-details h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light-text);
}

.cert-details p {
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
}

.cert-details i {
    color: var(--text-color);
    width: 16px;
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Enhanced Button Styles */
.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: var(--light-text);
}

.view-btn {
    background: var(--accent-color);
}

.view-btn:hover {
    background: #1a4580;
}

.delete-btn {
    background: var(--text-color);
}

.delete-btn:hover {
    background: #d13850;
}

.toggle-form-btn {
    background: var(--accent-color);
    color: var(--light-text);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.toggle-form-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

.toggle-form-btn:active {
    transform: translateY(0);
}

/* Responsive Layout & Sticky Footer */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
    padding-top: 80px; /* Account for fixed navbar */
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Enhanced Responsive Styles */
@media screen and (max-width: 768px) {
    .nav-links {
        padding: 0.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .navbar {
        padding: 0.5rem;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .project-links {
        flex-direction: column;
        gap: 10px;
    }

    .project-links a {
        width: 100%;
        justify-content: center;
    }

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

    .contact-container {
        padding: 1rem;
    }

    .page-title {
        font-size: 2rem;
        margin: 1rem 0 2rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .stat-box {
        padding: 1.5rem;
    }

    .card-header i {
        font-size: 2rem;
    }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Enhance touch targets for mobile */
@media (hover: none) {
    .nav-links a {
        padding: 12px 16px;
    }

    .project-links a {
        padding: 12px 20px;
    }

    button, 
    .tab-button,
    .toggle-form-btn {
        min-height: 44px;
        padding: 12px 20px;
    }
}

/* Prevent content overflow */
img, video, object {
    max-width: 100%;
    height: auto;
}

/* Better form controls on mobile */
@media screen and (max-width: 480px) {
    input, 
    select, 
    textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px;
    }
}
