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

html, body {
    height: 100%;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0f0f0f;
    color: #e8eaed;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #e8eaed;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::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 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

header h1 {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: #ffffff;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    color: #b3b3b3;
}

/* Navigation */
nav {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #2d2d2d;
}

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

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

nav a {
    color: #9aa0a6;
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a:hover {
    background-color: #2d2d2d;
    color: #8ab4f8;
}

nav a.external::after {
    content: 'open_in_new';
    font-family: 'Material Icons';
    font-size: 16px;
    opacity: 0.6;
}

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.burger-menu:hover {
    background-color: #2d2d2d;
}

.burger-line {
    width: 25px;
    height: 3px;
    background-color: #9aa0a6;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Burger Menu Animation */
.burger-menu.active .burger-line:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
    background-color: #8ab4f8;
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
    background-color: #8ab4f8;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1a1a1a;
    border-top: 1px solid #2d2d2d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid #2d2d2d;
    margin: 0;
    border-radius: 0;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background-color: #2d2d2d;
    color: #8ab4f8;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Card Styles */
.card {
    background: #1a1a1a;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #2d2d2d;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.6);
    border-color: #3c4043;
}

.card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #2d2d2d;
}

.card-content {
    padding: 2rem;
}

.card h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #e8eaed;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card h2 .material-icons {
    color: #8ab4f8;
    font-size: 1.5rem;
}

.card p {
    color: #9aa0a6;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.project-card {
    background: #2d2d2d;
    border-radius: 8px;
    padding: 1.5rem;
    border-left: 4px solid #8ab4f8;
    transition: all 0.3s ease;
}

.project-card:hover {
    background: #3c4043;
    transform: translateX(4px);
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-card h3 a {
    color: #8ab4f8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-card h3 a:hover {
    text-decoration: underline;
    color: #aecbfa;
}

.project-card p {
    color: #9aa0a6;
    font-size: 0.95rem;
}

.project-card p a {
    color: #8ab4f8;
}

.project-card p a:hover {
    color: #aecbfa;
}

/* Project Status Styles */
.project-meta {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-status.active {
    background: #1a7f37;
    color: #ffffff;
}

.project-status.inactive {
    background: #cf222e;
    color: #ffffff;
}

.project-status.maintenance {
    background: #fb8500;
    color: #ffffff;
}

/* Skills Section */
.skills-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #2d2d2d;
}

.skills-section h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #e8eaed;
    margin-bottom: 1rem;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.skill-tag:hover {
    transform: translateY(-2px);
}

/* Contact Links */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.contact-item {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #2d2d2d;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: #8ab4f8;
    box-shadow: 0 8px 25px rgba(138, 180, 248, 0.2);
}

.contact-item a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}

.contact-item .material-icons {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    opacity: 0.9;
}

/* Enhanced hover effect */
.contact-item:hover .material-icons {
    transform: scale(1.1);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .contact-item a {
        font-size: 1rem;
    }
    
    .contact-item .material-icons {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        min-height: 90px;
    }
}
/* Footer */
footer {
    background: #1a1a1a;
    color: #9aa0a6;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-top: 1px solid #2d2d2d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .burger-menu {
        display: flex;
    }

    .nav-container {
        justify-content: center;
        position: relative;
    }

    .burger-menu {
        position: absolute;
        right: 2rem;
    }

    header {
        padding: 2rem 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .container {
        padding: 2rem 1rem;
    }

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

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* Active navigation state */
nav a.active {
    background-color: #2d2d2d;
    color: #8ab4f8;
    font-weight: 600;
}

/* Additional hover effects */
.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

/* Improved mobile responsiveness */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.75rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .card-header, .card-content {
        padding: 1.5rem;
    }
    
    .project-card {
        padding: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mobile-menu a {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    header {
        background: none !important;
        color: black !important;
    }
    
    nav {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .contact-item {
        background: none !important;
        color: black !important;
        border: 1px solid #ddd;
    }
    
    .back-to-top {
        display: none;
    }
}

/* Skip link styles - hidden by default, visible on focus */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Contact form styles */
.contact-form-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
}

.contact-form-section h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-family: 'Google Sans', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

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

.submit-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-family: 'Google Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-self: start;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
}

/* Discord Bot Section Improvements */
#discord-bot .card-content {
    padding: 1.5rem;
}

.bot-features {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #5865f2;
}

.bot-features h3 {
    color: #5865f2;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bot-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bot-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: rgba(255, 255, 255, 0.9);
}

.bot-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #00d4aa;
    font-weight: bold;
}

/* Bot Action Buttons */
.bot-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.bot-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    min-width: 140px;
    justify-content: center;
}

.bot-invite-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    text-decoration: none;
    color: white;
}

.bot-invite-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.bot-invite-btn .material-icons {
    font-size: 1.2rem;
}

/* Policy Buttons */
.bot-policies {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-width: 120px;
    justify-content: center;
}

.policy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.policy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.policy-btn .material-icons {
    font-size: 1.1rem;
}

/* Bot Action Buttons - Updated for button elements */
.bot-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.bot-invite-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    text-decoration: none;
    border: none; /* Remove default button border */
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem; /* Ensure consistent font size */
    font-family: inherit; /* Inherit font family */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    min-width: 140px;
    justify-content: center;
}

.bot-invite-btn:hover {
    background: linear-gradient(135deg, #4752c4, #3c45a5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    color: white;
}

.bot-invite-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(88, 101, 242, 0.3);
}

.bot-invite-btn:focus {
    outline: 2px solid #5865f2;
    outline-offset: 2px;
}

.bot-invite-btn .material-icons {
    font-size: 1.2rem;
}

/* Policy Buttons - Already properly styled as buttons */
.bot-policies {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.policy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-weight: 400;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    justify-content: center;
}

.policy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.policy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.policy-btn:focus {
    outline: 2px solid #5865f2;
    outline-offset: 2px;
}

.policy-btn .material-icons {
    font-size: 1.1rem;
}

/* Special styling for different bot types */
.bot-invite-btn:nth-child(1) {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.bot-invite-btn:nth-child(1):hover {
    background: linear-gradient(135deg, #ee5a52, #dc4c41);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.bot-invite-btn:nth-child(2) {
    background: linear-gradient(135deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 12px rgba(78, 205, 196, 0.3);
}

.bot-invite-btn:nth-child(2):hover {
    background: linear-gradient(135deg, #44a08d, #3d8b7a);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Responsive Design for Bot Section */
@media (max-width: 768px) {
    .bot-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .bot-invite-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bot-policies {
        flex-direction: column;
        align-items: stretch;
    }
    
    .policy-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Additional styles for dynamic status indicators */
.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.status-indicator.active {
    background-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
    animation: pulse-green 2s infinite;
}

.status-indicator.development {
    background-color: #FF9800;
    box-shadow: 0 0 10px rgba(255, 152, 0, 0.5);
    animation: pulse-orange 2s infinite;
}

.status-indicator.offline {
    background-color: #f44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.5);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

@keyframes pulse-orange {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}

.bot-status {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 3px solid transparent;
}

.bot-status.online {
    border-left-color: #4CAF50;
}

.bot-status.development {
    border-left-color: #FF9800;
}

.bot-status.offline {
    border-left-color: #f44336;
}

.status-text {
    font-weight: 500;
    font-size: 0.9em;
}

/* Last updated timestamp */
.last-updated {
    font-size: 0.8em;
    color: #888;
    margin-top: 5px;
    font-style: italic;
}