/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.cdnfonts.com/css/vortigra');
@import url('https://fonts.cdnfonts.com/css/quakiez');
@import url('https://fonts.cdnfonts.com/css/tt-norms-pro');

/* CSS Variables */
:root {
    --font-size: 16px;
    --background: #f2ede3;
    --foreground: #000000;
    --card: #ffffff;
    --primary: #b69572;
    --primary-foreground: #ffffff;
    --secondary: #f2ede3;
    --border: rgba(0, 0, 0, 0.1);
    --radius: 0.625rem;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size);
}

body {
    font-family: 'TT Norms Pro Variable', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
#header {
    position: sticky;
    top: 0;
    background: var(--background);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.logo {
    font-family: 'Vortigra', serif;
    font-size: 1.875rem;
    font-weight: normal;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary);
}

.btn-download, .btn-admin {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-download:hover, .btn-admin:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.btn-admin {
    background: #4a4a4a;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--foreground);
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        display: flex;
        flex-direction: row !important;
        align-items: center;         
        justify-content: space-between;
    }

    .menu-toggle {
        display: flex;
        align-items: center;   
        justify-content: center;
        height: 40px;
        width: 40px;
        margin: 0;
        line-height: 1;
    }

    .header-right {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: max-height 0.35s ease, 
                    opacity 0.25s ease, 
                    transform 0.25s ease;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .header-right.active {
        max-height: 500px; 
        opacity: 1;
        transform: translateY(0);
    }

    nav {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-download,
    .btn-admin {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
        text-align: center;
    }
}


/* Hero Section */
#hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 8rem 0;
    overflow: hidden;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
    background: var(--primary) !important;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: #ffffff;
    top: -100px;
    left: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: #f5f0e8;
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: #faf7f2;
    bottom: -50px;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 450px;
    height: 450px;
    background: #ede8df;
    top: 20%;
    left: 40%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -50px) scale(1.1); }
    50% { transform: translate(-30px, 30px) scale(0.9); }
    75% { transform: translate(30px, 50px) scale(1.05); }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-text {
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.greeting {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
}

.name {
    font-family: 'Vortigra', serif;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.typewriter-container {
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.typewriter-text {
    font-size: 1.5rem;
    color: var(--primary);
    min-height: 40px;
}

.cursor {
    animation: blink 1s infinite;
}

.underline {
    height: 2px;
    background: var(--primary) !important;
    color: var(--primary) !important;
    animation: slideIn 1s ease-out 0.5s both;
    width: 100%;
    max-width: 400px;
}

.typewriter-container {
    display: inline-block;
}

.underline {
    height: 2px;
    background: currentColor;
    margin-top: 6px;
    width: 0;
    transition: width 0.15s ease; /* 🔥 smooth resize */
}


.cta {
    margin-top: 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about {
  overflow: hidden;
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-color), transparent 85%) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about .profile-card {
  background: var(--primary);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 100px;
}

.about .profile-card .profile-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.about .profile-card .profile-header .profile-avatar {
  width: 140px;
  height: 140px;
  margin: 0 auto 24px;
  position: relative;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ff6b9d 50%));
}

.about .profile-card .profile-header .profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface-color);
}

.about .profile-card .profile-header .profile-avatar .status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: #10b981;
  border: 4px solid var(--surface-color);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.about .profile-card .profile-header h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--secondary);
}

.about .profile-card .profile-header .role {
  display: inline-block;
  font-size: 15px;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 16px;
}

.about .profile-card .profile-header .rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
}

.about .profile-card .profile-header .rating i {
  color: #fbbf24;
  font-size: 16px;
}

.about .profile-card .profile-header .rating span {
  margin-left: 8px;
  font-weight: 600;
  color: var(--default-color);
  font-size: 15px;
}

.about .profile-card .profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.about .profile-card .profile-stats .stat-item {
  text-align: center;
}

.about .profile-card .profile-stats .stat-item h4 {
  font-size: 28px;
  font-weight: 700;
  color: var(--card);
  margin-bottom: 6px;
}

.about .profile-card .profile-stats .stat-item p {
  font-size: 13px;
  color: color-mix(in srgb, var(--secondary), transparent 30%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.about .profile-card .profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--secondary), transparent 90%);
}

.about .profile-card .profile-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.about .profile-card .profile-actions a.btn-primary {
  background: var(--secondary);
  color: var(--contrast-color);
}

.about .profile-card .profile-actions a.btn-primary:hover {
  background: color-mix(in srgb, var(--accent-color), #000 15%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.about .profile-card .profile-actions a.btn-secondary {
  background: color-mix(in srgb, var(--foreground), transparent 90%);
  color: var(--secondary);
}

.about .profile-card .profile-actions a.btn-secondary:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 85%);
}

.about .profile-card .profile-actions a i {
  font-size: 18px;
}

.about .profile-card .social-connect {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-top: 30px;
}

.about .profile-card .social-connect a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  border-radius: 12px;
  color: var(--default-color);
  font-size: 18px;
  transition: all 0.3s ease;
}

.about .profile-card .social-connect a:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  transform: translateY(-3px);
}

.about .content-wrapper .bio-section {
  margin-bottom: 50px;
}

.about .content-wrapper .bio-section .section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.about .content-wrapper .bio-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 24px;
  line-height: 1.2;
}

.about .content-wrapper .bio-section p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--default-color);
  margin-bottom: 16px;
}

.about .content-wrapper .bio-section p:last-child {
  margin-bottom: 0;
}

.about .content-wrapper .details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.about .content-wrapper .details-grid .detail-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--primary);
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  transition: all 0.3s ease;
}

.about .content-wrapper .details-grid .detail-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.about .content-wrapper .details-grid .detail-item i {
  font-size: 28px;
  color: var(--accent-color);
  flex-shrink: 0;
}

.about .content-wrapper .details-grid .detail-item .detail-content span {
  display: block;
  font-size: 13px;
  color: color-mix(in srgb, var(--secondary), transparent 40%);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.about .content-wrapper .details-grid .detail-item .detail-content strong {
  display: block;
  font-size: 16px;
  color: var(--card);
  font-weight: 600;
}

.about .content-wrapper .skills-showcase .section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.about .content-wrapper .skills-showcase h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 32px;
}

.about .content-wrapper .skills-showcase .skills-list .skill-item {
  margin-bottom: 28px;
}

.about .content-wrapper .skills-showcase .skills-list .skill-item .skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.about .content-wrapper .skills-showcase .skills-list .skill-item .skill-info .skill-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--heading-color);
}

.about .content-wrapper .skills-showcase .skills-list .skill-item .skill-info .skill-percent {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-color);
}

.about .content-wrapper .skills-showcase .skills-list .skill-item .progress {
  height: 10px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--default-color), transparent 94%);
  overflow: hidden;
}

.about .content-wrapper .skills-showcase .skills-list .skill-item .progress .progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), #ff6b9d 50%));
  border-radius: 10px;
  transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
  position: relative;
}

.about .content-wrapper .skills-showcase .skills-list .skill-item .progress .progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@media (max-width: 992px) {
  .about .profile-card {
    position: static;
    margin-bottom: 40px;
  }

  .about .content-wrapper .bio-section h2 {
    font-size: 30px;
  }

  .about .content-wrapper .details-grid {
    grid-template-columns: 1fr;
  }

  .about .content-wrapper .skills-showcase h3 {
    font-size: 24px;
  }
}

@media (max-width: 576px) {
  .about .profile-card {
    padding: 30px 20px;
  }

  .about .profile-card .profile-header .profile-avatar {
    width: 120px;
    height: 120px;
  }

  .about .profile-card .profile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .about .profile-card .profile-stats .stat-item h4 {
    font-size: 24px;
  }

  .about .content-wrapper .bio-section h2 {
    font-size: 26px;
  }

  .about .content-wrapper .details-grid .detail-item {
    padding: 18px;
  }

  .about .content-wrapper .details-grid .detail-item i {
    font-size: 24px;
  }
}

/* Portfolio Section */
#portfolio {
    padding: 5rem 0;
}

.portfolio-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center !important; 
}

.portfolio-header p {
    font-size: 1.125rem;
    margin-bottom: 3rem;
    max-width: 48rem;
    text-align: center !important;
}

.portfolio-header{
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.project-card {
    cursor: pointer;
    animation: fadeInUp 0.6s ease-out both;
}

.project-image {
    position: relative;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.5s;
}

.project-card:hover .project-image {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    transition: color 0.3s;
}

.project-card:hover h3 {
    color: var(--primary);
}

.project-card p {
    font-size: 1rem;
}

/* Contact Section */
#contact {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 5rem 0;
    text-align: center;
}

#contact h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

#contact p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.contact-cta {
    display: flex;
    justify-content: center;
}

.btn-contact {
    display: inline-block;
    background: var(--primary-foreground);
    color: var(--primary);
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-contact:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Footer */
#footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.year {
    font-family: 'Quakiez', sans-serif;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .name {
        font-size: 3rem;
    }

    .greeting {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .shape {
        filter: blur(60px);
    }

    .shape-1, .shape-2, .shape-3, .shape-4 {
        width: 250px;
        height: 250px;
    }
}

.portfolio-filter{
    padding-bottom: 30px;
    display: flex !important;
    justify-content: center !important;
}

.portfolio-filter button {
    margin: 5px;
    padding: 8px 16px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out both;
    border: 1px solid --card;
    outline: none;
}

.portfolio-filter button:hover{
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}

.portfolio-filter .active {
    padding: 0.5rem 1rem;
    background: var(--foreground);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out both;
    border: 1px solid --card;
    outline: none;
    color: var(--secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}


.tag-cat {
    padding: 0.5rem 1rem;
    background: var(--secondary);
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.3s;
    animation: fadeInUp 0.5s ease-out both;
    border: 1px solid --card;
    outline: none;
}

.tag-cat:hover {
    background: var(--primary);
    color: var(--primary-foreground);
    transform: scale(1.05);
}


/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  color: var(--heading-color);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

@media (max-width: 768px) {
  .section-title h2 {
    font-size: 2.5rem;
  }

  .row{
    flex-direction: column;
  }
}

.section-title .subtitle {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
  position: relative;
}

.section-title .subtitle::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 1px;
  background: var(--accent-color);
}

.section-title p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  max-width: 900px;
  margin: 0 auto;
  text-wrap: balance;
}



.row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6rem;
}

