/* Global Styles */
:root {
  --primary-color: #3498db;
  --secondary-color: #2ecc71;
  --dark-color: #2c3e50;
  --light-color: #ecf0f1;
  --danger-color: #e74c3c;
  --success-color: #2ecc71;
  --warning-color: #f39c12;
  --gray-color: #95a5a6;
  --backgroundColor: #f9f9f9;
}

/* Enhanced Mobile Keyboard Support */
@media (max-width: 768px) {
    .chat-widget {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 10001;
    }
    
    .chat-messages {
        flex: 1;
        max-height: calc(100vh - 140px);
        padding: 15px;
        overflow-y: auto;
        transition: max-height 0.3s ease;
    }
    
    .chat-input-container {
        position: relative;
        background: white;
        border-top: 1px solid #e0e0e0;
        padding: 15px;
        min-height: 80px;
    }
    
    .chat-input {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-bottom: 10px;
    }
    
    .chat-input input {
        flex: 1;
        padding: 14px 18px;
        font-size: 16px; /* Prevent zoom on iOS */
        border: 2px solid #e0e0e0;
        border-radius: 25px;
        background: #f8f9fa;
        -webkit-appearance: none;
    }
    
    /* Fix for iOS input styling */
    .chat-input input[type="text"] {
        -webkit-appearance: none;
        -webkit-border-radius: 25px;
    }
    
    .send-btn {
        width: 50px;
        height: 50px;
        padding: 14px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary-color), #2980b9);
        color: white;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* iPhone Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .chat-input input {
        font-size: 16px !important; /* Prevent zoom on focus in iOS */
    }
    
    .chat-messages {
        -webkit-overflow-scrolling: touch;
    }
}

/* Android Specific Fixes */
@supports not (-webkit-touch-callout: none) {
    .chat-input input {
        font-size: 16px;
    }
}

/* Very small devices */
@media (max-width: 360px) {
    .chat-messages {
        max-height: calc(100vh - 130px);
        padding: 12px;
    }
    
    .chat-input-container {
        padding: 12px;
        min-height: 75px;
    }
    
    .chat-input input {
        padding: 12px 16px;
    }
    
    .send-btn {
        width: 45px;
        height: 45px;
        padding: 12px;
    }
}

/* Landscape mode on mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .chat-messages {
        max-height: calc(100vh - 120px);
    }
    
    .chat-input-container {
        min-height: 70px;
        padding: 10px 15px;
    }
    
    .chat-header {
        min-height: 60px;
        padding: 10px 15px;
    }
}

/* Prevent body scroll when chat is open - enhanced */
body.chat-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Ensure chat input is always accessible */
.chat-input input:focus {
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    outline: none;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2.5rem;
  color: var(--dark-color);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 15px auto;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background-color: var(--primary-color);
  color: white;
}

.btn.primary:hover {
  background-color: #2980b9;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 15px;
}

.btn.secondary:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--dark-color);
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 150px 0 100px;
  margin-top: 70px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.hero-content h1 span {
  color: var(--primary-color);
}

.hero-content .subtitle {
  font-size: 1.5rem;
  color: var(--gray-color);
  margin-bottom: 10px;
}

.hero-content .brief {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #555;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.cta-buttons {
  display: flex;
  gap: 15px;
}

/* About Section */
.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: 400px;
  border-radius: 10px;
  object-fit: cover;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

.personal-info {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 25px 0;
}

.personal-info p {
  margin-bottom: 10px;
  color: #555;
}

.personal-info strong {
  color: var(--dark-color);
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light-color);
  color: var(--dark-color);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  text-align: center;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.skill-card p {
  color: var(--gray-color);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark-color);
}

.project-info p {
  color: var(--gray-color);
  margin-bottom: 15px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tech span {
  background-color: var(--light-color);
  color: var(--dark-color);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Contact Section */
.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.contact-info p {
  color: #555;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.info-item i {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-top: 5px;
}

.info-item h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  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(52, 152, 219, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Loading Button */
#submitBtn .loading-icon {
  display: none;
}

#submitBtn.sending .btn-text {
  display: none;
}

#submitBtn.sending .loading-icon {
  display: inline-block;
}

/* Status Messages */
.status-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.status-message.success {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--success-color);
  display: block;
}

.status-message.error {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger-color);
  display: block;
}

/* Footer */
footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-about h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: white;
}

.footer-about p {
  color: #bbb;
}

.footer-links h3,
.footer-contact h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-contact p {
  color: #bbb;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-contact i {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  color: #bbb;
  font-size: 0.9rem;
}

.footer-bottom .social-links {
  justify-content: center;
  margin-top: 20px;
}

.footer-bottom .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-bottom .social-links a:hover {
  background-color: var(--primary-color);
}

/* Full Screen Chat Widget Styles */
.chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
  z-index: 10000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(52, 152, 219, 0.6);
}

.chat-toggle.pulse {
  animation: pulse 2s infinite;
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: #e74c3c;
  border-radius: 50%;
  border: 3px solid white;
  animation: ping 1.5s infinite;
}

@keyframes ping {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 20px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

.chat-widget {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10001;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.chat-widget.active {
  display: flex;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  min-height: 70px;
  position: relative;
  z-index: 2;
}

.back-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-3px);
}

.chat-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  margin: 0 20px;
}

.chat-title h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.online-indicator {
  font-size: 0.8rem;
  opacity: 0.9;
  margin-top: 2px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #f8f9fa;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  background-image: 
    radial-gradient(circle at 25px 25px, rgba(255,255,255,0.3) 2%, transparent 2.5%),
    radial-gradient(circle at 75px 75px, rgba(255,255,255,0.3) 2%, transparent 2.5%);
  background-size: 100px 100px;
}

.chat-messages::-webkit-scrollbar {
  display: none;
}

.message {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 85%;
  animation: messageSlide 0.3s ease-out;
}

.message.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.message-content {
  background: white;
  padding: 15px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  max-width: 100%;
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
  border-bottom-right-radius: 5px;
}

.bot-message .message-content {
  border-bottom-left-radius: 5px;
}

.message-content p {
  margin: 0;
  line-height: 1.5;
  word-wrap: break-word;
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 5px;
  display: block;
}

@keyframes messageSlide {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-input-container {
  background: white;
  border-top: 1px solid #e0e0e0;
  padding: 20px;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.chat-input {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 15px;
}

.chat-input input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 30px;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  -webkit-appearance: none;
  background: #f8f9fa;
}

.chat-input input:focus {
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.send-btn {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
  -webkit-tap-highlight-color: transparent;
}

.send-btn:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.send-btn:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.chat-suggestions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.suggestion-btn {
  background: rgba(52, 152, 219, 0.1);
  border: 1px solid rgba(52, 152, 219, 0.3);
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}

.suggestion-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  animation: messageSlide 0.3s ease-out;
}

.typing-indicator.active {
  display: flex;
}

.typing-indicator .message-avatar {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.typing-content {
  background: white;
  padding: 15px 20px;
  border-radius: 20px;
  border-bottom-left-radius: 5px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #95a5a6;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Desktop specific adjustments */
@media (min-width: 768px) {
  .chat-widget {
    width: 400px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
  }
  
  .chat-widget.active {
    animation: modalSlideIn 0.3s ease-out;
  }
  
  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.9);
    }
    to {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }
  }
  
  .chat-header {
    border-radius: 20px 20px 0 0;
  }
  
  .back-btn span {
    display: inline;
  }
}

/* Mobile specific adjustments */
@media (max-width: 767px) {
  .chat-toggle {
    bottom: 20px;
    right: 20px;
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }
  
  .back-btn span {
    display: none;
  }
  
  .back-btn {
    padding: 12px;
  }
  
  .chat-title h3 {
    font-size: 1.1rem;
  }
  
  .message {
    max-width: 90%;
  }
  
  .chat-input-container {
    padding: 15px;
  }
  
  .chat-input input {
    padding: 14px 18px;
  }
  
  .send-btn {
    width: 50px;
    height: 50px;
    padding: 14px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .chat-messages {
    padding: 15px;
  }
  
  .message-content {
    padding: 12px 16px;
  }
  
  .message-avatar {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .chat-suggestions {
    gap: 8px;
  }
  
  .suggestion-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .chat-widget {
    background: #2c3e50;
  }
  
  .chat-messages {
    background: #34495e;
    background-image: 
      radial-gradient(circle at 25px 25px, rgba(255,255,255,0.1) 2%, transparent 2.5%),
      radial-gradient(circle at 75px 75px, rgba(255,255,255,0.1) 2%, transparent 2.5%);
  }
  
  .message-content {
    background: #2c3e50;
    color: #ecf0f1;
  }
  
  .chat-input-container {
    background: #2c3e50;
    border-color: #34495e;
  }
  
  .chat-input input {
    background: #34495e;
    border-color: #4a5f7a;
    color: #ecf0f1;
  }
  
  .suggestion-btn {
    background: rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
    color: #3498db;
  }
  
  .typing-content {
    background: #2c3e50;
  }
}

/* Body scroll prevention */
body.chat-open {
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container,
  .about-content,
  .contact-content {
      flex-direction: column;
  }
  
  .hero-content {
      padding-right: 0;
      margin-bottom: 50px;
      text-align: center;
  }
  
  .hero-content .cta-buttons {
      justify-content: center;
  }
  
  .about-image,
  .about-text,
  .contact-info,
  .contact-form {
      width: 100%;
  }
  
  .about-image {
      margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  nav ul {
      position: fixed;
      top: 70px;
      left: -100%;
      width: 100%;
      height: calc(100vh - 70px);
      background-color: white;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      transition: all 0.5s ease;
  }
  
  nav ul.active {
      left: 0;
  }
  
  nav ul li {
      margin: 15px 0;
  }
  
  .hamburger {
      display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
      opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
      transform: rotate(-45deg) translate(7px, -6px);
  }
  
  section {
      padding: 60px 0;
  }
  
  .section-title {
      font-size: 2rem;
  }
  
  .hero-content h1 {
      font-size: 2.5rem;
  }
  
  .hero-content .subtitle {
      font-size: 1.2rem;
  }
  
  .hero-image img {
      width: 250px;
      height: 250px;
  }
}

@media (max-width: 576px) {
  .hero {
      padding: 120px 0 80px;
  }
  
  .hero-content h1 {
      font-size: 2rem;
  }
  
  .btn.secondary {
      margin-left: 0;
      margin-top: 15px;
  }
  
  .cta-buttons {
      flex-direction: column;
  }
  
  .projects-grid {
      grid-template-columns: 1fr;
  }
}
