/* Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(20px);
  background: rgba(255, 243, 224, 0.95);
  border-bottom: 1px solid rgba(255, 112, 67, 0.1);
  transition: all 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px var(--soft-shadow);
}

.logo-link {
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--primary-orange);
  transform: translateY(-1px);
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-sunset);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: var(--primary-orange);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--gradient-soft);
}

.hero-content {
  max-width: 1000px;
  animation: fadeInUp 1s ease-out;
  position: relative;
  z-index: 2;
}

.hero-decorative {
  position: absolute;
  top: 20%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: var(--gradient-warm);
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.hero-decorative:nth-child(2) {
  top: 60%;
  left: 10%;
  width: 150px;
  height: 150px;
  animation-delay: -3s;
}

.hero h1 {
  margin-bottom: 1rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 20px var(--soft-shadow);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 2.5rem;
  background: var(--gradient-sunset);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--soft-shadow);
  animation: fadeInUp 1s ease-out 0.4s both;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--soft-shadow);
}

/* Works Section */
.works {
  background: var(--warm-white);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.work-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(255, 112, 67, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
}

.work-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-sunset);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.work-card:hover::before {
  transform: scaleX(1);
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 112, 67, 0.15);
  border-color: var(--warm-orange);
}

.work-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.work-card .date {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.work-card .status {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: var(--gradient-sunset);
  color: white;
  border-radius: 25px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 15px var(--soft-shadow);
}

.work-card p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Company Section */
.company {
  background: var(--warm-cream);
}

.company-info {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 20px;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 0 10px 40px rgba(255, 112, 67, 0.08);
  position: relative;
}

.company-info::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: var(--gradient-warm);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.company-info:hover::before {
  opacity: 0.1;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 112, 67, 0.05);
  transform: translateY(-2px);
}

.info-label {
  color: var(--primary-orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.business-content {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(255, 112, 67, 0.05);
}

.business-content .info-value {
  margin-top: 0.5rem;
  line-height: 1.8;
}

/* News Section */
.news {
  background: var(--warm-white);
}

.news-list {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(255, 112, 67, 0.08);
}

.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-sunset);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.news-item:hover::before {
  transform: scaleY(1);
}

.news-item:hover {
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(255, 112, 67, 0.15);
  border-color: var(--warm-orange);
}

.news-date {
  color: var(--primary-orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.news-content {
  color: var(--text-primary);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #2e2e2e 0%, #4a4a4a 100%);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-sunset);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo .logo {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: block;
}

.footer-logo p {
  color: #ccc;
  font-size: 0.9rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--warm-orange);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
}

.contact-info {
  color: #cccccc;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-info a {
  color: var(--warm-orange);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-info a:hover {
  color: var(--light-orange);
  text-shadow: 0 2px 10px var(--soft-shadow);
}

.copyright {
  color: #999;
  margin-top: 2rem;
  font-size: 0.9rem;
}

/* Contact Form */
.contact {
  background: var(--warm-cream);
}

.contact-form {
  max-width: 800px;
  margin: 3rem auto 0;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 10px 40px rgba(255, 112, 67, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.required {
  color: var(--primary-orange);
  font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid rgba(255, 112, 67, 0.2);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.1);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: 400;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 112, 67, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: white;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "✓";
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.checkbox-label a {
  color: var(--primary-orange);
  text-decoration: underline;
}

.form-submit {
  text-align: center;
  margin-top: 2rem;
}

.submit-button {
  background: var(--gradient-sunset);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px var(--soft-shadow);
  position: relative;
  overflow: hidden;
  min-width: 180px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--soft-shadow);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.contact-alternative {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 112, 67, 0.1);
}

.contact-alternative p {
  margin-bottom: 0.5rem;
}

.contact-alternative a {
  color: var(--primary-orange);
  font-weight: 600;
  text-decoration: none;
}

.contact-alternative a:hover {
  text-decoration: underline;
}

/* Thanks Page */
.thanks-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0;
  background: var(--gradient-soft);
}

.thanks-content {
  text-align: center;
  max-width: 800px;
}

.success-icon {
  margin-bottom: 2rem;
}

.check-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  color: var(--primary-orange);
  animation: checkBounce 0.6s ease-out;
}

@keyframes checkBounce {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.thanks-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 2rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.thanks-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.8;
}

.thanks-message p {
  margin-bottom: 0.5rem;
}

.thanks-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.info-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 112, 67, 0.1);
  box-shadow: 0 5px 20px rgba(255, 112, 67, 0.08);
}

.info-card h3 {
  color: var(--primary-orange);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.contact-details {
  margin-top: 1rem;
}

.contact-details a {
  color: var(--primary-orange);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

.thanks-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.cta-button.secondary:hover {
  background: var(--primary-orange);
  color: white;
}

/* Privacy Policy Page */
.policy-section {
  padding: 8rem 0 4rem;
  background: var(--warm-white);
  min-height: 100vh;
}

.policy-content {
  max-width: 900px;
  margin: 0 auto;
}

.policy-header {
  text-align: center;
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 112, 67, 0.1);
}

.policy-header h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.last-updated {
  color: var(--text-light);
  font-size: 0.95rem;
  font-style: italic;
}

.policy-body {
  line-height: 1.8;
}

.policy-item {
  margin-bottom: 3rem;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 15px;
  padding: 2.5rem;
  box-shadow: 0 5px 20px rgba(255, 112, 67, 0.08);
  transition: all 0.3s ease;
}

.policy-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 112, 67, 0.12);
}

.policy-item h2 {
  color: var(--primary-orange);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 112, 67, 0.2);
}

.policy-item h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem 0;
  font-weight: 600;
}

.policy-item p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.policy-item ul {
  margin: 1rem 0 1rem 1.5rem;
  color: var(--text-secondary);
}

.policy-item li {
  margin-bottom: 0.5rem;
  position: relative;
}

.policy-item li::marker {
  color: var(--primary-orange);
}

.contact-info-box {
  background: rgba(255, 112, 67, 0.05);
  border: 1px solid rgba(255, 112, 67, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.contact-info-box p {
  margin-bottom: 0.5rem;
}

.contact-info-box a {
  color: var(--primary-orange);
  text-decoration: none;
  font-weight: 500;
}

.contact-info-box a:hover {
  text-decoration: underline;
}

.policy-nav {
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(255, 112, 67, 0.1);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Portfolio Styles */
.portfolio-preview {
  position: relative;
  border: 1px solid rgba(255, 112, 67, 0.1);
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  box-shadow: 0 5px 25px rgba(255, 112, 67, 0.08);
}

.portfolio-preview:hover {
  border-color: var(--warm-orange);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 112, 67, 0.15);
}

.portfolio-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--gradient-sunset);
  color: white;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  align-items: center;
}

.tech-badge {
  padding: 0.25rem 0.6rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.tech-badge.primary {
  background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
}

.tech-badge.secondary {
  background: rgba(74, 144, 226, 0.1);
  color: #2c3e50;
  border: 1px solid rgba(74, 144, 226, 0.3);
}

.tech-badge.none {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
  font-style: italic;
}

.tech-more {
  color: var(--primary-orange);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s ease;
  pointer-events: auto;
  position: relative;
  z-index: 10;
}

.tech-more:hover {
  color: var(--deep-orange);
}

.tech-tooltip {
  pointer-events: none;
}

.portfolio-link-text {
  display: inline-block;
  margin-top: auto;
  color: var(--primary-orange);
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  align-self: flex-end;
  text-align: right;
}

.portfolio-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  z-index: 1002;
  transition: transform 0.3s ease;
}

.portfolio-card-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-10px);
}

.portfolio-card-link:not(:hover) {
  transform: translateY(0);
}

.portfolio-card-link:hover .portfolio-link-text {
  color: var(--warm-orange);
  border-bottom-color: var(--warm-orange);
  transform: translateX(5px);
}

/* Portfolio Page Styles */
.portfolio-hero {
  padding: 8rem 0 4rem;
  background: var(--gradient-soft);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.portfolio-hero-content {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.breadcrumb {
  margin-bottom: 2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--warm-orange);
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 2rem auto;
  max-width: 800px;
  line-height: 1.6;
}

.tech-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.tech-category h3 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  justify-content: start;
}

.tech-tag {
  padding: 0.4rem 1rem;
  background: rgba(74, 144, 226, 0.1);
  color: #2c3e50;
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.portfolio-filters {
  padding: 3rem 0;
  background: var(--warm-white);
  border-bottom: 1px solid rgba(255, 112, 67, 0.1);
}

.filter-section {
  margin-bottom: 2.5rem;
  text-align: center;
}

.filter-section:last-child {
  margin-bottom: 0;
}

.filter-section h3 {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.filter-note {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 400;
}

.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  background: transparent;
  border: 2px solid rgba(255, 112, 67, 0.3);
  color: var(--text-secondary);
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-sunset);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--soft-shadow);
}

.tech-filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-filter-btn {
  padding: 0.6rem 1.2rem;
  background: rgba(74, 144, 226, 0.1);
  border: 2px solid rgba(74, 144, 226, 0.3);
  color: #2c3e50;
  border-radius: 20px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.85rem;
}

.tech-filter-btn:hover {
  background: rgba(74, 144, 226, 0.2);
  border-color: rgba(74, 144, 226, 0.5);
  transform: translateY(-1px);
}

.tech-filter-btn.active {
  background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.portfolio-grid {
  padding: 4rem 0;
  background: var(--warm-cream);
}

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

.project-card {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 20px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(255, 112, 67, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(255, 112, 67, 0.15);
  border-color: var(--warm-orange);
}

.fictional-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(220, 53, 69, 0.9);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.placeholder-image.it-theme {
  background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
}

.placeholder-image.food-theme {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.placeholder-image.ecommerce-theme {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.placeholder-image.traditional-theme {
  background: linear-gradient(135deg, #8b4513 0%, #a0522d 100%);
}

.project-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.project-type {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  align-items: center;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0.8rem 0;
  font-size: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4rem;
}

.project-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.feature-tag {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 112, 67, 0.1);
  color: var(--primary-orange);
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(255, 112, 67, 0.2);
}

.portfolio-disclaimer {
  padding: 4rem 0;
  background: var(--warm-white);
  border-top: 1px solid rgba(255, 112, 67, 0.1);
}

.disclaimer-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.disclaimer-content h2 {
  color: var(--text-primary);
  margin-bottom: 2rem;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.disclaimer-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.tech-philosophy {
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: left;
  box-shadow: 0 5px 25px rgba(255, 112, 67, 0.08);
}

.tech-philosophy h3 {
  color: var(--primary-orange);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-philosophy ul {
  list-style: none;
  padding: 0;
}

.tech-philosophy li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tech-philosophy li::before {
  content: "▶";
  position: absolute;
  left: 0;
  color: var(--primary-orange);
  font-size: 0.8rem;
}

.tech-philosophy strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Mobile adjustments for portfolio */
@media (max-width: 768px) {
  .portfolio-hero {
    padding: 6rem 0 3rem;
  }

  .tech-overview {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .filter-tabs {
    flex-direction: column;
    align-items: center;
  }

  .filter-btn {
    min-width: 150px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-content {
    padding: 1.5rem;
  }

  .tech-philosophy {
    padding: 2rem 1.5rem;
  }
}

/* Mobile adjustments for policy page */
@media (max-width: 768px) {
  .policy-section {
    padding: 6rem 0 2rem;
  }

  .policy-item {
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
  }

  .policy-header {
    margin-bottom: 3rem;
  }

  .policy-nav {
    flex-direction: column;
    align-items: center;
  }

  .policy-nav .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

/* New Portfolio Styles for Updated Design */
.tech-stack-overview {
  margin: 1rem 0;
  min-height: 6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tech-category-section {
  min-height: 2rem;
  margin-bottom: 0rem;
}

.tech-category-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: 8px;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tech-category-badge.frontend {
  background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%);
  color: white;
}

.tech-category-badge.backend {
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
  color: white;
}

.tech-category-badge.infra {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
  color: white;
}

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
  min-height: 2rem;
  align-items: flex-start;
  align-content: flex-start;
}

.highlight-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  border: 1px solid;
}

.highlight-tag.performance {
  background: rgba(74, 144, 226, 0.1);
  color: #4a90e2;
  border-color: rgba(74, 144, 226, 0.3);
}

.highlight-tag.fullstack {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border-color: rgba(39, 174, 96, 0.3);
}

.highlight-tag.realtime {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
}

.highlight-tag.iot {
  background: rgba(142, 68, 173, 0.1);
  color: #8e44ad;
  border-color: rgba(142, 68, 173, 0.3);
}

.highlight-tag.ai {
  background: rgba(243, 156, 18, 0.1);
  color: #f39c12;
  border-color: rgba(243, 156, 18, 0.3);
}

.details-btn {
  background: var(--gradient-sunset);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: auto;
  font-size: 0.85rem;
  align-self: flex-start;
}

.details-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--soft-shadow);
  background: var(--gradient-warm);
}

/* Theme updates for new project types */
.placeholder-image.corporate-theme {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.placeholder-image.media-theme {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.placeholder-image.saas-theme {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

/* Project Modal Styles */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  margin: 5vh auto;
  background: var(--card-bg);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(50px);
  transition: transform 0.3s ease;
}

.project-modal.show .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  transform: scale(1.1);
}

.modal-header {
  padding: 2rem 2rem 1rem;
  background: var(--gradient-soft);
  border-bottom: 1px solid rgba(255, 112, 67, 0.1);
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  color: var(--text-light);
  font-size: 0.9rem;
}

.modal-body {
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.modal-body h3 {
  color: var(--primary-orange);
  font-size: 1.3rem;
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(255, 112, 67, 0.2);
}

.modal-body h3:first-child {
  margin-top: 0;
}

.project-overview p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1rem;
}

.tech-category-section {
  margin-bottom: 0rem;
}

.tech-category-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge.detailed {
  padding: 0.5rem 1rem;
  background: rgba(74, 144, 226, 0.1);
  color: #2c3e50;
  border: 1px solid rgba(74, 144, 226, 0.3);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
}

.tech-badge.detailed.none {
  background: rgba(108, 117, 125, 0.1);
  color: #6c757d;
  border: 1px solid rgba(108, 117, 125, 0.3);
  font-style: italic;
}

.reason-item {
  margin-bottom: 2rem;
  background: rgba(255, 112, 67, 0.05);
  border: 1px solid rgba(255, 112, 67, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.reason-item h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.reason-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.appeal-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--warm-white);
  border-radius: 12px;
  border: 1px solid rgba(255, 112, 67, 0.1);
}

.appeal-item h4 {
  color: var(--primary-orange);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.appeal-item ul {
  color: var(--text-secondary);
  line-height: 1.6;
  padding-left: 1.2rem;
}

.appeal-item li {
  margin-bottom: 0.5rem;
}

.appeal-item li::marker {
  color: var(--primary-orange);
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 2.5vh auto;
    max-height: 95vh;
  }

  .modal-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
  }

  .project-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .reason-item,
  .appeal-item {
    padding: 1rem;
  }

  .tech-list {
    gap: 0.3rem;
  }

  .tech-badge.detailed {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* Filter animation improvements */
.tech-filter-btn {
  position: relative;
  overflow: hidden;
}

.tech-filter-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s;
}

.tech-filter-btn:hover::before {
  left: 100%;
}
