/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #333;
  line-height: 1.6;
  box-sizing: border-box;
}

/* Header */
header {
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: white;
  padding: 3rem 0;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
  color: white;
  margin: 0;
  font-size: 2.5rem;
  font-weight: 300;
}

header p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Sections */
section {
  background-color: white;
  margin: 2rem auto;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Headings */
h1, h2 {
  color: #003366;
}

h2 {
  border-bottom: 3px solid #003366;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

header h1 {
  color: white;
}

/* Experience Section */
.experience-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-left: 4px solid #003366;
  background: #f8f9fa;
  border-radius: 8px;
}

.experience-item h3 {
  color: #003366;
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.experience-item .date {
  color: #666;
  font-style: italic;
  margin: 0 0 1rem 0;
}

.experience-item ul {
  margin: 0;
}

.experience-item li {
  margin-bottom: 0.5rem;
}

.experience-item strong {
  color: #003366;
  font-weight: 600;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-category {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-top: 4px solid #003366;
}

.skill-category h3 {
  color: #003366;
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.skill-category ul {
  margin: 0;
  padding-left: 1.2rem;
}

.skill-category li {
  margin-bottom: 0.3rem;
}

/* Education & Certifications */
.education-item, .certification-item {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #003366;
}

.education-item h3, .certification-item h3 {
  color: #003366;
  margin: 0 0 0.5rem 0;
}

.institution {
  font-weight: 600;
  color: #555;
  margin: 0 0 0.3rem 0;
}

.date {
  color: #666;
  font-style: italic;
  margin: 0 0 0.5rem 0;
}

.cv-download {
  text-align: center;
  margin-top: 2rem;
}

.cv-button {
  display: inline-block;
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: white;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cv-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
  text-decoration: none;
  color: white;
}

/* Projects */
.project-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-top: 4px solid #003366;
  transition: transform 0.3s ease;
}

.project-item:hover {
  transform: translateY(-3px);
}

.project-item h3 {
  color: #003366;
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
}

.project-description {
  color: #555;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.project-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.metric {
  background: linear-gradient(135deg, #e8f4f8 0%, #d4eff7 100%);
  color: #003366;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid #b3d9e8;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-tag {
  background: #003366;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-link {
  display: inline-block;
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: white;
}

/* Cybersecurity Section */
.security-focus {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.security-item {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid #003366;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.15);
}

.security-item h3 {
  color: #003366;
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.security-item p {
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* Enhanced Skills Grid for Cybersecurity */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.skill-category {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 10px;
  border-top: 4px solid #003366;
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-2px);
}

/* Lists */
ul {
  padding-left: 1.5rem;
}

/* Links */
a {
  color: #003366;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Form */
.form-input {
  display: flex;
  flex-direction: column;
  max-width: 500px;
}
input, textarea {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
button {
  background-color: #003366;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
button:hover {
  background-color: #002244;
}

/* Footer */
footer {
  text-align: center;
  background: linear-gradient(135deg, #222 0%, #333 100%);
  color: white;
  padding: 2rem;
  margin-top: 3rem;
}

.social-links {
  display: flex;
  width: 100px;
  justify-content: space-between;
  align-items: center;
  margin: 1rem auto 0;
}

.social-links a {
  color: white;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
  color: #4CAF50;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 2rem;
  }
  
  section {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .security-focus {
    grid-template-columns: 1fr;
  }
  
  .project-metrics, .project-tech {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .metric, .tech-tag {
    margin-bottom: 0.3rem;
  }
}

@media (max-width: 480px) {
  header {
    padding: 2rem 1rem;
  }
  
  header h1 {
    font-size: 1.8rem;
  }
  
  header p {
    font-size: 1rem;
  }
  
  section {
    margin: 0.5rem;
    padding: 1rem;
  }
}