/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    /* Color system */
    --bg: #0b1020;
    --card: #0f1724;
    --muted: #747d84;
    --accent-1: #ff7a18; /* orange */
    --accent-2: #ffb347; /* yellow */
    --accent-3: #10b981; /* green */
    --accent-4: #4a89dc; /* blue */
    --glass: rgba(255,255,255,0.06);
    --glass-strong: rgba(255,255,255,0.1);
    --glass-border: rgba(255,255,255,0.08);
    --card-radius: 16px;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
    line-height: 1.6;
    color: #e9f4ff; /* slightly brighter base text for better contrast */
    background: radial-gradient(1200px 800px at 10% 20%, rgba(74,137,220,0.06), transparent), rgba(6,9,23,1);
    background-color: var(--bg);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

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

h1, h2, h3, h4 {
    font-weight: 600;
    margin-bottom: 20px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: #eaf6ff;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #4a89dc;
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

p {
    margin-bottom: 15px;
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: #4a89dc;
    transition: all 0.3s ease;
}

a:hover {
    color: #2a69bc;
}

.btn {
    display: inline-block;
    background: #4a89dc;
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn:hover {
    background: #2a69bc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 137, 220, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    margin-right: 10px;
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268, #495057);
}

section {
    padding: 30px 0;
}

     text-align: center;
     transition: all 0.3s ease;
     border-top: 4px solid #4a89dc;
/* Header Styles */
header {
    background: linear-gradient(180deg, rgba(6,9,23,0.1), rgba(6,9,23,0.1));
    position: relative;
    overflow: hidden;
    height: 100vh;
    color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.name-container {
    margin-bottom: 30px;
}

.header-content h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin-bottom: 20px;
    letter-spacing: 1px;
    background: linear-gradient(90deg,#fff 0%, #e6eef6 40%, var(--accent-1) 72%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 8px 40px rgba(0,0,0,0.4));
}

.tagline {
    font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    max-width: 760px;
    margin: 0 auto;
    margin-bottom: 30px;
    line-height: 1.45;
    color: rgba(230,238,246,0.98);
    font-weight: 550;
    text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* Decorative floating blobs behind the header text */
.header-bg-blobs{
    position:absolute; inset:0; pointer-events:none; z-index:0;
}
.blob{ position:absolute; filter: blur(38px); opacity:0.85; transform-origin:center; }
.blob.b1{ width:480px; height:480px; left:-8%; top:10%; background: radial-gradient(circle at 30% 30%, var(--accent-1), transparent 40%); animation: move1 12s ease-in-out infinite; }
.blob.b2{ width:420px; height:420px; right:-6%; top:6%; background: radial-gradient(circle at 70% 30%, var(--accent-2), transparent 40%); animation: move2 11s ease-in-out infinite; }
.blob.b3{ width:360px; height:360px; left:20%; bottom:-10%; background: radial-gradient(circle at 50% 60%, var(--accent-3), transparent 40%); animation: move3 16s ease-in-out infinite; }

@keyframes move1{ 0%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(-22px) rotate(6deg);} 100%{ transform: translateY(0) rotate(0deg);} }
@keyframes move2{ 0%{ transform: translateX(0) rotate(0deg);} 50%{ transform: translateX(18px) rotate(-4deg);} 100%{ transform: translateX(0) rotate(0deg);} }
@keyframes move3{ 0%{ transform: translateY(0) rotate(0deg);} 50%{ transform: translateY(24px) rotate(6deg);} 100%{ transform: translateY(0) rotate(0deg);} }

/* CTA buttons in header */
.header-ctas{ display:flex; gap:14px; justify-content:center; margin-top:18px; }
.header-ctas .btn{ padding: 12px 20px; border-radius: 999px; font-weight:700; font-size:0.95rem; }
.btn-ghost{ background: transparent; border: 1px solid rgba(255,255,255,0.12); color: rgba(230,238,246,0.95); }
.btn-ghost:hover{ background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); transform: translateY(-4px); }

/* make header-content pop above blobs */
.header-content{ position:relative; z-index:5; }

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    z-index: 100;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #fff;
    font-size: 1rem;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #4a89dc;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 30px;
    height: 3px;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    margin: 3px 0;
    transition: 0.4s;
}

/* Social Icons */
.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    color: #fff;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #4a89dc;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(74, 137, 220, 0.3);
}

/* About Section */
#about {
    background-color: #fff;
}

.about-content {
    display: flex;
    align-items: center;
}

.profile-image {
    flex: 0 0 300px;
    margin-right: 50px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text strong {
    color: #eaf6ff;
    font-weight: 700;
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-right: 15px;
    color: #4a89dc;
    width: 20px;
    text-align: center;
}

/* Skills Section */
#skills {
    background-color: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-domain {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(2,6,18,0.6);
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
    color: rgba(230,240,255,0.95);
}

.skill-domain::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-domain:hover::before {
    transform: scaleX(1);
}

.skill-domain:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(74, 137, 220, 0.15);
    border-color: #4a89dc;
}

.skill-domain-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,255,255,0.04);
}

.skill-domain-header i {
    font-size: 1.8rem;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74,137,220,0.18), rgba(91,155,213,0.18));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-domain:hover .skill-domain-header i {
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    color: #fff;
    transform: scale(1.1);
}

.skill-domain-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #495057;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    cursor: default;
    letter-spacing: 0.3px;
}

.skill-tag {
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.06);
    transition: all 0.24s ease;
    cursor: default;
    letter-spacing: 0.3px;
}
.skill-tag:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
    color: #00121a;
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 30px rgba(10,40,80,0.16);
}
    background-color: #4a89dc;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 50px;
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item.left {
    left: 0;
}

.timeline-item.right {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: #fff;
    border: 4px solid #4a89dc;
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-content {
    padding: 30px;
    background-color: #fff;
    position: relative;
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.timeline-item.left .timeline-content {
    border-right: 5px solid #4a89dc;
}

.timeline-item.right .timeline-content {
    border-left: 5px solid #4a89dc;
}

.timeline-logo {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    overflow: hidden;
}

.timeline-item.left .timeline-logo {
    right: -30px;
    top: 15px;
}

.timeline-item.right .timeline-logo {
    left: -30px;
    top: 15px;
}

.timeline-logo img {
    width: 100%;
    height: auto;
}

.timeline-content h3 {
    margin-bottom: 8px;
    color: #f0fbff;
    font-size: 1.3rem;
}

.timeline-content h4 {
    color: rgba(240,250,255,0.92);
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.timeline-content .period {
    color: #ffd480;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.timeline-content ul {
    margin-top: 15px;
}

.timeline-content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 25px;
    line-height: 1.5;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    background-color: #4a89dc;
    border-radius: 50%;
}

.timeline-content strong {
    color: #4a89dc;
    font-weight: 600;
}

/* Projects Section */
#projects {
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* glassy cards and gentle 3D hover for a modern feel */
.project-card { background: linear-gradient( to bottom right, rgba(255,255,255,0.02), rgba(255,255,255,0.01) ); border-radius: var(--card-radius); border:1px solid rgba(255,255,255,0.03); backdrop-filter: blur(6px); }
.project-card .project-content{ transition: transform 0.35s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s ease; transform-origin:center; }
.project-card:hover .project-content{ transform: translateY(-6px) rotateX(2deg) rotateY(0.6deg); box-shadow: 0 30px 60px rgba(0,0,0,0.2); }

/* specific visual for the interview-prep project — warmer accent */
.project-card.project-interview{ border: 1px solid rgba(255,180,70,0.15); box-shadow: 0 10px 40px rgba(255,160,50,0.06); }
.project-card.project-interview .project-header{ background: linear-gradient(90deg, rgba(255,138,61,0.06), rgba(255,204,102,0.04)); }
.project-card.project-interview .project-image{ border-radius: 12px 12px 0 0; overflow:hidden; }
.project-card.project-interview .project-info{ background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); }

/* ribbon tag */
.project-card.project-interview::after{ content: 'Live'; position:absolute; right:18px; top:18px; background: linear-gradient(135deg,#ff8b3d,#ffb347); color:#111; font-weight:800; padding:6px 14px; border-radius:12px; transform: rotate(12deg); box-shadow:0 8px 24px rgba(255,160,40,0.15); }

/* pop-in reveal for projects */
.projects-grid .project-card{ opacity:0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.projects-grid .project-card.visible{ opacity:1; transform: translateY(0); }

/* Project Header with Category and Metrics */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
    gap: 10px;
}

.project-category {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-category.data-eng {
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    color: #fff;
}

.project-category.ml {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}

.project-category.research {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
}

/* New style for interactive / web-app projects */
.project-category.interactive {
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: #fff;
}

.project-links .btn[title="API backend"] {
    display: inline-flex;
    align-items: center;
}

/* Special highlight for the interview-prep project */
.project-card.interactive-card {
    border: 1px solid rgba(255, 183, 77, 0.5);
    box-shadow: 0 18px 60px rgba(255, 183, 77, 0.08);
    position: relative;
    overflow: visible;
    transition: transform 0.35s ease, box-shadow 0.35s ease; /* stronger hover transition */
}

.project-card.interactive-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 30px 90px rgba(255, 183, 77, 0.14);
}

/* Ribbon "Featured" label */
.project-card.interactive-card::before {
    content: 'Featured';
    position: absolute;
    right: -42px;
    top: 20px;
    transform: rotate(25deg);
    background: linear-gradient(135deg, #ff7a18, #ffb347);
    color: #1a1a1a;
    font-weight: 700;
    padding: 8px 46px;
    box-shadow: 0 8px 30px rgba(255, 162, 54, 0.15);
    border-radius: 6px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Warmer overlay for interactive card */
.project-card.interactive-card .project-overlay {
    background: linear-gradient(135deg, rgba(255,122,24,0.9), rgba(255,179,71,0.88));
}

/* subtle icon animation */
@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}
.project-card.interactive-card .overlay-content i {
    animation: floatUpDown 3s ease-in-out infinite;
}

.project-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.metric-badge {
    padding: 6px 14px;
    background: rgb(12, 76, 110);
    border: 1px solid #dee2e6;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.metric-badge.impact {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: #fff;
    border: none;
}

/* Project Content */
.project-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #486683;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(74, 137, 220, 0.92), rgba(91, 155, 213, 0.92));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.overlay-content i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.overlay-content p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Project Info */
.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-info h3 {
    font-size: 1.6rem;
    color: #eaf6ff; /* brighter for better contrast */
    margin-bottom: 18px;
    font-weight: 800;
    text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}

/* prominent live badges for projects */
.live-links {
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}
.live-badge{
    display:inline-flex;
    align-items:center;
    background: linear-gradient(135deg,#10b981,#059669); /* green */
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight:700;
    font-size:0.85rem;
    box-shadow: 0 8px 25px rgba(16,185,129,0.12);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration:none;
}
.live-badge:hover{ transform: translateY(-3px); box-shadow: 0 18px 50px rgba(16,185,129,0.2); }

/* make badges smaller on narrow screens */
@media screen and (max-width: 572px){
    .live-badge{ padding:6px 8px; font-size:0.78rem; }
}

/* Project Highlights */
.project-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
    padding: 15px;
    background: #2a69bc;
    border-radius: 12px;
    border-left: 4px solid #4a89dc;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(230,240,255,0.95);
}

.highlight-item i {
    color: #141415;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.highlight-item span {
    font-weight: 500;
}

/* Project Description */
.project-description {
    color: rgba(230,240,255,0.95);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.98rem;
    font-weight: 500;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: linear-gradient(135deg, #4f7bb8, #083e9b);
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    color: #fff;
    border-color: #4a89dc;
    transform: translateY(-2px);
}

/* Project Links */
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.project-links .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    font-size: 0.88rem;
    padding: 11px 20px;
}

.project-links .btn i {
    margin-right: 6px;
}

/* Project Details */
.project-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}
.detail-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid #4a89dc;
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 2rem;
}

.detail-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.2rem;
     color: #f3fbff;
}

.detail-card p {
    color: #666;
    line-height: 1.6;
     color: rgba(230,238,246,0.9);
}

/* Achievements Section */
.achievements-section {
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    color: #fff;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 40px;
}

.achievements-section h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #fff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.achievement-item {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.achievement-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.achievement-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Contact Section */
#contact {
    background-color: #f8f9fa;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.contact-info {
    flex: 0 0 35%;
    padding: 40px;
    background-color: #0e3686;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: fit-content;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.3rem;
}

.contact-form {
    flex: 0 0 60%;
    background-color: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4a89dc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 137, 220, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #fff;
    text-align: center;
    padding: 30px 0;
}

footer p {
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .container {
        padding: 60px 20px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item.left,
    .timeline-item.right {
        left: 0;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item.left::after,
    .timeline-item.right::after {
        left: 20px;
    }

    .timeline-item.left .timeline-logo,
    .timeline-item.right .timeline-logo {
        left: 0;
    }

    .timeline-item.left .timeline-content,
    .timeline-item.right .timeline-content {
        border-left: 5px solid #4a89dc;
        border-right: none;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form {
        flex: 0 0 100%;
    }

    .project-details {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .achievements-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media screen and (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        height: calc(100vh - 80px);
        transition: 0.5s;
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .profile-image {
        margin-right: 0;
        margin-bottom: 30px;
        max-width: 250px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .skill-domain {
        padding: 25px;
    }

    .header-content h1 {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 20px;
    }

    h2 {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .project-header {
        padding: 15px 20px 12px;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.4rem;
    }

    .project-highlights {
        padding: 12px;
    }

    .highlight-item {
        font-size: 0.9rem;
    }

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

    .achievements-section {
        padding: 30px 20px;
    }

    .achievement-number {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 572px) {
    .container {
        padding: 40px 15px;
    }

    nav {
        padding: 15px 20px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .project-image {
        height: 180px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-metrics {
        width: 100%;
    }

    .metric-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .overlay-content i {
        font-size: 2.5rem;
    }

    .overlay-content p {
        font-size: 1rem;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .contact-info,
    .contact-form {
        padding: 25px;
    }
}

/* Animation Effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease-out;
}

@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);
    }
}

.timeline-item.left {
    animation: slideInLeft 0.8s ease-out;
}

.timeline-item.right {
    animation: slideInRight 0.8s ease-out;
}

/* Active hamburger menu */
.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4a89dc, #5b9bd5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2a69bc, #4a89dc);
}

.project-gallery {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: #f8f9fa;
}

.gallery-caption {
    padding: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    background: #fff;
    margin: 0;
}

.module-section {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid;
}

.module-section:nth-child(1) {
    border-left-color: #10b981;
}

.module-section:nth-child(2) {
    border-left-color: #ff7a18;
}

.module-section:nth-child(3) {
    border-left-color: #4a89dc;
}

.module-section:nth-child(4) {
    border-left-color: #9b59b6;
}

.module-section h4 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-section .highlight-item {
    background: transparent;
    padding: 5px 0;
    border-radius: 0;
    border-left: none;
}

/* Responsive gallery */
@media screen and (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .gallery-item img {
        height: 100px;
    }
}

@media screen and (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}