/* General Styles */
:root {
    --primary-color: #77aaff;
    --background-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #fff;
  }
  
  [data-theme="dark"] {
    --primary-color: #77aaff;
    --background-color: #333;
    --text-color: #f4f4f4;
    --card-bg: #444;
  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
  }
  
  /* Theme Toggle */
  .theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary-color);
  }
  
  /* Header */
  header {
    background: var(--background-color);
    color: var(--text-color);
    padding: 50px 0;
    text-align: center;
    border-bottom: 3px solid var(--primary-color);
  }
  
  header h1 {
    font-size: 2.5rem;
    margin: 0;
  }
  
  header p {
    font-size: 1.2rem;
    margin: 10px 0;
  }
  
  header nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
  }
  
  header nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
  }
  
  header nav ul li a:hover {
    color: var(--primary-color);
  }
  
  /* Sections */
  section {
    padding: 60px 0;
  }
  
  section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
  }
  
  /* Skills Grid */
  .skills-grid, .interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .skill-card, .interest-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
  }
  
  .skill-card:hover, .interest-card:hover {
    transform: translateY(-10px);
  }
  
  .skill-card i, .interest-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
  }
  
  /* Track Records Grid */
  .achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .achievement-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  /* Contact Section */
  .social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
  }
  
  .social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    transition: color 0.3s;
  }
  
  .social-links a:hover {
    color: var(--primary-color);
  }
  
  /* Footer */
  footer {
    background: var(--background-color);
    color: var(--text-color);
    text-align: center;
    padding: 20px 0;
    border-top: 3px solid var(--primary-color);
  }


 /* Scroll-triggered Animations */
 section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
  }
  
  section.visible {
    opacity: 1;
    transform: translateY(0);
  }

 /* CV Section Styles */
.cv-display {
    text-align: center;
    margin-top: 20px;
  }
  
  .cv-image {
    max-width: 100%;
    height: auto;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
  }
  
  .cv-display .btn {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
  }
  
  .cv-display .btn:hover {
    background: #555;
  }

  /* Fade-in Animation */
@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Typewriter Animation */
  @keyframes typewriter {
    from {
      width: 0;
    }
    to {
      width: 100%;
    }
  }
  
  /* Apply Animations */
  header h1, header p, section h2, .skills-grid, .achievements-list, .interests-grid, .social-links {
    opacity: 0;
    animation: fadeIn 1s ease-in-out forwards;
  }
  
  header h1 {
    animation-delay: 0.5s;
  }
  
  header p {
    animation-delay: 1s;
  }
  
  section h2 {
    animation-delay: 0.5s;
  }
  
  .skills-grid {
    animation-delay: 0.7s;
  }
  
  .achievements-list {
    animation-delay: 0.9s;
  }
  
  .interests-grid {
    animation-delay: 1.1s;
  }
  
  .social-links {
    animation-delay: 1.3s;
  }
  /* Typewriter Animation */
@keyframes typewriter {
    from {
      clip-path: inset(0 100% 0 0); 
    }
    to {
      clip-path: inset(0 0 0 0); 
    }
  }
  
  @keyframes blinkCursor {
    from {
      border-right-color: var(--primary-color);
    }
    to {
      border-right-color: transparent;
    }
  }
  
  .typewriter {
    display: inline-block;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color); 
    animation:
      typewriter 2s steps(20) 1s 1 normal both, 
      blinkCursor 0.75s steps(20) infinite; 
  }

