/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
   <3 thanks, Eric :-)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
/* Box sizing rules */
*, *::before, *::after {
  box-sizing: border-box;
}
/* blockquote */
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}


/* ........My styles...... */
body {
  font-family: "Poppins", Arial, sans-serif;
  background-color: #f4f4f9; 
  color: #222;
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5em;
  padding: 3em 2em;
  min-height: 100vh;
}

/* ====== Left Section (Profile) ====== */
section {
  background-color: #1f1f1f; /* dark charcoal */
  color: #fff;
  padding: 3em 2em;
  width: 300px;
  min-height: 500px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5em;
  text-align: center;
  border-top: 6px solid #f0b429; /* accent bar */
  position: sticky;
  top: 2em;
}

section img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid #4a90e2; /* subtle blue ring */
  box-shadow: 0px 6px 15px rgba(74, 144, 226, 0.25);
  object-fit: cover;
}

section p {
  color: #ccc;
  font-size: 0.95em;
}

/* ====== Contact Info ====== */
.contact {
  background-color: #2a2a2a;
  padding: 1em;
  width: 100%;
  font-size: 0.9em;
  border-left: 4px solid #4a90e2;

}

.contact a {
  color: #f0b429; /* golden accent for links */
  text-decoration: none;
}

.contact a:hover {
  color: #4a90e2;
}

.contact a:last-of-type {
  display: block;
  width: 140px;
  margin: auto;
  text-align: right;
  height: 50px;
  padding: 20px 5px 5px 0px;
  background: url("/images/Contactme3.svg") no-repeat;
  background-size: 50px auto;
  border-radius: 12px;             
  transition: color 0.2s ease;

}

.contact a:last-of-type:hover {
  background-position: 0 -50px;
  color: #4a90e2;          
}

.contact a:last-of-type:active {
  background-position: 0 -100px;    
}



/* ====== About Me ====== */
.about {
  background-color: #2a2a2a;
  padding: 1.2em;
  font-size: 0.9em;
  text-align: left;
  border-left: 4px solid #f0b429;
}

.about h4 {
  margin-bottom: 0.5em;
  color: #f0b429;
  font-weight: 500;
  text-align: center;
}

/* ====== Main (Modules) ====== */
main {
  background: #fff;
  box-shadow: 0px 4px 25px rgba(0, 0, 0, 0.1);
  padding: 2.5em;
  max-width: 900px;
  flex: 1;
  text-align: center;
  border-top: 6px solid #4a90e2; /* consistent top accent */
}

main h1 {
  font-size: 2em;
  color: #111;
  margin-bottom: 1.5em;
  display: inline-block;
  border-bottom: 3px solid #f0b429;
  padding-bottom: 5px;
  font-weight: 600;
}

/* ====== Module List ====== */
ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5em;
}

ul li {
  background: #fafafa;
  padding: 1.5em;
  border: 1px solid #ddd;
  border-left: 5px solid #4a90e2;
  border-radius: 10px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: center;
}

ul li:hover {
  transform: translateY(-5px);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
  background: #f0f6ff; /* light blue tint */
  border-left-color: #f0b429;
}

ul li a {
  text-decoration: none;
}

ul li h3 {
  font-size: 1.1em;
  color: #333;
  margin-top: 0.5em;
  transition: color 0.3s ease;
}

ul li:hover h3 {
  color: #4a90e2;
}

ul li img {
  width: 100%;       
  height: auto;        
  object-fit: cover;   
  display: block;      
}

/* ====== Responsive Design ====== */
@media (max-width: 900px) {
  body {
    flex-direction: column;
    align-items: center;
    padding: 2em 1em;
  }

  section {
    width: 100%;
    max-width: 500px;
    position: static;
  }

  main {
    width: 100%;
    max-width: 800px;
  }
}
