/* CSS Variables */
:root {
    --primary-color: #2a9d8f;
    --text-color: #333333;
    --light-text: #777777;
    --background: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e9ecef;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 100px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

ul {
    list-style: none;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border-bottom-color: rgba(0, 0, 0, 0.1);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: var(--text-color);
    transition: var(--transition);
}

.logo-initial {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary-color), #1e7f72);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.25);
    transition: all 0.3s ease;
}

.logo-text {
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.logo:hover .logo-initial {
    transform: translateY(-2px) rotate(5deg);
    box-shadow: 0 6px 16px rgba(42, 157, 143, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
    list-style: none;
}

.nav-link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    position: relative;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
}

.nav-link:hover {
    background: rgba(42, 157, 143, 0.08);
    color: var(--primary-color);
}

.nav-link.active {
    background: rgba(42, 157, 143, 0.12);
    color: var(--primary-color);
}

.nav-cta-item {
    list-style: none;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(42, 157, 143, 0.25);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 157, 143, 0.35);
    background: #248c7f;
}

.nav-cta svg {
    transition: transform 0.3s ease;
}

.nav-cta:hover svg {
    transform: translate(2px, -2px);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    padding: 2px;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--light-bg);
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    text-align: left;
    z-index: 2;
}

.hero-image {
    flex: 1;
    z-index: 2;
    animation: fadeIn 1s ease 0.6s;
    animation-fill-mode: both;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    animation: heroTitleIn 1.1s ease-out forwards;
}

.hero h2 {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--light-text);
    margin-bottom: 40px;
    animation: heroSubtitleIn 1s ease-out 0.25s forwards;
    opacity: 0;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    margin-right: 15px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 157, 143, 0.4);
}

.cv-button {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.cv-button:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(42, 157, 143, 0.3);
}

.shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background-color: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background-color: var(--primary-color);
    bottom: -50px;
    left: -50px;
    animation: float 10s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background-color: var(--primary-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 12s ease-in-out infinite;
}

/* Works Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 600px;
    display: block;
    text-decoration: none;
    color: inherit;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 2rem;
    color: white;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.portfolio-item:hover .overlay {
    transform: translateY(-10px);
}

.portfolio-item .overlay h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.portfolio-item .overlay p {
    margin: 0;
    opacity: 0.9;
}

.portfolio-item .view-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .view-icon {
    transform: scale(1.1);
}

.portfolio-item .view-icon svg {
    width: 24px;
    height: 24px;
    color: #333;
}

/* Portfolio Embed Sections */
.portfolio-embed-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.portfolio-embed-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.embed-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color);
}

.embed-title svg {
    color: var(--primary-color);
}

.view-profile-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
    transition: var(--transition);
}

.view-profile-link:hover {
    transform: translateX(5px);
    text-decoration: underline;
}

.behance-projects,
.pinterest-embed {
    width: 100%;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: white;
    padding: 40px;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: var(--light-text);
    font-style: italic;
}

.behance-fallback {
    text-align: center;
    padding: 20px;
}

.behance-cta {
    max-width: 600px;
    margin: 0 auto;
}

.behance-cta svg {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.behance-cta h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.behance-cta p {
    color: var(--light-text);
    margin-bottom: 30px;
    line-height: 1.8;
}

.behance-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #1769ff;
    color: white;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(23, 105, 255, 0.3);
}

.behance-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(23, 105, 255, 0.4);
    background-color: #0057e7;
}

.behance-btn svg {
    transition: var(--transition);
}

.behance-btn:hover svg {
    transform: translateX(5px);
}

.error-message {
    text-align: center;
    padding: 40px;
    color: var(--light-text);
}

.error-message a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Behance Projects Grid */
.behance-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.behance-project-embed {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.behance-project-embed:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.behance-project-embed iframe {
    width: 100%;
    min-height: 316px;
    border: none;
    display: block;
}

.behance-project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

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

.behance-project-image {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
    background-color: var(--light-bg);
}

.behance-project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.behance-project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 15px;
    opacity: 0;
    transition: var(--transition);
}

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

.behance-stats {
    display: flex;
    gap: 20px;
    color: white;
    font-size: 0.9rem;
}

.behance-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.behance-stats svg {
    flex-shrink: 0;
}

.behance-project-info {
    padding: 20px;
}

.behance-project-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-color);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.behance-fields {
    font-size: 0.85rem;
    color: var(--light-text);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.behance-view-more {
    text-align: center;
    margin-top: 20px;
}

.pinterest-embed {
    min-height: 500px;
    display: flex;
    justify-content: center;
}

/* Skills Section */
.skills {
    background-color: var(--light-bg);
    text-align: center;
}

.skills-highlight {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.skills-highlight p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-color);
}

.skills-highlight span {
    color: var(--primary-color);
    margin: 0 12px;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    text-align: center;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-item span {
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.social-link svg {
    width: 32px;
    height: 32px;
    transition: var(--transition);
}

.social-link:hover svg {
    stroke: var(--primary-color);
    transform: scale(1.1);
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 30px 0;
    text-align: center;
    animation: fadeIn 1s ease;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

footer p {
    color: var(--light-text);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--light-text);
    font-size: 0.9rem;
}

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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: translateY(40px);
        letter-spacing: 8px;
    }

    60% {
        opacity: 1;
        transform: translateY(0);
        letter-spacing: 2px;
    }

    100% {
        opacity: 1;
        letter-spacing: 0;
    }
}

@keyframes heroSubtitleIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(4px);
    }

    70% {
        opacity: 0.85;
        transform: translateY(-3px);
        filter: blur(0);
    }

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

@keyframes float {
    0% {
        transform: translateY(0);
    }

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .nav-cta {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .behance-projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .social-links {
        flex-direction: row;
        justify-content: center;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        height: 70px;
    }

    .logo-text {
        display: none;
    }

    .logo-initial {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-link {
        width: 100%;
        max-width: 300px;
        padding: 20px;
        margin-bottom: 10px;
        text-align: center;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .nav-cta-item {
        width: 100%;
        max-width: 300px;
    }

    .nav-cta {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 1rem;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }

    .hero {
        height: auto;
        padding: 120px 0 60px;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

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

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero-image {
        order: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image img {
        max-width: 100%;
        border-radius: 15px;
    }

    .shapes {
        display: none;
    }

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

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

@media (max-width: 576px) {
    .header-container {
        padding: 0 15px;
        height: 65px;
    }

    .logo-initial {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .nav-links {
        top: 65px;
        height: calc(100vh - 65px);
        padding: 30px 15px;
    }

    .nav-link {
        max-width: 280px;
        padding: 18px;
        font-size: 1rem;
    }

    .nav-cta-item {
        max-width: 280px;
    }

    .nav-cta {
        max-width: 100%;
        padding: 14px 20px;
        font-size: 0.95rem;
    }

    section {
        padding: 70px 0;
    }

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

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

    .hero {
        padding: 100px 0 40px;
    }

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

    .hero h2 {
        font-size: 1.1rem;
    }

    .hero-image {
        max-width: 300px;
    }

    .contact-form {
        padding: 25px;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .embed-title {
        font-size: 1.4rem;
    }

    .cta-button {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
        text-align: center;
    }
}