/* 
  CreativeForge Portfolio - Custom Styles
  Dark theme with light text and coral/teal accents
*/

:root {
  --dark: #121212;
  --darker: #0a0a0a;
  --light: #f8f9fa;
  --primary: #ff7f50; /* coral accent */
  --secondary: #20b2aa; /* teal accent */
  --text-muted: #adb5bd;
  --transition: all 0.3s ease;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  --border-radius: 8px;
}

/* Base Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary);
}

.btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-light {
  border-color: var(--light);
  color: var(--light);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background-color: var(--light);
  color: var(--dark);
}

.py-6 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.bg-darker {
  background-color: var(--darker);
}

@media (max-width: 767px) {
  .py-6 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 575px) {
  .py-6 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  
  .row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .row > * {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Section Headers */
.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
}

/* Top Bar */
.top-bar {
  background-color: var(--darker);
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.top-bar .dropdown-toggle {
  color: var(--light);
  background: transparent;
  border: none;
  font-size: 0.85rem;
}

.top-bar .dropdown-menu {
  background: var(--darker);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 8rem;
}

.top-bar .dropdown-item {
  color: var(--light);
  font-size: 0.85rem;
}

.top-bar .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.available-badge .badge {
  background-color: rgba(32, 178, 170, 0.2);
  color: var(--secondary);
  font-weight: 500;
}

.available-badge i {
  color: var(--secondary);
  font-size: 0.6rem;
}

/* Header */
header {
  background-color: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header .nav-link {
  color: var(--light);
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
  transition: var(--transition);
  position: relative;
}

header .nav-link:hover,
header .nav-link.active {
  color: var(--primary);
}

header .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  header .navbar-collapse {
    background-color: var(--darker);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 0.5rem;
  }
  
  header .nav-link {
    padding: 0.75rem 1rem;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  header .nav-link:last-child {
    border-bottom: none;
  }
  
  header .nav-link.active::after {
    display: none;
  }
  
  header .nav-link.active {
    background-color: rgba(255, 127, 80, 0.1);
    border-left: 3px solid var(--primary);
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background-image: url("../images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--light);
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(18, 18, 18, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%);
  z-index: 1;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 127, 80, 0.1) 0%, rgba(32, 178, 170, 0.1) 50%, transparent 70%);
  z-index: 2;
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { 
    opacity: 0.7;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.05);
  }
}

.hero-section .overlay {
  display: none;
}

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

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

.min-vh-50 {
  min-height: 50vh;
  min-height: calc(var(--vh, 1vh) * 50);
}

.typed-text {
  color: var(--primary);
  font-weight: 600;
  position: relative;
}

.typed-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--light);
  margin-left: 5px;
  animation: blink 1s infinite;
}

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

/* Portfolio */
.portfolio-item {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
  height: 250px;
}

.portfolio-item img {
  transition: var(--transition);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 70%, rgba(0, 0, 0, 0.1) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  margin-bottom: 0.5rem;
  color: var(--light);
  font-size: 1.25rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.portfolio-overlay p {
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* About Me */
.profile-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
}

.timeline {
  position: relative;
  margin-top: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.timeline-badge {
  width: 50px;
  height: 50px;
  background: var(--darker);
  border: 1px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
}

.timeline-content {
  background-color: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  padding-top: 3.5rem;
  border-radius: var(--border-radius);
  position: relative;
  margin-top: 25px;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h4 {
  margin-bottom: 0.25rem;
  color: var(--primary);
}

/* Skills Section */
.skills-progress .progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  margin-bottom: 0.5rem;
}

.skills-progress .progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 50px;
}

.skill-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.skill-icon i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.skill-icon p {
  margin-bottom: 0;
  font-size: 0.875rem;
}

/* Testimonials */
.testimonial {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-image: linear-gradient(135deg, rgba(255, 127, 80, 0.1) 0%, rgba(32, 178, 170, 0.1) 100%);
}

.testimonial .quote {
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial .quote i {
  color: var(--primary);
  font-size: 1.5rem;
  opacity: 0.5;
  margin-bottom: 1rem;
  display: block;
}

.testimonial .client {
  display: flex;
  align-items: center;
}

.testimonial .client img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
  border: 2px solid var(--primary);
}

.testimonial .client h5 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.testimonial .client p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 767px) {
  .testimonial {
    padding: 1.5rem;
  }
  
  .testimonial .quote i {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
  
  .testimonial .quote p {
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .testimonial {
    padding: 1.25rem;
  }
  
  .testimonial .quote {
    margin-bottom: 1rem;
  }
  
  .testimonial .quote i {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .testimonial .quote p {
    font-size: 0.9rem;
  }
  
  .testimonial .client img {
    width: 40px;
    height: 40px;
  }
  
  .testimonial .client h5 {
    font-size: 0.95rem;
  }
  
  .testimonial .client p {
    font-size: 0.8rem;
  }
}

/* Blog Section */
.blog-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.blog-img {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card:hover .blog-img img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--primary);
  color: var(--light);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.blog-content {
  padding: 1.5rem;
}

.blog-content h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  margin-top: 1rem;
  color: var(--secondary);
}

.read-more i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.read-more:hover i {
  transform: translateX(3px);
}

@media (max-width: 767px) {
  .blog-img {
    height: 180px;
  }
  
  .blog-content {
    padding: 1.25rem;
  }
  
  .blog-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .blog-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  .blog-img {
    height: 160px;
  }
  
  .blog-date {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }
  
  .blog-content {
    padding: 1rem;
  }
  
  .blog-content h4 {
    font-size: 1rem;
  }
  
  .read-more {
    font-size: 0.85rem;
  }
}

/* Contact Form */
.form-floating {
  color: var(--dark);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(255, 127, 80, 0.25);
}

.form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
}

@media (max-width: 575px) {
  .form-floating {
    font-size: 0.9rem;
  }
  
  .form-floating > .form-control {
    padding: 1rem 0.75rem;
  }
  
  .form-floating > label {
    padding: 0.75rem;
  }
}

/* Footer */
.footer {
  background-color: var(--darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--light);
}

.footer-info p {
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.footer-info i {
  color: var(--primary);
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--primary);
  color: var(--light);
  transform: translateY(-3px);
}

.mini-portfolio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.mini-link {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  transition: var(--transition);
}

.mini-link:hover {
  background: var(--primary);
  color: var(--light);
}

/* Bottom Bar */
.bottom-bar {
  background-color: var(--darker);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
}

.bottom-bar a {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 991px) {
  .timeline::before {
    left: 25px;
  }
  
  .timeline-badge {
    left: 25px;
    transform: translateX(0);
  }
  
  .timeline-content {
    margin-left: 50px;
    text-align: left;
    margin-top: 0;
    padding-top: 1.5rem;
  }
  
  .timeline-item {
    text-align: left;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .portfolio-item {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .py-6 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .portfolio-overlay h3 {
    font-size: 1.1rem;
  }
  
  .portfolio-item {
    height: 200px;
  }
  
  .testimonial {
    padding: 1.5rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-section::after {
    opacity: 0.6;
  }
}

@media (max-width: 575px) {
  .top-bar .d-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  .skill-icon i {
    font-size: 2rem;
  }
  
  .bottom-bar .d-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
  
  .hero-section {
    min-height: 60vh;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section h2 {
    font-size: 1.25rem;
  }
  
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
  
  .portfolio-item {
    height: 180px;
  }
  
  .portfolio-overlay {
    padding: 1rem;
  }
  
  .portfolio-overlay h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .portfolio-overlay p {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
  }
  
  .portfolio-overlay .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
  }
} 