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

canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.3;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    overflow-x: hidden;
    background: #0a0a0a;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    position: relative;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 110px;
    flex: 1;
}

/* Header Styles */
header {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.profile-img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, #4ecdc4, #2dbeb5);
}

.profile-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #0a192f;
}

.profile-img::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4ecdc4, #2dbeb5);
    z-index: -1;
    border-radius: 50%;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Social Links */
.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #ff6b6b;
    transform: translateY(-3px);
}

/* Section Styles */
section {
    min-height: 100vh;
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #4ecdc4;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2 i {
    font-size: 2rem;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.highlight-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    background: rgba(78, 205, 196, 0.2);
}

.highlight-item i {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* About Section Highlight Icons */
.web-dev i {
    color: #61DAFB; /* React blue */
    background: linear-gradient(135deg, #61DAFB, #764ABC); /* React to Redux gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cloud-dev i {
    color: #FF9900; /* AWS orange */
    background: linear-gradient(135deg, #FF9900, #4ecdc4); /* AWS to Cloud gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.database-dev i {
    color: #47A248; /* MongoDB green */
    background: linear-gradient(135deg, #47A248, #4479A1); /* MongoDB to MySQL gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blockchain-dev i {
    color: #627EEA; /* Ethereum blue */
    background: linear-gradient(135deg, #627EEA, #F7931A); /* Ethereum to Bitcoin gradient */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Project Section Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    color: #fff;
    margin: 0.5rem 0;
    font-size: 1.25rem;
}

.project-card p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.project-links a {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.github-btn {
    background: #24292e;
    color: #fff;
    border: 1px solid #1b1f23;
}

.github-btn:hover {
    background: #2c3238;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.live-btn {
    background: linear-gradient(135deg, #4ecdc4, #2dbeb5);
    color: #fff;
    border: none;
}

.live-btn:hover {
    background: linear-gradient(135deg, #45c1b8, #26a79f);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.project-links a i {
    font-size: 1.1rem;
}

.github-btn i {
    color: #fff;
}

.live-btn i {
    color: #fff;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #ccc;
}

@media (max-width: 480px) {
    .project-links {
        flex-direction: column;
    }
    
    .project-links a {
        width: 100%;
    }
}

/* Skills Section */
.skills-container {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.skills-category h3 {
    color: #4ecdc4;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.skill {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.skill:hover {
    transform: translateY(-3px);
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ecdc4;
}

.skill i {
    color: #4ecdc4;
    font-size: 1.2rem;
    width: 1.5rem;
    text-align: center;
}

.aws-skill i {
    color: #FF9900;
}

.firebase-skill i {
    color: #FFA000;
}

.serverless-skill i {
    color: #00C7B7;
}

.graphql-skill i {
    color: #E535AB;
}

.web3-skill i {
    color: #627EEA;
}

.blockchain-skill i {
    color: #F7931A;
}

.html-skill i {
    color: #E34F26;
}

.css-skill i {
    color: #1572B6;
}

.js-skill i {
    color: #F7DF1E;
}

.react-skill i {
    color: #61DAFB;
}

.angular-skill i {
    color: #DD0031;
}

.nextjs-skill i {
    color: #000000;
}

.vue-skill i {
    color: #4FC08D;
}

.sass-skill i {
    color: #CC6699;
}

.tailwind-skill i {
    color: #38B2AC;
}

.bootstrap-skill i {
    color: #7952B3;
}

.responsive-skill i {
    color: #4ecdc4;
}

.nodejs-skill i {
    color: #339933;
}

.express-skill i {
    color: #000000;
}

.mongodb-skill i {
    color: #47A248;
}

.mysql-skill i {
    color: #4479A1;
}

.rest-skill i {
    color: #4ecdc4;
}

.auth-skill i {
    color: #FFD700;
}

.git-skill i {
    color: #F05032;
}

.github-skill i {
    color: #181717;
}

.docker-skill i {
    color: #2496ED;
}

.npm-skill i {
    color: #CB3837;
}

.typescript-skill i {
    color: #3178C6;
}

.terminal-skill i {
    color: #4EAA25;
}

.git-branch-skill i {
    color: #F05032;
}

.debug-skill i {
    color: #FF6B6B;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
    
    .skill {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #4ecdc4;
}

.timeline-item {
    padding: 2rem;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.08);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: #4ecdc4;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.2);
}

.timeline-content::before {
    content: '';
    position: absolute;
    right: -45px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #4ecdc4;
    border-radius: 50%;
    border: 4px solid rgba(78, 205, 196, 0.3);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -45px;
}

.timeline-content h3 {
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.company {
    color: #ff6b6b;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.timeline-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.location {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location::before {
    content: '📍';
    font-size: 1rem;
}

.employment-type {
    color: #4ecdc4;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.experience-details {
    list-style-type: none;
    padding: 0;
    margin-top: 1rem;
}

.experience-details li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-details li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #4ecdc4;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
}

.contact p {
    text-align: center;
    margin-bottom: 3rem;
    color: #ccc;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-form h3 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #fff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4ecdc4;
    background: rgba(255, 255, 255, 0.15);
}

.submit-btn {
    background: linear-gradient(45deg, #4ecdc4, #2dbeb5);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.2);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn i {
    font-size: 1rem;
}

.contact-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.contact-info h3 {
    color: #4ecdc4;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    color: #4ecdc4;
    font-size: 1.5rem;
    width: 2rem;
}

.contact-text h4 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.contact-text a,
.contact-text p {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #4ecdc4;
}

.social-links h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #4ecdc4;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    color: #fff;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact {
        padding: 4rem 1rem;
    }

    .contact-form,
    .contact-info {
        padding: 1.5rem;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 5px;
    color: white;
    z-index: 1000;
    animation: slideIn 0.5s ease forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background: linear-gradient(45deg, #4ecdc4, #2dbeb5);
}

.notification.error {
    background: linear-gradient(45deg, #ff6b6b, #ff5252);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Header Styles */
.title-text {
    font-size: 1.8rem;
    margin: 1rem 0;
    background: linear-gradient(45deg, #4ecdc4, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

.typing-container {
    margin: 2rem 0;
    text-align: center;
}

.typing-text {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 0.5rem;
}

.typing-words {
    height: 1.8rem;
    overflow: hidden;
}

.typing-words span {
    display: block;
    height: 100%;
    padding-left: 10px;
    color: #4ecdc4;
    animation: spin_words 8s infinite;
    font-weight: bold;
    font-size: 1.4rem;
}

@keyframes spin_words {
    0% { transform: translateY(0%); }
    25% { transform: translateY(-100%); }
    50% { transform: translateY(-200%); }
    75% { transform: translateY(-300%); }
    100% { transform: translateY(-400%); }
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin: 2rem 0;
    justify-content: center;
}

.cta-primary, .cta-secondary {
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-primary {
    background: linear-gradient(45deg, #4ecdc4, #2dbeb5);
    color: white;
    border: none;
}

.cta-secondary {
    background: transparent;
    color: #4ecdc4;
    border: 2px solid #4ecdc4;
}

.cta-primary:hover, .cta-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
}

.cta-primary::before, .cta-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
}

.cta-primary:hover::before, .cta-secondary:hover::before {
    left: 100%;
}

@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-primary, .cta-secondary {
        width: 80%;
        text-align: center;
    }

    .typing-words span {
        font-size: 1.2rem;
    }
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

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

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.stagger-children > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Navigation */
html {
    scroll-behavior: smooth;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #4ecdc4;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: #ff6b6b;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
}

.nav-links a.active {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    font-weight: 500;
}

.nav-links a i {
    font-size: 1rem;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease;
    background-color: #fff;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 25, 47, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 20px 0;
        gap: 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 50px;
    }

    .timeline-content::before {
        left: -35px !important;
        right: auto !important;
    }

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

    .contact-item {
        padding: 1rem;
    }
}

/* Remove the old code rain canvas */
#code-rain {
    display: none;
}

/* Mobile Responsive Styles */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
    }

    main {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    header {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }

    .profile-img {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2.5rem;
        margin-top: 1rem;
    }

    .title-text {
        font-size: 1.2rem;
    }

    .typing-container {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 2rem;
    }

    .cta-buttons a {
        width: 100%;
    }

    .project-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .project-card {
        width: 100%;
    }

    .highlights {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    section {
        padding: 4rem 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-links a {
        width: 100%;
        text-align: center;
    }

    .tech-stack {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Prevent horizontal scrolling on all screen sizes */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}
