*{margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', sans-serif;
}

:root {
--dark-bg: #0a0a0a;
--darker-bg: #050505;
--accent: #2ecc71;
--accent-glow: rgba(46, 204, 113, 0.4);
--text: #ffffff;
}

body {
background-color: var(--dark-bg);
color: var(--text);
line-height: 1.6;
overflow-x: hidden;
}

/* Navigation */
.navbar {
position: fixed;
top: 0;
width: 100%;
padding: 1.5rem 5%;
display: flex;
justify-content: space-between;
align-items: center;
background: rgba(10, 10, 10, 0.95);
backdrop-filter: blur(10px);
z-index: 1000;
border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo {
font-size: 1.8rem;
font-weight: 700;
color: var(--accent);
text-decoration: none;
position: relative;
padding-left: 2.5rem;
}

.nav-links {
display: flex;
gap: 2rem;
list-style: none;
}

.nav-links a {
color: var(--text);
text-decoration: none;
font-weight: 500;
transition: all 0.3s ease;
position: relative;
}

.nav-links a::after {
content: '';
position: absolute;
bottom: -5px;
left: 0;
width: 0;
height: 2px;
background: var(--accent);
transition: width 0.3s ease;
}

.nav-links a:hover::after {
width: 100%;
}

/* Hero Section */
.hero {
min-height: 100vh;
display: flex;
align-items: center;
padding: 12% 5%;
background: radial-gradient(circle at 75% 30%, var(--accent-glow) 0%, transparent 30%);
}

.hero-content {
flex: 1;
padding-right: 5rem;
}

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

.profile-image {
width: 400px;
height: 400px;
border-radius: 50%;
object-fit: cover;
border: 3px solid var(--accent);
box-shadow: 0 0 50px var(--accent-glow);
animation: float 3s ease-in-out infinite;
filter: grayscale(0.2) contrast(1.1);
}

@keyframes float {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-20px); }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--accent) 30%, #ffffff 70%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
font-size: 1.2rem;
margin-bottom: 2rem;
opacity: 0.9;
max-width: 600px;
}

.contact-button {
display: inline-block;
padding: 1rem 2rem;
background: linear-gradient(45deg, var(--accent), #27ae60);
color: white;
border-radius: 8px;
text-decoration: none;
transition: all 0.3s ease;
position: relative;
overflow: hidden;
}

#typewriter::after {
  content: '|';
  color: var(--accent);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}


.highlight {
  font-weight: bold;
  color: var(--accent);
  background: rgba(245, 245, 245, 0.1);
  padding: 0.2em 0.4em;
  border-radius: 6px;
 /* box-shadow: 0 0 10px var(--accent-glow);*/
}


/* Skills Section */
.skills {
padding: 5rem 5%;
background: var(--darker-bg);
}

.skills-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
margin-top: 3rem;
}

.skill-card {
padding: 2rem;
border-radius: 15px;
background: rgba(255,255,255,0.05);
transition: all 0.3s ease;
border: 1px solid rgba(255,255,255,0.1);
backdrop-filter: blur(5px);
}

.skill-card:hover {
transform: translateY(-10px);
border-color: var(--accent);
box-shadow: 0 10px 30px var(--accent-glow);
}

.skill-card i {
font-size: 2.5rem;
color: var(--accent);
margin-bottom: 1rem;
}

/* Footer */
footer {
background: var(--darker-bg);
padding: 3rem 5%;
text-align: center;
border-top: 1px solid rgba(255,255,255,0.1);
}

.social-links {
margin-top: 2rem;
display: flex;
justify-content: left;
gap: 2rem;
}

.social-links a {
color: var(--text);
font-size: 1.5rem;
transition: all 0.3s ease;
}

.social-links a:hover {
color: var(--accent);
transform: translateY(-3px);
}

@media (max-width: 768px) {
.hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
}

.hero-content {
    padding-right: 0;
    margin-bottom: 3rem;
}

.profile-image {
    width: 280px;
    height: 280px;
}

.nav-links {
    display: none;
}

.logo {
    font-size: 1.5rem;
    padding-left: 2rem;
}
}

#certificates {
  padding: 5rem 5%;
  background: var(--darker-bg);
}

#certificates h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
  color: var(--text);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.cert-card {
  padding: 2rem;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  text-align: center;
  color: var(--text);
}

.cert-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.cert-card img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.cert-card h3 {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.cert-card p {
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.8;
}

.section-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 4rem 0;
  border-radius: 1px;
}

.contact {
  padding: 5rem 5%;
  background: var(--dark-bg);
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  box-shadow: 0 0 20px var(--accent-glow);
  font-size: 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}


.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

/* Responsive for small screens */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
  }
}


.contact-form {
  background: rgba(255, 255, 255, 0.03);
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: all 0.4s ease;
  
}

/* Glow only when user focuses inside */
.contact-form:focus-within {
  box-shadow: 0 0 30px var(--accent-glow);
  border-color: var(--accent);
}



.contact-form button {
  align-self: center;
  padding: 0.9rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background: linear-gradient(45deg, #27ae60, var(--accent));
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}


.contact-form input,
.contact-form textarea {
  background-color: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  width: 100%;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  background-color: rgba(255, 255, 255, 0.08);
}

.contact-form button:hover {
  background: linear-gradient(45deg, var(--accent), #2ecc71);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.button-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

/* Certificate Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  position: relative;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 1000px;
  background: var(--darker-bg);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: slideIn 0.3s ease-out;
  overflow: hidden;
}

.modal-content img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  background: white;
  border-radius: 10px 10px 0 0;
}

.modal-info {
  padding: 2rem;
  text-align: center;
}

.modal-info h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: center;
}

.modal-info h3 span {
  color: var(--accent) !important;
}

.modal-info p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: white;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.7);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.close:hover {
  background: rgba(231, 76, 60, 0.8);
  transform: scale(1.1);
}

.cert-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 15px 40px var(--accent-glow);
}

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

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 5% auto;
  }
  
  .modal-content img {
    max-height: 60vh;
  }
  
  .modal-info {
    padding: 1.5rem;
  }
  
  .modal-info h3 {
    font-size: 1.3rem;
  }
  
  .close {
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    width: 35px;
    height: 35px;
  }
}

