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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    background: linear-gradient(-45deg, #000000, #1a1a2e, #16213e, #0f0f23);
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.navbar {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 15px 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 18px;
}

.code-icon {
    font-size: 24px;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 8px;
    color: white;
    width: 200px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* Hero Content */
.hero-content {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 80px 60px;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

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

.hero-title {
    font-size: 80px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -2px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 30px;
}

.hero-description {
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

/* Tech Stack */
.tech-stack {
    margin-bottom: 40px;
}

.tech-title {
    font-size: 18px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: center;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.tech-badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
    cursor: default;
    border: 2px solid transparent;
}

.tech-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Tech-specific colors */
.tech-badge.python { 
    background: linear-gradient(135deg, #3776ab, #ffd43b); 
    border-color: #306998; 
    color: #fff;
}
.tech-badge.r { 
    background: linear-gradient(135deg, #00519e, #659ad2); 
    border-color: #004c91; 
    color: #fff;
}
.tech-badge.docker { 
    background: linear-gradient(135deg, #2496ed, #0db7ed); 
    border-color: #1a7bc4; 
    color: #fff;
}
.tech-badge.sql { 
    background: linear-gradient(135deg, #e38c00, #f29111); 
    border-color: #cc7a00; 
    color: #fff;
}
.tech-badge.aws { 
    background: linear-gradient(135deg, #ff9900, #232f3e); 
    border-color: #e68a00; 
    color: #fff;
}
.tech-badge.rust { 
    background: linear-gradient(135deg, #ce422b, #000000); 
    border-color: #a0351f; 
    color: #fff;
}

/* Visitor Counter */
.visitor-counter-wrapper {
    margin: 40px 0;
    display: flex;
    justify-content: center;
}

.visitor-counter {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: default;
    min-width: 280px;
}

.visitor-counter:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.counter-display {
    display: flex;
    align-items: center;
    gap: 16px;
}

.counter-icon {
    font-size: 32px;
    opacity: 0.9;
}

.counter-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.counter-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.counter-number {
    font-size: 28px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Hero Buttons Wrapper */
.hero-buttons-wrapper {
    margin: 40px 0;
}

/* Tech Stack Wrapper */
.tech-stack-wrapper {
    margin: 60px 20px 40px 20px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: #333;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    animation: pulse 0.6s ease;
}

@keyframes pulse {
    0%, 100% { transform: translateY(-2px) scale(1.05); }
    50% { transform: translateY(-2px) scale(1.08); }
}

.email {
    margin-bottom: 60px;
    text-align: center;
}

.email-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.email-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.social-link {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* GitHub styling */
.social-link.github {
    background: rgba(124, 58, 237, 0.8);
    border-color: #7c3aed;
    color: white;
}

.social-link.github:hover {
    background: #7c3aed;
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

/* LinkedIn styling */
.social-link.linkedin {
    background: rgba(0, 119, 181, 0.8);
    border-color: #0077b5;
    color: white;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #005885;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 60px;
    }
    
    .hero-subtitle {
        font-size: 36px;
    }
    
    .social-links {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 28px;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-content {
        padding: 40px 30px;
    }
    
    .tech-grid {
        gap: 8px;
        max-width: 100%;
    }
    
    .tech-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Projects Page Styling */
.projects-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-item {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.project-content {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-image {
    flex: 1;
    max-width: 500px;
}

.project-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

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

.project-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
}

.project-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.project-repo-link {
    display: inline-block;
    padding: 12px 25px;
    background: rgba(124, 58, 237, 0.8);
    border: 2px solid #7c3aed;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.project-repo-link:hover {
    background: #7c3aed;
    border-color: #8b5cf6;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

/* Right-aligned projects have image first */
.project-item.right {
    flex-direction: row;
}

.project-item.left {
    flex-direction: row;
}

/* Responsive design for projects */
@media (max-width: 1024px) {
    .project-item {
        gap: 40px;
        padding: 30px;
    }
    
    .project-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .project-item {
        flex-direction: column !important;
        gap: 30px;
        padding: 25px;
        text-align: center;
    }
    
    .project-item.right .project-content {
        order: 1;
    }
    
    .project-item.right .project-image {
        order: 0;
    }
    
    .project-title {
        font-size: 24px;
    }
    
    .project-tech {
        justify-content: center;
    }
}

/* About Page Styling */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.about-section {
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.about-heading {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.5);
    padding-bottom: 10px;
}

.about-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.about-list li::before {
    content: "▸";
    color: #7c3aed;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.contact-link {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.contact-link.github {
    background: rgba(124, 58, 237, 0.8);
    border-color: #7c3aed;
}

.contact-link.github:hover {
    background: #7c3aed;
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.contact-link.linkedin {
    background: rgba(0, 119, 181, 0.8);
    border-color: #0077b5;
}

.contact-link.linkedin:hover {
    background: #0077b5;
    border-color: #005885;
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

/* Responsive design for about page */
@media (max-width: 768px) {
    .about-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .about-heading {
        font-size: 24px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-link {
        text-align: center;
    }
}

/* Contact Page Styling */
.contact-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-section {
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.contact-heading {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(124, 58, 237, 0.5);
    padding-bottom: 10px;
}

.contact-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.contact-methods {
    display: grid;
    gap: 25px;
    margin-bottom: 20px;
}

.contact-method {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.contact-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.contact-info h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.contact-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.contact-link-direct {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-link-direct:hover {
    color: #8b5cf6;
    text-decoration: underline;
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.interest-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.interest-item:hover {
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
}

.interest-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.interest-item p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.quick-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.quick-link {
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.quick-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

.quick-link.primary {
    background: rgba(124, 58, 237, 0.8);
    border-color: #7c3aed;
}

.quick-link.primary:hover {
    background: #7c3aed;
    border-color: #8b5cf6;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

/* Responsive design for contact page */
@media (max-width: 768px) {
    .contact-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .contact-heading {
        font-size: 24px;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-link {
        text-align: center;
        width: 100%;
        max-width: 300px;
    }
}
