/* Modern Edgy Theme for Bryan Vigil's Professional Website */

:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-light: #f5f5f5;
  --text-dark: #333;
  --transition-speed: 0.3s;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--box-shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--highlight-color);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color var(--transition-speed);
  position: relative;
}

nav ul li a:hover {
  color: var(--highlight-color);
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--highlight-color);
  transition: width var(--transition-speed);
}

nav ul li a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  padding-top: 80px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-text h1 span {
  color: var(--highlight-color);
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.profile-img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--highlight-color);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.profile-img:hover {
  transform: scale(1.05);
}

.contact-info {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.contact-info i {
  color: var(--highlight-color);
  font-size: 1.2rem;
}

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

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--highlight-color);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  width: 70%;
  height: 3px;
  background-color: var(--highlight-color);
  bottom: -10px;
  left: 15%;
}

/* Core Competencies */
.competencies {
  background-color: var(--secondary-color);
}

.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.competency-item {
  background-color: var(--accent-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.competency-item:hover {
  transform: translateY(-10px);
}

.competency-item h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--highlight-color);
}

/* Experience Section */
.experience {
  background-color: var(--primary-color);
}

.experience-item {
  background-color: var(--secondary-color);
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.experience-header {
  padding: 20px;
  background-color: var(--accent-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.experience-header h3 {
  font-size: 1.3rem;
  color: var(--text-light);
}

.experience-header .date {
  font-size: 0.9rem;
  color: var(--highlight-color);
}

.experience-toggle {
  color: var(--highlight-color);
  font-size: 1.5rem;
  transition: transform var(--transition-speed);
}

.experience-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed), padding var(--transition-speed);
}

.experience-content.active {
  padding: 20px;
  max-height: 1000px;
}

.experience-content ul {
  list-style-type: none;
}

.experience-content ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.experience-content ul li::before {
  content: '•';
  color: var(--highlight-color);
  font-size: 1.5rem;
  position: absolute;
  left: 0;
  top: -5px;
}

/* Education Section */
.education {
  background-color: var(--secondary-color);
}

.education-item {
  background-color: var(--accent-color);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: var(--box-shadow);
}

.education-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--highlight-color);
}

.education-item p {
  font-size: 1rem;
  color: var(--text-light);
}

/* Skills Section */
.skills {
  background-color: var(--primary-color);
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: var(--secondary-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--highlight-color);
  border-bottom: 2px solid var(--highlight-color);
  padding-bottom: 10px;
}

.skill-category ul {
  list-style-type: none;
}

.skill-category ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.skill-category ul li::before {
  content: '→';
  color: var(--highlight-color);
  position: absolute;
  left: 0;
}

/* Certifications Section */
.certifications {
  background-color: var(--secondary-color);
}

.certifications-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.certification-item {
  background-color: var(--accent-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  width: 300px;
  text-align: center;
  transition: transform var(--transition-speed);
}

.certification-item:hover {
  transform: translateY(-10px);
}

.certification-item i {
  font-size: 3rem;
  color: var(--highlight-color);
  margin-bottom: 20px;
}

.certification-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Footer */
footer {
  background-color: var(--accent-color);
  padding: 50px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info {
  flex: 1;
  min-width: 300px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--highlight-color);
}

.footer-info p {
  margin-bottom: 15px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 1.2rem;
  transition: all var(--transition-speed);
}

.social-links a:hover {
  background-color: var(--highlight-color);
  transform: translateY(-5px);
}

.qr-code {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.qr-code img {
  width: 200px;
  height: 200px;
  margin-bottom: 15px;
}

.qr-code p {
  text-align: center;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2.5rem;
  }
  
  .contact-info {
    justify-content: center;
  }
  
  .profile-img {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  nav {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--secondary-color);
    transition: left var(--transition-speed);
  }
  
  nav.active {
    left: 0;
  }
  
  nav ul {
    flex-direction: column;
    padding: 30px;
  }
  
  nav ul li {
    margin: 15px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

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

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

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

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