/* Base Styles & Variables */
:root {
    --primary: #1DCD9F;
    --primary-dark: #17a786;
    --secondary: #4E545C;
    --accent: #FF2929;
    --light: #f4f1fa;
    --dark: #0f0f1a;
    --dark-light: #17171d;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --success: #00b894;
    --warning: #fdcb6e;
    --error: #d63031;
    --info: #0984e3;
    
    --font-primary: 'Poppins', sans-serif;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.1), 0 6px 6px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
    --transition-slow: all 0.5s ease;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    --container-width: 1200px;
    --section-padding: 100px;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1em;
}

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

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

ul, ol {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    transition: var(--transition);
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

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

.section {
    padding: var(--section-padding) 0;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

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

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.text-light {
    color: var(--light);
}

.text-gray {
    color: var(--gray);
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 0 15px rgba(29, 205, 159, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 5px var(--primary);
}

.btn-outline {
    background-color: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
}

.preloader-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-bottom-color: var(--primary);
    animation: spin 1s linear infinite;
}

.preloader-text {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--gray-light);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(15, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding:10px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 40px;
    transition: var(--transition);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    font-weight: 500;
    padding: 5px 0;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    height: 3px;
    width: 100%;
    background-color: var(--light);
    transition: var(--transition);
}

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

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

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

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    z-index: -1;
}

.hero-content {
    flex: 1;
    padding-right: 40px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.highlight {
    color: var(--primary);
    font-size: 3.5rem;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    min-height: 2.5rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-light);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}


/* Hero Image Adjustments */
.hero-image {
    flex: 1;
    display: flex;
    align-items: center; /* This centers vertically */
    justify-content: flex-end; /* This aligns to the right */
    height: 100%; /* Take full height of hero section */
}

.image-container {
    position: relative;
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: 0; /* Ensure it stays right-aligned */
     animation: float-together 4s ease-in-out infinite;
}

.profile-image {
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
    max-height: 80vh; /* Prevent image from being too tall */
    object-fit: contain; /* Maintain aspect ratio */
    width: 100%;
}

/* For mobile view */
@media (max-width: 768px) {
    .hero-image {
        justify-content: center; /* Center on mobile */
        margin-top: 40px;
    }
    .image-container {
        margin: 0 auto;
    }
}


.image-decoration {
    position: absolute;
    top: -15px;  /* Reduced from -20px */
    right: -15px; /* Reduced from -20px */
    width: calc(100% - 10px); 
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: 1;
    transition: var(--transition);
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-light);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.arrow {
    width: 20px;
    height: 35px;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    position: relative;
}

.arrow::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }
    100% {
        opacity: 0;
        transform: translateY(15px) translateX(-50%);
    }
}

/* About Section */
.about {
    background-color: var(--dark-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
}

.about-facts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.fact-item {
    background-color: rgba(29, 205, 159, 0.1);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.fact-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.fact-label {
    font-size: 0.9rem;
    color: var(--gray-light);
}

.about-image {
    flex: 1;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
    margin-left: auto;
}

.about-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Skills Section */
.skills {
    background-color: var(--dark);
}

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

.skill-category {
    background-color: var(--dark-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--light);
    position: relative;
    padding-bottom: 10px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-name {
    font-weight: 500;
}

.skill-percent {
    color: var(--gray-light);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    border-radius: var(--radius-full);
    width: 0;
    transition: width 1.5s ease;
}

/* Work Section */
.work {
    background-color: var(--dark-light);
}

.work-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background-color: transparent;
    color: var(--gray-light);
    border: 1px solid var(--gray);
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary);
    color: var(--dark);
    border-color: var(--primary);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.work-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.work-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(7, 197, 244, 0.956), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

.work-item:hover .work-image img {
    transform: scale(1.1);
}

.work-content {
    transform: translateY(20px);
    transition: var(--transition);
}

.work-item:hover .work-content {
    transform: translateY(0);
}

.work-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    /* color: var(--light); */
    color: black
}

.work-description {
    color: black;
    margin-bottom: 15px;
}



/* GitHub Link Styles */
.work-links {
    display: flex;
    justify-content: center;
}

.github-link {
    position: relative;
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.github-link i {
    transition: all 0.3s ease;
    color: var(--light);
}

.github-link:hover i {
    transform: scale(1.3);
    color: black
}

/* Tooltip Styles */
.tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--dark);
    color: var(--light);
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid var(--primary);
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--primary);
}

.github-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
    top: -45px;
    
}




.work-link {
    transition: all 0.3s ease;
    transform: scale(1);
}

.work-link:hover {
    transform: scale(1.2);
    color: var(--dark);
}

.secret-btn {
    padding: 10px 20px;
    border-radius: var(--radius-full);
    background-color: rgba(29, 205, 159, 0.1);
    color: var(--light);
    font-weight: 500;
    transition: var(--transition);
}

.secret-btn:hover {
    background-color: var(--primary);
    color: var(--dark);
}

.work-more {
    margin-top: 50px;
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: var(--dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 20px;
}

.contact-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--light);
}

.contact-text {
    color: var(--gray-light);
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(29, 205, 159, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-social {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--dark);
    transform: translateY(-5px);
}

.contact-form {
    background-color: var(--dark-light);
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 0;
    border-bottom: 2px solid var(--gray);
    color: var(--light);
}

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

.form-group label {
    position: absolute;
    top: 12px;
    left: 0;
    color: var(--gray);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary);
}

/* Footer */
.footer {
    background-color: var(--dark-light);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 200px;
}

.footer-text {
    color: var(--gray-light);
    margin: 15px 0;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-column h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--light);
}

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

.footer-column ul li a {
    color: var(--gray-light);
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--primary);
    color: var(--dark);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
}

/* Responsive Styles */
@media (max-width: 992px) {
    :root {
        --section-padding: 80px;
    }
    
    .hero-content {
        padding-right: 0;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .highlight {
        font-size: 2.8rem;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .image-container {
        margin: 40px auto 0;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transition: var(--transition);
    }
    
    .nav-list.active {
        right: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 50px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .highlight {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Services Section */
.services {
    background-color: var(--dark);
}

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

.service-card {
    background-color: var(--dark-light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(29, 205, 159, 0.1);
    border-color: var(--primary);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(29, 205, 159, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--dark);
    transform: rotateY(180deg);
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--light);
}

.service-description {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 30px 20px;
    }
}

/* ===== Hero Section Fix ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center; /* Vertically center content */
    padding: 80px 0;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px; /* Space between text and image */
    width: 100%;
}

/* Text Content (Left Side) */
.hero-content {
    flex: 1;
    max-width: 600px; /* Prevents text from stretching too far */
    padding-right: 20px;
}

/* Image (Right Side) */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end; /* Pushes image to the right */
    align-items: center;
}

.image-container {
    position: relative;
    max-width: 400px; /* Controls image size */
    width: 100%;
}

.profile-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    object-fit: contain; /* Prevents stretching */
}

.image-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary);
    border-radius: var(--radius-lg);
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column; /* Stack text above image */
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-image {
        justify-content: center; /* Center image on mobile */
    }

    .image-container {
        max-width: 300px; /* Smaller image on mobile */
    }
}
@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(-1deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(1deg); 
    }
}

/* Target the container that holds BOTH elements */
.image-container {
    animation: float-together 4s ease-in-out infinite;
}

/* Remove any separate animations from image/border */
.profile-image, .image-decoration {
    animation: none !important;
}

/* New animation for the entire container */
@keyframes float-together {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(-5px, -15px);
    }
    75% {
        transform: translate(5px, -10px);
    }
}