
/* Base Styles */
:root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #3a3a3a;
    --light-color: #ffffff;
    --medium-color: #f5f5f5;
    --dark-bg: #0a0a0a;
    --text-dark: #222222;
    --text-light: #666666;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --section-bg: #f9f9f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
}

.section-title p {
    color: var(--text-light);
    margin-top: 15px;
    font-size: 18px;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--light-color);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, var(--medium-color) 0%, #e9e9e9 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    padding-right: 30px;
    animation: fadeInUp 1s ease;
}

.hero-text h1 {
    font-size: 52px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--accent-color);
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-buttons .btn {
    margin-right: 0;
}

.hero-image {
    flex: 1;
    text-align: center;
    position: relative;
    animation: fadeInRight 1s ease;
}

.hero-image img {
    max-width: 100%;
    border-radius: 50%;
    border: 5px solid var(--light-color);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: scale(1.03);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 20px;
    margin-top: 5px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 4px;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-accent {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background: transparent;
    color: var(--accent-color);
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.about-image:hover img {
    transform: translateY(-5px);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    border-radius: 8px;
    z-index: -1;
    opacity: 0.5;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 25px 0;
}

.about-info li {
    list-style: none;
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.about-info li strong {
    min-width: 120px;
    color: var(--primary-color);
    font-weight: 600;
}

.about-info li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Skills Section */
.skills {
    background: var(--section-bg);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid #eee;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 22px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.skill-item {
    margin-bottom: 25px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-bar {
    height: 10px;
    background: #e9e9e9;
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 5px;
    position: relative;
    width: 0;
    transition: width 1.5s ease;
}

/* Resume Section */
.resume-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 50px;
}

.resume-column {
    position: relative;
}

.resume-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15px;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
}

.resume-title {
    font-size: 24px;
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

.resume-title i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.resume-item {
    margin-bottom: 30px;
    padding-left: 40px;
    position: relative;
}

.resume-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 10px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
}

.resume-item h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.resume-item h5 {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 500;
}

.resume-item p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio {
    background: var(--section-bg);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.portfolio-filters li {
    margin: 5px 10px;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 4px;
    transition: var(--transition);
    border: 1px solid #ddd;
    color: var(--text-light);
}

.portfolio-filters li.active,
.portfolio-filters li:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: var(--light-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid #eee;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-img {
    height: 200px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.portfolio-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-img::before {
    opacity: 0.8;
}

.portfolio-links {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    display: flex;
    gap: 15px;
    transition: var(--transition);
    z-index: 2;
}

.portfolio-item:hover .portfolio-links {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.portfolio-links a {
    width: 40px;
    height: 40px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-links a:hover {
    background: var(--primary-color);
    color: var(--light-color);
}

.portfolio-info {
    padding: 20px;
}

.portfolio-info h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 15px;
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
}

.contact-info {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--text-light);
    margin-bottom: 40px;
    font-size: 18px;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.contact-info-item {
    background: var(--section-bg);
    padding: 30px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid #eee;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.contact-info-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.contact-info-content h4 {
    font-size: 20px;
    margin-bottom: 10px;
}

.contact-info-content p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 15px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 20px;
}

.social-links a:hover {
    transform: translateY(-5px);
    background: var(--accent-color);
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--light-color);
    padding: 60px 0 30px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-color);
    font-family: 'Montserrat', sans-serif;
}

.footer-logo span {
    color: #aaa;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: var(--light-color);
    font-family: 'Montserrat', sans-serif;
}

.footer-links a:hover {
    color: #aaa;
}

.copyright {
    margin-top: 20px;
    color: #aaa;
    font-size: 14px;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-20px) translateX(-50%);
    }

    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-content,
    .about-content {
        flex-direction: column;
    }

    .hero-text,
    .about-text {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .resume-container {
        grid-template-columns: 1fr;
    }

    .resume-column::before {
        left: 10px;
    }

    .resume-item,
    .resume-title {
        padding-left: 30px;
    }

    .resume-item::before {
        left: 4px;
    }

    .about-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--light-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hero-text h1 {
        font-size: 38px;
    }

    .section {
        padding: 80px 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}