/* Modern Professional Dark Theme - Inspired by Best IT Professionals' Websites */

:root {
  --bg-black: #000000;
  --bg-dark: #0a0a0a;
  --bg-card: #1a1a1a;
  --text-white: #ffffff;
  --text-gray: #b0b0b0;
  --text-light-gray: #8a8a8a;
  --accent-green: #00ff88;
  --accent-green-hover: #00cc6f;
  --border-gray: #2a2a2a;
  --hover-bg: #1f1f1f;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-black);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Navigation Bar */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-gray);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* HAMBURGER BUTTON - CLEAN VERSION */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop by default */
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px; /* Slightly larger touch area */
  height: 44px;
  position: relative;
  z-index: 2000; /* Higher than menu overlay */
  padding: 0;
}

.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.3s ease-in-out;
}

/* Initial State (3 lines) */
.mobile-menu-toggle span:nth-child(1) {
  margin-top: -8px;
}
.mobile-menu-toggle span:nth-child(2) {
  margin-top: 0;
}
.mobile-menu-toggle span:nth-child(3) {
  margin-top: 8px;
}

/* Active State (Perfect X) */
.mobile-menu-toggle.active span:nth-child(1) {
  margin-top: 0;
  transform: translate(-50%, -50%) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
  margin-top: 0;
  transform: translate(-50%, -50%) rotate(-45deg);
}


.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  position: static;
  transform: none;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  overflow: visible;
}

.nav-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -22px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--text-white);
}

.language-switcher {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 20px;
}

.lang-btn {
  background-color: transparent;
  border: 1px solid var(--border-gray);
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.lang-btn:hover {
  border-color: var(--text-gray);
  color: var(--text-white);
}

.lang-btn.active {
  background-color: var(--bg-card);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.social-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-link {
  color: var(--text-gray);
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.social-link:hover {
  color: var(--text-white);
}

/* Hero Section */
.hero-section {
  margin-top: 80px;
  padding: 80px 40px;
  min-height: 85vh;
  display: flex;
  align-items: center;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-white);
  margin: 0;
}

.hero-intro {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-light-gray);
  max-width: 600px;
  margin: 0;
}

.cta-button {
  display: inline-block;
  background-color: var(--accent-green);
  color: var(--bg-black);
  padding: 16px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.cta-button:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.4);
}

/* Profile Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-image-container {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--bg-card);
  border: 4px solid var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback for missing image */
.profile-image-container::before {
  content: 'JS';
  font-size: 120px;
  font-weight: 700;
  color: var(--text-gray);
  display: none;
}

.profile-image-container:empty::before,
.profile-image[src=""]::before {
  display: flex;
}

/* Content Wrapper */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.content-section {
  margin-bottom: 120px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 48px;
  color: var(--text-white);
  letter-spacing: -0.02em;
}

/* Featured Project */
.featured-project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.featured-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 255, 136, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.featured-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 24px;
  flex-wrap: wrap;
}

.featured-project-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.featured-project-subtitle {
  color: var(--accent-green);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}

.featured-project-link {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  white-space: nowrap;
  padding: 10px 20px;
  border: 1px solid var(--accent-green);
  border-radius: 8px;
  background-color: transparent;
}

.featured-project-link:hover {
  background-color: var(--accent-green);
  color: var(--bg-black);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.featured-project-description {
  color: var(--text-light-gray);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.featured-project-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.feature-item {
  padding: 20px;
  background-color: var(--bg-dark);
  border-radius: 10px;
  border: 1px solid var(--border-gray);
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--text-light-gray);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.featured-project-tech {
  padding-top: 24px;
  border-top: 1px solid var(--border-gray);
}

.featured-project-tech h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background-color: var(--bg-dark);
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border-gray);
  transition: all 0.2s ease;
}

.tech-tag:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background-color: rgba(0, 255, 136, 0.05);
}

/* Case Studies */
.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.case-study-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
}

.case-study-card:hover {
  border-color: var(--text-gray);
  transform: translateY(-4px);
}

.case-study-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-white);
}

.case-study-card p {
  color: var(--text-light-gray);
  margin-bottom: 24px;
  line-height: 1.7;
}

.case-study-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background-color: var(--bg-dark);
  color: var(--text-gray);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid var(--border-gray);
}

/* Recent Work */
.work-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.work-item h3 {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text-white);
}

.work-item h4 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--text-white);
}

.work-experience {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.experience-item {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-gray);
}

.experience-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.exp-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.exp-period {
  color: var(--text-gray);
  font-size: 14px;
  margin-bottom: 12px;
}

.experience-item p {
  color: var(--text-light-gray);
  line-height: 1.7;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.skill-chip {
  background-color: var(--bg-card);
  color: var(--text-gray);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid var(--border-gray);
  transition: all 0.2s ease;
}

.skill-chip:hover {
  border-color: var(--text-gray);
  color: var(--text-white);
}

.tools-section p {
  color: var(--text-light-gray);
  line-height: 1.7;
}

/* Get In Touch */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.contact-info p {
  color: var(--text-light-gray);
  font-size: 18px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  color: var(--text-light-gray);
  font-size: 16px;
}

.contact-detail strong {
  color: var(--text-white);
  font-weight: 600;
}

.contact-link {
  color: var(--accent-green);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-green-hover);
  text-decoration: underline;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form label {
  color: var(--text-white);
  font-weight: 500;
  font-size: 14px;
}

.contact-form input,
.contact-form textarea {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 15px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light-gray);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.submit-button {
  background-color: var(--accent-green);
  color: var(--bg-black);
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

.submit-button:hover {
  background-color: var(--accent-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.4);
}

.form-status {
  color: var(--text-gray);
  font-size: 14px;
  margin-top: -12px;
}

/* Worked With Section */
.worked-with-section {
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid var(--border-gray);
}

.worked-with-label {
  color: var(--text-light-gray);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.companies-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.company-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 20px 32px;
  color: var(--text-gray);
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-width: 150px;
  text-align: center;
}

.company-card:hover {
  border-color: var(--text-gray);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-container {
    gap: 60px;
  }
  
  .profile-image-container {
    width: 350px;
    height: 350px;
  }
  
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 968px) {
  .nav-container {
    padding: 16px 24px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .nav-link {
    font-size: 14px;
  }
  
  .hero-section {
    padding: 60px 24px;
    margin-top: 70px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content {
    align-items: center;
    text-align: left;
  }
  
  .cta-button {
    align-self: center !important; /* Force override of global flex-start */
    margin-left: auto;   /* Backup centering method */
    margin-right: auto;  /* Backup centering method */
    width: fit-content;  /* Ensures the button doesn't stretch */
    display: inline-block;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-intro {
    font-size: 17px;
  }
  
  .profile-image-container {
    width: 280px;
    height: 280px;
    margin: 0 auto;
  }
  
  .content-wrapper {
    padding: 0 24px 60px;
  }
  
  .content-section {
    margin-bottom: 80px;
  }
  
  .section-title {
    font-size: 32px;
    margin-bottom: 32px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .case-studies-grid {
    grid-template-columns: 1fr;
  }
  
  .work-item h3 {
    font-size: 24px;
  }
  
  .featured-project-card {
    padding: 32px;
  }
  
  .featured-project-title {
    font-size: 24px;
  }
  
  .featured-project-subtitle {
    font-size: 14px;
  }
  
  .featured-project-description {
    font-size: 15px;
  }
  
  .featured-project-features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-container {
    padding: 14px 16px;
    flex-wrap: nowrap;
    overflow: visible; /* Allow fixed menu to break out */
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 1;
  }
  
  /* Mobile Menu Overlay */
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000000; /* Solid black to ensure readability */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centers items vertically */
    align-items: center; /* Centers items horizontally */
    gap: 30px;
    z-index: 1500; /* Between navbar and hamburger */
    
    /* Animation state */
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
    pointer-events: none; /* Prevents clicking when closed */
  }

  /* Active State */
  .nav-links.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* Mobile Links Styling */
  .nav-link {
    font-size: 24px; /* Larger font for mobile */
    color: var(--text-white);
    padding: 10px;
    width: auto;
    border: none;
    text-align: center;
  }
  
  .nav-link.active {
    color: var(--accent-green);
  }
  
  /* Hide desktop-only elements inside mobile menu if needed */
  .nav-link::after {
    display: none;
  }
  
  .language-switcher {
    margin-right: 12px;
    order: 3;
  }
  
  .lang-btn {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .social-links {
    gap: 12px;
    flex-shrink: 0;
    order: 4;
  }
  
  .social-link {
    width: 28px;
    height: 28px;
  }
  
  .social-link svg {
    width: 18px;
    height: 18px;
  }
  
  .hero-section {
    padding: 40px 16px;
    margin-top: 60px;
    min-height: auto;
  }
  
  .hero-container {
    gap: 32px;
  }
  
  .hero-title {
    font-size: 40px;
    line-height: 1.2;
  }
  
  .hero-intro {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }
  
  .profile-image-container {
    width: 220px;
    height: 220px;
  }
  
  .content-wrapper {
    padding: 0 16px 40px;
  }
  
  .content-section {
    margin-bottom: 60px;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  
  .featured-project-card {
    padding: 24px;
  }
  
  .featured-project-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .featured-project-title {
    font-size: 24px;
  }
  
  .featured-project-subtitle {
    font-size: 14px;
  }
  
  .featured-project-link {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .featured-project-description {
    font-size: 16px;
    margin-bottom: 24px;
  }
  
  .feature-item {
    padding: 20px;
  }
  
  .feature-item h4 {
    font-size: 16px;
  }
  
  .feature-item p {
    font-size: 14px;
  }
  
  .featured-project-tech h4 {
    font-size: 14px;
  }
  
  .tech-tag {
    padding: 6px 12px;
    font-size: 13px;
  }
  
  .case-study-card {
    padding: 20px;
  }
  
  .case-study-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .case-study-card p {
    font-size: 14px;
    margin-bottom: 16px;
  }
  
  .tag {
    padding: 5px 10px;
    font-size: 12px;
  }
  
  .work-item h3 {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .work-item h4 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 12px;
  }
  
  .exp-title {
    font-size: 18px;
  }
  
  .exp-period {
    font-size: 13px;
  }
  
  .experience-item {
    padding-bottom: 24px;
  }
  
  .work-experience {
    gap: 24px;
  }
  
  .skill-chip {
    padding: 8px 12px;
    font-size: 13px;
  }
  
  .skills-list {
    gap: 8px;
  }
  
  .tools-section h4 {
    font-size: 16px;
  }
  
  .tools-section p {
    font-size: 14px;
  }
  
  .contact-info p {
    font-size: 15px;
    margin-bottom: 24px;
  }
  
  .contact-detail {
    font-size: 14px;
  }
  
  .contact-form {
    gap: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px 14px;
    font-size: 14px;
  }
  
  .contact-form textarea {
    min-height: 120px;
  }
  
  .submit-button {
    padding: 14px 28px;
    font-size: 15px;
    width: 100%;
  }
  
  .worked-with-section {
    margin-top: 80px;
    padding-top: 40px;
  }
  
  .worked-with-label {
    font-size: 12px;
    margin-bottom: 20px;
  }
  
  .companies-grid {
    gap: 10px;
    justify-content: center;
  }
  
  .company-card {
    padding: 14px 18px;
    font-size: 13px;
    min-width: 120px;
    flex: 0 1 auto;
    max-width: calc(50% - 5px);
  }
}
