* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-light: #f8fafc;
    --text-dark: #1e293b;
    --bg-dark: #0f172a;
    --bg-light: #ffffff;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}


body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}


/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}


.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}


.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}


.nav-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}


.nav-link:hover {
    color: var(--accent-color);
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}


.nav-link:hover::after {
    width: 100%;
}


.mobile-menu {
    display: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}


/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}


.hero::before {
    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 1000 1000"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    animation: float 6s ease-in-out infinite;
}


.hero-content {
    position: relative;
    z-index: 2;
    color: var(--text-light);
    max-width: 800px;
    padding: 2rem;
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: slideInDown 1s ease-out;
}


.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
}


.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.6s both;
}


.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 0.9s both;
}


.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}


.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}


.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}


/* Particles Animation */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}


.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}


/* Section Styles */
.section {
    padding: 80px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}


.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}


.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}


/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}


.about-image {
    text-align: center;
}


.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid var(--accent-color);
    animation: pulse-border 3s ease-in-out infinite;
}


.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}


.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.7;
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}


.skill-item {
    background: var(--gradient);
    color: var(--text-light);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    transition: transform 0.3s ease;
}


.skill-item:hover {
    transform: translateY(-5px);
}


/* Experience Section */
.experience {
    background: #f8fafc;
}


.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}


.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-color);
    transform: translateX(-50%);
}


.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
}


.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
    padding-right: 2rem;
}


.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
}


.timeline-content {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
}


.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}


.timeline-content h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}


.timeline-date {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -50%);
}


/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}


.project-card {
    background: var(--bg-light);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}


.project-card:hover {
    transform: translateY(-10px);
}


.project-image {
    height: 200px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3rem;
}


.project-content {
    padding: 2rem;
}


.project-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}


.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}


.tag {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
}


.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}


.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}


.project-link:hover {
    color: var(--accent-color);
}


/* Education & Certifications */
.edu-cert {
    background: #f8fafc;
}


.edu-cert-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}


.edu-item, .cert-item {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}


.edu-item:hover, .cert-item:hover {
    transform: translateY(-5px);
}


.edu-item h3, .cert-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}


.edu-item h4, .cert-item h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}


/* Contact Section */
.contact {
    background: var(--bg-dark);
    color: var(--text-light);
}


.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}


.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--accent-color);
}


.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}


.contact-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    width: 40px;
}


.contact-form {
    background: rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}


.form-group {
    margin-bottom: 1.5rem;
}


.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}


.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255,255,255,0.1);
    color: var(--text-light);
    font-size: 1rem;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.7);
}


/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}


.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}


.social-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}


.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}


/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

}

@keyframes pulse-border {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(245, 158, 11, 0);
    }

}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }

}

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 3rem !important;
        padding-right: 0 !important;
    }

    .timeline-date {
        left: 20px;
        transform: translateY(-50%);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .edu-cert-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 1rem;
    }

}


/* Additional CSS for security features */
    .honeypot {
        display: none !important;
    }

    .captcha-container {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border: 1px solid #e9ecef;
    }

    .captcha-question {
        font-weight: 600;
        color: #555;
        flex: 1;
    }

    .captcha-input {
        width: 80px !important;
        text-align: center;
        padding: 8px;
        border: 2px solid #ddd;
        border-radius: 4px;
        font-size: 16px;
    }

    .captcha-input:focus {
        border-color: #007bff;
        outline: none;
    }

    .status-message {
        padding: 15px;
        border-radius: 8px;
        margin-top: 20px;
        font-weight: 600;
        text-align: center;
        display: none;
    }

    .status-message.success {
        background: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
    }

    .status-message.error {
        background: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
    }

    .status-message.warning {
        background: #fff3cd;
        color: #856404;
        border: 1px solid #ffeaa7;
    }

    .loading {
        display: inline-block;
        width: 16px;
        height: 16px;
        border: 2px solid #ffffff;
        border-radius: 50%;
        border-top-color: transparent;
        animation: spin 1s ease-in-out infinite;
        margin-left: 8px;
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }


    /* Keep all existing CSS styles as they are, just update/add these WhatsApp button styles */

/* WhatsApp Float Button Styles */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 2px 2px 10px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(8deg);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    background: rgb(255 255 255 / 5%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Add WhatsApp responsive styles inside your existing media query */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 25px;
        left: 25px;
        width: 60px;
        height: 60px;
    }
    
    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}