/* CSS Variables */
:root {
  --radius: 0.625rem;
  --background: #0A0A0A;
  --foreground: #FFFFFF;
  --card: #1A1A1A;
  --card-foreground: #FFFFFF;
  --popover: #1A1A1A;
  --popover-foreground: #FFFFFF;
  --primary: #D4AF37;
  --primary-foreground: #0A0A0A;
  --secondary: #2A2A2A;
  --secondary-foreground: #FFFFFF;
  --muted: #2A2A2A;
  --muted-foreground: #A0A0A0;
  --accent: #D4AF37;
  --accent-foreground: #0A0A0A;
  --destructive: #ef4444;
  --border: #2A2A2A;
  --input: #2A2A2A;
  --ring: #D4AF37;
  
  /* Custom color variables for dark theme with gold accents */
  --gold: #D4AF37;
  --gold-light: #F4E4BC;
  --gold-dark: #B8860B;
  --dark-bg: #0A0A0A;
  --dark-card: #1A1A1A;
  --dark-border: #2A2A2A;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Utility Classes */
.text-foreground { color: var(--foreground); }
.text-muted-foreground { color: var(--muted-foreground); }
.text-primary { color: var(--primary); }
.bg-background { background-color: var(--background); }
.bg-card { background-color: var(--card); }
.bg-primary { background-color: var(--primary); }
.bg-secondary { background-color: var(--secondary); }

/* Gold Gradient Text */
.gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Premium Page Transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Premium Page Transition Effects */
@keyframes pageTransition {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  50% {
    opacity: 0.7;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes pageSlideIn {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Section entrance animations */
.section-header {
  animation: fadeInUp 0.8s ease forwards;
}

.about-left {
  animation: slideInFromLeft 0.8s ease forwards;
}

.about-right {
  animation: slideInFromRight 0.8s ease forwards;
}

.project-card {
  animation: fadeInScale 0.6s ease forwards;
}

.contact-info {
  animation: slideInFromLeft 0.8s ease forwards;
}

.contact-form-container {
  animation: slideInFromRight 0.8s ease forwards;
}

/* Lazy Loading Effects */
.lazy-load {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.lazy-load.loaded {
  opacity: 1;
  transform: translateY(0);
}

/* Page transition overlay */
.page-transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(10, 10, 10, 0.9));
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page-transition-overlay.active {
  opacity: 1;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
  background: transparent;
}

.header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.logo-image {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
}

/* Add a new class for gold gradient effect */
.logo-text.gold-gradient {
  background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo:hover {
  transform: scale(1.05);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  background: none;
  border: none;
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
}

.nav-link:hover {
  color: var(--primary);
}

.cta-button {
  display: none;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-icon {
  width: 1.5rem;
  height: 2px;
  background-color: var(--foreground);
  margin: 2px 0;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  background: none;
  border: none;
  color: var(--foreground);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  padding: 0.5rem 0;
}

.mobile-nav-link:hover {
  color: var(--primary);
}

.mobile-cta {
  margin-top: 1rem;
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-color: rgba(212, 175, 55, 0.9);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 0.75rem;
}

.btn-loading {
  display: none;
}

.loading-spinner-small {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--primary-foreground);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 50%, #0A0A0A 100%);
}

.three-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 64rem;
  margin: 0 auto;
}

.hero-icon {
  margin-bottom: 1.5rem;
}

.hero-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  object-fit: cover;
  animation: pulse-gold 2s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

@keyframes pulse-gold {
  0%, 100% { 
    opacity: 1; 
    transform: scale(1);
  }
  50% { 
    opacity: 0.8; 
    transform: scale(1.05);
  }
}

.hero-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 4rem;
}

.scroll-indicator {
  margin-top: 4rem;
}

.scroll-arrow {
  background: none;
  border: none;
  cursor: pointer;
  animation: float 2s ease-in-out infinite;
}

.scroll-arrow svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, transparent, rgba(10, 10, 10, 0.5));
  z-index: 5;
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.section-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 48rem;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background-color: var(--card);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.profile-image {
  margin-bottom: 2rem;
}

.profile-circle {
  width: 12rem;
  height: 12rem;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), rgba(212, 175, 55, 0.5));
  padding: 2px;
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-icon {
  width: 4rem;
  height: 4rem;
  color: var(--primary);
}

.profile-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

.profile-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: center;
}

.skills-section {
  margin-top: 2rem;
}

.skills-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.skill-percentage {
  font-size: 0.875rem;
  color: var(--primary);
}

.skill-bar {
  width: 100%;
  background-color: var(--secondary);
  border-radius: 9999px;
  height: 0.5rem;
}

.skill-progress {
  height: 0.5rem;
  background: linear-gradient(to right, var(--primary), rgba(212, 175, 55, 0.8));
  border-radius: 9999px;
  width: 0;
  transition: width 1s ease;
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Services section removed as per requirements */

.stats-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.875rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* portföy Section */
.portfolio-section {
  padding: 5rem 0;
  background-color: var(--background);
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.filter-icon {
  width: 1rem;
  height: 1rem;
}

.projects-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: wrap;
}

.project-card {
  position: relative;
  background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, #D4AF37, #F4E4BC, #B8860B);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

.project-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  z-index: 1;
  position: relative;
}

.project-card:hover .project-image {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  z-index: 2;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay-text {
  color: white;
  font-size: 0.875rem;
}

.project-content {
  padding: 2rem;
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, #F4E4BC, #D4AF37);
  color: #000;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.project-category {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--primary);
  border-radius: 9999px;
}

.project-year {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #000;
}

.project-description {
  color: #333;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.project-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  flex-shrink: 0;
}

.visit-button {
  background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
  color: #D4AF37;
  border: 1px solid #D4AF37;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.visit-button:hover {
  background: linear-gradient(135deg, #D4AF37, #F4E4BC);
  color: #1A1A1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.tech-tag {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 0.25rem;
}

.tech-tag.more {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: var(--card);
  border-radius: 0.5rem;
  max-width: 64rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  position: relative;
}

.modal-image {
  width: 100%;
  height: 16rem;
  object-fit: cover;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.modal-close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.modal-body {
  padding: 2rem;
}

.modal-title-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.modal-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.modal-client {
  color: var(--muted-foreground);
}

.modal-category {
  padding: 0.25rem 0.75rem;
  background-color: rgba(212, 175, 55, 0.2);
  color: var(--primary);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.modal-description {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.modal-technologies {
  margin-bottom: 1.5rem;
}

.modal-tech-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.modal-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-tech-tag {
  padding: 0.25rem 0.75rem;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-radius: 9999px;
  font-size: 0.875rem;
}

.modal-actions {
  display: flex;
  gap: 1rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  background-color: var(--card);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-intro {
  margin-bottom: 2rem;
}

.contact-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.contact-description {
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(10, 10, 10, 0.5);
  transition: background-color 0.3s ease;
}

.contact-method:hover {
  background-color: rgba(10, 10, 10, 0.8);
}

.contact-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-details {
  flex: 1;
}

.contact-method-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-link {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--primary);
}

/* Form Styles */
.contact-form-container {
  display: flex;
  flex-direction: column;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--background);
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
}

.form-textarea {
  resize: vertical;
  min-height: 6rem;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  background-color: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background-color: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: bold;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-message {
  padding: 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.form-message.success {
  background-color: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-message.error {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-message-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.form-message.success .form-message-icon {
  color: #22c55e;
}

.form-message.error .form-message-icon {
  color: #ef4444;
}

.form-message-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.form-message.success .form-message-title {
  color: #22c55e;
}

.form-message.error .form-message-title {
  color: #ef4444;
}

.form-message-text {
  font-size: 0.875rem;
}

.form-message.success .form-message-text {
  color: rgba(34, 197, 94, 0.8);
}

.form-message.error .form-message-text {
  color: rgba(239, 68, 68, 0.8);
}

/* Fullscreen Mobile Form */
@media (max-width: 768px) {
  .fullscreen-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
  }

  .fullscreen-form-container {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
  }

  .fullscreen-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .fullscreen-form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--foreground);
  }

  .fullscreen-form-close {
    background: none;
    border: none;
    color: var(--muted-foreground);
    font-size: 1.5rem;
    cursor: pointer;
  }

  .fullscreen-form-close:hover {
    color: var(--foreground);
  }
}

/* Responsive adjustments for form */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    gap: 1rem;
  }

  .form-input,
  .form-textarea {
    font-size: 1rem; /* Prevents zoom on iOS Safari */
    padding: 0.875rem;
  }

  .btn-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
  }
}

/* Ensure form is accessible on all devices */
@media (max-width: 480px) {
  .form-group {
    margin-bottom: 0.75rem;
  }

  .form-label {
    font-size: 1rem;
  }

  .checkbox-label {
    font-size: 0.875rem;
  }
}

/* Footer */
.footer {
  background-color: var(--background);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 3rem 0;
}

.footer-section {
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
  padding: 10px;
  border-radius: 15px;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  transition: all 0.3s ease;
  animation: pulse-gold 2s ease-in-out infinite;
  border: 2px solid rgba(212, 175, 55, 0.3);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(184, 134, 11, 0.1) 100%);
}

.footer-logo-image:hover {
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.8);
  border: 2px solid rgba(212, 175, 55, 0.6);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(184, 134, 11, 0.2) 100%);
}

.footer-logo-text {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
  background: linear-gradient(135deg, #D4AF37 0%, #F4E4BC 50%, #B8860B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 10px;
  border-radius: 8px;
}

.footer-logo-text:hover {
  text-shadow: 0 0 15px rgba(212, 175, 55, 0.9);
  letter-spacing: 1px;
}

.footer-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  background: none;
  border: none;
  color: var(--muted-foreground);
  cursor: pointer;
  transition: color 0.2s ease;
  font-size: 0.875rem;
  text-decoration: none;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.footer-heart {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.heart-icon {
  width: 1rem;
  height: 1rem;
  color: #ef4444;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-nav,
  .cta-button {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu.show {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-left {
    text-align: center;
  }

  .profile-title {
    text-align: center;
  }

  .stats-section {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-logo {
    flex-direction: column;
    gap: 0.5rem;
    padding: 8px;
    border-radius: 12px;
    background: transparent;
  }
  
  .footer-logo:hover {
    background: transparent;
  }
  
  .footer-logo-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
  }
  
  .footer-logo-text {
    font-size: 1.3rem;
    letter-spacing: 0.5px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .modal-actions {
    flex-direction: column;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .hero-buttons {
    flex-direction: row;
  }

  .about-left {
    text-align: left;
  }

  .profile-title {
    text-align: left;
  }

  .footer-section:first-child {
    text-align: left;
  }

  .footer-section:last-child {
    text-align: right;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  transition: all 0.5s ease;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1);
}

/* Glow Effect */
.glow-effect {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

/* Text Shadow */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Backdrop Blur */
.backdrop-blur-custom {
  backdrop-filter: blur(10px);
  background: rgba(26, 26, 26, 0.8);
}

/* Float Animation */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Pulse Gold Animation */
.animate-pulse-gold {
  animation: pulse-gold 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Border */
.gradient-border {
  position: relative;
  background: linear-gradient(135deg, #1A1A1A, #2A2A2A);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(135deg, #D4AF37, #F4E4BC, #B8860B);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
}

/* ===== CHATBOT STYLES ===== */

/* CSS Variables for Chatbot */
:root {
  --chat-primary-color: #D4AF37;
  --chat-primary-hover: #B8860B;
  --chat-secondary-color: #f3f4f6;
  --chat-text-primary: #1f2937;
  --chat-text-secondary: #6b7280;
  --chat-bg-user: linear-gradient(135deg, #D4AF37, #B8860B);
  --chat-bg-bot: #ffffff;
  --chat-border-radius: 15px;
  --chat-width-desktop: 380px;
  --chat-height-desktop: 600px;
  --chat-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  --chat-animation-duration: 0.4s;
  --neon-glow: 0 0 15px rgba(255, 255, 255, 0.7);
}

/* Chatbot Toggle Button */
.chat-toggle-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--chat-bg-user);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--chat-shadow);
  z-index: 9998;
  transition: all var(--chat-animation-duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.chat-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.chat-toggle-btn:focus {
  outline: 3px solid var(--chat-primary-color);
  outline-offset: 2px;
}

.chat-toggle-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  transition: all 0.3s ease;
}

.chat-toggle-btn.active svg {
  transform: rotate(90deg) scale(0.8);
  opacity: 0;
}

.chat-toggle-btn.active::after {
  content: '✕';
  position: absolute;
  color: white;
  font-size: 24px;
  animation: fadeInRotate 0.3s ease;
}

@keyframes fadeInRotate {
  from {
    opacity: 0;
    transform: rotate(-90deg);
  }
  to {
    opacity: 1;
    transform: rotate(0);
  }
}

/* Chat Container */
.chat-container {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: var(--chat-width-desktop);
  height: var(--chat-height-desktop);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--chat-border-radius);
  box-shadow: var(--chat-shadow);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all var(--chat-animation-duration) cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-container.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  background: var(--chat-bg-user);
  padding: 20px;
  border-radius: var(--chat-border-radius) var(--chat-border-radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.chat-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.8) 0%, rgba(184, 134, 11, 0.8) 100%);
  backdrop-filter: blur(5px);
  z-index: -1;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.chat-header-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  text-align: center;
  position: relative;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: neonGlow 2s ease-in-out infinite alternate;
  overflow: hidden;
}

.chatbot-profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-header-text {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.chat-header-text h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.chat-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0.95;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.status-indicator {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite, neonPulse 1.5s ease-in-out infinite alternate;
  box-shadow: 0 0 8px #10b981;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes neonGlow {
  from {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

@keyframes neonPulse {
  from {
    box-shadow: 0 0 8px #10b981;
  }
  to {
    box-shadow: 0 0 15px #10b981, 0 0 25px #10b981;
  }
}

/* Chat Messages Area */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

/* Message Styles */
.message {
  display: flex;
  gap: 10px;
  animation: slideIn 0.3s ease;
  max-width: 85%;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--chat-secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.message.user .message-avatar {
  background: var(--chat-bg-user);
  color: white;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.5;
  position: relative;
}

.message.bot .message-content {
  background: var(--chat-bg-bot);
  color: var(--chat-text-primary);
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.message.user .message-content {
  background: var(--chat-bg-user);
  color: white;
  border-bottom-right-radius: 4px;
}

.message-time {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.5;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Chat Input Area */
.chat-input-wrapper {
  padding: 16px;
  background: white;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 var(--chat-border-radius) var(--chat-border-radius);
}

.chat-input-container {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.chat-input:focus {
  border-color: var(--chat-primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.chat-input::placeholder {
  color: #9ca3af;
}

.chat-send-btn {
  width: 44px;
  height: 44px;
  background: var(--chat-bg-user);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.chat-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-send-btn:focus {
  outline: 3px solid var(--chat-primary-color);
  outline-offset: 2px;
}

.chat-send-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

/* Mobile Responsiveness for Chatbot */
@media (max-width: 768px) {
  .chat-container {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    max-height: 100vh;
  }

  .chat-container.active {
    position: fixed;
  }

  .chat-header {
    border-radius: 0;
    padding: 16px;
  }

  .chat-toggle-btn {
    bottom: 16px;
    right: 16px;
  }

  /* Special positioning for mobile when chat is active - position within chat header */
  .chat-toggle-btn.mobile-active {
    bottom: auto;
    right: 16px;
    top: 16px;
    z-index: 10000; /* Ensure it's above the chat container */
  }

  .chat-messages {
    padding: 16px;
  }

  .message {
    max-width: 90%;
  }
}

/* Accessibility for Chatbot */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Visible for Chatbot */
*:focus-visible {
  outline: 2px solid var(--chat-primary-color);
  outline-offset: 2px;
}
