/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Green-Lime Theme Colors */
:root {
    --accent-color: hsl(85, 75%, 55%);
    --accent-hover: hsl(85, 75%, 50%);
    --primary-color: hsl(100, 60%, 45%);
    --accent-secondary-color: hsl(160, 75%, 55%);
    --accent-secondary-hover: hsl(160, 75%, 50%);
    --secondary-color: hsl(160, 60%, 45%);
    --dark-color: hsl(150, 10%, 10%);
    --light-bg: hsl(100, 30%, 95%);
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

.fa-github {
    font-size: 45px;
}

.ti-instagram {
    font-size: 40px;
}

.fa-linkedin {
    font-size: 45px;
}

.social-icons {
    text-decoration: none;
    list-style: none;
    display: flex;
}
.social-icons a {
    padding: 5px;
    margin-top: 10px;
    color: var(--accent-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.accent-text {
    color: var(--accent-color);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#navbar.scrolled {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--dark-color);
}

#navbar:not(.scrolled) .logo,
#navbar:not(.scrolled) .nav-menu a,
#navbar:not(.scrolled) .mobile-menu-btn span {
    color: white;
}

.logo-accent {
    color: var(--accent-color);
}

.nav-menu {
    display: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark-color);
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--dark-color);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--accent-color);
}

@media (min-width: 768px) {
    .nav-menu {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), url('/assets/imgs/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
}

.hero-text {
    max-width: 48rem;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
}

.hero-section p {
    font-size: 1.125rem;
    color: #e5e7eb;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-in-out 0.2s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-in-out 0.4s backwards;
}

.fade-in-delay-3 {
    animation: fadeIn 0.8s ease-in-out 0.6s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.image-decoration {
    position: absolute;
    border-radius: 0.5rem;
    background: rgba(163, 230, 53, 0.2);
}

.decoration-top {
    top: -1rem;
    left: -1rem;
    width: 6rem;
    height: 6rem;
}

.decoration-bottom {
    bottom: -1rem;
    right: -1rem;
    width: 8rem;
    height: 8rem;
    background: rgba(132, 204, 22, 0.2);
}

.about-image {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.about-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.about-content p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
}

.about-grid-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-box h3 {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.info-box p {
    color: var(--gray-600);
    margin: 0;
}

/* Skills Section */
.skills-section {
    padding: 5rem 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-header p {
    color: var(--gray-600);
    max-width: 42rem;
    margin: 0 auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.skill-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.1);
}

.skill-icon svg {
    width: 3rem;
    height: 3rem;
}

.skill-card h3 {
    font-weight: bold;
    color: var(--dark-color);
    font-size: 1.125rem;
}

/* Color Classes */
.bg-purple { background: #9333ea; }
.bg-blue { background: #3b82f6; }
.bg-red { background: #dc2626; }
.bg-yellow { background: #eab308; }
.bg-blue-dark { background: #2563eb; }
.bg-orange { background: #ea580c; }
.bg-indigo { background: #6366f1; }
.bg-teal { background: #14b8a6; }
.bg-gray { background: #374151; }
.bg-green { background: green;}

/* Expertise Section */
.models3d-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

/* Experience Section */
.experience-section{
    padding: 5rem 0;
    background: white !important;
}
.experience-timeline {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 8rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--primary-color));
}
.experience-content {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.experience-content:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}
.experience-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.experience-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.experience-content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.year-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.year-badge::after {
    content: '';
    position: absolute;
    right: -2.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: white;
    border: 3px solid var(--accent-color);
    border-radius: 50%;
}

@keyframes color {
  0%   { background: #00F0FF }   /* cyan */
  20%  { background: #00C5FF }   /* light cyan-blue */
  40%  { background: #008FFF }   /* bright blue */
  60%  { background: #006BFF }   /* deeper blue */
  80%  { background: #004BFF }   /* dark rich blue */
  100% { background: #00F0FF }   /* back to cyan */
}

.active-year-badge{
    background: linear-gradient(135deg, var(--accent-secondary-color), var(--secondary-color));
    animation: color 9s infinite linear;
}
.active-year-badge::after{
    border: 3px solid #008FFF !important;
}
.active-experience-content:hover{
    border-color: #008FFF;
}
.active-experience-content h4 {
    color: #004BFF !important;
}
.active-detail-item svg{
    color: #008FFF !important;
}


.experience-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

.experience-detail-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

/* Education Section */
.education-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.education-timeline {
    max-width: 56rem;
    margin: 0 auto;
    position: relative;
}

.education-timeline::before {
    content: '';
    position: absolute;
    left: 8rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-secondary-color), var(--secondary-color));
}

.education-item {
    display: grid;
    grid-template-columns: 8rem 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}

.education-year {
    text-align: right;
    padding-right: 2rem;
    direction: rtl;
}

.year-badge-edu {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-secondary-color), var(--secondary-color));
    color: white;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.year-badge-edu::after {
    content: '';
    position: absolute;
    right: -2.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background: white;
    border: 3px solid var(--accent-secondary-color);
    border-radius: 50%;
}

.education-content {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.education-content:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-secondary-color);
}

.education-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--accent-secondary-color);
    margin-bottom: 1rem;
}

.education-content > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.education-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-700);
}

.detail-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--accent-secondary-color);
    flex-shrink: 0;
}

.certification-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cert-item:hover {
    background: rgba(163, 230, 53, 0.2);
}

.cert-item svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--accent-color);
    flex-shrink: 0;
}

.cert-item span {
    color: var(--gray-700);
    font-weight: 500;
}

.coursework-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.course-item {
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 0.5rem;
    color: var(--gray-700);
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.course-item:hover {
    background: rgba(163, 230, 53, 0.2);
    color: var(--dark-color);
}

/* Projects Section */
.projects-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 14rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-tech {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.project-content p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--gray-50);
}

.contact-wrapper {
    max-width: 48rem;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: var(--gray-50);
}

.contact-icon {
    background: rgba(163, 230, 53, 0.1);
    color: var(--accent-color);
    padding: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.contact-item h4 {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--gray-600);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-info p {
    color: #d1d5db;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h4,
.footer-contact h4 {
    font-weight: bold;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #d1d5db;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
    font-size: 0.875rem;
}

.button-3d-container {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 35vh;
}

.button-3d {
  position: relative;
  width: 250px;
  height: 100px;
  transition: 4s;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(0deg);
  color: var(--accent-color);
}
.button-3d:hover {
  transform: perspective(1000px) rotateX(360deg);
  color: var(--accent-hover);
}
.button-3d span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  background: rgba(255, 255, 255, 0.9);
  font-family: sans-serif;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 2px;
  transition: 0.5s;
  border: 2px solid #000;
  box-sizing: border-box;
  box-shadow: insert 0 20px 100px rgba(0, 0, 0, 0.2);
}
.button-3d:hover span {
  color: #fff;
  background: rgba(3, 169, 244, 0.8);
}
.button-3d span:nth-child(1) {
  transform: rotateX(360deg) translateZ(50px);
}
.button-3d span:nth-child(2) {
  transform: rotateX(270deg) translateZ(50px);
}
.button-3d span:nth-child(3) {
  transform: rotateX(180deg) translateZ(50px);
}
.button-3d span:nth-child(4) {
  transform: rotateX(90deg) translateZ(50px);
}

/* 3D models view */
.text-center {
    color: white;
    padding-top: 50px;
    text-align: center;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.875rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .coursework-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .about-section {
        padding: 6rem 0;
    }
    
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .certification-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 3.75rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .coursework-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 639px) {
    .education-timeline::before {
        left: 0.75rem;
    }
    
    .education-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .education-year {
        text-align: left;
        padding-right: 0;
        padding-left: 2.5rem;
    }
    
    .year-badge::after {
        left: -1.75rem;
        right: auto;
    }
}
