@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/aos@2.3.4/dist/aos.css');

:root {
    /* New Earthy Color Palette */
    --primary: #99BC85;        /* Main Green */
    --primary-dark: #7DA070;   /* Darker Green */
    --secondary: #E4EFE7;      /* Light Green */
    --accent: #99BC85;         /* Main Green for accents */
    --success: #99BC85;        /* Main Green */
    --warning: #FAF1E6;        /* Light Cream */
    --danger: #8B7355;         /* Brownish for errors */
    --dark: #5A6B4F;           /* Dark Green */
    --light: #FAF1E6;          /* Light Cream */
    --gray-100: #FDFAF6;       /* Very Light Cream */
    --gray-200: #FAF1E6;       /* Light Cream */
    --gray-300: #F0E8D8;       /* Slightly Darker Cream */
    --gray-400: #E4EFE7;       /* Light Green */
    --gray-500: #C8D4CA;       /* Medium Green */
    --gray-600: #99BC85;       /* Main Green */
    --gray-700: #7DA070;       /* Darker Green */
    --gray-800: #5A6B4F;       /* Dark Green */
    --gray-900: #3F4A37;       /* Very Dark Green */
    
    /* Updated Gradients with New Colors */
    --gradient-1: linear-gradient(135deg, #FDFAF6 0%, #E4EFE7 50%, #99BC85 100%);
    --gradient-2: linear-gradient(135deg, #99BC85 0%, #E4EFE7 100%);
    --gradient-3: linear-gradient(135deg, #E4EFE7 0%, #5A6B4F 100%);
    --gradient-hero: linear-gradient(135deg, #FDFAF6 0%, #FAF1E6 30%, #E4EFE7 70%, #99BC85 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(90, 107, 79, 0.1);
    --shadow: 0 1px 3px 0 rgba(90, 107, 79, 0.15), 0 1px 2px 0 rgba(90, 107, 79, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(90, 107, 79, 0.15), 0 2px 4px -1px rgba(90, 107, 79, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(90, 107, 79, 0.15), 0 4px 6px -2px rgba(90, 107, 79, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(90, 107, 79, 0.15), 0 10px 10px -5px rgba(90, 107, 79, 0.1);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--light);
    overflow-x: hidden;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Utilities */
.gradient-text {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-card {
    background: rgba(228, 239, 231, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 239, 231, 0.2);
    border-radius: 16px;
}

.glass-nav {
    background: rgba(90, 107, 79, 0.9) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(228, 239, 231, 0.2);
}

.section-padding {
    padding: 100px 0;
}

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

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    color: var(--gray-900);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-2);
    border-radius: 2px;
}

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

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent) !important;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    color: var(--accent) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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


/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(228, 239, 231, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(153, 188, 133, 0.3) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--gray-900);
}

.typing-container {
    margin-bottom: 1rem;
}

.typing-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--gray-800);
    opacity: 0.9;
}

.hero-name {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    animation: slideInUp 1s ease-out;
    color: var(--gray-900);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: slideInUp 1s ease-out 0.2s both;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 600px;
    animation: slideInUp 1s ease-out 0.4s both;
    color: var(--gray-800);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: slideInUp 1s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-800);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: slideInUp 1s ease-out 0.8s both;
}

.btn-glow {
    background: var(--gradient-2);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(153, 188, 133, 0.3);
    color: white;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(153, 188, 133, 0.4);
    color: white;
}

.btn-outline-light {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

.btn-outline-light:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: white !important;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: rgba(228, 239, 231, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 239, 231, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-900);
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-card i {
    font-size: 2rem;
    color: var(--gray-800);
}

.terraform-logo {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 20%;
    right: 20%;
    animation: float 6s ease-in-out infinite 1s;
}

.card-3 {
    bottom: 30%;
    left: 5%;
    animation: float 6s ease-in-out infinite 2s;
}

.card-4 {
    bottom: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite 3s;
}


.floating-card:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(228, 239, 231, 0.3);
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(228, 239, 231, 0.2);
}

.contact-item:hover {
    transform: translateX(10px);
    background: var(--accent);
    color: var(--primary);
}

.contact-item i {
    width: 20px;
    color: var(--gray-800);
}

.contact-item:hover i {
    color: var(--gray-900);
}

/* Tech Orbit Animation */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.tech-orbit {
    position: relative;
    width: 300px;
    height: 300px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    z-index: 2;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(153, 188, 133, 0.3);
    border-radius: 50%;
}

.ring-1 {
    width: 150px;
    height: 150px;
    animation: rotate 20s linear infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    animation: rotate 30s linear infinite reverse;
}

.orbit-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--light);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-900);
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
    animation: counter-rotate 20s linear infinite;
}

.ring-2 .orbit-item {
    animation: counter-rotate 30s linear infinite;
}

.item-1 { top: -20px; left: 50%; transform: translateX(-50%); }
.item-2 { top: 50%; right: -20px; transform: translateY(-50%); }
.item-3 { bottom: -20px; left: 50%; transform: translateX(-50%); }
.item-7 { top: 50%; left: -20px; transform: translateY(-50%); }
.item-4 { top: -20px; left: 50%; transform: translateX(-50%); }
.item-5 { top: 50%; right: -20px; transform: translateY(-50%); }

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-marker {
    position: absolute;
    left: 18px;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--secondary);
    border-radius: 50%;
    border: 4px solid var(--light);
    box-shadow: 0 0 0 4px var(--secondary);
    animation: pulse 2s infinite;
}

.timeline-content {
    padding: 2rem;
    background: rgba(228, 239, 231, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 239, 231, 0.2);
    border-radius: 16px;
    color: white; /* Changed to white */
    position: relative;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.experience-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white; /* Changed to white */
}

.company-badge {
    background: var(--gradient-2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}

.experience-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8); /* Changed to white with opacity */
}

.experience-description {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: white; /* Changed to white */
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(153, 188, 133, 0.2);
    color: white; /* Changed to white */
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(153, 188, 133, 0.3);
}

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

.skill-category {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(228, 239, 231, 0.2);
}

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

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    position: relative;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-weight: 600;
    color: var(--gray-900);
}

.skill-years {
    font-size: 0.875rem;
    color: var(--gray-800);
    background: rgba(228, 239, 231, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 20px;
    border: 1px solid rgba(228, 239, 231, 0.3);
}

.skill-progress {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-2);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

.skill-percentage {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-800);
}

/* Certifications */
.bg-gradient {
    background: var(--gradient-1);
}

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

.certification-card {
    background: rgba(253, 250, 246, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(228, 239, 231, 0.3);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    color: var(--primary);
    position: relative;
    transition: all 0.3s ease;
}

.certification-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(153, 188, 133, 0.2);
}

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

.cert-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.cert-code {
    font-size: 0.875rem;
    margin-bottom: 0;
    color: var(--gray-800);
}

.cert-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 30px;
    height: 30px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

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

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(228, 239, 231, 0.2);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    color: inherit;
    border-color: var(--accent);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.method-content h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.method-content p {
    margin: 0;
    color: var(--gray-800);
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--gradient-2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 10px 25px rgba(153, 188, 133, 0.3);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gray-800);
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--gray-800);
    margin: 0 auto;
    animation: scrollBounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gray-800);
    border-bottom: 2px solid var(--gray-800);
    transform: rotate(45deg);
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 20px;
        min-height: 70vh;
    }
    
    .hero-visual {
        display: none !important;
    }
    
    .hero-visual::after {
        display: none;
        content: none;
    }
    
    #about {
        padding-top: 20px !important;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .hero-name {
        font-size: 2.5rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        margin-bottom: 0;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 0.75rem 1.5rem;
        min-height: 44px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
        margin-bottom: 2rem;
    }
    
    .timeline-marker {
        left: 3px;
        width: 20px;
        height: 20px;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .skill-category {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .certification-card {
        padding: 1.5rem;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .contact-method {
        padding: 1.5rem;
        flex-direction: row;
        text-align: left;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

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

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

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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