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

html {
    scroll-behavior: smooth;
}

/* Hide Scrollbars */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #fff;
    background-image: url('background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    overflow-x: hidden;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Background Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: -1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-content {
    text-align: center;
    color: #fff;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 140, 0, 0.3);
    border-top: 3px solid #ff8c00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.loaded {
    opacity: 1;
}

/* Navbar */
.navbar {
    display: flex;
    /* justify-content: flex-start; Everything aligned left */
    align-items: center;
    width: 100%;
    padding: 1rem 2rem;
}

.container-fluid {
    display: flex;
    justify-content: center; /* Center everything horizontally */
    align-items: center;
    width: 100%;
}
.navbar-collapse {
    display: flex;
    justify-content: center; /* Center links + social icons */
    align-items: center;
    gap: 0.5rem;
    width: 100%; /* Ensure it takes full width to allow proper centering */
}}
.navbar.scrolled {
    background: rgba(20, 20, 20, 0.85);
    box-shadow: 0 4px 20px rgba(255, 140, 0, 0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    color: #fff; /* Adjust text color as per your background */
    text-align: center;
    display: block; /* Ensures it's centered */
    margin-bottom: 0.5rem; /* Small spacing if needed */
}


.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

.navbar-toggler {
    border: none;
    background: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(255, 140, 0, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    width: 30px;
    height: 30px;
}

.navbar-toggler:hover {
    color: #ff8c00;
    transform: scale(1.1);
}

.navbar-nav {
    display: flex;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    font-size: 1.2rem;
    text-decoration: none;
    color: #d3d3d3; /* Adjust to match your theme */
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-left: 2rem; /* small spacing between links & icons */
}

.social-link i {
    font-size: 1.5rem;
    color: #d3d3d3; /* Same as nav text */
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link i:hover {
    color: #fff; /* Hover effect */
    transform: scale(1.2);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff8c00;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Navigation Modal */
/* Navigation Modal */
.nav-modal {
    position: fixed;
    top: 0;
    left: 100%;
    width: 80%;
    max-width: 400px;
    height: 60vh; /* Reinforced full viewport height */
    min-height: 100%; /* Ensure no clipping */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease-in-out;
    border-radius: 10px 0 0 10px; /* Added rounded corners on left side */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.nav-modal.show {
    transform: translateX(-100%);
}

.nav-modal-content {
    background: transparent;
    padding: 2rem;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh; /* Ensure content spans full height */
}
@media (max-width: 768px) {
    .nav-modal {
        height: 60vh; /* Reduced to 60% of viewport height on mobile */
        top: 20%; /* Center vertically by starting at 20% from top */
        transform: translateY(0); /* Reset any vertical transform */
    }

    .nav-modal.show {
        transform: translateX(-100%) translateY(0); /* Ensure only horizontal slide */
    }

    .nav-modal-content {
        justify-content: flex-start; /* Align content to top for scrolling */
        padding: 1.5rem; /* Slightly reduce padding for smaller screens */
    }

    .nav-links {
        gap: 0.5rem; /* Tighten spacing between nav links */
    }

    .nav-link-item {
        font-size: 1.2rem; /* Slightly smaller font for better fit */
        padding: 0.8rem 1.5rem; /* Adjust padding for mobile */
    }
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #ff8c00;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #fff;
    transform: rotate(90deg);
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    align-items: center;
    padding: 2rem 0;
}

.nav-link-item {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.nav-link-item i {
    font-size: 1.2rem;
}

.nav-link-item::before {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 0, 0.2), transparent);
    transition: all 0.5s ease;
}

.nav-link-item:hover::before {
    left: 100%;
}

.nav-link-item:hover {
    color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.2);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    margin-top: 0px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease 0.5s forwards;
}

.hero-greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.wave {
    font-size: 2rem;
    animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.hero-greeting h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #ccc;
}

.hero-name h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.university {
    font-size: 1.1rem;
    color: #ff8c00;
    font-weight: 500;
    margin-bottom: 2rem;
}

.hero-description p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.3);
}

.btn-outline {
    border: 2px solid #ff8c00;
    color: #ff8c00;
    background: transparent;
}

.btn-outline:hover {
    background: #ff8c00;
    color: #fff;
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff8c00;
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 80px rgba(255, 140, 0, 0.5);
}

.profile-image-slide {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff8c00;
    box-shadow: 0 0 50px rgba(255, 140, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(100px) rotateY(0deg);
    margin: 0 auto;
}

.profile-image-slide.animate {
    animation: slideFlipIn 1.5s ease-in-out forwards;
}

@keyframes slideFlipIn {
    0% {
        opacity: 0;
        transform: translateX(100px) rotateY(0deg);
    }
    100% {
        opacity: 1;
        transform: translateX(0) rotateY(360deg);
    }
}

.profile-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    border-radius: 50%;
    opacity: 0.2;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Section Styles */
.section {
    padding: 4rem 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    font-weight: 300;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 700px;
    margin: 0 auto;
}

.skill {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.skills-heading {
  width: 100%;
  text-align: left;
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff9800;
  margin: 2rem 0 1rem;
  letter-spacing: 1px; /* Adds slight spacing between letters */
}


.skills-row {
  display: flex;
  justify-content: center;
  gap: 6rem; /* Space between icons */
  flex-wrap: wrap; /* Wraps to next line on small screens */
  margin-bottom: 2rem;
}

.skill-logo {
  width: 150px; /* Bigger size */
  height: 150px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.skill-logo:hover {
  transform: scale(1.2);
}

.skill-details span {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    display: block;
    margin-bottom: 0.3rem;
}
/* Projects Section */
.projects-carousel {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.project-item {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
}

.project-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Keeps a nice ratio and is responsive */
    max-height: 80vh; /* Prevents overflow on very tall screens */
    background: #1a1a1a; /* fallback background */
}
.project-slideshow::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}
.slideshow-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.slideshow-inner {
    display: flex;
    height: 100%;
    transition: transform 0.6s ease-in-out; /* smoother slide */
}

.project-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Fill without black bars */
    object-position: center;
}

.project-img:hover {
    transform: scale(1.02); /* subtle zoom on hover */
}


.project-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

.project-link {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 140, 0, 0.2);
    border: 2px solid #ff8c00;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff8c00;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: #ff8c00;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.slideshow-prev,
.slideshow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 140, 0, 0.5);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.slideshow-prev {
    left: 10px;
}

.slideshow-next {
    right: 10px;
}

.slideshow-prev:hover,
.slideshow-next:hover {
    background: #ff8c00;
}

.project-content {
    padding: 0.5rem;
    text-align: center;
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.additional-projects {
    display: none;
    flex-direction: column;
    gap: 3rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.additional-projects.show {
    display: flex;
    opacity: 1;
}

.projects-actions {
    text-align: center;
    margin-top: 3rem;
}
@media (max-width: 768px) {
    .project-title {
        font-size: 1.5rem;
    }
    .project-description {
        font-size: 1rem;
    }
    .slideshow-prev,
    .slideshow-next {
        font-size: 1.2rem;
        padding: 0.6rem;
    }
}


/* Academic Progress Section */
.academics-content {
    max-width: 800px;
    margin: 0 auto;
}

.degree-info {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.degree-info h3 {
    font-size: 1.8rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.university-name {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.duration {
    color: #ccc;
    font-size: 1rem;
}

.semesters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.semester-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.semester-card.completed {
    border-color: rgba(34, 197, 94, 0.5);
}

.semester-card.current {
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.2);
}

.semester-card.upcoming {
    border-color: rgba(107, 114, 128, 0.5);
    opacity: 0.7;
}

.semester-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.semester-header h4 {
    font-size: 1.3rem;
    color: #fff;
}

.cgpa {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.status {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.semester-card.current .status {
    background: rgba(255, 140, 0, 0.2);
    color: #ff8c00;
}

.semester-card.upcoming .status {
    background: rgba(107, 114, 128, 0.2);
    color: #6b7280;
}

.courses {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.course {
    background: rgba(45, 45, 45, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #ccc;
    font-size: 0.9rem;
}

/* Achievements Section */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.achievement-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #ff8c00;
    border: 2px solid rgba(255, 140, 0, 0.2);
}

.achievement-card h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
}

.achievement-card p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.achievement-card .btn-outline {
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.certifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.cert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    color: #fff;
    font-size: 1.1rem;
    gap: 0.5rem; /* space between icon and text */
}

.cert-header i {
    font-size: 1.4rem;
    color: #ff8c00; /* same orange accent */
    margin-right: 10px;
}

.cert-header span:first-of-type {
    flex: 1; /* makes title stretch while keeping alignment */
}


.cert-source {
    font-size: 0.9rem;
    color: #aaa;
    margin-left: auto;
    margin-right: 10px;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #ff8c00;
}

.cert-body {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem; /* keep horizontal padding but remove vertical initially */
    background: rgba(20, 20, 20, 0.9);
}

.cert-body.open {
    max-height: 1000px; /* large enough to fit the content */
    opacity: 1;
    padding: 1rem; /* add vertical padding smoothly */
}



.cert-body img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: transform 0.8s ease, opacity 0.8s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.cert-body.show img {
    transform: translateY(0);
    opacity: 1;
}


.cert-body .btn-outline {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #ff8c00;
    color: #ff8c00;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}

.cert-body .btn-outline:hover {
    background: #ff8c00;
    color: #fff;
}
.cert-logo {
    width: 2.4rem; /* Similar to font-awesome icon size */
    height: auto;
    margin-right: 10px;
    filter: brightness(0) saturate(100%) invert(65%) sepia(85%) saturate(300%) hue-rotate(-20deg); 
}



/* Articles Section */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: rgba(26, 26, 26, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

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

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

.article-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-date {
    color: #ccc;
    font-size: 0.9rem;
}

.article-category {
    background: rgba(255, 140, 0, 0.1);
    color: #ff8c00;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid rgba(255, 140, 0, 0.2);
}

.article-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.article-excerpt {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.article-link {
    color: #ff8c00;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.article-link:hover {
    color: #fff;
    transform: translateX(5px);
}

/* About Section */
.about-content {
    display: block;
    text-align: center;
}

.about-text {
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: #ccc;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    text-align: justify;
}

.highlight {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(26, 26, 26, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 0, 0.3);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 140, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff8c00;
    font-size: 1.5rem;
    border: 2px solid rgba(255, 140, 0, 0.2);
}

.contact-details h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #ccc;
    margin: 0;
}

.contact-form {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    background: rgba(45, 45, 45, 0.8);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    text-align: center;
}

.social-links {
    text-align: center;
}

.social-links h3 {
    font-size: 1.5rem;
    color: #ff8c00;
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    flex-wrap: wrap; /* allows wrapping on small screens */
    gap: 10px;
    justify-content: center; /* centers on all screens */
}

.social-link {
    flex: 1 1 150px; /* each item takes equal width, min 150px */
    max-width: 180px; /* prevents too wide buttons on big screens */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ff8c00;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
}
@media (max-width: 600px) {
    .social-link {
        flex: 1 1 100%; /* full width per row */
        max-width: none;
    }
}
.social-link-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ff8c00; /* icon color */
    font-size: 24px; /* size of the icon */
    text-decoration: none;
    padding: 0; /* remove extra space */
    border: none; /* no border */
    background: none; /* no background */
    transition: color 0.3s ease;
    margin: 0 8px; /* space between icons */
}

.social-link-nav:hover {
    color: #ffa733; /* change color on hover */
}




.social-link:hover {
    background: rgba(255, 140, 0, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Rate My Portfolio Section */
.rate-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Navigation Modal */
.nav-modal {
    position: fixed;
    top: 0;
    left: 100%;
    width: 80%;
    max-width: 400px;
    height: 100vh; /* Default full height for larger screens */
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease-in-out;
    border-radius: 10px 0 0 10px; /* Maintain rounded corners on left side */
    overflow-y: auto; /* Allow scrolling if content overflows */
}

.nav-modal.show {
    transform: translateX(-100%);
}

.nav-modal-content {
    background: transparent;
    padding: 2rem;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center content for better appearance */
}

/* Rating Form Spacing */
.rating-form {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* Added consistent spacing between form elements */
}

.form-group {
    margin-bottom: 1.5rem;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 140, 0, 0.2);
    background: rgba(45, 45, 45, 0.8);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

.rating-form .btn-primary {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.rating-form h3 {
    font-size: 1.5rem;
    color: #ff8c00;
    margin-bottom: 1.5rem;
    text-align: center;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.star-rating input {
    display: none;
}

.star-rating label {
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ff8c00;
}

.average-rating {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    text-align: center;
}

.average-rating h3 {
    font-size: 1.5rem;
    color: #ff8c00;
    margin-bottom: 1.5rem;
}

.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ff8c00;
    margin-bottom: 0.5rem;
}

.rating-stars {
    font-size: 1.5rem;
    color: #ff8c00;
    margin-bottom: 0.5rem;
}

.rating-stars .fa-star-half-alt {
    color: #ff8c00;
}

.average-rating p {
    color: #ccc;
    font-size: 1rem;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.review-card {
    background: rgba(26, 26, 26, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 140, 0, 0.1);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 140, 0, 0.3);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.review-date {
    font-size: 0.9rem;
    color: #ccc;
}

.review-stars {
    font-size: 1.2rem;
    color: #ff8c00;
    margin-bottom: 1rem;
}

.review-stars .far.fa-star {
    color: #ccc;
}

.review-comment {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.6;
}

.reviews-actions {
    text-align: center;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 140, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-greeting,
    .hero-buttons {
        justify-content: center;
    }

    .profile-image,
    .profile-image-slide {
        width: 250px;
        height: 250px;
    }

    .hero-name h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .project-slideshow {
        height: 500px;
    }
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-description p {
        text-align: justify;
    }

    .hero-description p {
        text-align: justify;
    }
}

@media (max-width: 768px) {
    .nav-link-item {
        font-size: 1.2rem;
    }

    .hero-text,
    .hero-image {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .skills-categories {
        grid-template-columns: 1fr;
    }

    .project-slideshow {
        height: 400px;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .social-icons {
        flex-direction: column;
        align-items: center;
    }

    .slideshow-prev,
    .slideshow-next {
        font-size: 1.2rem;
        padding: 0.8rem;
    }

    .project-links {
        flex-direction: column;
        gap: 1rem;
    }

    .rate-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-name h1 {
        font-size: 2.5rem;
    }

    .hero-title h2 {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .profile-image,
    .profile-image-slide {
        width: 200px;
        height: 200px;
    }

    .project-slideshow {
        height: 300px;
    }

    .project-title {
        font-size: 1.3rem;
    }

    .project-description {
        font-size: 1rem;
    }

    .slideshow-prev,
    .slideshow-next {
        font-size: 1rem;
        padding: 0.6rem;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-toggler {
        font-size: 1.2rem;
    }

    .rating-form h3,
    .average-rating h3 {
        font-size: 1.3rem;
    }

    .star-rating label {
        font-size: 1.5rem;
    }

    .rating-value {
        font-size: 2rem;
    }
}
@media (max-width: 600px) {
    .social-link {
        flex: 1 1 100%; /* full width per row */
        max-width: none;
    }
}