/* style.css */
:root {
  /* Professional Theme (Default) */
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #ecf0f1;
  --text-color: #2c3e50;
  --card-bg: #ffffff;
  --nav-width: 280px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

/* Theme Variations */
[data-theme="creative"] {
  --primary-color: #8e44ad;
  --secondary-color: #9b59b6;
  --accent-color: #f1c40f;
  --background-color: #f8f9fa;
  --text-color: #2d3436;
  --card-bg: #ffffff;
}

[data-theme="minimal"] {
  --primary-color: #34495e;
  --secondary-color: #7f8c8d;
  --accent-color: #34495e;
  --background-color: #ffffff;
  --text-color: #2c3e50;
  --card-bg: #f8f9fa;
}

[data-theme="warm"] {
  --primary-color: #e67e22;
  --secondary-color: #d35400;
  --accent-color: #f39c12;
  --background-color: #fef9f3;
  --text-color: #2c3e50;
  --card-bg: #ffffff;
}

[data-theme="tech"] {
  --primary-color: #16a085;
  --secondary-color: #1abc9c;
  --accent-color: #27ae60;
  --background-color: #0f1a23;
  --text-color: #ffffff;
  --card-bg: #1a2b3c;
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html, body {
  height: 100%;
  overflow: hidden; /* Remove scrolling */
}

body {
  font-family: var(--font-body);
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
}

/* Left Navigation */
#left-navbar {
  width: var(--nav-width);
  height: 100vh;
  background: var(--card-bg);
  border-right: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.nav-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.logo h2 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.theme-ribbon {
    position: fixed;
    top: 18px;
    right: -60px;
    background: var(--primary-color);
    color: white;
    padding: 10px 60px;
    transform: rotate(45deg);
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.theme-ribbon:hover {
    background: var(--secondary-color);
    right: -50px;
    padding: 12px 45px;
}

.theme-ribbon i {
    font-size: 1rem;
}

.theme-ribbon span {
    white-space: nowrap;
}

/* Theme Masonry Modal */
.theme-masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.theme-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255,255,255,0.1) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.theme-url-display {
    background: rgba(0,0,0,0.05);
    padding: 0.75rem;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    word-break: break-all;
    border: 1px solid rgba(0,0,0,0.1);
}

.theme-card button {
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

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

/* Responsive Design for Masonry */
@media (max-width: 768px) {
    .theme-masonry {
        width: 95%;
        padding: 1rem;
    }
    
    .theme-masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .theme-ribbon {
        top: 80px;
        right: -40px;
        padding: 8px 35px;
        font-size: 0.8rem;
    }
    
    .theme-ribbon:hover {
        right: -35px;
        padding: 10px 40px;
    }
}

/* Animation for masonry container */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#theme-masonry-container .theme-masonry {
    animation: fadeIn 0.3s ease-out;
}

/* Scrollbar styling for masonry */
.theme-masonry::-webkit-scrollbar {
    width: 8px;
}

.theme-masonry::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.theme-masonry::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.theme-masonry::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

.theme-selector {
    display: none; /* Hidden by default */
}
  
.theme-selector.visible {
    display: grid; /* Show when visible class is added */
    gap: 0.5rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 4fr);
}

.theme-btn {
  width: auto;
  height: auto;
  border: 2px solid var(--card-bg);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
}

.theme-special {
  grid-column: 1 / 3;
  grid-row: 1 / -1;
}

.theme-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.theme-btn.active {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px var(--accent-color);
}

/* Navigation Links */
.nav-links {
  flex: 1;
  padding: 2rem 0;
}

.nav-link {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.nav-link i {
  width: 20px;
  margin-right: 1rem;
  font-size: 1.1rem;
}

.nav-link:hover {
  background: rgba(0,0,0,0.05);
  border-left-color: var(--secondary-color);
}

.nav-link.active {
  background: var(--primary-color);
  color: white;
  border-left-color: var(--accent-color);
}

/* Navigation Footer */
.nav-footer {
  padding: 0.5rem 1rem;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 8px;
}

.social-link {
  color: var(--text-color);
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary-color);
}

.download-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: var(--secondary-color);
}

/* Main Content Area */
#main-content {
  flex: 1;
  margin-left: var(--nav-width);
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.content-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
  transform: translateX(50px);
  overflow-y: auto;
}

.content-section.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Home Section */
#home .section-content {
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.hero-title .name {
  display: block;
  color: var(--primary-color);
}

.hero-title .title {
  display: block;
  font-size: 2rem;
  color: var(--secondary-color);
  margin-top: 0.5rem;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.9rem;
  opacity: 0.7;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  opacity: 0.1;
  border-radius: 36%;
}

/* About Section */
.about-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

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

.highlight-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

.highlight-card i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Skills Section */
.skills-container {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.skills-category h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skills-grid {
  display: grid;
  gap: 1rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  min-width: 100px;
  font-weight: 600;
}

.skill-bar {
  flex: 1;
  height: 8px;
  background: rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--primary-color);
  border-radius: 4px;
  width: 0;
  transition: width 1s ease-in-out;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

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

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

.project-content {
  padding: 1.5rem;
}

.project-tech {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.tech-tag {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--secondary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 5px;
  background: var(--card-bg);
  color: var(--text-color);
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-btn {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-heading);
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: var(--secondary-color);
}

/* Hide theme-specific text by default */
[data-theme-text="true"] span:not(.active) {
  display: none;
}

[data-theme="professional"] .default-text,
[data-theme="creative"] .creative-text,
[data-theme="minimal"] .minimal-text,
[data-theme="warm"] .warm-text,
[data-theme="tech"] .tech-text {
  display: inline !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --nav-width: 70px;
  }
  
  .nav-link span {
    display: none;
  }
  
  .logo h2 {
    font-size: 1.2rem;
  }
  
  .theme-selector {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .theme-btn {
    width: 25px;
    height: 25px;
    font-size: 0.7rem;
  }
  
  #home .section-content {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Theme button tooltips */
.theme-btn {
    position: relative;
}

.theme-btn::before {
    content: 'Right-click to copy theme URL';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-color);
    color: var(--background-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.theme-btn:hover::before {
    opacity: 1;
    visibility: visible;
    margin-bottom: 5px;
}

/* Experience Section */
.experience-timeline {
    margin-top: 2rem;
}

.experience-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.experience-header h3 {
    color: var(--primary-color);
    margin: 0;
}

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

.experience-positions {
    margin-left: 1rem;
}

.position {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 3px solid var(--secondary-color);
}

.position h4 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.position-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 600;
}

.position-details {
    margin: 0;
    padding-left: 1.5rem;
}

.position-details li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Education Section */
.education-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
}

.education-header h3 {
    color: var(--primary-color);
    margin: 0;
}

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

.education-details h4 {
    color: var(--text-color);
    margin: 0 0 0.5rem 0;
}

.education-grade {
    color: var(--secondary-color);
    font-weight: 600;
    margin: 0;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Update the contact form styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #27ae60;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-top: 1rem;
}

.submit-btn:hover:not(:disabled) {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn.loading {
    position: relative;
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}