:root {
    --primary-color: #2c3e50;
    --secondary-color: #1abc9c;
    --accent-color: #e74c3c;
    --purple-accent: #9b59b6;
    --blue-accent: #3498db;
    --text-color: #2d3436;
    --light-text: #ffffff;
    --background-color: #ffffff;
    --secondary-bg: #f8f9fa;
    --dark-bg: #2c3e50;
    --card-bg: #ffffff;
    --border-color: #e0e6ed;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-colored: 0 8px 24px rgba(26, 188, 156, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-code: 'Source Code Pro', monospace;
    --gradient-primary: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
    --gradient-secondary: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-accent: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-purple: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, rgba(26, 188, 156, 0.15) 0px, transparent 50%),
                      radial-gradient(at 80% 0%, rgba(52, 152, 219, 0.15) 0px, transparent 50%),
                      radial-gradient(at 0% 50%, rgba(155, 89, 182, 0.15) 0px, transparent 50%);
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: var(--gradient-mesh);
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

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

a:hover {
    color: var(--accent-color);
}

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

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

section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

section:nth-child(odd) {
    background-color: var(--secondary-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.small-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    display: block;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
    position: relative;
    z-index: 10;
    border: 2px solid transparent;
    box-shadow: var(--shadow-md);
    font-family: var(--font-primary);
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-solid {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

.btn-solid:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-colored), var(--shadow-lg);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-outline:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-4px);
    box-shadow: var(--shadow-colored), var(--shadow-lg);
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-hover {
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.4);
}

/* Hero button specific overrides to ensure visibility */
.hero-buttons .btn {
    white-space: nowrap;
    letter-spacing: 0.5px;
    text-shadow: none;
    font-weight: 600;
}

.hero-buttons .btn-solid {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* HEADER */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

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

.nav-link {
    margin-left: 2rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
}

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

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

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

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 100;
}

.hero h1, 
.hero p, 
.hero .small-title {
    position: relative;
    z-index: 3;
    text-shadow: 0px 1px 3px rgba(255,255,255,0.1);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Geometric Shapes */
.shape {
    position: absolute;
    z-index: 1;
    opacity: 0.8;
}

.shape-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(26, 188, 156, 0.1);
}

.shape-rectangle {
    width: 400px;
    height: 200px;
    background-color: rgba(41, 128, 185, 0.1);
}

/* Hero Shapes */
.hero .shape-circle {
    top: -100px;
    right: 10%;
}

.hero .shape-rectangle {
    bottom: -50px;
    left: 5%;
    transform: rotate(30deg);
}

/* ABOUT */
.about {
    position: relative;
}

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

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

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

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

.about-image img {
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 100%;
}

.about .shape-circle {
    bottom: -150px;
    left: -150px;
}

.about .shape-rectangle {
    top: 20%;
    right: -200px;
    transform: rotate(-20deg);
}

/* EXPERIENCE */
.experience {
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
    width: 50%;
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
    margin-right: 3rem;
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: 0;
    margin-left: 3rem;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item:nth-child(even)::after {
    right: auto;
    left: -10px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.timeline-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.experience .shape-circle {
    top: 20%;
    right: -150px;
}

.experience .shape-rectangle {
    bottom: 10%;
    left: -200px;
    transform: rotate(15deg);
}

/* PROJECTS */
.projects {
    position: relative;
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 1rem;
}

.filter-btn {
    padding: 8px 20px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

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

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

.project-details {
    padding: 1.5rem;
}

.project-title {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.project-description {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #666;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 4px 10px;
    background-color: rgba(26, 188, 156, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

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

.project-link {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.projects .shape-circle {
    bottom: 10%;
    left: -150px;
}

.projects .shape-rectangle {
    top: 15%;
    right: -200px;
    transform: rotate(-25deg);
}

/* SKILLS */
.skills {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.skills-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

.skills-chart-container {
    background: linear-gradient(135deg, rgba(26, 188, 156, 0.05) 0%, rgba(52, 152, 219, 0.05) 100%);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition);
    border: 2px solid rgba(26, 188, 156, 0.1);
    position: sticky;
    top: 100px;
}

.skills-chart-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(26, 188, 156, 0.3);
}

.skills-chart-title {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-align: center;
    font-weight: 600;
}

.skills-chart {
    width: 100%;
    max-width: 350px;
    height: 350px;
    position: relative;
}

.skills-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.skills-category {
    background: white;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-left: 4px solid var(--secondary-color);
}

.skill-category:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--accent-color);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

.skill-category h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--secondary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(26, 188, 156, 0.2);
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
}

.skills-list li:hover {
    background-color: rgba(26, 188, 156, 0.05);
    transform: translateX(3px);
}

.skills-list li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
    min-width: 16px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-icon {
    color: var(--secondary-color);
}

.skills .shape-circle {
    top: 10%;
    right: -150px;
}

.skills .shape-rectangle {
    bottom: 15%;
    left: -200px;
    transform: rotate(25deg);
}

/* Awards Section */
.awards {
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.awards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.award-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.award-year {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.award-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.award-description {
    font-size: 0.95rem;
    color: #666;
}

.awards .shape-circle {
    bottom: 20%;
    right: -150px;
}

.awards .shape-rectangle {
    top: 10%;
    left: -200px;
    transform: rotate(-15deg);
}

/* Contact */
.contact {
    padding: var(--section-padding);
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 188, 156, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
}

.contact-text {
    line-height: 1.4;
}

.contact-label {
    font-size: 0.8rem;
    color: #666;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

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

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: var(--font-primary);
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
}

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

.btn-submit {
    width: 100%;
}

.contact .shape-circle {
    top: 15%;
    left: -150px;
}

.contact .shape-rectangle {
    bottom: 10%;
    right: -200px;
    transform: rotate(25deg);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    transition: color 0.3s;
}

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

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 3rem;
    max-width: 900px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--gray-color);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-details {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.modal-info p {
    margin-bottom: 1.5rem;
    color: var(--gray-color);
}

.modal-info p strong {
    color: var(--dark-color);
    font-weight: 600;
}

.modal-description h3 {
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.8rem;
}

.modal-description h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
}

.modal-description p {
    color: var(--gray-color);
    margin-bottom: 1.5rem;
}

.modal-description ul {
    margin-bottom: 2rem;
}

.modal-description li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.8rem;
    color: var(--gray-color);
}

.modal-description li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tech-tags span {
    background-color: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Media Queries */
@media screen and (max-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .modal-details {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        flex-direction: column;
        background-color: white;
        text-align: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        padding: 2rem 0;
    }

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

    .nav-links li {
        margin: 1.2rem 0;
    }

    .hamburger {
        display: block;
    }

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

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

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

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

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

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

    .about-img {
        margin-bottom: 2rem;
    }

    .timeline::after {
        left: 10px;
    }

    .timeline-item::before {
        left: 3px;
    }

    .footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .awards-container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .project-filters {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate {
    opacity: 0;
}

.animate.active {
    opacity: 1;
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease forwards;
}

.bounce {
    animation: bounce 2s ease infinite;
}

.float {
    animation: float 4s ease-in-out infinite;
}

.rotate {
    animation: rotate 10s linear infinite;
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Animation delays */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* Animate hero elements */
.hero h1 {
    opacity: 0;
    animation: fadeInLeft 1s ease forwards;
}

.hero p {
    opacity: 0;
    animation: fadeInLeft 1s ease forwards 0.3s;
}

/* Make hero buttons fully visible immediately, no fading */
.hero-buttons {
    animation: none;
    opacity: 1;
}

/* Ensure buttons are always completely visible */
.hero-buttons .btn {
    animation: none;
    opacity: 1;
}

.hero .small-title {
    opacity: 0;
    animation: fadeInLeft 1s ease forwards 0.2s;
}

/* Animate geometric shapes */
.shape-circle {
    animation: float 8s ease-in-out infinite;
}

.shape-rectangle {
    animation: rotate 30s linear infinite;
}

/* Project card hover effects */
.project-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.project-image img {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Skill item animations */
.skill-item {
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
}

/* Button hover animations */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.btn:hover::after {
    transform: translateX(0);
}

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

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2 { padding-left: 1rem; padding-right: 1rem; }
.px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-4 { padding-left: 2rem; padding-right: 2rem; }
.px-5 { padding-left: 3rem; padding-right: 3rem; }

/* Stats Section */
.stats {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    border-radius: var(--radius);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--secondary-color);
    opacity: 1;
    display: block;
    margin-top: 5px;
    visibility: visible;
}

@media screen and (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--secondary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease, border 0.3s ease;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
    opacity: 1;
}

a:hover ~ .cursor-outline,
button:hover ~ .cursor-outline {
    transform: translate(-50%, -50%) scale(1.5);
    background-color: rgba(26, 188, 156, 0.1);
    border-color: transparent;
}

/* Scroll Progress Indicator */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1010;
}

.scroll-progress-bar {
    height: 100%;
    background: var(--secondary-color);
    width: 0%;
    transition: width 0.1s ease;
}

/* AI Animation styles */
.ai-animation {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
    z-index: 1;
}

.ai-brain {
    position: relative;
    width: 100%;
    height: 100%;
}

.brain-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(26, 188, 156, 0.05);
    box-shadow: 0 0 30px rgba(26, 188, 156, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: pulse 4s ease-in-out infinite;
}

.neuron {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    box-shadow: 0 0 10px var(--secondary-color);
}

.connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, rgba(26, 188, 156, 0.2), rgba(26, 188, 156, 0.8), rgba(26, 188, 156, 0.2));
    transform-origin: left center;
}

.pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(26, 188, 156, 0.8);
    box-shadow: 0 0 10px rgba(26, 188, 156, 0.6);
}

/* Neuron positions */
.n1 { top: 30%; left: 20%; animation: float 3s ease-in-out infinite; }
.n2 { top: 70%; left: 30%; animation: float 4s ease-in-out infinite 0.5s; }
.n3 { top: 40%; left: 60%; animation: float 3.5s ease-in-out infinite 1s; }
.n4 { top: 20%; left: 70%; animation: float 4.5s ease-in-out infinite 0.7s; }
.n5 { top: 80%; left: 65%; animation: float 3.8s ease-in-out infinite 1.2s; }
.n6 { top: 50%; left: 50%; animation: float 3.2s ease-in-out infinite 0.3s; }

/* Connection positions and animations */
.c1 {
    width: 100px;
    top: 35%;
    left: 25%;
    transform: rotate(30deg);
    animation: connectionPulse 3s infinite 0.2s;
}

.c2 {
    width: 80px;
    top: 65%;
    left: 35%;
    transform: rotate(-20deg);
    animation: connectionPulse 3.5s infinite 0.7s;
}

.c3 {
    width: 120px;
    top: 25%;
    left: 30%;
    transform: rotate(70deg);
    animation: connectionPulse 4s infinite 1.1s;
}

.c4 {
    width: 90px;
    top: 75%;
    left: 40%;
    transform: rotate(-60deg);
    animation: connectionPulse 3.2s infinite 0.5s;
}

.c5 {
    width: 110px;
    top: 50%;
    left: 35%;
    transform: rotate(10deg);
    animation: connectionPulse 3.8s infinite 0.9s;
}

/* Pulse animations */
.p1 {
    top: 45%;
    left: 30%;
    animation: movePulse 4s infinite linear, pulseFade 4s infinite;
}

.p2 {
    top: 65%;
    left: 45%;
    animation: movePulse 3.5s infinite linear 1s, pulseFade 3.5s infinite 1s;
}

.p3 {
    top: 25%;
    left: 50%;
    animation: movePulse 4.5s infinite linear 0.5s, pulseFade 4.5s infinite 0.5s;
}

.ai-text {
    position: absolute;
    font-size: 120px;
    font-weight: 800;
    color: rgba(26, 188, 156, 0.15);
    z-index: -1;
    font-family: var(--font-heading);
    animation: fadeInOut 5s infinite;
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes movePulse {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(150px);
    }
}

@keyframes pulseFade {
    0%, 100% {
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
}

/* Make AI animation responsive */
@media screen and (max-width: 992px) {
    .hero .container {
        flex-direction: column;
    }
    
    .ai-animation {
        margin-top: 3rem;
        margin-left: 0;
        width: 250px;
        height: 250px;
    }
    
    .ai-text {
        font-size: 100px;
    }
}

@media screen and (max-width: 576px) {
    .ai-animation {
        width: 200px;
        height: 200px;
    }
    
    .ai-text {
        font-size: 80px;
    }
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    border-radius: 50px;
    padding: 12px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    z-index: 1000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.floating-nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.floating-nav-link {
    color: var(--light-text);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.floating-nav-link:hover {
    background-color: var(--secondary-color);
    color: var(--light-text);
    transform: translateY(-3px);
}

.floating-nav-link.active {
    background-color: var(--secondary-color);
    color: var(--light-text);
}

@media screen and (max-width: 768px) {
    .floating-nav {
        bottom: 20px;
        right: 20px;
        padding: 10px 15px;
    }
    
    .floating-nav-list {
        gap: 10px;
    }
    
    .floating-nav-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Work Process */
.work-process {
    background-color: var(--secondary-bg);
    position: relative;
}

.process-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 3rem;
}

.process-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 1000px;
}

.process-step {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.step-connector {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    top: 40px;
    left: 0;
    right: 0;
    z-index: 1;
    display: none;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(26, 188, 156, 0.3);
    transition: all 0.3s ease;
}

.step-number i {
    font-size: 2rem;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

.step-description {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.8;
}

.process-step:hover .step-number {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 10px 20px rgba(26, 188, 156, 0.4);
}

.process-details {
    margin-top: 3rem;
    text-align: center;
    max-width: 800px;
}

.process-heading {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.process-text {
    margin-bottom: 2rem;
}

@media screen and (max-width: 992px) {
    .process-steps {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-connector {
        width: 3px;
        height: 100%;
        left: 40px;
        top: 0;
        right: auto;
        background: linear-gradient(180deg, var(--secondary-color), var(--primary-color));
    }
    
    .process-step {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 0;
        gap: 1.5rem;
    }
    
    .step-title, .step-description {
        text-align: left;
    }
}

/* Skills section updates for radar chart */
@media screen and (max-width: 1200px) {
    .skills-container {
        grid-template-columns: 350px 1fr;
        gap: 3rem;
    }
}

@media screen and (max-width: 992px) {
    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-chart-container {
        position: relative;
        top: 0;
    }
    
    .skills-chart {
        max-width: 350px;
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .skills-categories {
        grid-template-columns: 1fr;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .skills-chart-container {
        padding: 2rem;
    }
}

/* Certifications Section */
.certifications {
    position: relative;
    overflow: hidden;
}

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

.cert-card {
    background-color: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--accent-color);
}

.cert-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.cert-card:hover .cert-icon {
    color: var(--accent-color);
    transform: scale(1.1);
}

.cert-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: 500;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.cert-tag {
    padding: 4px 12px;
    background-color: rgba(26, 188, 156, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--secondary-color);
    border: 1px solid rgba(26, 188, 156, 0.3);
}

.certifications .shape-circle {
    top: 15%;
    right: -150px;
}

.certifications .shape-rectangle {
    bottom: 20%;
    left: -200px;
    transform: rotate(-20deg);
}

/* Project Modal */
.project-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content-wrapper {
    background-color: var(--background-color);
    margin: 2% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    padding: 1rem 1.5rem;
    background: var(--background-color);
    z-index: 10;
    border-radius: 0 var(--radius-lg) 0 0;
    transition: var(--transition);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.modal-project-content {
    padding: 2rem 3rem 3rem;
}

.modal-project-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    clear: both;
}

.modal-project-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.modal-project-date,
.modal-project-role {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.modal-project-date::before {
    content: "📅 ";
}

.modal-project-role::before {
    content: "👤 ";
}

.modal-project-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.modal-section {
    background-color: var(--secondary-bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--secondary-color);
}

.modal-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section h3 i {
    color: var(--secondary-color);
}

.modal-challenge ul,
.modal-implementation ul,
.modal-impact ul {
    list-style: none;
    padding-left: 0;
}

.modal-challenge li,
.modal-implementation li,
.modal-impact li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.modal-challenge li::before,
.modal-implementation li::before,
.modal-impact li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.modal-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.modal-tech-tags .tech-tag {
    padding: 8px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.modal-tech-tags .tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@media screen and (max-width: 768px) {
    .modal-content-wrapper {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-project-content {
        padding: 1.5rem;
    }
    
    .modal-project-title {
        font-size: 1.8rem;
    }
    
    .modal-project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
} 