/* main.css - Central stylesheet that imports all other CSS files */

/* Import reset styles first to provide baseline */
@import url('reset.css');

/* Import component-specific styles */
@import url('navbar.css');
@import url('home.css');
@import url('tech-skills.css');
@import url('projects.css');
@import url('education.css');
@import url('experience.css');
@import url('certifications.css');
@import url('modal.css');
@import url('loader.css');
@import url('footer.css');

/* Import responsive styles last so they can override previous styles */
@import url('responsive.css');

/* Modern CSS Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

/* Custom Properties */
:root {
  --primary-color: #ff0000;
  --primary-light: #ff6b6b;
  --primary-dark: #cc0000;
  --bg-dark: #000000;
  --bg-light: #1a0000;
  --text-light: #ffffff;
  --text-gray: #e0e0e0;
  --transition-main: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 0, 0, 0.1);
}

/* Global Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--bg-dark);
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-light);
  background: var(--bg-dark);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-light);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
}

/* Links & Buttons */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-main);
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  outline: none;
  transition: var(--transition-main);
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.text-gradient {
  background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.glass-effect {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.section-padding {
  padding: 4rem 2rem;
}

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

.fade-in {
  animation: fadeIn 1s ease forwards;
}

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

  .section-padding {
    padding: 3rem 1rem;
  }

  #tech, #skills {
    padding: 3rem 1rem;
    margin-top: -30px;
  }

  .section-padding {
    padding: 2.5rem 1rem;
  }

  .Tech_header {
    margin-bottom: 2rem;
  }

  .container {
    padding: 0 1rem;
  }
}

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

  .section-padding {
    padding: 2rem 1rem;
  }

  #tech, #skills {
    padding: 2.5rem 0.8rem;
  }

  .section-padding {
    padding: 2rem 0.8rem;
  }

  .container {
    width: 100%;
    padding: 0 0.8rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .no-print {
    display: none;
  }
}

/* Focus Styles */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Selection Style */
::selection {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Improve scrolling behavior on mobile */
@media (pointer: coarse) {
  html {
    scroll-padding-top: 80px; /* Account for fixed navbar */
  }
  
  ::-webkit-scrollbar {
    width: 5px;
  }
}