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

:root {
    /* Light Theme Colors */
    --bg-primary: #ffffff;
    --bg-secondary: rgba(255, 255, 255, 0.5);
    --bg-card: #ffffff;
    --text-primary: #343a40;
    --text-secondary: #6c757d;
    --text-tertiary: #495057;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: #343a40;
    --footer-text: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --gradient-bg: rgba(1, 195, 142, 0.05);
    --modal-bg: rgba(0, 0, 0, 0.8);
    --shape-opacity: 0.1;
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #1a1a2e;
    --bg-secondary: rgba(22, 22, 38, 0.8);
    --bg-card: #16213e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-tertiary: #d4d4d8;
    --navbar-bg: rgba(26, 26, 46, 0.95);
    --footer-bg: #0f0f1e;
    --footer-text: #e4e4e7;
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --gradient-bg: rgba(1, 195, 142, 0.08);
    --modal-bg: rgba(0, 0, 0, 0.9);
    --shape-opacity: 0.15;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background Gradient Effect */
.background-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #01c38e 0%, #29e9b8 100%);
    opacity: 0.05;
    z-index: -1;
    filter: blur(100px);
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.2) rotate(5deg);
        opacity: 0.08;
    }
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(1, 195, 142, var(--shape-opacity)), rgba(41, 233, 184, var(--shape-opacity)));
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 15%;
    animation: float2 25s ease-in-out infinite;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-3 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 20%;
    animation: float3 18s ease-in-out infinite;
}

.shape-4 {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 25%;
    animation: float4 22s ease-in-out infinite;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
}

.shape-5 {
    width: 180px;
    height: 180px;
    bottom: 10%;
    right: 10%;
    animation: float5 15s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, -50px) rotate(90deg);
    }
    50% {
        transform: translate(100px, 0) rotate(180deg);
    }
    75% {
        transform: translate(50px, 50px) rotate(270deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(-80px, 80px) rotate(120deg) scale(1.2);
    }
    66% {
        transform: translate(80px, -80px) rotate(240deg) scale(0.8);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-100px, -100px) scale(1.5);
    }
}

@keyframes float4 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-60px, 60px) rotate(-90deg);
    }
    50% {
        transform: translate(-120px, 0) rotate(-180deg);
    }
    75% {
        transform: translate(-60px, -60px) rotate(-270deg);
    }
}

@keyframes float5 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(50px, -80px) rotate(180deg) scale(1.3);
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px var(--shadow-medium);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: slideDown 0.8s ease;
}

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

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #01c38e, #29e9b8, #01c38e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #01c38e, #29e9b8);
    transition: width 0.3s ease;
}

.nav-menu li a:hover::after {
    width: 100%;
}

.nav-menu li a:hover {
    color: #01c38e;
    animation: linkBounce 0.5s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle-track {
    width: 60px;
    height: 30px;
    background: linear-gradient(135deg, #01c38e, #29e9b8);
    border-radius: 30px;
    position: relative;
    box-shadow: 0 4px 15px rgba(1, 195, 142, 0.3);
    transition: all 0.3s ease;
}

[data-theme="dark"] .theme-toggle-track {
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.theme-toggle-thumb {
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(30px);
    background: #1a1a2e;
}

.theme-icon {
    width: 16px;
    height: 16px;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    color: #f59e0b;
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(180deg) scale(0);
}

.moon-icon {
    color: #3b82f6;
    opacity: 0;
    transform: rotate(-180deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #fbbf24;
}

/* Sparkle effect on theme toggle */
@keyframes sparkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.theme-toggle:hover .theme-toggle-track {
    box-shadow: 0 6px 20px rgba(1, 195, 142, 0.4);
    animation: sparkle 1.5s ease infinite;
}

[data-theme="dark"] .theme-toggle:hover .theme-toggle-track {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 20px 50px;
    background: linear-gradient(135deg, rgba(1, 195, 142, 0.05) 0%, rgba(41, 233, 184, 0.05) 100%);
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #01c38e, #29e9b8, #01c38e);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitle 2s ease-in-out, gradientFlow 4s ease infinite;
}

@keyframes heroTitle {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1.5s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.5s ease 0.6s both;
}

.hero-buttons .btn:nth-child(1) {
    animation: bounceIn 1s ease 0.9s both;
}

.hero-buttons .btn:nth-child(2) {
    animation: bounceIn 1s ease 1.1s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, #01c38e, #29e9b8);
    color: white;
    box-shadow: 0 4px 15px rgba(1, 195, 142, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(1, 195, 142, 0.4);
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 6px 25px rgba(1, 195, 142, 0.4);
    }
    50% {
        box-shadow: 0 6px 35px rgba(1, 195, 142, 0.6);
    }
}

.btn-secondary {
    border: 2px solid #01c38e;
    color: #01c38e;
    background: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #01c38e, #29e9b8);
    color: white;
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #01c38e, #29e9b8);
    border-radius: 2px;
}

/* About Section */
.about-section {
    background: var(--bg-secondary);
}

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

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-tertiary);
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateX(-50px);
    filter: blur(5px);
    position: relative;
    overflow: hidden;
}

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(1, 195, 142, 0.1), transparent);
    transition: left 0.6s ease;
}

.highlight-item.visible {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

.highlight-item:hover {
    transform: translateY(-8px) translateX(5px) scale(1.02);
    box-shadow: 0 12px 30px var(--shadow-medium), 0 0 20px rgba(1, 195, 142, 0.15);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(1, 195, 142, 0.05) 100%);
}

.highlight-item:hover::before {
    left: 100%;
}

.highlight-icon {
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(1, 195, 142, 0));
}

.highlight-item:hover .highlight-icon {
    transform: scale(1.3) rotate(360deg);
    filter: drop-shadow(0 0 10px rgba(1, 195, 142, 0.5));
    animation: iconPulse 1.5s ease infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1.3) rotate(360deg);
    }
    50% {
        transform: scale(1.4) rotate(360deg);
    }
}

.highlight-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.highlight-item:hover strong {
    color: #01c38e;
    transform: translateX(5px);
}

.highlight-item strong::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #01c38e, #29e9b8);
    transition: width 0.4s ease;
}

.highlight-item:hover strong::after {
    width: 100%;
}

.highlight-item p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

.highlight-item:hover p {
    color: var(--text-primary);
}

/* Staggered animation delays for highlight items */
.highlight-item:nth-child(1) {
    transition-delay: 0.1s;
}

.highlight-item:nth-child(2) {
    transition-delay: 0.2s;
}

.highlight-item:nth-child(3) {
    transition-delay: 0.3s;
}

.highlight-item:nth-child(4) {
    transition-delay: 0.4s;
}

.highlight-item:nth-child(5) {
    transition-delay: 0.5s;
}

/* Skills Section */
.skills-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

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

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 10px 30px rgba(1, 195, 142, 0.2);
    animation: cardShake 0.5s ease;
}

@keyframes cardShake {
    0%, 100% {
        transform: translateY(-5px) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(1deg);
    }
    75% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

.skill-card i {
    color: #01c38e;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-card:hover i {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(10deg);
    }
}

.skill-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #01c38e, #29e9b8, #01c38e);
    background-size: 200% 100%;
    border-radius: 5px;
    width: 0;
    transition: width 1s ease;
    animation: progressShimmer 2s ease infinite;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shine 2s ease infinite;
}

@keyframes progressShimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Projects Section */
.projects-section {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: projectPulse 1s ease infinite;
}

@keyframes projectPulse {
    0%, 100% {
        transform: translateY(-10px) scale(1.02);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}

.project-header {
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-header i {
    color: white;
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.project-card:hover .project-header i {
    animation: iconJump 0.6s ease;
}

@keyframes iconJump {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) scale(1.15) rotate(10deg);
    }
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tags span {
    background: linear-gradient(135deg, rgba(1, 195, 142, 0.1), rgba(41, 233, 184, 0.1));
    color: #01c38e;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-tags span:hover {
    background: linear-gradient(135deg, #01c38e, #29e9b8);
    color: white;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(1, 195, 142, 0.3);
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #01c38e;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    gap: 0.8rem;
    color: #29e9b8;
}

.project-link i {
    width: 16px;
    height: 16px;
}

/* Insights Section */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateX(10px) scale(1.01);
    box-shadow: 0 10px 30px rgba(1, 195, 142, 0.2);
}

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

.article-image {
    overflow: hidden;
}

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

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

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

.tag {
    background: linear-gradient(135deg, rgba(1, 195, 142, 0.1), rgba(41, 233, 184, 0.1));
    color: #01c38e;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.article-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.article-meta i {
    width: 16px;
    height: 16px;
}

.article-content p {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #01c38e;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    gap: 0.8rem;
}

.read-more i {
    width: 16px;
    height: 16px;
}

/* Certifications Section */
.certifications-section {
    background: var(--bg-secondary);
    padding: 5rem 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cert-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 2rem;
    padding-right: 5rem;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    border-left: 4px solid transparent;
    min-height: 280px;
}

.cert-card[data-color="#4285f4"] {
    border-left-color: #4285f4;
}

.cert-card[data-color="#ff7a59"] {
    border-left-color: #ff7a59;
}

.cert-card[data-color="#1877f2"] {
    border-left-color: #1877f2;
}

.cert-card[data-color="#0a0a23"] {
    border-left-color: #0a0a23;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.cert-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(1, 195, 142, 0.1), rgba(41, 233, 184, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cert-badge i {
    width: 22px;
    height: 22px;
    color: #01c38e;
}

.cert-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cert-top {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.cert-content h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    margin: 0;
    padding-right: 0.5rem;
}

.cert-year {
    background: rgba(1, 195, 142, 0.1);
    color: #01c38e;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    width: fit-content;
}

.cert-issuer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cert-issuer i {
    width: 16px;
    height: 16px;
    color: #01c38e;
    flex-shrink: 0;
}

.cert-content p {
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.cert-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #01c38e;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
}

.cert-link:hover {
    gap: 0.75rem;
    transform: translateX(5px);
}

.cert-link i {
    width: 16px;
    height: 16px;
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.contact-intro {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.contact-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border-radius: 50px;
    box-shadow: 0 5px 20px var(--shadow-light);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(1, 195, 142, 0.2);
}

.contact-item i {
    color: #01c38e;
}

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

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #01c38e;
    text-decoration: none;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) rotate(360deg);
}

/* LinkedIn Brand Color */
.social-linkedin:hover {
    background: #0077b5;
    color: white;
    box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

/* GitHub Brand Color */
.social-github:hover {
    background: #333;
    color: white;
    box-shadow: 0 8px 25px rgba(51, 51, 51, 0.4);
}

/* Twitter Brand Color */
.social-twitter:hover {
    background: #1DA1F2;
    color: white;
    box-shadow: 0 8px 25px rgba(29, 161, 242, 0.4);
}

/* Instagram Brand Gradient */
.social-instagram:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    color: white;
    box-shadow: 0 8px 25px rgba(253, 29, 29, 0.4);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    text-align: center;
    padding: 2rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-bg);
    z-index: 2000;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: #f8f9fa;
    transform: rotate(90deg);
}

#modalBody {
    padding: 3rem;
}

.case-study-header {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.case-study-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.case-study-overview {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.key-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.result-card {
    background: linear-gradient(135deg, rgba(1, 195, 142, 0.1), rgba(41, 233, 184, 0.1));
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
}

.result-number {
    font-size: 2rem;
    font-weight: 700;
    color: #01c38e;
    margin-bottom: 0.5rem;
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.highlights-section,
.testimonial-section {
    margin: 2rem 0;
}

.highlights-section h3,
.testimonial-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.highlights-section ul {
    list-style: none;
    padding-left: 0;
}

.highlights-section li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-tertiary);
}

.highlights-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #01c38e;
    font-weight: 700;
}

.testimonial-block {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    border-left: 4px solid #01c38e;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-tertiary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.testimonial-author {
    color: var(--text-primary);
    font-weight: 600;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Stagger animation for multiple elements */
.fade-in-up:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in-up:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in-up:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in-up:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in-up:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in-up:nth-child(6) {
    transition-delay: 0.6s;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: rippleAnimation 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnimation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* 3D Card Tilt Effect */
.project-card,
.skill-card,
.article-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation Link Transition */
.nav-menu a {
    transition: all 0.3s ease, letter-spacing 0.3s ease;
}

/* Magnetic Button Effect */
.btn {
    transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Disable complex animations on mobile for better performance */
    .floating-shapes {
        display: none;
    }

    .shape {
        animation: none;
    }

    .background-gradient {
        animation: none;
    }

    .skill-card i,
    .project-header i {
        animation: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--navbar-bg);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 10px 30px var(--shadow-medium);
        transition: left 0.3s ease;
    }

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 250px;
        margin: 0 auto;
    }

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

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

    .article-item {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 200px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cert-card {
        padding: 1.5rem;
        padding-right: 4rem;
        min-height: auto;
    }

    .cert-badge {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
    }

    .cert-badge i {
        width: 20px;
        height: 20px;
    }

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

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

    .cert-logo {
        margin: 0 auto;
    }

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

    #modalBody {
        padding: 2rem 1.5rem;
    }

    .case-study-title {
        font-size: 2rem;
    }

    .key-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
