/* Modern Portfolio Redesign CSS */
:root {
  --primary: #ff5f40;
  --primary-dark: #e14a28;
  --bg-glass: rgba(255,255,255,0.7);
  --bg-glass-dark: rgba(30,34,40,0.7);
  --glass-blur: 16px;
  --text-main: #222;
  --text-light: #fff;
  --accent: #3a86ff;
  --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --border-radius: 1.5rem;
  --font-main: 'Inter', 'Montserrat', Arial, sans-serif;
}

body, html {
  width: 100%;
  height: 100%;
  font-family: var(--font-main);
  background: linear-gradient(120deg, #f8fafc 0%, #e0e7ef 100%);
  color: var(--text-main);
}

body, .blog-content, .main-content {
  margin-top: 0 !important;
}

.glass-nav, .navbar {
  background: #181a1b !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.navbar-brand {
  color: #ff5f40 !important;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  color: #ffd700 !important;
}

/* Header section contrast */
header, .article-header, .blog-header {
  background: #232526 !important;
  color: #fff !important;
  margin-top: 0 !important;
  padding-top: 2.5rem;
}

header h1, .article-header h1, .blog-header h1 {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(120deg, rgba(30,34,40,0.7) 0%, rgba(255,95,64,0.2) 100%);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.profile-img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--bg-glass);
  box-shadow: var(--shadow);
  background: var(--bg-glass);
  margin-bottom: 1rem;
}

.btn-glass {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 2rem;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  transition: background 0.2s, transform 0.2s;
}

.btn-glass:hover, .btn-glass:focus {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

.btn-outline-glass {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 2rem;
  padding: 0.4rem 1.2rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-glass:hover, .btn-outline-glass:focus {
  background: var(--primary);
  color: #fff;
}

.section-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 2rem;
}

.section-heading {
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-card {
  background: var(--bg-glass);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 2rem 2.5rem;
  margin-bottom: 2rem;
}

.about-highlights i {
  margin-right: 0.3rem;
}

.skill-card {
  min-height: 180px;
  background: var(--bg-glass);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.18);
}

.skill-progress {
  height: 8px;
  border-radius: 4px;
  background: #e0e7ef;
  overflow: hidden;
}

.skill-progress .progress-bar {
  border-radius: 4px;
  transition: width 1s cubic-bezier(.4,2,.3,1);
}

.timeline-modern {
  position: relative;
  margin: 2rem 0;
  padding-left: 0;
}

.timeline-item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

.timeline-content {
  min-width: 260px;
  max-width: 340px;
  background: var(--bg-glass);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 2;
  margin: 0 1.5rem;
  text-align: center;
}

.timeline-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  border: 2px solid var(--primary);
}

.timeline-date {
  display: block;
  font-size: 0.95rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* Timeline vertical line */
.timeline-modern::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary) 0%, #fff 100%);
  z-index: 1;
  border-radius: 2px;
  transform: translateX(-50%);
}

.timeline-item.left .timeline-content {
  margin-right: auto;
}
.timeline-item.right .timeline-content {
  margin-left: auto;
}

/* Contact & Social */
.social-icons a {
  display: inline-block;
  margin: 0 0.5rem;
  color: var(--primary);
  font-size: 2rem;
  transition: color 0.2s, transform 0.2s;
}
.social-icons a:hover {
  color: var(--accent);
  transform: scale(1.15) rotate(-6deg);
}

.form-control, textarea.form-control {
  border-radius: 1rem;
  border: 1px solid #e0e7ef;
  background: var(--bg-glass);
  box-shadow: none;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.1rem rgba(255,95,64,0.15);
}

.btn-block {
  width: 100%;
}

/* Responsive Design */
@media (max-width: 991px) {
  .timeline-modern::before {
    left: 8%;
  }
  .timeline-item, .timeline-item.right {
    flex-direction: column !important;
    align-items: flex-start;
  }
  .timeline-content {
    margin: 0 0 2rem 0 !important;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 767px) {
  .section-heading {
    font-size: 2rem;
  }
  .profile-img {
    width: 100px;
    height: 100px;
  }
  .about-card, .glass-card {
    padding: 1.2rem 1rem;
  }
  .timeline-modern::before {
    left: 0;
    width: 2px;
  }
}
@media (max-width: 575px) {
  .hero-section {
    min-height: 70vh;
  }
  .section-glass {
    margin: 1rem 0;
    border-radius: 1rem;
  }
  .glass-card {
    border-radius: 1rem;
  }
}

/* Animations */
.section-heading, .btn-glass, .glass-card, .timeline-content, .profile-img {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s forwards;
}
.section-heading { animation-delay: 0.1s; }
.btn-glass { animation-delay: 0.2s; }
.glass-card { animation-delay: 0.3s; }
.timeline-content { animation-delay: 0.4s; }
.profile-img { animation-delay: 0.2s; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Project page styles */
.project-header {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-meta span {
  margin-right: 20px;
  color: #6c757d;
  display: inline-block;
  margin-bottom: 10px;
}

.project-screenshots img {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

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

.code-snippet {
  border-radius: 8px;
  overflow: hidden;
}

.code-snippet pre {
  margin-bottom: 0;
  white-space: pre-wrap;
}

/* Education page styles */
.education-timeline .timeline-item {
  position: relative;
  border-left: 4px solid #F05F40;
  padding-left: 20px;
}

.certification-card {
  transition: transform 0.3s ease;
}

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

.resume-section .btn-glass {
  background-color: rgba(240, 95, 64, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 95, 64, 0.2);
  color: #F05F40;
  transition: all 0.3s ease;
}

.resume-section .btn-glass:hover {
  background-color: rgba(240, 95, 64, 0.2);
  border-color: rgba(240, 95, 64, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(240, 95, 64, 0.1);
}

/* Glass card styles for projects */
.glass-card {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  transition: all 0.3s ease;
}

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

.btn-glass {
  background-color: rgba(240, 95, 64, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 95, 64, 0.2);
  color: #F05F40;
  transition: all 0.3s ease;
}

.btn-glass:hover {
  background-color: rgba(240, 95, 64, 0.2);
  border-color: rgba(240, 95, 64, 0.3);
  color: #F05F40;
}

body.dark-mode {
  background: linear-gradient(120deg, #181a1b 0%, #232526 100%) !important;
  color: #f3f3f3 !important;
}
body.dark-mode .glass-nav, body.dark-mode .navbar {
  background: #111213 !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.28);
}
body.dark-mode .navbar-brand {
  color: #ff5f40 !important;
}
body.dark-mode .navbar-nav .nav-link {
  color: #fff !important;
}
body.dark-mode .navbar-nav .nav-link:hover, body.dark-mode .navbar-nav .nav-link.active {
  color: #ffd700 !important;
}
body.dark-mode header, body.dark-mode .article-header, body.dark-mode .blog-header {
  background: #181a1b !important;
  color: #fff !important;
}
body.dark-mode header h1, body.dark-mode .article-header h1, body.dark-mode .blog-header h1 {
  color: #fff !important;
}
body.dark-mode .hero-section {
  background: #181a1b !important;
}
body.dark-mode .hero-section::after {
  background: linear-gradient(120deg, rgba(30,34,40,0.9) 0%, rgba(255,95,64,0.1) 100%);
}
body.dark-mode .section-glass,
body.dark-mode .about-card,
body.dark-mode .glass-card,
body.dark-mode .timeline-content {
  background: rgba(30,34,40,0.85) !important;
  color: #f3f3f3 !important;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
}
body.dark-mode .section-heading {
  color: #ff5f40 !important;
}
body.dark-mode .btn-glass {
  background: #ff5f40;
  color: #fff;
}
body.dark-mode .btn-glass:hover, body.dark-mode .btn-glass:focus {
  background: #e14a28;
  color: #fff;
}
body.dark-mode .btn-outline-glass {
  color: #ff5f40;
  border-color: #ff5f40;
}
body.dark-mode .btn-outline-glass:hover, body.dark-mode .btn-outline-glass:focus {
  background: #ff5f40;
  color: #fff;
}
body.dark-mode .form-control, body.dark-mode textarea.form-control {
  background: #232526;
  color: #fff;
  border-color: #444;
}
body.dark-mode .form-control:focus {
  background: #232526;
  color: #fff;
  border-color: #ff5f40;
}
body.dark-mode .blog-content, body.dark-mode .main-content {
  background: #232526 !important;
  color: #f3f3f3 !important;
}
body.dark-mode .article-meta {
  color: #bbb !important;
}
body.dark-mode .project-card, body.dark-mode .card {
  background: rgba(30,34,40,0.85) !important;
  color: #f3f3f3 !important;
  border: 1px solid rgba(255,255,255,0.08);
}
body.dark-mode .card-footer {
  background: transparent !important;
  border-top: 1px solid rgba(255,255,255,0.08);
}
body.dark-mode .timeline-modern::before {
  background: linear-gradient(180deg, #ff5f40 0%, #232526 100%);
}
body.dark-mode .social-icons a {
  color: #ff5f40;
}
body.dark-mode .social-icons a:hover {
  color: #ffd700;
}
