/* Click Counters Styles */
.click-counters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.click-counter {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.github-counter {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.visit-counter {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.download-counter {
    background: rgba(255, 62, 110, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.click-counter i {
    font-size: 0.7rem;
}


/* Feedback Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.close-modal:hover {
    color: var(--accent);
}

.feedback-form {
    margin-bottom: 30px;
}

.rating-section {
    margin-bottom: 20px;
}

.stars {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.stars i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.2s;
}

.stars i.active {
    color: var(--warning);
}

.comment-section textarea {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background-color: var(--card-bg);
    color: var(--text);
    min-height: 100px;
    resize: vertical;
    margin-bottom: 20px;
}

.feedback-display {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.feedback-item {
    background: rgba(67, 97, 238, 0.05);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--border);
}

.feedback-item .rating {
    color: var(--warning);
    margin-bottom: 8px;
}

.feedback-item .comment {
    color: var(--text);
    font-style: italic;
}

.feedback-item .date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 8px;
}

#submit-feedback {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
}

/* Modern Portfolio CSS with Fixed Skills Section */
:root {
    /* Light Theme Colors */
    --primary: #4361ee;       /* Vibrant blue */
    --secondary: #3f37c9;     /* Darker blue */
    --accent: #ff3e6e;        /* Energetic pink */
    --background: #f8f9fa;    /* Light gray background */
    --card-bg: #ffffff;       /* Pure white cards */
    --text: #1a1a2e;          /* Dark blue text */
    --text-secondary: #4a4a6a;/* Slightly lighter text */
    --border: #e0e5ff;        /* Soft blue border */
    --white: #ffffff;         /* Pure white */
    --success: #2ecc71;       /* Green for success */
    --warning: #f39c12;       /* Orange for warnings */
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --primary: #5d7eff;       /* Bright blue */
    --secondary: #4a6bff;     /* Primary blue */
    --accent: #ff5d8f;        /* Soft pink */
    --background: #121212;    /* Dark background */
    --card-bg: #1e1e1e;      /* Dark card background */
    --text: #e6e6ff;         /* Light blue text */
    --text-secondary: #b8b8d4;/* Lighter text */
    --border: #2a2a4a;       /* Dark border */
    --white: #ffffff;        /* Pure white */
    --success: #3ddc84;      /* Brighter green */
    --warning: #ffbe0b;      /* Bright yellow */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

section {
    padding: 80px 0;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

p {
    margin-bottom: 15px;
    color: var(--text);
}

a {
    text-decoration: none;
    color: var(--primary);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

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

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

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--white);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
}

.theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

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

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h1 {
    margin-bottom: 15px;
    color: white;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

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

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: transform 0.3s;
}

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

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

.hero-image img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

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

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
}

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

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--primary);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Updated Project Links */
.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link i {
    font-size: 0.9rem;
}

.github-link {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.github-link:hover {
    background: var(--primary);
    color: white;
}

.visit-link {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.visit-link:hover {
    background: var(--success);
    color: white;
}

.download-link {
    background: rgba(255, 62, 110, 0.1);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.download-link:hover {
    background: var(--accent);
    color: white;
}

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

.skill-category {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    color: var(--text);
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    line-height: 1.5;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.1rem;
}

/* Simplified Contact Section */
.contact-content {
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-info {
    max-width: 500px;
}

.contact-info p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.contact-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 30px;
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
    transition: all 0.3s;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 20px 0;
    text-align: center;
}

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

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

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

    .hero-image {
        margin-top: 40px;
    }

    .nav-links {
        display: none;
    }
    
    section {
        padding: 60px 0;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        justify-content: center;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .hero-image img {
        width: 200px;
        height: 200px;
    }
}
