
/* Base Styles and Global Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Mobile font size adjustment */
@media screen and (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 13px;
    }
}

/* Global responsive utilities */
@media screen and (max-width: 768px) {
    /* Ensure all containers are responsive */
    .container, .wrapper, .content {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Prevent horizontal overflow */
    * {
        max-width: 100%;
    }
    
    /* Ensure images are responsive */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix any potential layout issues */
    .row, .column {
        width: 100%;
        margin: 0;
        padding: 0;
    }
}

@media screen and (max-width: 480px) {
    .container, .wrapper, .content {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}
  
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    text-align: left;
    position: relative;
    color: var(--text-color);
    line-height: 1.7;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden;
    z-index: 0;
    background: var(--background-color);
    min-height: 100vh;
    font-size: 16px;
    font-weight: 400;
}

/* VS Code inspired background overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(167, 139, 250, 0.05) 0%, transparent 50%);
    z-index: -1;
}


h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

h2 {
    font-size: 2.2rem;
    letter-spacing: -0.025em;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h3 {
    font-size: 1.5rem;
    letter-spacing: -0.025em;
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    line-height: 1.7;
    font-size: 1rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(var(--primary-color-rgb), 0.5);
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 3rem 2rem;
    margin: 1.5rem auto;
    max-width: var(--content-width);
    background: var(--card-background);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(10px);
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Hide scrollbar while keeping scroll functionality */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
}

/* For Firefox */
html {
    scrollbar-width: none;
}

/* For Internet Explorer and Edge */
body {
    -ms-overflow-style: none;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-in-out;
}

.slide-right {
    animation: slideRight 0.6s ease-in-out;
}

.slide-left {
    animation: slideLeft 0.6s ease-in-out;
}

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

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideRight {
    from { transform: translateX(-30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideLeft {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}



/* Typing Effect Cursor */
#Effect-Write {
    display: inline-block;
    border-right: 2px solid var(--primary-color); /* Cursor effect */
    white-space: nowrap; /* Prevent text wrapping */
    overflow: hidden; /* Hide overflowing text */
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    animation: fadeIn 1s ease-in-out;
    margin-top: 20px;
    max-width: 600px; /* Adjust based on the longest phrase */
    text-align: left; /* Align text to the left */
    vertical-align: middle; /* Align cursor with text */
  }
  
  .typing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between the text and button */
  }

  .cursor-blink {
    animation: blink 0.7s step-end infinite;
  }
  
  @keyframes blink {
    50% {
      border-color: transparent;
    }
  }
  
  /* Add fade-in animation for the text */
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }



h3{
    color: var(--primary-color);
}