@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* CSS Variables for Executive Slate & Professional Tech Navy Theme */
:root {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-accent-soft: #eff6ff;
    --accent-primary: #1d4ed8;
    --accent-hover: #1e40af;
    --accent-secondary: #0284c7;
    --accent-glow: rgba(29, 78, 216, 0.15);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 20px 25px -5px rgba(29, 78, 216, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(at 0% 0%, rgba(29, 78, 216, 0.035) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(2, 132, 199, 0.035) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Header & Navigation */
header.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.logo a {
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.25);
}

.logo-text {
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

.btn-contact {
    display: inline-block;
    padding: 0.55rem 1.4rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.2);
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
}

/* Button Component */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-primary));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.35);
    color: #ffffff !important;
}

/* Sections Common Styles */
section {
    padding: 6rem 0;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.section-title span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    background: var(--bg-primary);
}

.hero-wrapper {
    width: 100%;
}

.hero-content {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    letter-spacing: -0.8px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    margin-bottom: 3.5rem;
}

/* Stats Row */
.stats-row {
    /* Uses Bootstrap native row grid styling */
}

.stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 78, 216, 0.3);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Image & Backdrop Gradient */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 1.2s ease forwards;
}

.backdrop-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.12) 0%, rgba(2, 132, 199, 0.08) 50%, rgba(248, 250, 252, 0) 100%);
    filter: blur(40px);
    z-index: 1;
    border-radius: 50%;
}

.hero-image .image-card {
    width: 100%;
    max-width: 380px;
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.hero-image .image-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.hero-image .image-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.about-wrapper {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* Projects Section */
.projects-section {
    background: var(--bg-primary);
}

.projects-grid {
    width: 100%;
}

.project-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(29, 78, 216, 0.3);
}

.project-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.project-link {
    align-self: center;
    padding: 0.55rem 1.4rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    background: var(--bg-accent-soft);
    color: var(--accent-primary);
    transition: var(--transition);
    border: 1px solid rgba(29, 78, 216, 0.2);
}

.project-link:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* Full Width Project Card */
.project-card-full {
    grid-column: 1 / -1;
    flex-direction: row;
}

.project-card-full .project-image {
    width: 45%;
    height: auto;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
}

.project-card-full .project-image img {
    min-height: 100%;
}

.project-card-full .project-content {
    width: 55%;
    padding: 2.5rem;
}

.project-skills-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.skill-badge {
    background: var(--bg-accent-soft);
    color: var(--accent-primary);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(29, 78, 216, 0.15);
}

.project-desc-list {
    padding-left: 0;
    list-style-position: inside;
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    list-style-type: disc;
    margin-bottom: 2rem;
}

.project-desc-list li {
    margin-bottom: 0.5rem;
}

/* Achievements Section */
.achievements-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.timeline {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 100%;
    background-color: var(--border-color);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 3rem;
    display: flex;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 3rem;
    justify-content: flex-end;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 3rem;
    justify-content: flex-start;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    width: 100%;
    max-width: 450px;
    position: relative;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(29, 78, 216, 0.3);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    z-index: 10;
    top: 2rem;
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    background: var(--bg-accent-soft);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(29, 78, 216, 0.15);
}

.timeline-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.timeline-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-company {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-secondary);
    display: inline-block;
    margin-bottom: 0.75rem;
}

.timeline-company i {
    margin-right: 0.4rem;
}

.timeline-details {
    margin-top: 0.75rem;
    padding-left: 1.25rem;
    list-style-type: disc;
    color: var(--text-secondary);
}

.timeline-details li {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
    line-height: 1.6;
}

/* Skills Section */
.skills-section {
    background: var(--bg-primary);
}

.skills-container {
    width: 100%;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(29, 78, 216, 0.3);
}

.skill-category-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.skill-category-title i {
    color: var(--accent-primary);
    margin-right: 0.5rem;
}

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

.skill-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.8rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition);
}

.skill-pill:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(29, 78, 216, 0.25);
}

/* Footer Section */
footer {
    background: #0f172a;
    padding: 3.5rem 0 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-links a:hover {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #ffffff;
    transform: translateY(-3px);
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.4);
}

.footer-text p {
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.show-animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation delays for grids and child items */
.projects-grid .project-card:nth-child(1) {
    transition-delay: 0.1s;
}

.projects-grid .project-card:nth-child(2) {
    transition-delay: 0.2s;
}

.projects-grid .project-card:nth-child(3) {
    transition-delay: 0.3s;
}

.projects-grid .project-card:nth-child(4) {
    transition-delay: 0.4s;
}

.projects-grid .project-card:nth-child(5) {
    transition-delay: 0.5s;
}

.skills-container .skill-category:nth-child(1) {
    transition-delay: 0.1s;
}

.skills-container .skill-category:nth-child(2) {
    transition-delay: 0.2s;
}

.skills-container .skill-category:nth-child(3) {
    transition-delay: 0.3s;
}

.skills-container .skill-category:nth-child(4) {
    transition-delay: 0.4s;
}

.skills-container .skill-category:nth-child(5) {
    transition-delay: 0.5s;
}

.skills-container .skill-category:nth-child(6) {
    transition-delay: 0.6s;
}

.timeline .timeline-item:nth-child(1) {
    transition-delay: 0.1s;
}

.timeline .timeline-item:nth-child(2) {
    transition-delay: 0.2s;
}

.timeline .timeline-item:nth-child(3) {
    transition-delay: 0.3s;
}

/* Micro floating animation for skills pills */
@keyframes skillFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

.skill-pill {
    animation: skillFloat 4s ease-in-out infinite;
    display: inline-block;
}

.skill-pill:nth-child(2n) {
    animation-delay: 0.5s;
}

.skill-pill:nth-child(3n) {
    animation-delay: 1s;
}

.skill-pill:nth-child(4n) {
    animation-delay: 1.5s;
}

.skill-pill:hover {
    animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 992px) {
    header {
        padding: 1rem 5%;
    }

    .hero-cta {
        margin-bottom: 2.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .project-card-full {
        flex-direction: column;
    }

    .project-card-full .project-image,
    .project-card-full .project-content {
        width: 100%;
    }

    .project-card-full .project-image {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        height: 240px;
    }
}

@media (max-width: 768px) {
    header.navbar {
        background: #ffffff !important;
    }

    .hero {
        padding-top: 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .stat-box {
        padding: 1rem;
    }

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

    /* Mobile Timeline Alignment */
    .timeline::before {
        left: 20px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        margin-bottom: 2rem;
        padding-left: 3rem;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        left: 0;
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 3rem;
    }

    .timeline-item:nth-child(even) {
        left: 0;
        justify-content: flex-start;
        padding-left: 3rem;
    }

    .timeline-item::after {
        left: 12px !important;
        right: auto !important;
        top: 2rem;
    }

    .timeline-content {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

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

    .stat-box {
        padding: 0.75rem;
    }

    .timeline::before {
        left: 12px;
    }

    .timeline-item {
        padding-left: 2rem;
    }

    .timeline-item::after {
        left: 4px !important;
    }

    .timeline-content {
        padding: 1rem;
    }
}