/* Reset & Normalization */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--color-text-main);
}

h1 {
  font-size: var(--text-5xl);
}

h2 {
  font-size: var(--text-4xl);
}

h3 {
  font-size: var(--text-3xl);
}

h4 {
  font-size: var(--text-2xl);
}

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.section {
  padding: var(--space-16) 0;
  position: relative;
  z-index: 1;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-darker);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-card);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: #fff;
}





    /* Projects grid */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Skills grid */
    .skills-grid {
        grid-template-columns: 1fr; /* Stack skill categories */
    }

    /* Roadmap */
    .roadmap-timeline {
        padding-left: 20px; /* Adjust for stacked layout */
    }
    .roadmap-item {
        margin-bottom: 20px;
    }
    .roadmap-dot {
        left: 0;
    }
    .roadmap-content {
        margin-left: 20px;
    }
}

/* mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .terminal-container {
        margin: 0 15px;
    }

    .roadmap-timeline {
        padding-left: 10px;
    }
    .roadmap-dot {
        left: 5px;
    }
    .roadmap-content {
        margin-left: 10px;
    }

    .hero-container{
        flex-direction:column;
        text-align:center;
    }

    .hero-video{
        max-width:100%;
    }

    .hero-video iframe{
        height:200px;
    }
}

/* small mobile */
@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .terminal-container {
        border-radius: 0;
    }
}