/* Base Styles */
:root {
    --primary-color: #4D6A3F;
    --secondary-color: #617B52;
    --accent-color: #8A6D3B;
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --container-width: 1200px;
    --bg-nav: rgba(255, 255, 255, 0.98);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

/* Container */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Header / Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.675);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-speed);
}

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

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

nav ul {
    display: flex;
    gap: 30px;
}

nav ul li a {
    font-weight: 500;
    transition: color var(--transition-speed);
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s;
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background-color: var(--bg-secondary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
    cursor: pointer;
}

.theme-toggle i {
    font-size: 16px;
    color: var(--text-secondary);
    z-index: 1;
}

.theme-toggle .fa-sun {
    color: var(--accent-color);
    margin-left: 4px;
}

.theme-toggle .fa-moon {
    color: var(--primary-color);
    margin-right: 1px;
}

.toggle-ball {
    position: absolute;
    left: 5px;
    width: 24px;
    height: 24px;
    background-color: white;
    border-radius: 50%;
    transition: transform var(--transition-speed);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 500;
}

.highlight {
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-secondary);
}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn.primary {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 10px rgba(77, 106, 63, 0.3);
}

.btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--primary-color);
}

.btn.small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(77, 106, 63, 0.4);
}

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

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 400px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
}

.shape1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    top: 20%;
    left: 0;
    z-index: 0;
    opacity: 0.6;
}

.shape2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
    bottom: 20%;
    right: 10%;
    z-index: 0;
    opacity: 0.6;
}

.shape3 {
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    top: 10%;
    right: 20%;
    z-index: 0;
    opacity: 0.6;
}

/* About Section */
.about-content {
    display: flex;
    gap: 50px;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.skill-card i {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: transform var(--transition-speed);
}

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

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

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.project-info p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.project-links {
    display: flex;
    gap: 10px;
}

/* Achievements Section */
.achievements-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.achievement-card {
    background-color: var(--bg-secondary);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform var(--transition-speed);
    box-shadow: 0 5px 15px var(--shadow-color);
}

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

.achievement-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    overflow: hidden;
}

.achievement-icon i {
    font-size: 2rem;
    color: white;
}

.achievement-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.achievement-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.achievement-card p {
    color: var(--text-secondary);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.social-links a {
    width: 50px;
    height: 50px;
    background-color: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

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

.social-links a:hover i {
    color: white;
}

.social-links i {
    font-size: 1.5rem;
    color: var(--text-primary);
    transition: color var(--transition-speed);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    background-color: transparent;
    color: var(--text-primary);
    transition: all var(--transition-speed);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 30px 0;
    text-align: center;
}

/* Reveal Text Animation */
.reveal-text {
    opacity: 0;
    transform: translateY(20px);
}

/* Hero text animations */
.hero-content .reveal-text {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-content .reveal-text:first-child {
    opacity: 1;
    transform: translateY(0);
}

.hero-content .reveal-text.animate-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        justify-content: center;
    }

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

    .contact-info {
        align-items: center;
        text-align: center;
    }
    
    /* Adjust hero image gradient for tablet */
    .hero-image::after {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 20px;
        z-index: 1000;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    

    .mobile-menu-active li {
        margin: 15px 0;
    }

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

    .skills-container,
    .achievements-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .hero-image img {
        max-width: 300px;
    }
    
    /* Adjust hero image gradient for mobile */
    .hero-image::after {
        width: 95%;
        max-width: 300px;
    }
}

/* Add depth to cards */
.skill-card::backdrop,
/* .project-card::before, */
.achievement-card::backdrop {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    transform: translateZ(-1px);
    pointer-events: none;
}



.skill-card,
.project-card,
.achievement-card {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
} 

/* Add depth to section backgrounds */
.achievement-card::backdrop,
.skill-card::backdrop {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* z-index: -100; */
    background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 100%);
    transform: translateZ(-1px);
    pointer-events: none;
} 

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

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

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

.animate-reveal {
    animation: reveal 0.4s ease-out forwards;
    will-change: transform, opacity;
}

.animate-card {
    animation: cardAppear 0.3s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.animate-menu-item {
    animation: menuItemAppear 0.3s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
} 



/* Splash Screen */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.splash-icon {
    width: 100%;
    height: 100%;
}

.splash-circle {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: circle-draw 2s ease-out forwards;
}

.splash-leaf {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: leaf-draw 2s ease-out forwards 0.5s;
}

.splash-text {
    font-family: 'Poppins', sans-serif;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 500;
    opacity: 0;
    animation: text-fade 0.5s ease-out forwards 1s;
}

@keyframes circle-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes leaf-draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes text-fade {
    to {
        opacity: 1;
    }
}

/* Hide splash screen when content is loaded */
.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
}
