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

:root {
    --primary: #1e5f74;
    --primary-dark: #154a5a;
    --primary-light: #3d7f94;
    --secondary: #e8eef1;
    --text-dark: #102733;
    --text-light: #4f636f;
    --border-color: #d3dee5;
    --background: #f5f8fa;
    --white: #ffffff;

    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

section {
    padding: 5rem 0;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.75rem 1rem;
    z-index: 2000;
    border-radius: 0.5rem;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--primary);
    backdrop-filter: blur(2px);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
    padding: 0 1.5rem;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    border-radius: 2px;
    transition: var(--transition);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    background-image:
        linear-gradient(135deg, rgba(8, 22, 32, 0.72), rgba(14, 40, 52, 0.56)),
        url('../images/background-portfolio-image.png');
    background-position: center, center 35%;
    background-size: cover, 100% auto;
    background-repeat: no-repeat, no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: url('../images/background-portfolio-image.png') center 18% / 118% auto no-repeat;
    filter: blur(18px);
    opacity: 0.28;
    transform: scale(1.02);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.22), transparent 34%),
        radial-gradient(circle at 18% 44%, rgba(61, 127, 148, 0.2), transparent 46%),
        radial-gradient(circle at 82% 44%, rgba(61, 127, 148, 0.16), transparent 49%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-subtitle {
    font-size: 1.75rem;
    color: #e2f0f4;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #ecf3f6;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--primary);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
}

.about,
.projects,
.certifications,
.blog {
    background-color: var(--white);
}

.experience,
.skills {
    background-color: var(--background);
}

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

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card,
.skill-category,
.blog-card,
.project-card,
.cert-card,
.timeline-content {
    border-radius: 0.75rem;
    transition: var(--transition);
}

.stat-card {
    background: linear-gradient(135deg, #f5f5f2 0%, #fafaf8 100%);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 14px;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    padding-left: 2.75rem;
}

.timeline-marker {
    position: absolute;
    left: 6px;
    width: 16px;
    height: 16px;
    background-color: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 0;
    z-index: 10;
    box-shadow: 0 0 0 4px var(--primary);
    opacity: 0.3;
}

.timeline-item:hover .timeline-marker {
    opacity: 1;
    transform: scale(1.1);
}

.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-md);
}

.timeline-content:hover,
.project-card:hover,
.skill-category:hover,
.blog-card:hover,
.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.company,
.period,
.project-description,
.blog-card p {
    color: var(--text-light);
}

.experience-list,
.project-list {
    list-style: none;
    margin: 1rem 0;
}

.experience-list li,
.project-list li {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    color: var(--text-light);
}

.experience-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.project-list li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.tech-stack,
.project-tech {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.project-card {
    background-color: var(--background);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

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

.skill-category {
    background-color: var(--white);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.skill-category h3,
.project-header h3,
.blog-card h3,
.timeline-content h3,
.cert-card h3 {
    color: var(--primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skill-tag:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

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

.cert-card {
    background: linear-gradient(135deg, #f5f5f2 0%, #fafaf8 100%);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.cert-link {
    display: block;
    color: inherit;
}

.cert-link:hover {
    color: inherit;
}

.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.blog-card {
    background-color: var(--background);
    padding: 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    width: fit-content;
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    display: inline-block;
}

.read-more:hover {
    transform: translateX(5px);
}

.contact {
    background:
    radial-gradient(circle at 10% 20%, rgba(61, 127, 148, 0.14), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(30, 95, 116, 0.12), transparent 42%),
    linear-gradient(135deg, #f7fafc 0%, #f1f5f8 100%);
}

.contact-content {
    max-width: 820px;
    margin: 0 auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 251, 251, 0.88));
    border: 1px solid rgba(30, 95, 116, 0.22);
    border-radius: 1.1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(3px);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.7rem;
}

.contact-details {
    margin-top: 0.5rem;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-item {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary);
    border-radius: 0.65rem;
    padding: 0.95rem 1rem;
    box-shadow: var(--shadow-sm);
}

.contact-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.contact-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-actions .btn {
    min-width: 200px;
}

.footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .hero {
        background-size: cover, 180% auto;
        background-position: center, center 12%;
    }

    .hero::before {
        background-size: 195% auto;
        background-position: center 12%;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 4rem;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        padding: 1rem;
        gap: 0;
        box-shadow: var(--shadow-md);
    }

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

    .nav-link {
        padding: 0.75rem;
        display: block;
    }

    .hamburger {
        display: flex;
    }

    h1,
    .hero-title {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .about-content,
    .projects-grid,
    .skills-grid,
    .contact-details,
    .stats {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding: 1rem 0;
    }

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

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

    .timeline-marker {
        left: 4px;
    }

    .contact-content {
        padding: 1.5rem;
    }

    .contact-actions .btn {
        width: 100%;
    }

    section {
        padding: 3rem 0;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    h1,
    .hero-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

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

    .social-links {
        gap: 1rem;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }

    .skill-tags {
        gap: 0.5rem;
    }

    .skill-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .blog-grid,
    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        gap: 1rem;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
