:root {
    --color-bg: #f8fafc;
    --color-bg-alt: #ffffff;
    --color-bg-dark: #0f172a;
    --color-text: #334155;
    --color-text-light: #64748b;
    --color-heading: #0f172a;
    --color-primary: #0284c7;
    /* Sky 600 */
    --color-primary-hover: #0369a1;
    --color-accent: #f97316;
    /* Orange 500 for prominent CTA/Highlights */
    --color-accent-hover: #ea580c;

    --font-primary: 'Assistant', sans-serif;
    --font-heading: 'Rubik', sans-serif;

    --transition: all 0.3s ease;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    font-size: 1.125rem;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-heading);
    line-height: 1.2;
}

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

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

.section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--color-bg-alt);
}

/* Typography & Utilities */
.highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: rgba(2, 132, 199, 0.15);
    z-index: -1;
    transform: rotate(-1deg);
}

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

.section-title-wrapper {
    margin-bottom: 3rem;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 60px;
    height: 4px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    box-shadow: 0 4px 14px rgba(249, 115, 22, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.5);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
}

/* Decorative Background element */
.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

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

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

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

/* About Section */
.about-text {
    font-size: 1.25rem;
    color: var(--color-text);
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-right: 4px solid var(--color-primary);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%; /* Circle shape */
    border: 4px solid var(--color-bg);
    box-shadow: var(--box-shadow);
    float: left; /* In RTL, this puts the image on the left side, text flows on the right */
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.about-image:hover {
    transform: scale(1.05) rotate(-3deg);
    border-color: var(--color-primary);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Clearfix for about-text just in case */
.about-text::after {
    content: "";
    display: table;
    clear: both;
}

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

.skill-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(2, 132, 199, 0.1);
}

.skill-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(2, 132, 199, 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.05) rotate(-5deg);
}

.skill-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-desc {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* Additional Skills / Badges */
.badges-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    font-weight: 600;
    color: var(--color-text);
    border: 1px solid rgba(2, 132, 199, 0.1);
    transition: var(--transition);
}

.badge-item:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.badge-item svg {
    color: var(--color-primary);
}

/* Portfolio Section */
#portfolio {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.card {
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.portfolio-text {
    font-size: 1.35rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
}

.text-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    color: var(--color-primary-hover);
}

/* Footer Section */
.footer {
    background-color: var(--color-bg-dark);
    color: var(--color-bg);
    padding: 5rem 0 2rem;
}

.footer-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.footer-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.footer-cta-text {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    color: white;
}

.contact-btn svg {
    flex-shrink: 0;
}

.whatsapp-btn {
    background-color: #25D366;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    color: white;
}

.email-btn {
    background-color: #3b82f6;
}

.email-btn:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    color: white;
}

.linkedin-btn {
    background-color: #0077b5;
}

.linkedin-btn:hover {
    background-color: #005e93;
    transform: translateY(-2px);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #64748b;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        max-width: 80%;
    }

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

    .about-text {
        border-right: none;
        border-top: 4px solid var(--color-primary);
    }
}

@media (max-width: 576px) {
    .about-image {
        float: none;
        display: block;
        margin: 0 auto 1.5rem auto;
    }

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

    .section {
        padding: 4rem 0;
    }

    .contact-links {
        flex-direction: column;
    }

    .contact-btn {
        justify-content: center;
    }
}