:root {
    /* Dark Theme Colors */
    --navy: #000000;
    --light-navy: #111111;
    --lightest-navy: #222222;
    --navy-shadow: rgba(0, 0, 0, 0.7);
    --dark-slate: #333333;
    --slate: #666666;
    --light-slate: #999999;
    --lightest-slate: #ffffff;
    --white: #ffffff;
    --green: #ffffff;
    --green-tint: rgba(255, 255, 255, 0.1);
    
    /* Layout Variables */
    --background: var(--navy);
    --text: var(--lightest-slate);
    --text-muted: var(--slate);
    --primary-color: var(--green);
    --bg-color: var(--navy);
    --bg-color-secondary: var(--light-navy);
    
    /* Typography */
    --font-sans: 'Inter', 'San Francisco', 'SF Pro Text', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
    
    --fz-xxs: 12px;
    --fz-xs: 13px;
    --fz-sm: 14px;
    --fz-md: 16px;
    --fz-lg: 18px;
    --fz-xl: 20px;
    --fz-xxl: 22px;
    --fz-heading: 32px;
    
    /* Layout */
    --border-radius: 4px;
    --tab-height: 42px;
    --tab-width: 120px;
    
    /* Animations */
    --easing: cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: rgb(0, 0, 0);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: flex;
    overflow: hidden;
    min-height: 100vh;
  }
  
  /* Hero Section */
  .hero {
    position: fixed;
    right: 0px;
    top: 0;
    width: 50%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }
  
  .main-content {
    margin-left: 40%;
    width: 60%;
    height: 100vh;
    padding: 2rem 3rem;
    overflow-y: auto;
  }
  
  .hero-content {
    text-align: center;
    max-width: 400px;
  }
  
.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    margin-bottom: 30px;
    object-fit: cover;
}
  
#realRafid {
            display: none; 
            z-index: 10; 
        }
        
.hero-title {
    font-size: clamp(32px, 8vw, 56px);
    margin-bottom: 10px;
    color: var(--text);
}
  
.hero-subtitle {
    font-size: clamp(18px, 4vw, 24px);
    color: var(--text-muted);
    margin-bottom: 20px;
}
  
.hero-description {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.8;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--light-slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
}

.scroll-line {
    width: 1px;
    height: 90px;
    background: var(--light-slate);
    animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}

.scroll-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 70px;
}

.section-title {
    font-size: clamp(26px, 5vw, var(--fz-heading));
    font-weight: 600;
    color: var(--lightest-slate);
    line-height: 1.1;
    display: flex;
    align-items: center;
    position: relative;
    margin: 10px 0 40px;
    width: 100%;
    white-space: nowrap;
}

.section-number {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: clamp(var(--fz-md), 3vw, var(--fz-xl));
    font-weight: 400;
    margin-right: 10px;
}

.section-title::after {
    content: '';
    display: block;
    position: relative;
    top: -5px;
    width: 300px;
    height: 1px;
    margin-left: 20px;
    background-color: var(--lightest-navy);
}

.experience-content {
    display: flex;
    gap: 50px;
}

.experience-tabs {
    display: flex;
    flex-direction: column;
    min-width: var(--tab-width);
}

.tab-button {
    display: flex;
    align-items: center;
    width: 100%;
    height: var(--tab-height);
    padding: 0 20px;
    border: none;
    border-left: 2px solid var(--lightest-navy);
    background-color: transparent;
    color: var(--slate);
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.tab-button:hover {
    background-color: var(--light-navy);
    color: var(--green);
}

.tab-button.active {
    color: var(--green);
    border-left-color: var(--green);
    background-color: var(--light-navy);
}

.experience-panels {
    flex: 1;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel h3 {
    color: var(--lightest-slate);
    font-size: var(--fz-xxl);
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 2px;
}

.project-details {
    list-style: none;
}

.project-details li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
    color: var(--slate);
    font-size: var(--fz-lg);
}

.project-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--green);
    font-size: var(--fz-sm);
    line-height: 12px;
}


/* Project Links */
.project-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--lightest-navy);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-family: var(--font-mono);
    font-size: var(--fz-xs);
    color: var(--green);
    text-decoration: none;
    border: 1px solid var(--green);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: transparent;
}

.project-link:hover {
    background-color: var(--green-tint);
    transform: translate(-2px, -2px);
    box-shadow: 2px 2px 0 0 var(--green);
}

.project-link svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


/* Contact Section */
.contact {
    text-align: center;
}

.contact-title {
    font-size: clamp(40px, 5vw, 60px);
    color: var(--lightest-slate);
    margin-bottom: 20px;
}

.contact-description {
    color: var(--slate);
    font-size: var(--fz-xl);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.5;
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto 50px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--lightest-slate);
    font-size: var(--fz-sm);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--light-navy);
    border: 1px solid var(--lightest-navy);
    border-radius: var(--border-radius);
    color: var(--lightest-slate);
    font-family: var(--font-sans);
    font-size: var(--fz-md);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--light-slate);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: var(--fz-sm);
    transition: var(--transition);
}

.social-link:hover {
    color: var(--green);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}


.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--light-navy);
  border: 1px solid var(--lightest-navy);
  border-radius: var(--border-radius);
  color: var(--light-slate);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: var(--fz-sm);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
  transition: var(--transition);
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover {
  color: var(--green);
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -15px var(--green);
}

.social-link[data-platform="Contact"]:hover {
  color: #87e7ff;
  border-color: #59e9ee;
  box-shadow: 0 10px 30px -15px rgba(51, 51, 51, 0.5);
}

.social-link[data-platform="Email"]:hover {
  color: #ff7171;
  border-color: #f15960;
  box-shadow: 0 10px 30px -15px rgba(51, 51, 51, 0.5);
}

.social-link[data-platform="GitHub"]:hover {
  color: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 10px 30px -15px rgba(51, 51, 51, 0.5);
}


.social-link[data-platform="Twitter"]:hover {
  color: #1da1f2;
  border-color: #1da1f2;
  box-shadow: 0 10px 30px -15px rgba(29, 161, 242, 0.5);
}


.social-link[data-platform="Medium"]:hover {
  color: #00ab6c;
  border-color: #00ab6c;
  box-shadow: 0 10px 30px -15px rgba(0, 171, 108, 0.5);
}

.social-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.social-link span {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  body {
    overflow: auto; /* allow scrolling on small screens */
    flex-direction: column;
  }

  /* Make hero flow with document (no fixed split layout) */
  .hero {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    height: auto;
    padding: 2rem 1rem;
    align-items: center;
  }

  .hero-content {
    max-width: 360px;
    margin: 0 auto 1.5rem;
  }

  .profile-img {
    width: 140px;
    height: 140px;
    margin-bottom: 18px;
  }

  /* Let sections stack beneath hero */
  .main-content,
  .right-corner {
    margin-left: 0;
    width: 100%;
    height: auto;
    padding: 0 1rem 3rem;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    white-space: normal;
    font-size: clamp(22px, 5vw, 32px);
  }

  .section-title::after {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
  }

  /* Experience/tabs -> stack vertically, tabs become horizontal short list */
  .experience-content {
    flex-direction: column;
    gap: 24px;
  }

  .experience-tabs {
    flex-direction: row;
    min-width: auto;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    border-left: none;
    border-bottom: 1px solid var(--lightest-navy);
    -webkit-overflow-scrolling: touch;
  }

  .tab-button {
    border-left: none;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    padding: 8px 12px;
    min-width: auto;
    font-size: 13px;
  }

  .tab-button.active {
    border-bottom-color: var(--green);
    border-left: none;
    background-color: transparent;
  }

  .experience-panels {
    width: 100%;
  }

  .project-details li {
    font-size: 16px;
  }

  .project-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .project-link {
    padding: 8px 12px;
  }

  /* Social buttons: smaller and center */
  .social-links {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    max-width: 600px;
    margin-top: 30px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .hero-content {
    max-width: 300px;
    padding: 0 6px;
  }

  .profile-img {
    width: 112px;
    height: 112px;
  }

  .section-title {
    font-size: 20px;
  }

  .project-details li {
    padding-left: 20px;
    font-size: 15px;
  }

  .social-link {
    padding: 12px 10px;
    font-size: 13px;
  }
}
