/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #fb923c, #ffffff, #22c55e);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ea580c, #f3f4f6, #16a34a);
}

/* Navigation Styles */
.navbar {
    background: #0f172a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.nav-brand h1 {
    color: #fb923c;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5);
}

.nav-menu {
    display: flex;
    gap: 1rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background: #334155;
    color: #ffffff;
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, #fb923c, #22c55e);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.nav-mobile {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.nav-item-mobile {
    padding: 0.5rem;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item-mobile:hover {
    background: #334155;
    color: #ffffff;
}

.nav-item-mobile.active {
    background: linear-gradient(135deg, #fb923c, #22c55e);
    color: #1e293b;
}

/* Page Styles */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 64px;
    animation: fadeIn 0.8s ease-out;
}

.page.active {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    color: #fb923c;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(251, 146, 60, 0.5);
    animation: textGlow 2s ease-in-out infinite;
}

.page-divider {
    width: 6rem;
    height: 4px;
    background: linear-gradient(90deg, #fb923c, #ffffff, #22c55e);
    margin: 0 auto;
    border-radius: 2px;
    animation: expand 1.5s ease-out;
}

.page-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 48rem;
    margin: 1.5rem auto 0;
}

/* Home Page Styles */
.home-container {
    min-height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bg-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.bg-circle-1 {
    width: 8rem;
    height: 8rem;
    background: #fb923c;
    top: 5rem;
    left: 5rem;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-2 {
    width: 6rem;
    height: 6rem;
    background: #22c55e;
    top: 10rem;
    right: 8rem;
    animation: float 6s ease-in-out infinite 2s;
}

.bg-circle-3 {
    width: 10rem;
    height: 10rem;
    background: #ffffff;
    bottom: 8rem;
    left: 25%;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-4 {
    width: 7rem;
    height: 7rem;
    background: #fb923c;
    bottom: 5rem;
    right: 5rem;
    animation: float 6s ease-in-out infinite 2s;
}

.home-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

.home-text {
    animation: slideInLeft 1s ease-out;
}

.home-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    color: #fb923c;
    text-shadow: 0 0 20px rgba(251, 146, 60, 0.5);
    animation: textGlow 2s ease-in-out infinite;
}

.text-green {
    color: #22c55e;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.home-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    animation: slideUp 0.8s ease-out 0.3s both;
}

.home-buttons {
    display: flex;
    gap: 1rem;
    animation: slideUp 0.8s ease-out 0.6s both;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #1e293b;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fb923c;
    border: 2px solid #fb923c;
}

.btn-secondary:hover {
    background: #fb923c;
    color: #1e293b;
    transform: translateY(-2px);
}

.home-image {
    display: flex;
    justify-content: center;
    position: relative;
    animation: slideInRight 1s ease-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.profile-circle {
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e); /* Indian flag border */
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    overflow: hidden; /* Keeps image inside circle */
}

.profile-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: transparent; /* Remove black/gray glow */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: none; /* Remove pulse animation */
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(95%) contrast(105%); /* Fix brightness & add clarity */
}


.floating-dot {
    position: absolute;
    border-radius: 50%;
    animation: ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.dot-1 {
    width: 2rem;
    height: 2rem;
    background: #22c55e;
    top: -1rem;
    right: -1rem;
}

.dot-2 {
    width: 1.5rem;
    height: 1.5rem;
    background: #fb923c;
    bottom: -0.75rem;
    left: -0.75rem;
    animation-delay: 1s;
}

.dot-3 {
    width: 1rem;
    height: 1rem;
    background: #ffffff;
    top: 50%;
    left: -2rem;
    animation-delay: 2s;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.stat-card {
    background: rgba(51, 65, 85, 0.5);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.stat-card:hover {
    background: rgba(51, 65, 85, 0.7);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #fb923c;
}

.stat-card:nth-child(2) .stat-number {
    color: #22c55e;
}

.stat-card:nth-child(3) .stat-number {
    color: #ffffff;
}

.stat-label {
    color: #94a3b8;
}

/* About Page Styles */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-card {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 1s ease-out;
}

.about-card p {
    margin-bottom: 1.5rem;
    color: #94a3b8;
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: slideInRight 1s ease-out;
}

.info-card {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 2rem;
    border-radius: 0.5rem;
    color: #1e293b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
}

.values-card {
    background: #334155;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.values-card h3 {
    color: #22c55e;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.values-card ul {
    list-style: none;
}

.values-card li {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.values-card li::before {
    content: '•';
    color: #22c55e;
    position: absolute;
    left: 0;
}

/* Skills Page Styles */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.skill-category {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: slideUp 0.8s ease-out;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.category-header i {
    color: #fb923c;
    font-size: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.category-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    animation: fadeInDelay 0.8s ease-out forwards;
    opacity: 0;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-info span:first-child {
    color: #94a3b8;
    font-weight: 500;
}

.skill-percentage {
    color: #22c55e;
    font-weight: bold;
}

.skill-bar {
    width: 100%;
    height: 0.75rem;
    background: #1e293b;
    border-radius: 0.375rem;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #fb923c, #ffffff, #22c55e);
    border-radius: 0.375rem;
    width: 0%;
    transition: width 2s ease-out;
}

.skills-summary {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 2rem;
    border-radius: 0.5rem;
    color: #1e293b;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.skills-summary h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.summary-stat {
    background: rgba(30, 41, 59, 0.2);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.summary-stat:hover {
    transform: scale(1.05);
}

.summary-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.summary-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Education Page Styles */
.education-section {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: #22c55e;
    margin-bottom: 2rem;
}

.section-title i {
    color: #fb923c;
}

.education-card {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: slideUp 0.8s ease-out;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.education-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.education-period,
.education-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fb923c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-location {
    color: #94a3b8;
}

.education-degree {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.education-specialization {
    color: #22c55e;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.education-description {
    color: #94a3b8;
    line-height: 1.8;
}

.education-highlights {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 0.5rem;
}

.education-highlights h5 {
    color: #fb923c;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.education-highlights ul {
    list-style: none;
}

.education-highlights li {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.education-highlights li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 0.75rem;
}

.training-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.training-card {
    background: linear-gradient(135deg, #334155, #1e293b);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease;
    animation: slideUp 0.8s ease-out;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.training-period,
.training-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fb923c;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.training-location {
    color: #94a3b8;
}

.training-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.training-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.training-skills {
    border-top: 1px solid #475569;
    padding-top: 1rem;
}

.training-skills h5 {
    color: #22c55e;
    font-size: 0.875rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: #fb923c;
    color: #1e293b;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Experience Page Styles */
.experience-card {
    background: #334155;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
    animation: slideUp 0.8s ease-out;
    margin-bottom: 3rem;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.experience-header {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 1.5rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.experience-position {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.experience-company {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.experience-period {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.experience-type {
    background: #1e293b;
    color: #fb923c;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.experience-content {
    padding: 2rem;
}

.experience-description {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.experience-section h4 {
    color: #22c55e;
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.responsibility-list,
.achievement-list {
    list-style: none;
}

.responsibility-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #94a3b8;
    margin-bottom: 0.75rem;
}

.responsibility-list li::before {
    content: '▶';
    color: #fb923c;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: #1e293b;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: #fb923c;
    color: #1e293b;
    transform: scale(1.05);
}

.achievement-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.achievement-list li::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: #22c55e;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.looking-forward {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.looking-forward h3 {
    color: #fb923c;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.looking-forward p {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.8;
    max-width: 48rem;
    margin: 0 auto;
}

/* Projects Page Styles */
.projects-section {
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.project-card {
    background: #334155;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.5s ease;
    animation: slideUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.project-logo {
    background: linear-gradient(135deg, #fb923c, #ea580c);
    color: #1e293b;
    width: 4rem;
    height: 4rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 1.5rem 1.5rem 1rem 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.project-info {
    padding: 0 1.5rem 1rem 1.5rem;
    flex-grow: 1;
}

.project-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: #ffffff;
}

.project-description {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.9rem;
}

.project-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #475569;
    background: #1e293b;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fb923c;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #ea580c;
    transform: scale(1.05);
}

.project-stats {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 2rem;
    border-radius: 0.5rem;
    color: #1e293b;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.project-stats h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.stat-item {
    background: rgba(30, 41, 59, 0.2);
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: scale(1.05);
}

.stat-item .stat-number {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Certifications Page Styles */
/* Certifications Page Styles */
.certification-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    /* --- MODIFIED/ADDED FOR LAYOUT --- */
    flex-wrap: wrap; /* Allows cards to wrap to the next line on smaller screens */
    gap: 2rem; /* Space between the cards (adjust as needed for your design) */
    align-items: stretch; /* Ensures cards stretch to the height of the tallest content */
    /* --- END MODIFIED/ADDED --- */
}

.certification-card {
    background: #334155;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    /* overflow: hidden; /* Keep this if you want content clipped at card edges */
    max-width: 32rem;
    width: 100%;
    transition: all 0.5s ease;
    animation: slideUp 0.8s ease-out;

    /* --- MODIFIED/ADDED FOR LAYOUT --- */
    display: flex; /* Make card content a flex column */
    flex-direction: column; /* Arrange content vertically */
    /* Remove fixed height if you added one before */
    /* height: auto; /* Ensure height adjusts based on content */
    /* You might want a min-height for smaller cards if content is too short */
    min-height: 400px; /* Example: adjust this if short cards look bad */
    /* --- END MODIFIED/ADDED --- */
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.certification-header {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 2rem;
    color: #1e293b;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cert-logo {
    font-size: 2.5rem;
    animation: bounceSubtle 2s ease-in-out infinite;
}

.cert-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cert-status {
    background: #1e293b;
    color: #22c55e;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

.certification-content {
    padding: 2rem;
    /* --- MODIFIED/ADDED FOR LAYOUT --- */
    flex-grow: 1; /* Allows content area to expand and fill available space */
    display: flex; /* Make content a flex column */
    flex-direction: column; /* Arrange content vertically */
    justify-content: space-between; /* Distribute items with space between them */
    /* --- END MODIFIED/ADDED --- */
}

.cert-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.cert-issuer {
    color: #a5b0c0;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cert-description {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.cert-credential {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.cert-skills h4 {
    color: #fb923c;
    font-size: 1.125rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.cert-skills .skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.cert-skills .skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    animation: fadeInDelay 0.8s ease-out forwards;
    opacity: 0;
}

.cert-skills .skill-item i {
    color: #22c55e;
    animation: pulse 2s ease-in-out infinite;
}

.cert-skills .skill-item span {
    font-size: 0.875rem;
}

/* --- MODIFIED/ADDED FOR LAYOUT --- */
/* Styles for the "View Certificate" link */
.verify-link {
    display: inline-flex; /* Use inline-flex to keep icon and text together */
    align-items: center;
    margin-top: 1.5rem; /* Add some space above the link */
    color: #22c55e; /* Use your theme's success/accent color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.verify-link:hover {
    color: #1a9c4b; /* Darker shade on hover */
}

.verify-link i {
    margin-right: 0.5rem; /* Space between icon and text */
}

/* New class for the image scroll container */
.internship-certificate-scroll-container {
    margin-top: 1.5rem; /* Space between the link and the image preview */
    background-color: #2b3546; /* Slightly darker background than card for contrast */
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #475569; /* Subtle border matching your theme */

    /* Critical: Set a fixed height for the scrollable image area */
    height: 300px; /* ***** ADJUST THIS VALUE CAREFULLY! ***** */
    /* Experiment with this height (e.g., 280px, 320px, 350px)
       to make the internship card's overall height match the AWS card's height. */
    overflow-y: auto; /* Enable vertical scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    display: flex; /* Use flex to center image if it's smaller */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.internship-certificate-scroll-container img {
    max-width: 100%; /* Ensure image fits within the scroll container */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Remove extra space below image */
    object-fit: contain; /* Scales the image to fit without cropping */
}

/* Media Queries (Adjusted to use rem for consistency and refined breakpoints) */
@media (min-width: 768px) {
    .certification-container {
        flex-wrap: nowrap; /* Prevent wrapping on larger screens if desired, or keep wrap */
        /* If you want exactly two columns, ensure max-width on cards allows it */
    }
    .certification-card {
        max-width: calc(50% - 1rem); /* Roughly two columns with 2rem gap */
    }
}

@media (max-width: 767px) {
    .certification-card {
        max-width: 100%; /* Full width on smaller screens, stacked vertically */
        margin-bottom: 1.5rem; /* Add space between stacked cards */
    }
    .certification-container {
        flex-direction: column; /* Stack cards vertically on small screens */
        align-items: center; /* Center stacked cards */
    }
    .internship-certificate-scroll-container {
        height: 250px; /* Slightly reduce height on small screens */
    }
}

/* Your custom animations (keep these as they are) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes fadeInDelay {
    to {
        opacity: 1;
    }
}

.verify-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #22c55e;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
}

.verify-link:hover {
    color: #16a34a;
    transform: scale(1.05);
}

.cert-achievement {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 2rem;
    border-radius: 0.5rem;
    color: #1e293b;
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.cert-achievement h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.achievement-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.achievement-stat {
    background: rgba(30, 41, 59, 0.2);
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.achievement-stat:hover {
    transform: scale(1.05);
}

.achievement-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.achievement-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* Contact Page Styles */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideInLeft 1s ease-out;
}

.contact-card h3 {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-card p {
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: #fb923c;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e293b;
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: #22c55e;
}

.contact-details h4 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    color: #fb923c;
}

.availability-card {
    background: linear-gradient(135deg, #fb923c, #ffffff, #22c55e);
    padding: 2rem;
    border-radius: 0.5rem;
    color: #1e293b;
    animation: slideInLeft 1s ease-out 0.3s both;
}

.availability-card h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.availability-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.availability-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.status-dot.available {
    background: #16a34a;
}

.status-dot.busy {
    background: #eab308;
}

.availability-item span {
    font-weight: 600;
}

.contact-form-container {
    animation: slideInRight 1s ease-out;
}

.contact-form-card {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.contact-form-card h3 {
    color: #22c55e;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fb923c;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7280;
}

.form-group textarea {
    resize: vertical;
    min-height: 6rem;
}

.submit-btn {
    width: 100%;
    background: #fb923c;
    color: #1e293b;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
}

.submit-btn:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
}

.cta-section {
    background: #334155;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: slideUp 0.8s ease-out;
}

.cta-section h3 {
    color: #fb923c;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cta-section p {
    color: #94a3b8;
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(50px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

@keyframes expand {
    from { width: 0; }
    to { width: 6rem; }
}

@keyframes textGlow {
    0%, 100% { text-shadow: 0 0 10px rgba(251, 146, 60, 0.5); }
    50% { text-shadow: 0 0 20px rgba(251, 146, 60, 0.8), 0 0 30px rgba(251, 146, 60, 0.6); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes bounceSubtle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeInDelay {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-mobile {
        display: grid;
    }
    
    .home-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-content,
    .skills-grid,
    .training-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .experience-grid,
    .education-content {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .home-title {
        font-size: 2.5rem;
    }
    
    .home-buttons {
        flex-direction: column;
    }
    
    .profile-circle {
        width: 15rem;
        height: 15rem;
    }
    
    .home-stats {
        grid-template-columns: 1fr;
    }
    
    .summary-stats,
    .achievement-stats {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .nav-mobile {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }
    
    .nav-item-mobile {
        padding: 0.375rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .home-title {
        font-size: 2rem;
    }
    
    .profile-circle {
        width: 12rem;
        height: 12rem;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}