/* Base Styles */
:root {
    --primary-color: #DC143C;
    --primary-hover: #B01030;
    --bg-color: #0a192f;
    --text-color: #fff;
    --secondary-color: #27ae60;
    --dark-bg: #0a192f;
    --light-text: #ffffff;
    --dark-text: #333333;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--dark-bg);
    color: var(--light-text);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--light-text);
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    background: var(--bg-color);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #888;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(46, 204, 113, 0.2);
    border: 5px solid var(--primary-color);
}

.social-links-hero {
    margin-top: 2rem;
}

.social-links-hero a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.primary-btn {
    background: var(--primary-color);
    color: var(--text-color);
}

.primary-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

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

.secondary-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 5rem 5%;
    background: #222;
}

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

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

.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.about-image-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    padding: 12px;
    background: #6C5CE7;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.about-image-circle::before {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--dark-bg);
    border-radius: 50%;
    z-index: 0;
}

.about-image-circle img {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

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

.about-image {
    display: none;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #888;
}

/* Gradient Text for Name Only */
.gradient-text {
    background: linear-gradient(45deg, #FF0000, #87CEEB, #FF69B4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

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

/* Typing Animation */
.typing-container {
    min-height: 60px;
    margin: 1rem 0;
}

/* Remove other gradient effects */
.typing-text {
    color: #fff;
    font-weight: 600;
}

.typing-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: #fff;
    animation: blink 0.7s infinite;
}

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

/* Skills Section Styles */
.skills {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Programming Languages Category */
.skill-category:nth-child(1) {
    --category-color: #9B59B6; /* Purple */
}

/* Web Technologies Category */
.skill-category:nth-child(2) {
    --category-color: #3498DB; /* Blue */
}

/* Tools & Technologies Category */
.skill-category:nth-child(3) {
    --category-color: #2ECC71; /* Green */
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-title {
    font-size: 20px;
    color: var(--category-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.skill-icon {
    width: 40px;
    height: 40px;
    background: var(--category-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.skill-icon:hover {
    transform: scale(1.1);
}

.skill-icon i {
    font-size: 18px;
    color: #fff;
}

.skill-info {
    flex: 1;
}

.skill-info h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 5px;
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--category-color);
    border-radius: 3px;
    transition: width 1s ease;
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
    background: #222;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

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

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

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.project-info p {
    color: #888;
    margin-bottom: 1rem;
}

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

/* Contact Section */
.contact {
    padding: 5rem 5%;
    background: var(--dark-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(10px);
}

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

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

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--light-text);
    font-family: inherit;
}

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

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

/* Footer */
.footer {
    background: #222;
    padding: 2rem 5%;
    text-align: center;
}

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

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

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

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

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

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

    .hamburger {
        display: block;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

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

    .project-card {
        margin: 0 auto;
        max-width: 350px;
    }

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

    .skill-category {
        padding: 20px;
    }
}

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

/* Particles Container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Adjust all sections to work with particles */
.navbar,
.hero,
.about,
.skills,
.projects,
.contact,
.footer {
    position: relative;
    z-index: 2;
}

.hero,
.skills {
    background: transparent;
}

.about,
.projects,
.footer {
    background: rgba(10, 25, 47, 0.7);
}

/* Font Awesome Embed */
@font-face {
    font-family: 'FontAwesome';
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-brands-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-regular-400.woff2') format('woff2'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/webfonts/fa-solid-900.woff2') format('woff2');
}

.fab, .far, .fas {
    font-family: 'FontAwesome';
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid #27ae60;
}

.form-message.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Popup Styles */
.success-popup,
.error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.success-popup.show,
.error-popup.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.success-popup.show .popup-content,
.error-popup.show .popup-content {
    transform: translateY(0);
}

.success-popup i {
    font-size: 50px;
    color: #4CAF50;
    margin-bottom: 15px;
}

.error-popup i {
    font-size: 50px;
    color: #f44336;
    margin-bottom: 15px;
}

.popup-content h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.popup-content p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.5;
}

.close-popup {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.close-popup:hover {
    background-color: #555;
}

/* Form Message Styles */
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
    border: 1px solid #4CAF50;
}

.form-message.error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid #f44336;
}

/* Education Section Styles */
.education {
    padding: 80px 0;
    background-color: var(--bg-color);
    position: relative;
}

.education-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.education-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.education-timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: #6C5CE7; /* Bluish-purple color */
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.education-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
}

.education-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 30px;
}

.education-content {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    width: calc(50% - 30px);
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.education-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(108, 92, 231, 0.2);
}

.education-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #6C5CE7; /* Bluish-purple color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    right: -25px;
    top: 30px;
    z-index: 1;
}

.education-item:nth-child(even) .education-icon {
    right: auto;
    left: -25px;
}

.education-icon i {
    font-size: 20px;
    color: #fff;
}

.education-year {
    font-size: 14px;
    color: #6C5CE7; /* Bluish-purple color */
    margin-bottom: 10px;
    font-weight: 500;
}

.education-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.education-content .institution {
    font-size: 16px;
    color: #6C5CE7; /* Bluish-purple color */
    margin-bottom: 15px;
    font-weight: 500;
}

.education-content .description {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

@media (max-width: 768px) {
    .education-timeline::before {
        left: 0;
    }

    .education-item,
    .education-item:nth-child(even) {
        justify-content: flex-start;
        padding-left: 30px;
        padding-right: 0;
    }

    .education-content {
        width: 100%;
    }

    .education-icon {
        left: -25px;
        right: auto;
    }
} 