:root {
    --primary: #ffd700;    /* Gold for highlights */
    --secondary: #1e3a8a;  /* Dark blue for professionalism */
    --accent: #3b82f6;     /* Bright blue for dynamic elements */
    --dark: #0f172a;       /* Deep slate for background */
    --light: #f1f5f9;      /* Light gray for text */
    --shadow: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--dark), var(--secondary), var(--accent), var(--secondary), var(--dark));
    background-size: 300% 300%;
    animation: gradientFlow 20s ease infinite;
    z-index: -2;
    opacity: 0.7;
}

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

/* Floating Particles */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
}

/* Glow Trail Effect */
.glow-trail {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 20%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes float {
    0% { transform: translateY(100vh) scale(0.8); opacity: 0.5; }
    50% { opacity: 0.8; }
    100% { transform: translateY(-20vh) scale(1); opacity: 0; }
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.nav {
    background: rgba(30, 58, 138, 0.95);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    backdrop-filter: blur(10px);
}

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

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

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

.nav-item {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Landing */
.landing {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.landing-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.landing-subtitle {
    font-size: 1.5rem;
    color: var(--light);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-btn {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--light);
}

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

.cta-secondary:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Section */
.section {
    padding: 5rem 0;
}

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

/* Profile */
.profile-text {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

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

.skill-card {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.skill-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.skill-card p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.skill-card .progress {
    width: 100%;
    height: 8px;
    background: var(--dark);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.skill-card .progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Projects */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--secondary);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.project-preview {
    height: 150px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--light);
}

.project-details {
    padding: 1rem;
}

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

.project-details p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.project-details a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

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

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.info-entry i {
    font-size: 1.3rem;
    color: var(--primary);
}

.info-entry p, .info-entry a {
    font-size: 1rem;
    color: var(--light);
}

.contact-form {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
}

.input-field {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: none;
    border-radius: 5px;
    background: var(--dark);
    color: var(--light);
}

.input-field:focus {
    outline: none;
    border: 1px solid var(--primary);
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 1.5rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--light);
    font-size: 1.3rem;
    transition: color 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-hamburger {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--secondary);
        flex-direction: column;
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Add these styles to your existing CSS file */

/* Enhanced particle animations */
.particle {
    position: fixed;
    width: 6px;
    height: 6px;
    background: rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    animation: float 10s infinite ease-in-out;
    box-shadow: 0 0 10px 2px rgba(255, 215, 0, 0.3);
}

@keyframes float {
    0% { transform: translateY(100vh) translateX(-10px) scale(0.8); opacity: 0.5; }
    25% { transform: translateY(75vh) translateX(10px) scale(0.9); }
    50% { transform: translateY(50vh) translateX(-5px) scale(1); opacity: 0.8; }
    75% { transform: translateY(25vh) translateX(5px) scale(0.9); }
    100% { transform: translateY(-20vh) translateX(0) scale(0.8); opacity: 0; }
}

/* Enhanced glow trail */
.glow-trail {
    position: absolute;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 20%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
    animation: fadeOut 0.8s ease-out forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.8); }
}

/* Notification for trail toggle */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: rgba(30, 58, 138, 0.9);
    color: var(--light);
    border-radius: 5px;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out, fadeOut 0.3s ease-in 1.7s forwards;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

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

/* Form message styles */
.success-message, .error-message {
    padding: 10px;
    margin-top: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.3s ease-out;
}

.success-message {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.error-message {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

/* Animation for section titles */
.section-title {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.section-title.animated {
    transform: translateY(0);
    opacity: 1;
}

/* Animation for skill cards */
.skill-card {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease-out, transform 0.3s ease;
}

.skill-card.animated {
    transform: translateY(0);
    opacity: 1;
}

/* Project card animations */
.project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.project-card.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Add subtle background pattern */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 5%),
        radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 5%);
    background-size: 100px 100px;
    z-index: -3;
    pointer-events: none;
}

/* Enhanced input field focus states */
.input-field:focus {
    outline: none;
    border: 1px solid var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
}

/* Button hover effects */
.cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    border-radius: 5px;
    opacity: 0;
    transition: height 0.4s ease, opacity 0.4s ease;
}

.cta-btn:hover::after {
    height: 100%;
    opacity: 1;
}

/* Loading spinner for submit button */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--light);
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}/* Add these professional effects to your existing styles.css file */

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--primary);
    width: 0%;
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Enhanced form styles */
.contact-form {
    position: relative;
    background: var(--secondary);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.input-field {
    width: 100%;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    background: rgba(15, 23, 42, 0.7);
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

/* Professional button styles */
.cta-btn {
    padding: 0.8rem 2rem;
    background: var(--primary);
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cta-btn:hover {
    background: var(--accent);
    color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cta-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Loading spinner for form submission */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(15, 23, 42, 0.3);
    border-radius: 50%;
    border-top-color: var(--dark);
    animation: spin 0.8s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form message styling */
.message {
    padding: 12px 16px;
    margin-top: 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    animation: fadeInUp 0.3s ease-out;
}

.success-message {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border-left: 4px solid #10b981;
}

.error-message {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Project link styles */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--accent);
    gap: 0.75rem;
}

.fa-arrow-right {
    transition: transform 0.3s ease;
}

.arrow-animate {
    transform: translateX(3px);
}

/* Section highlight effect */
.highlight-section {
    position: relative;
}

.highlight-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--primary);
    transform: scaleY(0);
    transform-origin: top;
    animation: scaleDown 1s ease forwards;
}

@keyframes scaleDown {
    0% { transform: scaleY(0); }
    100% { transform: scaleY(1); }
}

/* Social icon enhancements */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

/* Typing effect cursor */
.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Improve particles */
.particle {
    box-shadow: 0 0 15px 2px rgba(255, 215, 0, 0.2);
}

/* Responsive improvements */
@media (max-width: 768px) {
    .landing-title {
        font-size: 2.5rem;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}