/* Portfolio CSS */

/* ===========================================
   FONT DEFINITIONS
   =========================================== */
/* Font faces */
@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/funnel-display-v2-latin-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Funnel Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/funnel-display-v2-latin-regular.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===========================================
   UNIVERSAL FONT OVERRIDE
   =========================================== */
/* Font override */
* {
  font-family: "Funnel Display", sans-serif !important;
}

/* Cursor animation */
#cursor {
  animation: blink 1s infinite;
  color: #73ab84;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.6s ease-out;
}

.preloader-inner {
  text-align: center;
  color: #73ab84;
}

#preloader .spinner {
  border: 4px solid rgba(115, 171, 132, 0.3);
  border-top: 4px solid #73ab84;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#preloader p {
  margin: 0;
  font-family: "Funnel Display", sans-serif !important;
  font-size: 1.1rem;
  color: #73ab84;
}

/* Tech grid */
.tech-stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(45, 74, 34, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(115, 171, 132, 0.2);
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
  background: rgba(115, 171, 132, 0.1);
}

.tech-item img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

.tech-item span {
  font-size: 0.9rem;
  color: #73ab84;
  font-weight: 500;
}

/* Tech badges */
.tech-badges .badge {
  background-color: #73ab84 !important;
  color: white;
  font-size: 0.8rem;
  padding: 5px 10px;
}

/* CV sections */
.cv-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.cv-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid #73ab84;
  position: relative;
}

.cv-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: #73ab84;
  margin-bottom: 10px;
}

.cv-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
  background: rgba(115, 171, 132, 0.1);
  color: #73ab84;
  border-radius: 5px;
}

.cv-item ul {
  padding-left: 20px;
}

.cv-item ul li {
  padding-bottom: 10px;
}

.cv-item:last-child {
  padding-bottom: 0;
}

.cv-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: #1a1a1a;
  border: 2px solid #73ab84;
}

html, body {
  font-family: "Funnel Display", sans-serif !important;
  height: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: transparent !important;
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Funnel Display", sans-serif !important;
}

p, span, div, a, li, ul, ol, td, th, label, input, textarea, select, button {
  font-family: "Funnel Display", sans-serif !important;
}

.btn, .form-control, .form-select, .form-check-label, .form-label {
  font-family: "Funnel Display", sans-serif !important;
}

.nav, .nav-link, .navbar, .navbar-brand, .navbar-nav {
  font-family: "Funnel Display", sans-serif !important;
}

.modal, .modal-title, .modal-body, .modal-footer {
  font-family: "Funnel Display", sans-serif !important;
}

.footer, .copyright, .credits {
  font-family: "Funnel Display", sans-serif !important;
}

.typed {
  font-family: "Funnel Display", sans-serif !important;
}

.social-links {
  font-family: "Funnel Display", sans-serif !important;
}

.lead, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-family: "Funnel Display", sans-serif !important;
}

i:not(.bi) {
  font-family: "Funnel Display", sans-serif !important;
}

/* ===========================================
   PRELOADER & INSTANT LOADING
   =========================================== */
/* No flash loading */
html, body {
  background-color: #000 !important;
  margin: 0;
  padding: 0;
  opacity: 1;
}

/* Instant load */
body {
  opacity: 1 !important;
}

/* Remove delays */
.main, footer, #ripple-grid-root {
  opacity: 1 !important;
}

/* ===========================================
   SILK BACKGROUND OVERRIDES
   =========================================== */
/* Background override */
#ripple-grid-root {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
  background: transparent !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#ripple-grid-root > div {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: -1 !important;
}

.ripple-grid-container, #ripple-grid-root {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  z-index: -1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  background: transparent !important;
}

/* Footer */

.footer {
  position: relative !important;
  background: transparent !important;
  color: #ffffff !important;
  margin-top: auto;
  box-shadow: none !important;
  border: none !important;
  padding: 30px 0 125px 0 !important; /* Bottom padding for dock */
}

.footer .copyright,
.footer .credits {
  color: #ffffff !important;
}

.footer a {
  color: #73ab84 !important;
}

.footer a:hover {
  color: #96c9a3 !important;
}

/* Footer flexbox */

/* ===========================================
   HOMEPAGE ENHANCEMENTS
   =========================================== */
/* Homepage styles */
.min-vh-75 {
  min-height: 75vh;
}

.display-2 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  opacity: 0.9;
}

/* Enhanced button styles */
.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary.btn-lg {
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-outline-primary.btn-lg {
  border: 2px solid var(--accent-color);
}

.btn-primary.btn-lg:hover,
.btn-outline-primary.btn-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Social links enhancement */
.social-links a {
  margin: 0 15px;
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: scale(1.1);
}

/* Quick actions spacing */
.row.gy-3 > * {
  margin-bottom: 1rem;
}

/* Home section button improvements for consistent appearance */
#home .btn-lg {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

/* Responsive button layout fixes */
@media (min-width: 768px) and (max-width: 991.98px) {
  /* Tablet view - stack buttons in 2x2 grid for better appearance */
  #home .col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  #home .btn-lg {
    min-height: 60px;
    font-size: 0.95rem;
  }
}

@media (max-width: 767.98px) {
  /* Mobile view - full width buttons */
  #home .col-md-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }
  
  #home .btn-lg {
    min-height: 50px;
    margin-bottom: 0.75rem;
  }
}

@media (max-width: 768px) {
  .display-2 {
    font-size: 2.5rem;
  }
  
  .btn-lg {
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* Portfolio project image hover effects */
.portfolio-img a:hover .placeholder-img {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(115, 171, 132, 0.3);
}

.portfolio-img .placeholder-img {
  transition: all 0.3s ease;
}

.portfolio-img .placeholder-img:hover {
  background: linear-gradient(135deg, #2d4a22, #8bc496) !important;
}

/* Profile image responsive styles */
#about .col-lg-4 img {
  max-width: 100%;
  height: auto;
}

/* Tablet view - limit profile image size */
@media (min-width: 768px) and (max-width: 991.98px) {
  #about .col-lg-4 {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  #about .col-lg-4 img {
    max-width: 300px;
    width: 80%;
    height: auto;
    border-radius: 10px;
  }
}

/* Mobile view - smaller profile image */
@media (max-width: 767.98px) {
  #about .col-lg-4 {
    text-align: center;
    margin-bottom: 1.5rem;
  }
  
  #about .col-lg-4 img {
    max-width: 250px;
    width: 70%;
    height: auto;
    border-radius: 10px;
  }
}

/* Desktop view - ensure reasonable max size */
@media (min-width: 992px) {
  #about .col-lg-4 img {
    max-width: 350px;
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
}
