@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Quicksand:300,400,500,700');
@import url('https://fonts.googleapis.com/css?family=Roboto');

/*=============================================
Css Indexing
===============================================
1.  Base CSS
2.  Text Styles
3.  Padding & Margins
4.  Display Styles
5.  Page / Layout
6.  Logo & Nav
7.  Left Footer
8.  Section Titles
9.  Home Section
10. About Section
11. Work Profile Section
12. Portfolio Section
13. Contact Section
===============================================*/


/*===========================================
1. Base CSS
============================================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6 {}
html {
  height: 100%;
}
body {
  height: 100%;
  font-family: 'Quicksand', sans-serif;
  color: rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
  font-size: 14px;
  overflow: hidden;
  background: #fafafa;
}
label {
  padding: 0;
  margin: 0;
}
ul, li, ol {
  padding: 0;
  margin: 0;
}
li {
  list-style: none;
}
a, img {
  border: 0;
  outline: none;
  text-decoration: none;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
input, select, textarea, button {
  font-family: 'Quicksand', sans-serif;
}
input:focus, select:focus, textarea:focus, button:focus {
  outline: 0;
}
a {
  color: inherit;
  transition: 0.5s;
}
p {
  margin-bottom: 1.5em;
}
h1, h2, h3, h4, h5, h6 {
  color: #000;
  font-family: "Quicksand", Arial, sans-serif;
  font-weight: 400;
  margin: 0 0 30px 0;
}

/*===========================================
Scrollbar
============================================*/
::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  background-color: #F5F5F5;
}
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background-color: #F5F5F5;
}
::-webkit-scrollbar-thumb {
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #777;
}


/*===========================================
2. Text Styles
============================================*/
.t-title-size { font-size: 18px; }
.t-bold { font-weight: 600; }
.t-normal { font-weight: normal; }
.t-center { text-align: center; }
.t-right { text-align: right; }


/*===========================================
3. Padding & Margins
============================================*/
.p-5  { padding: 5px; }
.p-10 { padding: 10px; }
.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }
.p-30 { padding: 30px; }
.p-35 { padding: 35px; }
.p-40 { padding: 40px; }
.p-45 { padding: 45px; }
.p-50 { padding: 50px; }

.m-5  { margin: 5px; }
.m-10 { margin: 10px; }
.m-15 { margin: 15px; }
.m-20 { margin: 20px; }
.m-25 { margin: 25px; }
.m-30 { margin: 30px; }
.m-35 { margin: 35px; }
.m-40 { margin: 40px; }
.m-45 { margin: 45px; }
.m-50 { margin: 50px; }


/*===========================================
4. Display Styles
============================================*/
.d-flex { display: flex; }
.d-flex-align-center { display: flex; align-items: center; flex-direction: row; }
.d-flex-align-center-column { display: flex; align-items: center; flex-direction: column; }
.flex-1 { flex: 1; }
.flex-2 { flex: 2; }


/*===========================================
5. Page / Layout
============================================*/
.wraper {
  width: 100%;
  height: 100%;
}
.container {
  height: 100%;
  display: flex;
  flex-direction: row;
}
.left-content {
  width: 300px;
  overflow-y: auto;
  height: 100%;
  background: #fff;
  border-right: 1px solid rgba(221, 221, 221, 0.38);
  display: flex;
  flex-direction: column;
}
.main-content {
  flex: 1;
  overflow-y: auto;
  margin-left: 10px;
  background: #fff;
  border-left: 1px solid rgba(221, 221, 221, 0.38);
}

/* Section dividers */
.section1, .section2, .section3, .section4, .section5 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}


/*===========================================
6. Logo & Nav
============================================*/
.logo {
  display: flex;
  justify-content: flex-end;
}
.logo a {
  color: #fff;
  text-align: right;
  background: #000;
  display: flex;
  flex-direction: column;
  padding: 10px;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 30px;
  font-weight: 500;
}
.nav {
  flex: 1;
  justify-content: flex-end;
  margin: 50px 0px;
}
.nav ul li,
.nav ul li a {
  display: flex;
  justify-content: flex-end;
}
.nav ul li a {
  padding: 8px 0px;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
}
.nav ul li a:hover,
.nav ul li a.active {
  color: #000;
}
.nav ul li a::after {
  content: "";
  width: 0;
  height: 1px;
  background: #000;
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  transform: scaleX(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.nav ul li a:hover::after,
.nav ul li a.active::after {
  width: 100%;
  transform: scaleX(1);
}


/*===========================================
7. Left Footer
============================================*/
.left-footer {
  color: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.foot-contact,
.social-icons ul,
.copy-rights {
  display: flex;
  justify-content: flex-end;
}
.social-icons ul li {
  display: flex;
  justify-content: flex-end;
  flex-direction: row;
}
.foot-contact ul {
  display: flex;
  flex-direction: column;
}
.foot-contact ul li {
  justify-content: flex-end;
  display: flex;
  margin: 2px 0px;
}
.foot-contact {
  margin: 5px 0px;
}
.social-icons ul li a {
  padding: 5px 8px;
  font-size: 16px;
}
.social-icons ul li a:hover {
  color: #000;
  transform: scale(1.2) translateY(-5px);
}
.copy-rights {
  font-size: 11px;
  margin-top: 8px;
  opacity: 0.5;
}


/*===========================================
8. Section Titles
============================================*/
.sec-title {
  margin-bottom: 50px;
}
.pg-title {
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 5px;
  line-height: 1.8;
  color: #000;
}
.pg-sub-title {
  margin-bottom: 10px;
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  color: #999999;
  font-weight: 500;
  letter-spacing: 5px;
}


/*===========================================
9. Home Section
============================================*/
.user-profile {
  padding-left: 50px;
}
.sm-text {
  letter-spacing: 2.1px;
  font-weight: normal;
  color: #222222;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
}
.name {
  font-size: 40px;
  text-transform: uppercase;
  margin: 15px 0px;
  color: #222222;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
}
.role {
  font-size: 18px;
  font-weight: 500;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #222222;
}
.text {
  font-size: 15px;
}
.pr-list {
  margin: 30px 0px;
}
.pr-list ul li {
  margin-bottom: 8px;
}
.pr-list ul li i {
  width: 18px;
}
.social-icons-head ul {
  display: flex;
}
.social-icons-head ul li a {
  padding: 5px 10px;
  font-size: 22px;
  transition: all .3s;
  display: flex;
}
.social-icons-head ul li:nth-child(1) a {
  padding-left: 0;
}
.social-icons-head ul li a:hover {
  color: #000;
  transform: scale(1.2) translateY(-5px);
}


/*===========================================
10. About / Skills Section
============================================*/
.about-grid {
  display: flex;
  gap: 40px;
}
.about-text {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
}
.about-skills {
  flex: 1;
}
.skill-item {
  margin-bottom: 20px;
}
.skill-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  margin-bottom: 7px;
}
.skill-bar {
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
}
.skill-fill {
  height: 100%;
  background: #000;
}

/* Cert badges */
.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}
.cert-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(0,0,0,0.2);
  padding: 5px 10px;
  color: #333;
}


/*===========================================
11. Work Profile Section
============================================*/
.timeline {
  position: relative;
  padding-left: 20px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.1);
}
.timeline-item {
  position: relative;
  margin-bottom: 35px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #000;
}
.tl-date {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 4px;
}
.tl-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #222;
  margin-bottom: 3px;
}
.tl-company {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}
.tl-bullets {
  padding-left: 16px;
  margin: 0;
}
.tl-bullets li {
  list-style: disc;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 4px;
  color: rgba(0,0,0,0.6);
}


/*===========================================
12. Portfolio Section
============================================*/
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.portfolio-card {
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.3s;
}
.portfolio-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}
.card-thumb {
  height: 130px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(0, 0, 0, 0.15);
}
.card-body {
  padding: 14px;
}
.card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  margin-bottom: 6px;
}
.card-desc {
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.card-tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.tag {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 2px 6px;
  color: #888;
}


/*===========================================
13. Contact Section
============================================*/
.contact-grid {
  display: flex;
  gap: 50px;
}
.contact-info {
  flex: 1;
}
.contact-form-wrap {
  flex: 1;
}
.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  align-items: flex-start;
}
.contact-item i {
  width: 16px;
  margin-top: 2px;
  color: #444;
}
.contact-item div {
  font-size: 13px;
  line-height: 1.6;
}
.contact-item strong {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #222;
  margin-bottom: 2px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-form input,
.contact-form textarea {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  font-family: 'Quicksand', sans-serif;
  font-size: 13px;
  color: #222;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #000;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(0, 0, 0, 0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 11px;
}
.contact-form textarea {
  height: 90px;
  resize: none;
}
.btn-send {
  align-self: flex-start;
  background: #000;
  color: #fff;
  border: none;
  padding: 10px 28px;
  font-family: 'Quicksand', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-top: 6px;
}
.btn-send:hover {
  opacity: 0.7;
}
/*===========================================
14. Mobile Responsiveness
============================================*/

@media screen and (max-width: 768px) {
  body {
    overflow: visible !important; /* Changed from auto to visible */
    height: auto;                 /* Allow height to grow with content */
    font-size: 16px;
  }

  /* Add/Update the container and wraper */
  .wraper, .container {
    height: auto;     /* Remove the 100% height lock */
    display: block;   /* Stack sidebar and main content vertically */
  }

  .left-content {
    width: 100%;
    height: auto;           /* Let it grow based on nav items */
    overflow: visible;      /* Remove internal scrollbar */
    border-right: none;
    border-bottom: 1px solid rgba(221, 221, 221, 0.38);
    padding: 20px;
    position: relative;
    display: block;         /* Ensure it follows standard document flow */
  }

  /* Adjust Logo and Nav for mobile */
  .logo {
    justify-content: center;
    margin-bottom: 20px;
  }
  .logo a {
    text-align: center;
    align-items: center;
  }

  .nav {
    margin: 20px 0;
  }
  .nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  .nav ul li, .nav ul li a {
    justify-content: center;
    padding: 5px;
  }

  /* Main Content Area */
 /* Update line 598-602 */
  .main-content {
    margin-left: 0;
    border-left: none;
    padding: 15px;
    overflow: visible;      /* Allow content to push the page down */
    height: auto;           /* Remove the flex-locked height */
  }

  /* Section-specific Grid Collapsing */
  .about-grid, 
  .contact-grid {
    flex-direction: column;
    gap: 30px;
  }

  /* Adjust Home Section padding */
  .user-profile {
    padding-left: 0;
    text-align: center;
  }
  
  .social-icons-head ul {
    justify-content: center;
  }

  /* Portfolio Grid: Ensure items take more space on small screens */
  .portfolio-grid {
    grid-template-columns: 1fr; /* Single column on phones */
  }

  /* Left Footer alignment */
  .left-footer, 
  .foot-contact, 
  .social-icons ul, 
  .copy-rights {
    justify-content: center;
    text-align: center;
    margin-top: 20px;
  }
  
  .social-icons ul {
    margin-bottom: 10px;
  }

  /* Form spacing */
  .btn-send {
    width: 100%; /* Full width button for easier tapping */
  }
}

/* Tablet adjustments */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .left-content {
    width: 240px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/*===========================================
15. Project Link Styles
============================================*/
.project-link {
  text-decoration: none;
  color: inherit; /* Keeps text color from turning blue */
  display: block;
}

.project-link:hover .portfolio-card {
  border-color: #000; /* Darkens border on hover */
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

/* Ensures the icon in the thumb looks consistent */
.project-link .card-thumb i {
  transition: transform 0.3s ease;
}

.project-link:hover .card-thumb i {
  transform: scale(1.1);
  color: #000;
}