/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
        sans-serif;
    background-color: #ecf0f3;
    color: #1f2937;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: #ecf0f3;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.navbar.shadow {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo-img {
    width: 80px;
    height: 50px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.875rem;
    text-transform: uppercase;
    color: #1f2937;
    transition: border-bottom 0.3s ease;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    border-bottom: 2px solid #5651e5;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #1f2937;
    transition: 0.3s;
}

/* Mobile Menu */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: #ecf0f3;
        width: 75%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* Main Section */
.main-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.main-container {
    max-width: 1240px;
    width: 100%;
    padding: 2rem 1rem;
}

.main-subtitle {
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    color: #6b7280;
    margin-bottom: 1rem;
}

.main-title {
    font-size: 3rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.accent-text {
    color: #5651e5;
}

.main-description {
    max-width: 70%;
    margin: 2rem auto;
    color: #6b7280;
    font-weight: 400;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 330px;
    margin-left: auto;
    margin-right: auto;
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.social-link:hover {
    transform: scale(1.1);
}

/* About Section */
.about-section {
    width: 100%;
    min-height: 80vh;
    padding: 4rem 0;
    display: flex;
    align-items: center;
}

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

.about-content {
    padding: 1rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    color: #5651e5;
    margin-bottom: 0.5rem;
}

.section-title {
    margin-bottom: 1.5rem;
}

.about-text {
    color: #6b7280;
    font-weight: 400;
    margin-bottom: 1rem;
}

.text-link {
    text-decoration: underline;
    color: #5651e5;
    cursor: pointer;
}

.about-image-wrapper {
    width: 100%;
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image-wrapper:hover {
    transform: scale(1.05);
}

.about-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

/* Skills Section */
.skills-section {
    width: 100%;
    min-height: 80vh;
    padding: 4rem 0;
}

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

.skill-card {
    padding: 1.5rem;
    background-color: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.05);
}

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

.skill-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.skill-content h3 {
    text-align: center;
}

/* Projects Section */
.projects-section {
    width: 100%;
    padding: 4rem 0;
}

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

.project-card {
    position: relative;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5651e5 0%, #709dff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    text-align: center;
}

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

.project-card:hover .project-image {
    opacity: 0.1;
}

.project-title {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.project-tech {
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 400;
}

.project-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #1f2937;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.05);
}

/* Contact Section */
.contact-section {
    width: 100%;
    min-height: 80vh;
    padding: 4rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-info {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-image-wrapper {
    width: 100%;
}

.contact-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

.contact-image:hover {
    transform: scale(1.05);
}

.contact-details h2 {
    margin-bottom: 0.5rem;
}

.contact-text {
    color: #6b7280;
    font-weight: 400;
    margin-top: 1rem;
}

.contact-social-label {
    text-transform: uppercase;
    padding-top: 2rem;
    color: #5651e5;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

.contact-social-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.contact-social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ecf0f3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1f2937;
    transition: transform 0.3s ease;
    font-size: 1.25rem;
}

.contact-social-link:hover {
    transform: scale(1.1);
}

.contact-form-wrapper {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    text-transform: uppercase;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    color: #1f2937;
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #5651e5;
}

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

.form-button {
    padding: 1rem;
    background: linear-gradient(135deg, #5651e5 0%, #709dff 100%);
    color: #fff;
    border: none;
    border-radius: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(86, 81, 229, 0.3);
    transition: transform 0.3s ease;
    margin-top: 1rem;
}

.form-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(86, 81, 229, 0.4);
}

.scroll-top {
    display: flex;
    justify-content: center;
    padding: 3rem 0;
}

.scroll-top-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5651e5;
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

.scroll-top-link:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

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

    .main-description {
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
