/* Modern Portfolio Styles - Fully Responsive & Card-based Design */

/* CSS Variables for Consistent Breakpoints */
:root {
    --mobile: 480px;
    --tablet: 768px;
    --laptop: 1024px;
    --desktop: 1200px;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    background: #004d40;  /* Dark green background like in the reference */
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #f0e6d2; /* Cream color for headings */
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    text-align: center;
    letter-spacing: 0.5px;
    max-width: 100%;
}

h1 { font-size: clamp(2.5rem, 8vw, 4rem); }
h2 { font-size: clamp(2rem, 6vw, 3rem); }
h3 { font-size: clamp(1.5rem, 4vw, 2rem); }
h4 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
h5 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }
h6 { font-size: clamp(1rem, 2vw, 1.2rem); }

p {
    margin-bottom: 1rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
    line-height: 1.7;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 77, 64, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 4vw, 2rem);
    transition: all 0.3s ease;
    min-height: clamp(60px, 8vh, 80px);
}

/* Modern Navigation Enhancements */

/* Smooth navigation bar resize on scroll */
nav.scrolled {
    padding: clamp(0.4rem, 1vw, 0.6rem) clamp(1rem, 4vw, 2rem);
    background: rgba(0, 77, 64, 0.95);
    backdrop-filter: blur(15px);
}

/* Enhanced focus states for accessibility */
.nav-left a:focus,
.hire-me-btn:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #8bc34a;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Better keyboard navigation */
.nav-left a:focus-visible {
    background: rgba(139, 195, 74, 0.15);
    transform: translateY(-1px);
}

/* Loading animation for menu items */
@media screen and (max-width: 768px) {
    .nav-left.active a {
        animation: slideInUp 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    }
    
    .nav-left a:nth-child(1) { animation-delay: 0.1s; }
    .nav-left a:nth-child(2) { animation-delay: 0.15s; }
    .nav-left a:nth-child(3) { animation-delay: 0.2s; }
    .nav-left a:nth-child(4) { animation-delay: 0.25s; }
    .nav-left a:nth-child(5) { animation-delay: 0.3s; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-left a {
        padding: clamp(0.8rem, 2.5vw, 1.2rem) clamp(1rem, 3vw, 1.5rem);
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .hire-me-btn {
        padding: clamp(0.8rem, 2vw, 1rem) clamp(1.2rem, 3vw, 1.6rem);
        font-size: clamp(0.9rem, 2.2vw, 1rem);
    }
    
    .mobile-menu-toggle {
        width: clamp(28px, 6vw, 32px);
        height: clamp(21px, 4.5vw, 24px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    nav {
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 2px solid #8bc34a;
    }
    
    .nav-left a {
        border: 1px solid transparent;
    }
    
    .nav-left a:hover,
    .nav-left a:focus {
        border-color: #8bc34a;
        background: rgba(139, 195, 74, 0.2);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    nav, .nav-left, .nav-left a, .hire-me-btn, .mobile-menu-toggle span {
        transition: none;
    }
    
    .nav-left a {
        animation: none;
    }
    
    .mobile-menu-toggle:hover {
        transform: none;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: clamp(24px, 4vw, 30px);
    height: clamp(18px, 3.5vw, 21px);
    cursor: pointer;
    z-index: 1001;
    position: relative;
    padding: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.1);
}

.mobile-menu-toggle span {
    display: block;
    height: clamp(2px, 0.5vw, 3px);
    width: 100%;
    background-color: #f0e6d2;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(clamp(6px, 1.5vw, 9px)) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(clamp(-6px, -1.5vw, -9px)) rotate(-45deg);
}

.nav-left {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    align-items: center;
    transition: all 0.3s ease;
}

.nav-left a {
    text-decoration: none;
    color: #f0e6d2;
    font-weight: 500;
    position: relative;
    padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.2rem, 0.5vw, 0.5rem);
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    border-radius: 4px;
}

.nav-left a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #8bc34a; /* Light green accent */
    transition: width 0.3s ease;
}

.nav-left a:hover {
    color: #8bc34a;
    background: rgba(139, 195, 74, 0.1);
    transform: translateY(-1px);
}

.nav-left a:hover::after,
.nav-left a.active::after {
    width: 100%;
}

.nav-left a.active {
    color: #8bc34a;
}

.hire-me-btn {
    background: #8bc34a;
    color: #004d40;
    text-decoration: none;
    padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1rem, 2.5vw, 1.5rem);
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    white-space: nowrap;
}

.hire-me-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
    background: #9ccc65;
}

/* Responsive Navigation */
/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
    nav {
        padding: clamp(0.8rem, 1.8vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    .nav-left {
        gap: clamp(0.8rem, 2.5vw, 1.5rem);
    }
    
    .nav-left a {
        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    }
    
    .hire-me-btn {
        padding: clamp(0.5rem, 1.2vw, 0.7rem) clamp(0.8rem, 2vw, 1.2rem);
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    }
}

/* Tablets */
@media screen and (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        padding: clamp(0.8rem, 2vw, 1rem) clamp(1rem, 3vw, 1.5rem);
    }
    
    .nav-left {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(0, 77, 64, 0.98), rgba(0, 77, 64, 0.95));
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: clamp(1.5rem, 4vw, 2.5rem);
        transform: translateY(-100%);
        opacity: 0;
        z-index: 1000;
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55), 
                    opacity 0.4s ease;
        pointer-events: none;
    }
    
    .nav-left.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .nav-left a {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
        padding: clamp(0.8rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
        border-radius: 8px;
        background: rgba(139, 195, 74, 0.1);
        border: 1px solid transparent;
        transition: all 0.3s ease;
        transform: translateY(20px);
        opacity: 0;
        animation: slideInUp 0.6s ease forwards;
    }
    
    .nav-left a:nth-child(1) { animation-delay: 0.1s; }
    .nav-left a:nth-child(2) { animation-delay: 0.2s; }
    .nav-left a:nth-child(3) { animation-delay: 0.3s; }
    .nav-left a:nth-child(4) { animation-delay: 0.4s; }
    
    .nav-left a:hover {
        background: rgba(139, 195, 74, 0.2);
        border-color: #8bc34a;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(139, 195, 74, 0.3);
    }
    
    .hire-me-btn {
        padding: clamp(0.6rem, 1.5vw, 0.8rem) clamp(1rem, 2.5vw, 1.3rem);
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
}

/* Enhanced Responsive Hero Section */

/* Ultra-wide screens (1400px+) */
@media screen and (min-width: 1400px) {
    .hero-section {
        padding: clamp(8rem, 12vw, 10rem) 2rem 5rem;
    }
    
    .profile-section {
        gap: clamp(4rem, 8vw, 6rem);
        max-width: 1400px;
        margin: 0 auto;
    }
    
    .profile-image {
        width: clamp(450px, 35vw, 700px);
        height: clamp(450px, 35vw, 700px);
    }
    
    .hero-name {
        font-size: clamp(3.5rem, 6vw, 5rem);
    }
    
    .hero-description {
        font-size: clamp(1.2rem, 2vw, 1.4rem);
        max-width: 700px;
    }
}

/* Large tablets (768px - 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) {
    .hero-section {
        padding: clamp(6rem, 8vw, 7rem) 1.5rem 4rem;
        min-height: 95vh;
    }
    
    .profile-section {
        gap: clamp(2rem, 4vw, 3rem);
        flex-direction: row;
    }
    
    .profile-container {
        flex: 0 0 auto;
    }
    
    .profile-info {
        flex: 1;
        min-width: 0;
    }
    
    .profile-image {
        width: clamp(280px, 35vw, 400px);
        height: clamp(280px, 35vw, 400px);
    }
    
    .hero-name {
        font-size: clamp(2.2rem, 5vw, 3rem);
        line-height: 1.1;
    }
    
    .role-container {
        font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    }
    
    .hero-description {
        font-size: clamp(1rem, 2vw, 1.1rem);
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 140px;
        max-width: 200px;
    }
}

/* Small tablets and large phones (481px - 767px) */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .hero-section {
        padding: clamp(5rem, 8vw, 6rem) 1.5rem 3rem;
        min-height: 90vh;
    }
    
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: clamp(1.5rem, 3vw, 2rem);
    }
    
    .profile-image {
        width: clamp(220px, 45vw, 320px);
        height: clamp(220px, 45vw, 320px);
        margin: 0 auto;
    }
    
    .hero-name {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }
    
    .role-container {
        justify-content: center;
        font-size: clamp(1rem, 2.8vw, 1.2rem);
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 2.2vw, 1.05rem);
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-icons-container {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 120px;
        flex: 1;
        max-width: 180px;
    }
}

/* Extra responsive adjustments for very small screens */
@media screen and (max-width: 360px) {
    .hero-section {
        padding: clamp(3rem, 5vw, 4rem) 1rem 2rem;
        min-height: 80vh;
    }
    
    .profile-section {
        gap: clamp(0.8rem, 2vw, 1rem);
    }
    
    .profile-image {
        width: clamp(160px, 45vw, 200px);
        height: clamp(160px, 45vw, 200px);
    }
    
    .hero-name {
        font-size: clamp(1.6rem, 5vw, 2rem);
        line-height: 1.2;
    }
    
    .role-container {
        font-size: clamp(0.9rem, 2.2vw, 1rem);
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .hero-description {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
        line-height: 1.5;
    }
    
    .social-icons-container {
        gap: clamp(0.5rem, 1.5vw, 0.8rem);
        padding: clamp(0.4rem, 1vw, 0.6rem);
        margin: clamp(0.6rem, 1.5vw, 1rem) 0;
    }
    
    .social-icon {
        width: clamp(36px, 6vw, 42px);
        height: clamp(36px, 6vw, 42px);
        min-width: 36px;
        min-height: 36px;
    }
    
    .social-icon img {
        width: clamp(14px, 3vw, 18px);
        height: clamp(14px, 3vw, 18px);
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 220px;
        margin: 0 auto;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-top: 1.2rem;
    }
    
    .stat-item {
        padding: 1rem 0.6rem;
    }
    
    .stat-number {
        font-size: 1.6rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

/* Landscape orientation for mobile devices */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
        padding: clamp(2rem, 4vw, 3rem) 1rem;
    }
    
    .profile-section {
        flex-direction: row;
        gap: clamp(1.5rem, 4vw, 2.5rem);
        align-items: center;
        justify-content: center;
    }
    
    .profile-image {
        width: clamp(120px, 25vw, 200px);
        height: clamp(120px, 25vw, 200px);
    }
    
    .hero-name {
        font-size: clamp(1.5rem, 4vw, 2.2rem);
        margin-bottom: 0.5rem;
    }
    
    .role-container {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: clamp(0.8rem, 2vw, 0.95rem);
        margin-bottom: 1rem;
    }
    
    .social-icons-container {
        margin: 0.8rem 0;
        padding: 0.5rem;
    }
    
    .social-icon {
        width: clamp(32px, 5vw, 40px);
        height: clamp(32px, 5vw, 40px);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.8rem;
        margin-top: 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        min-width: 100px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        margin-top: 1.5rem;
    }
}

/* High DPI displays */
@media screen and (min-resolution: 2dppx) {
    .profile-pic {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles for hero section */
@media print {
    .hero-section {
        padding: 2rem 1rem;
        min-height: auto;
        page-break-inside: avoid;
    }
    
    .profile-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }
    
    .social-icons-container {
        display: none;
    }
    
    .hero-buttons {
        display: none;
    }
    
    .hero-stats {
        display: none;
    }
}

.profile-info {
    max-width: 600px;
    width: 100%;
}

.subtitle {
    color: #a5d6a7; /* Light green accent */
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.8rem;
}

@media (min-width: 768px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary, .btn-secondary {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: #8bc34a;
    color: #004d40;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
    background: #9ccc65;
}

.btn-secondary {
    background: transparent;
    color: #f0e6d2;
    border: 2px solid #8bc34a;
}

.btn-secondary:hover {
    background: rgba(139, 195, 74, 0.1);
    transform: translateY(-3px);
}

/* Hero Stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #8bc34a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #f0e6d2;
}

/* ===== MODERN ABOUT SECTION ===== */
#about {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(0,77,64,0.05) 0%, rgba(139,195,74,0.05) 100%);
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 40%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(139,195,74,0.08) 0%, transparent 70%);
    animation: floatBackground 20s ease-in-out infinite;
    z-index: 0;
}

#about::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 35%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(0,105,92,0.06) 0%, transparent 70%);
    animation: floatBackground 25s ease-in-out infinite reverse;
    z-index: 0;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.about-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    position: relative;
}

.title-line {
    display: inline-block;
    background: linear-gradient(135deg, #ffffff 0%, #e0f2f1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    display: inline-block;
    color: #8bc34a;
    font-size: 1.2em;
    margin: 0 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.about-subtitle {
    position: relative;
    height: 2rem;
    overflow: hidden;
}

.typing-animation {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #b2dfdb;
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
}

.typing-animation::after {
    content: '|';
    color: #8bc34a;
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.about-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Story Section */
.about-story {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: center;
}

.story-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    max-width: 350px;
    background: linear-gradient(135deg, rgba(0,77,64,0.6) 0%, rgba(0,105,92,0.4) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(139,195,74,0.2);
    backdrop-filter: blur(20px);
}

.code-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
}

.code-line {
    height: 8px;
    background: linear-gradient(90deg, #8bc34a, #66bb6a);
    margin: 12px 0;
    border-radius: 4px;
    animation: codeGlow 3s ease-in-out infinite;
}

.code-line:nth-child(1) { width: 90%; animation-delay: 0s; }
.code-line:nth-child(2) { width: 70%; animation-delay: 0.5s; }
.code-line:nth-child(3) { width: 85%; animation-delay: 1s; }
.code-line:nth-child(4) { width: 60%; animation-delay: 1.5s; }

@keyframes codeGlow {
    0%, 100% { opacity: 0.6; box-shadow: 0 0 5px rgba(139,195,74,0.3); }
    50% { opacity: 1; box-shadow: 0 0 15px rgba(139,195,74,0.6); }
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.story-paragraph {
    margin-bottom: 2.5rem;
}

.story-paragraph h3 {
    color: #8bc34a;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.story-paragraph h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #8bc34a, transparent);
}

.story-paragraph p {
    color: #e0f2f1;
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: justify;
}

.story-paragraph strong {
    color: #ffffff;
    font-weight: 600;
}

.story-paragraph em {
    color: #8bc34a;
    font-style: normal;
    font-weight: 500;
}

.specialties {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(0,77,64,0.3);
    border-radius: 12px;
    border: 1px solid rgba(139,195,74,0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.specialty-item:hover {
    background: rgba(0,105,92,0.4);
    border-color: rgba(139,195,74,0.4);
    transform: translateY(-3px);
}

.specialty-icon {
    font-size: 1.5rem;
}

.specialty-text {
    color: #e0f2f1;
    font-weight: 500;
}

/* Skills Showcase */
.skills-showcase {
    margin-bottom: 6rem;
}

.skills-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 600;
}

.skills-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 0.8rem 2rem;
    background: rgba(0,77,64,0.3);
    border: 2px solid rgba(139,195,74,0.2);
    border-radius: 25px;
    color: #e0f2f1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.tab-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139,195,74,0.1), transparent);
    transition: left 0.6s;
}

.tab-button:hover::before {
    left: 100%;
}

.tab-button.active {
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    color: #004d40;
    border-color: #8bc34a;
    box-shadow: 0 4px 15px rgba(139,195,74,0.3);
    transform: translateY(-2px);
}

.tab-button:hover:not(.active) {
    border-color: rgba(139,195,74,0.5);
    background: rgba(0,105,92,0.4);
    transform: translateY(-2px);
}

.tab-button:focus {
    outline: 2px solid #8bc34a;
    outline-offset: 2px;
}

.tab-button:active {
    transform: translateY(0px);
}

.skills-container {
    position: relative;
    min-height: 400px;
}

.skill-category {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.skill-category.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: rgba(0,77,64,0.4);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(139,195,74,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8bc34a, #66bb6a);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.skill-item:hover::before {
    transform: scaleX(1);
}

.skill-item:hover {
    background: rgba(0,105,92,0.5);
    border-color: rgba(139,195,74,0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,77,64,0.3);
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.skill-name {
    font-weight: 600;
    color: #ffffff;
    font-size: 1.1rem;
}

.skill-level {
    font-size: 0.9rem;
    color: #8bc34a;
    font-weight: 500;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #8bc34a, #66bb6a);
    border-radius: 4px;
    width: var(--width);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1s ease-out 0.3s;
    position: relative;
}

.skill-item:hover .skill-progress {
    transform: scaleX(1);
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Achievements Section */
.achievements-section {
    margin-top: 4rem;
}

.achievements-title {
    text-align: center;
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 3rem;
    font-weight: 600;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: rgba(0,77,64,0.4);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(139,195,74,0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139,195,74,0.1), transparent);
    transition: left 0.8s;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    background: rgba(0,105,92,0.5);
    border-color: rgba(139,195,74,0.4);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,77,64,0.4);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.achievement-content h4 {
    color: #8bc34a;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.achievement-content p {
    color: #e0f2f1;
    font-size: 1rem;
    line-height: 1.6;
}

/* ===== PROJECT FILTER STYLES ===== */
.projects-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 1.1rem;
    color: #8bc34a;
    font-weight: 600;
    margin-right: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: rgba(0,77,64,0.3);
    border: 2px solid rgba(139,195,74,0.2);
    border-radius: 25px;
    color: #e0f2f1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    color: #004d40;
    border-color: #8bc34a;
    box-shadow: 0 4px 15px rgba(139,195,74,0.3);
    transform: translateY(-2px);
}

.filter-btn:hover:not(.active) {
    border-color: rgba(139,195,74,0.5);
    background: rgba(0,105,92,0.4);
    transform: translateY(-2px);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card.filtered-out {
    display: none;
}

/* Profile Container and Hero Text Styling */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.greeting-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #a5d6a7;
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    font-weight: 500;
    text-align: center;
}

.hero-name {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.1;
    color: #f0e6d2;
    text-align: center;
}

.role-container {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #a5d6a7;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 1vw, 0.8rem);
    justify-content: center;
    text-align: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.role-prefix {
    font-weight: 400;
    flex-shrink: 0;
}

.dynamic-role {
    font-weight: 600;
    color: #8bc34a;
    position: relative;
    display: inline-block;
    min-width: clamp(280px, 35vw, 400px);
    text-align: left;
    height: 1.5em;
    line-height: 1.5;
    opacity: 1;
    visibility: visible;
}

/* Typing cursor effect */
.dynamic-role::before {
    content: '|';
    position: absolute;
    right: -15px;
    top: 0;
    color: #8bc34a;
    animation: blink-cursor 1s infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    color: #b0bec5;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    max-width: 600px;
    text-align: center;
}

.hero-description .highlight {
    color: #8bc34a;
    font-weight: 600;
}

/* Responsive adjustments for dynamic role animation */
@media screen and (max-width: 767px) {
    .dynamic-role {
        min-width: clamp(200px, 50vw, 280px);
        font-size: clamp(1rem, 2.8vw, 1.3rem);
    }
    
    .dynamic-role::before {
        right: clamp(-10px, -2vw, -15px);
    }
}

@media screen and (max-width: 480px) {
    .dynamic-role {
        min-width: clamp(180px, 45vw, 250px);
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
        text-align: center;
    }
    
    .role-container {
        flex-direction: column;
        gap: clamp(0.2rem, 0.5vw, 0.3rem);
        text-align: center;
    }
}

@media screen and (max-width: 320px) {
    .dynamic-role {
        min-width: clamp(160px, 40vw, 220px);
    }
}

/* Enhanced animation for better visibility */
@media (prefers-reduced-motion: no-preference) {
    .dynamic-role::after {
        animation: typewriter 12s infinite;
    }
    
    .dynamic-role::before {
        animation: blink-cursor 1s infinite;
    }
}

/* Disable animation for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .dynamic-role::after {
        content: 'Creative Problem Solver';
        animation: none;
    }
    
    .dynamic-role::before {
        display: none;
    }
}

/* Responsive adjustments for contact icons */
@media (max-width: 768px) {
    .contact-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 200px;
    }
    
    .contact-icon-link {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .contact-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 280px;
    }
    
    .contact-icon-link {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon {
        width: 22px;
        height: 22px;
    }
}

/* Contact methods container adjustments */
.contact-methods {
    text-align: center;
    margin-top: 30px;
}

.contact-methods h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #f0e6d2;
    letter-spacing: 0.5px;
}

/* ===== ENHANCED HERO SECTION WITH ADVANCED ANIMATIONS ===== */

/* Hero Section Enhanced Animations */
.hero-section {
    min-height: 100vh;
    width: 100%;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Enhanced background with animated gradient */
    background: linear-gradient(135deg, 
        rgba(0, 77, 64, 1) 0%, 
        rgba(0, 96, 88, 0.95) 30%,
        rgba(0, 77, 64, 0.98) 70%,
        rgba(0, 105, 92, 0.9) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Enhanced Background Effects */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 195, 74, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(129, 199, 132, 0.12) 0%, transparent 50%);
    animation: floatingOrbs 20s ease-in-out infinite;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><filter id="glow"><feGaussianBlur stdDeviation="3" result="coloredBlur"/><feMerge><feMergeNode in="coloredBlur"/><feMergeNode in="SourceGraphic"/></feMerge></filter></defs><circle cx="50" cy="50" r="4" fill="rgba(139, 195, 74, 0.3)" filter="url(%23glow)"/><circle cx="150" cy="100" r="3" fill="rgba(129, 199, 132, 0.2)" filter="url(%23glow)"/><circle cx="100" cy="150" r="5" fill="rgba(165, 214, 167, 0.25)" filter="url(%23glow)"/><circle cx="30" cy="120" r="2" fill="rgba(139, 195, 74, 0.4)" filter="url(%23glow)"/><circle cx="170" cy="40" r="3" fill="rgba(76, 175, 80, 0.3)" filter="url(%23glow)"/></svg>') repeat;
    opacity: 0.6;
    animation: floatBg 25s linear infinite;
    z-index: 1;
}

@keyframes floatingOrbs {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 30%, rgba(139, 195, 74, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(129, 199, 132, 0.12) 0%, transparent 50%);
    }
    33% { 
        background: 
            radial-gradient(circle at 70% 20%, rgba(139, 195, 74, 0.18) 0%, transparent 50%),
            radial-gradient(circle at 30% 80%, rgba(76, 175, 80, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 90% 60%, rgba(129, 199, 132, 0.15) 0%, transparent 50%);
    }
    66% { 
        background: 
            radial-gradient(circle at 10% 70%, rgba(139, 195, 74, 0.12) 0%, transparent 50%),
            radial-gradient(circle at 90% 30%, rgba(76, 175, 80, 0.15) 0%, transparent 50%),
            radial-gradient(circle at 50% 20%, rgba(129, 199, 132, 0.18) 0%, transparent 50%);
    }
}

@keyframes floatBg {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

/* Enhanced Hero Content */
.hero-content {
    width: 100%;
    max-width: 1200px;
    z-index: 2;
    position: relative;
}

/* Enhanced Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 3rem;
    gap: 2rem;
    animation: heroEntrance 1.5s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes heroEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Profile Container */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    animation: profileSlideUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes profileSlideUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Original Profile Image Styles */
.profile-image {
    width: clamp(240px, 35vw, 520px);
    height: clamp(240px, 35vw, 520px);
    max-width: min(90vw, 520px);
    max-height: min(90vw, 520px);
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    
    /* Enhanced responsiveness for all devices */
    min-width: 140px;
    min-height: 140px;
    
    /* Interactive border with gradient */
    border: clamp(3px, 0.6vw, 6px) solid transparent;
    background: linear-gradient(white, white) padding-box, 
                linear-gradient(45deg, #8bc34a, #a5d6a7, #4caf50, #8bc34a) border-box;
    
    /* Enhanced shadows for depth */
    box-shadow: 
        0 clamp(8px, 2vw, 15px) clamp(20px, 5vw, 40px) rgba(0, 0, 0, 0.3),
        0 clamp(3px, 0.8vw, 6px) clamp(8px, 2vw, 15px) rgba(139, 195, 74, 0.4),
        inset 0 clamp(1px, 0.2vw, 2px) clamp(2px, 0.5vw, 4px) rgba(255, 255, 255, 0.2);
    
    margin-bottom: clamp(1rem, 3vw, 2rem);
    
    /* Performance optimizations */
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    transform: translateZ(0);
    
    /* Ensure perfect circle */
    aspect-ratio: 1 / 1;
    display: block;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: clamp(-6px, -1vw, -10px);
    left: clamp(-6px, -1vw, -10px);
    right: clamp(-6px, -1vw, -10px);
    bottom: clamp(-6px, -1vw, -10px);
    background: conic-gradient(
        from 0deg,
        #8bc34a 0deg,
        #a5d6a7 72deg,
        #4caf50 144deg,
        #66bb6a 216deg,
        #8bc34a 288deg,
        #a5d6a7 360deg
    );
    border-radius: 50%;
    z-index: 0;
    opacity: 0;
    transition: all 0.6s ease;
    pointer-events: none;
    animation: rotate 8s linear infinite;
    filter: blur(clamp(1px, 0.2vw, 2px));
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at center,
        transparent 45%,
        rgba(139, 195, 74, 0.1) 70%,
        rgba(139, 195, 74, 0.3) 100%
    );
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.profile-image:hover {
    transform: translateY(clamp(-6px, -1.5vw, -10px)) scale(clamp(1.03, 1 + 0.02 * min(5, 100vw / 320), 1.08));
    box-shadow: 
        0 clamp(15px, 4vw, 25px) clamp(40px, 8vw, 60px) rgba(0, 0, 0, 0.4),
        0 clamp(8px, 2vw, 12px) clamp(20px, 4vw, 30px) rgba(139, 195, 74, 0.6),
        inset 0 clamp(2px, 0.4vw, 3px) clamp(4px, 0.8vw, 6px) rgba(255, 255, 255, 0.3);
}

.profile-image:hover::before {
    opacity: 1;
    transform: scale(1.1);
    filter: blur(clamp(2px, 0.4vw, 3px));
}

.profile-image:hover::after {
    opacity: 1;
}

.profile-image:active {
    transform: translateY(clamp(-2px, -0.5vw, -4px)) scale(clamp(1.01, 1 + 0.005 * min(5, 100vw / 320), 1.02));
    transition: all 0.1s ease;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    
    /* Enhanced image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    
    /* Ensure image displays above pseudo-elements */
    position: relative;
    z-index: 2;
    display: block;
    
    /* Smooth transitions */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Image enhancement effects */
    filter: contrast(1.05) brightness(1.02) saturate(1.1);
}

.profile-image:hover .profile-pic {
    filter: contrast(1.1) brightness(1.05) saturate(1.15);
    transform: scale(1.02);
}

/* Rotation animation for the border */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced Social Icons Container - Positioned around profile image */
.social-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allow clicks only on the icons themselves */
}

/* Position social icons around the profile picture edge */
.social-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(45px, 8vw, 55px);
    height: clamp(45px, 8vw, 55px);
    min-width: 40px;
    min-height: 40px;
    background: rgba(139, 195, 74, 0.95);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    overflow: hidden;
    pointer-events: auto; /* Enable clicks on icons */
    z-index: 10;
    
    /* Touch optimizations */
    touch-action: manipulation;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    
    /* Shadow for better visibility */
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2);
    
    /* Staggered animation */
    animation: iconPopIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    opacity: 0;
    transform: scale(0);
}

/* Position individual icons around the circle */
.social-icon:nth-child(1) { 
    top: 15%;
    right: 5%;
    animation-delay: 1s; 
}

.social-icon:nth-child(2) { 
    bottom: 25%;
    right: -5%;
    animation-delay: 1.1s; 
}

.social-icon:nth-child(3) { 
    bottom: 5%;
    left: 20%;
    animation-delay: 1.2s; 
}

@keyframes iconPopIn {
    0% {
        opacity: 0;
        transform: scale(0) rotate(-180deg);
    }
    80% {
        transform: scale(1.1) rotate(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Enhanced Gradient Background for Icons */
.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(139, 195, 74, 0.3) 0%, 
        rgba(76, 175, 80, 0.2) 50%,
        rgba(129, 199, 132, 0.3) 100%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
    transform: scale(0);
}

.social-icon img {
    width: clamp(22px, 4.5vw, 30px);
    height: clamp(22px, 4.5vw, 30px);
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0) saturate(100%) invert(96%) sepia(7%) saturate(213%) hue-rotate(91deg) brightness(101%) contrast(96%);
    position: relative;
    z-index: 2;
}

/* Enhanced Hover Effects for Social Icons */
@media (hover: hover) and (pointer: fine) {
    .social-icon:hover {
        background: rgba(139, 195, 74, 1);
        border-color: rgba(255, 255, 255, 1);
        transform: scale(1.15);
        box-shadow: 
            0 6px 20px rgba(139, 195, 74, 0.6),
            0 3px 10px rgba(0, 0, 0, 0.4);
    }
    
    .social-icon:hover::before {
        opacity: 1;
        transform: scale(1.2);
    }
    
    .social-icon:hover img {
        transform: scale(1.1);
        filter: brightness(0) saturate(100%) invert(100%);
    }
}

/* Enhanced Profile Info Section */
.profile-info {
    max-width: 600px;
    width: 100%;
    animation: textSlideUp 1.2s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes textSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ENHANCED RESPONSIVE LAYOUT FOR HERO SECTION ===== */

/* Desktop Layout - Text on Right of Display Picture */
@media screen and (min-width: 768px) {
    .profile-section {
        flex-direction: row;
        text-align: left;
        gap: clamp(3rem, 6vw, 5rem);
        align-items: flex-start;
        justify-content: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .profile-container {
        flex: 0 0 auto;
        margin-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Ensure the profile image starts at the same level as text */
        margin-top: 0;
        padding-top: 0;
    }
    
    /* Ensure profile image has no top margin/padding that affects alignment */
    .profile-image {
        margin-top: 0;
        padding-top: 0;
    }
    
    .profile-info {
        flex: 1;
        text-align: left;
        min-width: 0;
        max-width: none;
        /* Ensure text starts at the same vertical position as the profile image */
        margin-top: 0;
        padding-top: 0;
    }
    
    .greeting-text,
    .hero-name,
    .role-container,
    .hero-description {
        text-align: left;
    }
    
    /* Ensure first element (greeting-text) starts at top */
    .greeting-text {
        margin-top: 0;
        padding-top: 0;
    }
    
    .role-container {
        justify-content: flex-start;
        flex-wrap: nowrap;
    }
    
    .dynamic-role {
        text-align: left;
        min-width: clamp(280px, 35vw, 400px);
    }
    
    .hero-buttons {
        justify-content: flex-start;
    }
    
    /* Ensure proper text alignment on desktop */
    .greeting-text .greeting {
        display: block;
        margin-bottom: 0.5rem;
    }
    
    .hero-name {
        margin-bottom: clamp(1rem, 2vw, 1.5rem);
    }
    
    .role-container {
        margin-bottom: clamp(1.5rem, 3vw, 2rem);
    }
}

/* Large Desktop Enhancements */
@media screen and (min-width: 1024px) {
    .profile-section {
        gap: clamp(4rem, 8vw, 6rem);
    }
    
    .profile-info {
        max-width: 650px;
    }
    
    .dynamic-role {
        min-width: clamp(320px, 40vw, 450px);
    }
    
    .hero-description {
        max-width: 600px;
        font-size: clamp(1.1rem, 2vw, 1.25rem);
        line-height: 1.7;
    }
}

/* Mobile Layout - Text Below Display Picture */
@media screen and (max-width: 767px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: clamp(2rem, 4vw, 3rem);
        align-items: center;
    }
    
    .profile-container {
        margin-bottom: clamp(1rem, 3vw, 2rem);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .profile-info {
        text-align: center;
        width: 100%;
        max-width: 500px;
    }
    
    .greeting-text,
    .hero-name,
    .role-container,
    .hero-description {
        text-align: center;
    }
    
    .role-container {
        justify-content: center;
        flex-wrap: wrap;
        gap: clamp(0.3rem, 1vw, 0.5rem);
    }
    
    .dynamic-role {
        text-align: center;
        min-width: clamp(250px, 60vw, 350px);
    }
    
    .dynamic-role::before {
        right: clamp(-20px, -4vw, -25px);
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
}

/* Enhanced Text Animation for All Screen Sizes */
.greeting-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: #a5d6a7;
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
    font-weight: 500;
    animation: fadeInUp 0.8s ease 1.2s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero-name {
    font-size: clamp(2.5rem, 7vw, 4rem);
    font-weight: 700;
       margin-bottom: clamp(1rem, 2vw, 1.5rem);
    line-height: 1.1;
    color: #f0e6d2;
    background: linear-gradient(135deg, #f0e6d2 0%, #ffffff 50%, #f0e6d2 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: nameGlow 0.8s ease 1.4s forwards, textShimmer 4s ease-in-out 2s infinite;
    opacity: 0;
    transform: translateY(25px);
}

.role-container {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #a5d6a7;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: clamp(0.3rem, 0.8vw, 0.5rem);
    animation: roleSlideIn 0.8s ease 1.6s forwards;
    opacity: 0;
    transform: translateX(-30px);
}

.hero-description {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.6;
    color: #b0bec5;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    animation: descriptionFade 0.8s ease 1.8s forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Enhanced Animation Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nameGlow {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes textShimmer {
    0%, 100% {
        background-position: -200% center;
    }
    50% {
        background-position: 200% center;
    }
}

@keyframes roleSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes descriptionFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Small Mobile Optimizations */
@media screen and (max-width: 480px) {
    .role-container {
        flex-direction: column;
        gap: clamp(0.2rem, 0.5vw, 0.3rem);
        text-align: center;
    }
    
    .dynamic-role {
        min-width: clamp(200px, 55vw, 300px);
        text-align: center;
    }
    
    .dynamic-role::before {
        right: clamp(-15px, -3vw, -20px);
    }
    
    .hero-description {
        font-size: clamp(0.95rem, 2vw, 1.05rem);
        line-height: 1.5;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 360px) {
    .dynamic-role {
        min-width: clamp(180px, 50vw, 250px);
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .role-container {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    
    .hero-name {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }
}

/* Landscape Mobile Optimization */
@media screen and (max-height: 500px) and (orientation: landscape) and (max-width: 900px) {
    .profile-section {
        flex-direction: row;
        gap: clamp(2rem, 4vw, 3rem);
        text-align: left;
    }
    
    .profile-container {
        flex: 0 0 auto;
    }
    
    .profile-info {
        flex: 1;
        text-align: left;
    }
    
    .greeting-text,
    .hero-name,
    .role-container,
    .hero-description {
        text-align: left;
    }
    
    .role-container {
        justify-content: flex-start;
    }
    
    .dynamic-role {
        text-align: left;
        min-width: clamp(200px, 30vw, 300px);
    }
}

/* Contact Form Component Styles */

/* ===== CONTACT WRAPPER ===== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    align-items: start;
}

/* ===== CONTACT INFO ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-header {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header-content h3 {
    color: #f0e6d2;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    text-align: left;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #8bc34a;
    font-weight: 600;
    font-size: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    background: #8bc34a;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== CONTACT INTRO ===== */
.contact-intro {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-intro p {
    color: #e0f2f1;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.availability-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.availability-item span {
    color: #8bc34a;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.availability-item span::before {
    content: '•';
    color: #66bb6a;
    font-weight: bold;
}

/* ===== CONTACT STATS ===== */
.contact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(139, 195, 74, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.2);
    transition: all 0.3s ease;
}

.contact-stat:hover {
    transform: translateY(-3px);
    background: rgba(139, 195, 74, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #8bc34a;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.85rem;
    color: #f0e6d2;
    font-weight: 500;
}

/* ===== CONTACT ICONS GRID ===== */
.contact-methods {
    text-align: center;
    margin-top: 30px;
}

.contact-methods h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #f0e6d2;
    letter-spacing: 0.5px;
}

.contact-icons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
    padding: 20px 0;
}

.contact-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-icon-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1.2);
}

.contact-icon-link:hover .contact-icon {
    transform: scale(1.1);
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* ===== CONTACT FORM ===== */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
}

/* ===== FORM HEADER ===== */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header-content h3 {
    color: #f0e6d2;
    font-size: 1.8rem;
    margin: 0 0 0.5rem 0;
    text-align: center;
}

.form-subtitle {
    color: #8bc34a;
    font-size: 1rem;
    font-weight: 500;
}

/* ===== FORM CONTENT ===== */
.form-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.form-group label {
    color: #f0e6d2;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.2rem;
    background: rgba(139, 195, 74, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #f0e6d2;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    width: 100%;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(240, 230, 210, 0.5);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8bc34a;
    background: rgba(139, 195, 74, 0.25);
    box-shadow: 0 0 0 3px rgba(139, 195, 74, 0.1);
}

.form-group input.valid {
    border-color: #66bb6a;
    background: rgba(102, 187, 106, 0.05);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

.form-group select {
    cursor: pointer;
    background: rgba(139, 195, 74, 0.15);
    backdrop-filter: blur(8px);
    color: #f0e6d2;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23f0e6d2' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1rem;
    padding-right: 3rem;
    appearance: none;
}

.form-group select option {
    background: #004d40;
    color: #f0e6d2;
    padding: 0.5rem;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ===== FORM VALIDATION ===== */
.field-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-success,
.form-error {
    padding: 1rem;
    border-radius: 12px;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.form-success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.form-error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.success-icon,
.error-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    color: #004d40;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
    background: linear-gradient(135deg, #9ccc65, #8bc34a);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    color: transparent;
}

.submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px;
    border: 2px solid transparent;
    border-top: 2px solid #004d40;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FORM NOTE ===== */
.form-note {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(139, 195, 74, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 195, 74, 0.1);
}

.form-note span {
    color: #8bc34a;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== PROGRESS INDICATOR ===== */
.form-progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
}

.form-progress-bar.low {
    background: linear-gradient(135deg, #f44336, #e53935);
}

.form-progress-bar.medium {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.form-progress-bar.high {
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        gap: 2rem;
        margin-top: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 200px;
    }
    
    .contact-icon-link {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon {
        width: 25px;
        height: 25px;
    }

    .form-header-content h3 {
        font-size: 1.5rem;
    }

    .contact-header-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .contact-form {
        padding: 1.5rem;
    }

    .contact-info-header,
    .contact-intro {
        padding: 1.5rem;
    }

    .contact-icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        max-width: 280px;
    }
    
    .contact-icon-link {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon {
        width: 22px;
        height: 22px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem;
        font-size: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info,
.contact-form {
    animation: slideInUp 0.6s ease-out;
}

.contact-form {
    animation-delay: 0.2s;
}

/* ===== FLOATING LABELS ===== */
.form-group label.floating {
    color: #8bc34a;
    transform: scale(0.9);
}

.form-group.focused label {
    color: #8bc34a;
}

/* Featured Projects Component Styles */

/* ===== PROJECT FILTER STYLES ===== */
.projects-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 1.1rem;
    color: #8bc34a;
    font-weight: 600;
    margin-right: 1rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.7rem 1.5rem;
    background: rgba(0,77,64,0.3);
    border: 2px solid rgba(139,195,74,0.2);
    border-radius: 25px;
    color: #e0f2f1;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    color: #004d40;
    border-color: #8bc34a;
    box-shadow: 0 4px 15px rgba(139,195,74,0.3);
    transform: translateY(-2px);
}

.filter-btn:hover:not(.active) {
    border-color: rgba(139,195,74,0.5);
    background: rgba(0,105,92,0.4);
    transform: translateY(-2px);
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
    min-height: auto;
    max-height: none;
    overflow: visible;
    grid-auto-rows: auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    margin-bottom: 0 !important;
    grid-column: auto;
    grid-row: auto;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(139, 195, 74, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.project-card.filtered-out {
    /* Disabled filtering to ensure all cards are visible */
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
}

/* ===== PROJECT VISUAL ===== */
.project-visual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.project-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004d40;
    flex-shrink: 0;
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-category {
    font-size: 0.85rem;
    color: #8bc34a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== PROJECT CONTENT ===== */
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.project-header h3 {
    color: #f0e6d2;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    text-align: left;
}

.project-status {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(139, 195, 74, 0.2);
    color: #8bc34a;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.project-description {
    color: #e0f2f1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    overflow: visible;
    white-space: normal;
    word-wrap: break-word;
    text-overflow: clip;
    display: block;
    max-height: none;
    height: auto;
}

/* ===== PROJECT FEATURES ===== */
.project-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    font-size: 0.8rem;
    color: #8bc34a;
    background: rgba(139, 195, 74, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.2);
    font-weight: 500;
}

/* ===== TECH STACK ===== */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    font-size: 0.8rem;
    color: #004d40;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ===== PROJECT LINKS ===== */
.project-links {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
    padding-top: 1rem;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    min-height: 44px;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.project-link:hover::before {
    left: 100%;
}

.project-link.primary {
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    color: #004d40;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
    border: 2px solid transparent;
}

.project-link.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.5);
    background: linear-gradient(135deg, #9ccc65, #8bc34a);
}

.project-link.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #e0f2f1;
    border: 2px solid rgba(139, 195, 74, 0.3);
    backdrop-filter: blur(10px);
}

.project-link.secondary:hover {
    background: rgba(139, 195, 74, 0.15);
    border-color: rgba(139, 195, 74, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 195, 74, 0.2);
}

.project-link svg,
.project-link img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== PROJECTS CTA ===== */
.projects-cta {
    margin-top: 4rem;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h3 {
    color: #f0e6d2;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
}

.cta-content p {
    color: #e0f2f1;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    color: #004d40;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 195, 74, 0.4);
    background: #9ccc65;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .projects-filter {
        flex-direction: column;
        gap: 1rem;
        margin: 2rem 0;
    }

    .filter-label {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-visual {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .project-header h3 {
        font-size: 1.2rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .project-link {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .cta-content h3 {
        font-size: 1.6rem;
    }

    .cta-content p {
        font-size: 1rem;
    }

    .projects-cta {
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1.2rem;
    }

    .project-icon {
        width: 40px;
        height: 40px;
    }

    .project-icon svg {
        width: 20px;
        height: 20px;
    }

    .project-header h3 {
        font-size: 1.1rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .feature-item,
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .cta-content h3 {
        font-size: 1.4rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes projectCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: projectCardSlideIn 0.6s ease-out;
}

/* Stagger animation for cards */
.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Force all project cards to be visible */
#projects {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

.container {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

#featured-projects-container {
    min-height: auto !important;
    height: auto !important;
    overflow: visible !important;
}

/* Ensure grid displays all items */
.projects-grid .project-card:nth-child(n) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
}

/* CRITICAL FIX: Ensure all project cards are always visible */
.projects-grid .project-card {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

.projects-grid .project-card:nth-child(1),
.projects-grid .project-card:nth-child(2), 
.projects-grid .project-card:nth-child(3),
.projects-grid .project-card:nth-child(4),
.projects-grid .project-card:nth-child(5) {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: scale(1) !important;
}

/* Footer Component Styles */

/* ===== FOOTER LAYOUT ===== */
footer {
    background: linear-gradient(135deg, rgba(0,77,64,0.9), rgba(0,77,64,0.7));
    backdrop-filter: blur(20px);
    color: #f0e6d2;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    text-align: center;
    border-top: 1px solid rgba(139, 195, 74, 0.2);
    position: relative;
    overflow: hidden;
}

/* ===== FOOTER BACKGROUND EFFECTS ===== */
footer::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(139, 195, 74, 0.05), transparent);
    animation: footerRotate 30s linear infinite;
}

@keyframes footerRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOOTER CONTAINER ===== */
footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ===== FOOTER CONTENT ===== */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

/* ===== COPYRIGHT TEXT ===== */
footer p {
    margin: 0.5rem 0;
    color: rgba(240, 230, 210, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    font-weight: 500;
}

footer p:first-child {
    font-weight: 500;
    color: #f0e6d2;
}

footer p:last-child {
    color: #8bc34a;
    font-weight: 600;
}

/* ===== FOOTER LINKS ===== */
.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-links a {
    color: rgba(240, 230, 210, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8bc34a, #66bb6a);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #8bc34a;
    transform: translateY(-2px);
}

.footer-links a:hover::after {
    width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    footer {
        padding: 2.5rem 0 1.5rem;
        margin-top: 3rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    footer .container {
        padding: 0 1rem;
    }

    .footer-content {
        gap: 1rem;
    }

    .footer-links {
        gap: 1rem;
    }

    .footer-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }

    footer p {
        font-size: 0.85rem;
        margin: 0.3rem 0;
    }
}

/* ===== FOOTER HOVER EFFECTS ===== */
footer:hover::before {
    animation-duration: 20s;
}

/* ===== FOOTER LINK ACTIVE STATES ===== */
.footer-links a:active {
    transform: translateY(0);
    color: #66bb6a;
}

/* ===== FOOTER ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    footer::before {
        animation: none;
    }
    
    .footer-links a {
        transition: color 0.2s ease;
    }
    
    .footer-links a::after {
        transition: width 0.2s ease;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    footer {
        background: none !important;
        color: #000 !important;
        border-top: 1px solid #000;
    }
    
    footer::before {
        display: none !important;
    }
    
    .footer-links a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    
    .footer-links a::after {
        display: none !important;
    }
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    footer {
        background: #000 !important;
        color: #fff !important;
        border-top: 2px solid #fff;
    }
    
    .footer-links a {
        color: #fff !important;
    }
    
    .footer-links a:hover {
        color: #ffff00 !important;
    }
}

/* ===== FOOTER ANIMATIONS ===== */
@keyframes footerSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

footer {
    animation: footerSlideIn 0.6s ease-out;
}

/* ===== FOOTER GRADIENT BORDERS ===== */
footer {
    position: relative;
}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #8bc34a, transparent);
}

/* ===== FOOTER BRAND STYLING (if logo added) ===== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-brand .logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #8bc34a, #66bb6a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #004d40;
    font-weight: bold;
    font-size: 1.2rem;
}

.footer-brand .company-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f0e6d2;
}

/* ===== FOOTER SOCIAL LINKS (if added) ===== */
.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f0e6d2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: #8bc34a;
    color: #004d40;
    transform: translateY(-3px);
}

/* ===== FOOTER DIVIDER ===== */
.footer-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 195, 74, 0.3), transparent);
    margin: 2rem 0;
}

/* Component Bug Fixes */

/* Fix for contact form label positioning to prevent overlap */
.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.contact-form .form-group label {
    position: static !important;
    color: #f0e6d2;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    z-index: 1;
    transform: none !important;
    background: transparent;
    padding: 0;
    pointer-events: auto;
    top: auto;
    left: auto;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    margin-top: 0;
}

.contact-form .form-group.focused label {
    color: #8bc34a;
}

/* Ensure labels are always above inputs */
.contact-form .form-group label + input,
.contact-form .form-group label + select,
.contact-form .form-group label + textarea {
    margin-top: 0.5rem;
}

/* Fix for form visibility and styling */
.contact-form {
    min-height: 600px;
    position: relative;
}

.form-content {
    position: relative;
    z-index: 2;
}

/* Center align section intro texts */
.section-intro {
    text-align: center !important;
    margin: 1.5rem auto !important;
    max-width: 800px !important;
}

/* Center align the projects CTA text */
.projects-cta .cta-content p {
    text-align: center !important;
}

/* Ensure center alignment on mobile devices */
@media (max-width: 768px) {
    .section-intro {
        text-align: center !important;
        margin: 1rem auto !important;
        padding: 0 1rem !important;
    }
    
    .projects-cta .cta-content p {
        text-align: center !important;
    }
}

/* Add spacing above Featured Projects section */
#projects {
    padding-top: 2rem;
    margin-top: 1rem;
}

/* Responsive spacing for mobile */
@media (max-width: 768px) {
    #projects {
        padding-top: 1.5rem;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    #projects {
        padding-top: 1rem;
        margin-top: 0.25rem;
    }
}

/* Enhanced Compact Project Cards */
.project-card {
    padding: 1.5rem !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    min-height: 400px !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.project-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2) !important;
}

.project-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    overflow: visible !important;
}

/* Compact Visual Section */
.project-visual {
    margin-bottom: 1rem !important;
    padding-bottom: 0.75rem !important;
}

.project-icon {
    width: 40px !important;
    height: 40px !important;
    border-radius: 8px !important;
}

.project-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.project-category {
    font-size: 0.75rem !important;
}

/* Compact Header */
.project-header {
    margin-bottom: 0.75rem !important;
}

.project-header h3 {
    font-size: 1.1rem !important;
    margin: 0 !important;
}

.project-status {
    padding: 0.25rem 0.6rem !important;
    font-size: 0.7rem !important;
}

/* Compact Description */
.project-description {
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1rem !important;
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    text-overflow: clip !important;
    max-height: none !important;
    height: auto !important;
    flex-shrink: 0 !important;
    word-break: break-word !important;
    hyphens: auto !important;
}

/* Compact Features */
.project-features {
    margin-bottom: 1rem !important;
    gap: 0.4rem !important;
}

.feature-item {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 8px !important;
}

/* Compact Tech Stack */
.project-tech {
    margin-bottom: 1rem !important;
    gap: 0.4rem !important;
}

.tech-tag {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 8px !important;
}

/* Enhanced Links */
.project-links {
    gap: 0.8rem !important;
    margin-top: auto !important;
    padding-top: 1rem !important;
}

.project-link {
    padding: 0.8rem 1.4rem !important;
    font-size: 0.9rem !important;
    border-radius: 10px !important;
    min-height: 44px !important;
    font-weight: 600 !important;
}

.project-link svg,
.project-link img {
    width: 18px !important;
    height: 18px !important;
}

/* Grid adjustments for compact cards */
.projects-grid {
    gap: 1.5rem !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    align-items: stretch !important;
    justify-items: stretch !important;
}

/* Responsive adjustments for compact cards */
@media (max-width: 768px) {
    .project-card {
        padding: 1.25rem !important;
    }
    
    .project-description {
        overflow: visible !important;
        white-space: normal !important;
        display: block !important;
        max-height: none !important;
        height: auto !important;
    }
    
    .project-links {
        flex-direction: row !important;
        gap: 0.6rem !important;
        padding-top: 0.8rem !important;
    }
    
    .project-link {
        padding: 0.7rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 480px) {
    .project-card {
        padding: 1rem !important;
    }
    
    .project-header h3 {
        font-size: 1rem !important;
    }
}

/* Make sure features and tech sections don't compress */
.project-features,
.project-tech {
    flex-shrink: 0 !important;
}
.skill-category {
  display: none;
}

.skill-category.active {
  display: block;
}
