/* Variables */
:root {
    --primary-color: #2563eb;
    --primary-color-rgb: 37, 99, 235;
    --primary-light: #3b82f6;
    --primary-light-rgb: 59, 130, 246;
    --primary-dark: #1d4ed8;
    --primary-dark-rgb: 29, 78, 216;
    --secondary-color: #64748b;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --gray-color: #e2e8f0;
    --success-color: #22c55e;
    --warning-color: #eab308;
    --danger-color: #ef4444;
    --transition: all 0.3s ease;
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary-color: #3b82f6;
    --primary-color-rgb: 59, 130, 246;
    --primary-light: #60a5fa;
    --primary-light-rgb: 96, 165, 250;
    --primary-dark: #2563eb;
    --primary-dark-rgb: 37, 99, 235;
    --secondary-color: #94a3b8;
    --dark-color: #f8fafc;
    --light-color: #0f172a;
    --gray-color: #1e293b;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    transition: var(--transition);
}

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

/* Navbar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.3);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: var(--transition);
    position: relative;
}

/* Add margin between nav items for laptop screens */
@media (min-width: 992px) {
    .nav-item {
        margin: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.5rem 1.2rem;
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 30px;
        background: rgba(var(--primary-color-rgb), 0.1);
        transform: scale(0.8);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-link:hover::before {
        transform: scale(1);
        opacity: 1;
    }
}

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

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

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

/* Active nav link styles */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

@media (max-width: 991px) {
    .navbar-nav {
        padding: 1rem 0;
    }
    
    .nav-item {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .nav-link:hover {
        background: rgba(var(--primary-color-rgb), 0.1);
    }
}

/* Home Section */
#home {
    padding-top: 5rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
}

.home-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.typed-text {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.home-img {
    position: relative;
    width: 380px;
    height: 380px;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
}

.home-img::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    opacity: 0.15;
}

.home-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.home-content {
    position: relative;
    z-index: 1;
}

.home-social-links {
    display: flex;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
}

.home-social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #2c3e50;
}

.home-social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.home-social-link.github:hover {
    background-color: #333;
}

.home-social-link.linkedin:hover {
    background-color: #0077b5;
}

.home-social-link.instagram:hover {
    background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
}

.home-social-link.whatsapp:hover {
    background-color: #25d366;
}

.home-social-link.email:hover {
    background-color: #ea4335;
}

@media (min-width: 992px) {
    .home-social-links {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .home-img {
        width: 300px;
        height: 300px;
        margin-bottom: 2rem;
    }

    .home-content h1 {
        font-size: 2.2rem;
    }

    .home-content h2 {
        font-size: 1.8rem;
    }

    .home-content .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .home-img {
        width: 280px;
        height: 280px;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content h2 {
        font-size: 1.6rem;
    }

    .home-content .lead {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 2rem;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

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

/* Section Base Styles */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary-color), transparent);
    opacity: 0.2;
}

/* Skills Section */
#skills {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(59, 130, 246, 0.1) 100%);
    padding: 4rem 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill-item {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.skill-item::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.13) 0%, 
        rgba(255, 255, 255, 0.13) 77%, 
        rgba(255, 255, 255, 0.5) 92%, 
        rgba(255, 255, 255, 0.0) 100%
    );
    top: -50%;
    left: -50%;
    transform: rotate(45deg);
    z-index: -1;
    transition: all 0.4s ease;
    opacity: 0;
}

.skill-item:hover {
    transform: translateY(-7px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover::after {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

/* Specific hover effects for different technologies */
.skill-item:hover i.fa-html5 {
    color: #E44D26;
    text-shadow: 0 0 15px rgba(228, 77, 38, 0.5);
    transform: rotate(-10deg) scale(1.2);
}

.skill-item:hover i.fa-css3-alt {
    color: #264DE4;
    text-shadow: 0 0 15px rgba(38, 77, 228, 0.5);
    transform: rotate(10deg) scale(1.2);
}

.skill-item:hover i.fa-js {
    color: #F7DF1E;
    text-shadow: 0 0 15px rgba(247, 223, 30, 0.5);
    transform: translateY(-5px) scale(1.2);
}

.skill-item:hover i.fa-react {
    color: #61DAFB;
    text-shadow: 0 0 15px rgba(97, 218, 251, 0.5);
    animation: spin 4s linear infinite;
}

.skill-item:hover i.fa-node-js {
    color: #339933;
    text-shadow: 0 0 15px rgba(51, 153, 51, 0.5);
    transform: scale(1.2) translateY(-2px);
}

.skill-item:hover i.fa-python {
    color: #3776AB;
    text-shadow: 0 0 15px rgba(55, 118, 171, 0.5);
    animation: bounce 0.6s ease infinite;
}

.skill-item:hover i.fa-git-alt {
    color: #F05032;
    text-shadow: 0 0 15px rgba(240, 80, 50, 0.5);
    transform: scale(1.2) rotate(360deg);
}

.skill-item:hover i.fa-bootstrap {
    color: #7952B3;
    text-shadow: 0 0 15px rgba(121, 82, 179, 0.5);
    animation: pulse 1s ease infinite;
}

.skill-item i, 
.skill-item img {
    font-size: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.skill-item img {
    width: 2.5rem;
    height: 2.5rem;
}

.skill-item:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(var(--primary-color-rgb), 0.5));
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-item:hover .skill-name {
    color: var(--primary-color);
    transform: scale(1.05);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes spin {
    from {
        transform: rotate(0deg) scale(1.2);
    }
    to {
        transform: rotate(360deg) scale(1.2);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0) scale(1.2);
    }
    50% {
        transform: translateY(-10px) scale(1.2);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1.2);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
        padding: 0.5rem;
    }

    .skill-item {
        padding: 1.25rem;
    }

    .skill-item i,
    .skill-item img {
        font-size: 2rem;
        width: 2rem;
        height: 2rem;
    }

    .skill-name {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .skills-container {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Project Cards */
.project-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-img {
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tech-stack span {
    padding: 0.25rem 0.75rem;
    background-color: var(--gray-color);
    border-radius: 9999px;
    font-size: 0.875rem;
}

/* Experience Section */
#experience {
    position: relative;
    background-color: var(--light-color);
}

.experience-container {
    max-width: 800px;
    margin: 0 auto;
}

.experience-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.company-info {
    margin-bottom: 1rem;
}

.company-name {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.experience-intro {
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.experience-achievements {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-achievements li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-size: 0.95rem;
    line-height: 1.6;
}

.experience-achievements li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-card {
        padding: 1.5rem;
    }

    .experience-header h3 {
        font-size: 1.25rem;
    }

    .experience-intro,
    .experience-achievements li {
        font-size: 0.9rem;
    }
}

/* Certification Cards */
.certification-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.certification-card {
    background-color: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
}

.certification-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Achievement Cards */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.achievement-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.achievement-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.achievement-icon i {
    font-size: 1.4rem;
    color: white;
    transition: transform 0.3s ease;
}

.achievement-content h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.achievement-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.achievement-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary-color);
    font-size: 0.85rem;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.tech-pills span {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.achievement-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.75rem 0;
}

.achievement-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--primary-color);
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.achievement-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.achievement-btn.coming-soon {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    cursor: default;
    opacity: 0.8;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
}

.achievement-btn.coming-soon:hover {
    background: var(--secondary-color);
    color: white;
    transform: none;
}

.achievement-badge {
    position: absolute;
    top: -45px;
    right: 0;
}

.achievement-badge span {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0.5rem;
    }

    .achievement-card {
        padding: 1.25rem;
    }

    .achievement-icon {
        width: 40px;
        height: 40px;
    }

    .achievement-icon i {
        font-size: 1.2rem;
    }

    .achievement-content h3 {
        font-size: 1.1rem;
    }

    .achievement-description {
        font-size: 0.85rem;
    }

    .achievement-btn {
        width: 100%;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Contact Form */
.contact-form {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-floating {
    position: relative;
}

.form-floating > .form-control,
.form-floating > .form-control-plaintext {
    height: calc(3.5rem + 2px);
    line-height: 1.25;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1rem 0.75rem;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity .1s ease-in-out, transform .1s ease-in-out;
    color: var(--secondary-color);
}

.form-floating > .form-control::placeholder {
    color: transparent;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: .65;
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    background-color: white;
    padding: 0 0.5rem;
    height: auto;
}

.form-control {
    border: 2px solid var(--gray-color);
    border-radius: 0.5rem;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(var(--primary-color-rgb), 0.15);
}

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

.contact-form .btn-primary {
    padding: 0.75rem 2rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.3);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-floating > .form-control {
        height: calc(3.2rem + 2px);
    }
    
    .contact-form .btn-primary {
        width: 100%;
        padding: 0.6rem 1.5rem;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--gray-color);
    color: var(--dark-color);
    transition: var(--transition);
}

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

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(var(--primary-color-rgb), 0.25);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    animation: bounce 2s infinite;
}

.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(var(--primary-color-rgb), 0.4);
}

.scroll-to-top i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-2px);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .scroll-to-top i {
        font-size: 1rem;
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--dark-color);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1000;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition-duration: 1s;
    transition-property: opacity, transform;
}

[data-aos="fade-up"] {
    transform: translateY(100px);
}

[data-aos="fade-down"] {
    transform: translateY(-100px);
}

[data-aos="fade-right"] {
    transform: translateX(-100px);
}

[data-aos="fade-left"] {
    transform: translateX(100px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translate(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .home-img {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .home-img {
        width: 280px;
        height: 280px;
        margin-top: 2rem;
    }
}

@media (max-width: 576px) {
    .home-img {
        width: 240px;
        height: 240px;
    }
}

@media (max-width: 767px) {
    .skill-item {
        padding: 1rem;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .skill-item i {
        font-size: 1.5rem;
    }
}

/* Section Title with Image */
.section-title-wrapper {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.title-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.title-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(var(--primary-color-rgb), 0.5),
        rgba(var(--primary-color-rgb), 0.2)
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.title-icon:hover::before {
    opacity: 1;
}

.title-icon:hover {
    transform: translateY(-5px);
}

.title-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(31%) sepia(97%) saturate(1789%) hue-rotate(211deg) brightness(97%) contrast(89%);
    transition: transform 0.3s ease;
}

.title-icon:hover .title-image {
    transform: scale(1.1);
}

.section-title {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-light));
    border-radius: 3px;
}

@media (max-width: 768px) {
    .section-title-wrapper {
        margin-bottom: 2rem;
    }

    .title-icon {
        width: 60px;
        height: 60px;
    }

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

.home-social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.home-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.home-social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}

.home-social-link.github:hover {
    color: #333;
    background: rgba(51, 51, 51, 0.1);
    box-shadow: 0 0 20px rgba(51, 51, 51, 0.6);
}

.home-social-link.linkedin:hover {
    color: #0077b5;
    background: rgba(0, 119, 181, 0.1);
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.6);
}

.home-social-link.instagram:hover {
    color: #e4405f;
    background: rgba(228, 64, 95, 0.1);
    box-shadow: 0 0 20px rgba(228, 64, 95, 0.6);
}

.home-social-link.whatsapp:hover {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.6);
}

@media (max-width: 576px) {
    .home-social-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .home-social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* About Section */
#about {
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.1;
    top: -100px;
    right: -100px;
    animation: moveGradient 15s ease-in-out infinite;
}

@keyframes moveGradient {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(50px, 50px);
    }
    50% {
        transform: translate(0, 100px);
    }
    75% {
        transform: translate(-50px, 50px);
    }
}

.about-image {
    position: relative;
    padding: 1rem;
    max-width: 300px;
    margin: 0 auto;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image img {
    position: relative;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    filter: brightness(1);
}

.about-image:hover img {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(var(--primary-color-rgb), 0.2);
    filter: brightness(1.1);
}

.about-shape {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    border-radius: 15px;
    transform: rotate(-3deg);
    z-index: 1;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.about-image:hover .about-shape {
    transform: rotate(-8deg) scale(1.1);
    opacity: 1;
}

.about-content {
    padding: 1rem;
    position: relative;
}

.about-content::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(var(--primary-color-rgb), 0.1), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.about-content:hover::before {
    opacity: 1;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 500;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.about-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--secondary-color);
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards;
}

.about-content p:nth-child(2) {
    animation-delay: 0.2s;
}

.about-content p:nth-child(3) {
    animation-delay: 0.4s;
}

.about-content p:nth-child(4) {
    animation-delay: 0.6s;
}

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

.about-content .btn {
    padding: 0.6rem 1.2rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.8s;
}

.about-content .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.about-content .btn:hover::before {
    width: 300px;
    height: 300px;
}

.about-content .btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

.about-content .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-color-rgb), 0.3);
}

/* Responsive styles remain the same */
@media (max-width: 991px) {
    .about-image {
        max-width: 250px;
        margin: 0 auto 2rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-content .lead {
        font-size: 1rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .about-image {
        padding: 0.75rem;
        max-width: 200px;
    }
    
    .about-content {
        padding: 0.75rem;
    }
    
    .about-content .lead {
        font-size: 0.95rem;
    }
    
    .about-content p {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .about-content .btn {
        display: block;
        margin-bottom: 0.75rem;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Certificates Section */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 1rem;
}

.certificate-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    aspect-ratio: 4/3;
}

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

.certificate-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.certificate-card:hover .certificate-image img {
    transform: scale(1.1);
}

.certificate-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: white;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.certificate-overlay h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.certificate-overlay p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.certificate-card:hover .certificate-overlay h4,
.certificate-card:hover .certificate-overlay p {
    transform: translateY(0);
}

.view-certificate {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transform: translateY(20px);
    transition: all 0.4s ease 0.2s;
}

.view-certificate:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(0) scale(1.05);
}

.certificate-card:hover .view-certificate {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .certificate-overlay {
        padding: 1rem;
    }

    .certificate-overlay h4 {
        font-size: 1.1rem;
    }

    .certificate-overlay p {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .view-certificate {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.project-details {
    padding: 1.5rem;
}

.project-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.project-details p {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

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

.project-content {
    padding: 2rem;
    color: white;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    width: 100%;
}

.project-card:hover .project-content {
    transform: translateY(0);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-stack span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.project-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-demo,
.btn-code {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-demo {
    background: var(--primary-color);
    color: white;
}

.btn-code {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-demo:hover,
.btn-code:hover {
    transform: translateY(-2px);
    color: white;
}

.btn-demo:hover {
    background: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.4);
}

.btn-code:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-details h3 {
        font-size: 1.2rem;
    }

    .project-details p {
        font-size: 0.85rem;
    }

    .tech-stack {
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .tech-stack span {
        padding: 0.25rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn-demo,
    .btn-code {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Coming Soon Section */
.coming-soon {
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.coming-soon-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: rocket 2s ease-in-out infinite;
}

.coming-soon h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.coming-soon p {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

@keyframes rocket {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Enhanced Contact Form */
.contact-wrapper {
    position: relative;
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-decoration {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--primary-color-rgb), 0.05));
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: pulse 4s ease-in-out infinite;
}

.decoration-line {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 45%, rgba(var(--primary-color-rgb), 0.05) 45%, rgba(var(--primary-color-rgb), 0.05) 55%, transparent 55%);
    transform: rotate(-45deg);
    animation: line-move 15s linear infinite;
}

.input-group {
    position: relative;
    transition: all 0.3s ease;
}

.input-group:hover {
    transform: translateY(-2px);
}

.input-group-text {
    background: transparent;
    border-right: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.form-control {
    border-left: none;
}

.form-control:focus ~ .input-group-text {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.input-group .form-floating > .form-control {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .input-group-text {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-floating > .form-control:focus,
.form-floating > .form-control:not(:placeholder-shown) {
    box-shadow: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    border-left: 1px solid var(--gray-color);
}

.input-group-text i {
    width: 16px;
    text-align: center;
}

/* Ensure proper border radius for input groups */
.input-group:not(.has-validation) > :first-child:not(textarea) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group:not(.has-validation) > :last-child:not(textarea) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Fix textarea borders */
.input-group > textarea.form-control {
    border-radius: 0 0.5rem 0.5rem 0;
}

.input-group > textarea.form-control + label {
    margin-left: 42px; /* Width of input-group-text + some spacing */
}

/* Ensure icons are centered */
.input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
}

/* Fix floating labels position */
.form-floating > label {
    left: 0;
    padding-left: 42px; /* Width of input-group-text */
}

/* Active state for input groups */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    transform: scale(.85) translateY(-0.5rem) translateX(0.15rem);
    padding-left: 0.5rem;
}

.btn-submit {
    position: relative;
    padding: 0.75rem 2.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-submit .btn-text {
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-submit .btn-icon {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    padding-right: 3.5rem;
}

.btn-submit:hover .btn-text {
    transform: translateX(-10px);
}

.btn-submit:hover .btn-icon {
    right: 1rem;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
}

@keyframes line-move {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .contact-wrapper {
        padding: 1.5rem;
    }

    .coming-soon {
        padding: 2rem;
    }

    .coming-soon-icon {
        font-size: 3rem;
    }

    .coming-soon h3 {
        font-size: 1.75rem;
    }

    .coming-soon p {
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.9;
    padding: 0 1rem;
}

.footer-contact {
    font-size: 0.9rem;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 1rem;
}

.footer-contact:hover {
    color: white;
    transform: translateY(-2px);
}

.footer-name {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 0.3rem;
}

.footer-name:hover {
    color: white;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .footer-content {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-copyright,
    .footer-contact {
        padding: 0.5rem;
    }
}
