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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(45deg, #d4af37 0%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: #ecf0f1;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #d4af37;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ecf0f1;
    position: relative;
    overflow: hidden;
}

.hero::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="rgba(212,175,55,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(212,175,55,0.1)"/><circle cx="25" cy="75" r="1" fill="rgba(212,175,55,0.05)"/><circle cx="75" cy="25" r="1" fill="rgba(212,175,55,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

/* Profile Picture Styles - FIXED VERSION */
.profile-picture {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem auto;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #d4af37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.3);
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #d4af37;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Show placeholder only when image fails to load or has no src */
.profile-picture img[src=""] + .profile-placeholder,
.profile-picture img[src="profile.jpg"] + .profile-placeholder {
    opacity: 1;
}

/* Hide placeholder when image loads successfully */
.profile-picture img.loaded + .profile-placeholder {
    opacity: 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.3s both;
    color: #d4af37;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid #d4af37;
    color: #ecf0f1;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease 0.9s both;
}

.cta-button:hover {
    background: #d4af37;
    color: #2c3e50;
    transform: translateY(-2px);
}

/* Stats Section */
.stats-section {
    background: #ecf0f1;
    padding: 3rem 2rem;
    text-align: center;
}

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

.stat-item {
    background: #2c3e50;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    color: #ecf0f1;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Skills Section */
.skills-section {
    padding: 5rem 2rem;
    background: #2c3e50;
    color: #ecf0f1;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.section-subtitle {
    text-align: center;
    color: #bdc3c7;
    margin-bottom: 3rem;
}

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

.skill-card {
    background: #34495e;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    border-left: 5px solid #d4af37;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.skill-card p {
    color: #bdc3c7;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #2c3e50;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Projects Section */
.projects-section {
    padding: 5rem 2rem;
    background: #34495e;
}

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

.project-card {
    background: #2c3e50;
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #ecf0f1;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(45deg, #d4af37, #b8860b);
}

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

.project-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #ecf0f1;
}

.project-description {
    color: #bdc3c7;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric {
    text-align: center;
    padding: 1rem;
    background: #34495e;
    border-radius: 10px;
}

.metric-number {
    font-size: 2rem;
    font-weight: bold;
    color: #d4af37;
}

.metric-label {
    font-size: 0.9rem;
    color: #bdc3c7;
}

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

.project-link {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-link {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #2c3e50;
}

.secondary-link {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
}

.project-link:hover {
    transform: translateY(-2px);
}

.secondary-link:hover {
    background: #d4af37;
    color: #2c3e50;
}

/* Experience Timeline */
.experience-section {
    padding: 5rem 2rem;
    background: #2c3e50;
    color: #ecf0f1;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #d4af37;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    padding: 2rem;
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 45%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

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

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2rem;
    width: 15px;
    height: 15px;
    background: #d4af37;
    border-radius: 50%;
}

.timeline-item:nth-child(odd)::before {
    right: -8px;
}

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

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

.timeline-title {
    font-size: 1.3rem;
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.timeline-company {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.timeline-description {
    color: #bdc3c7;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ecf0f1;
    text-align: center;
}

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

.contact-card {
    background: rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-card:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
}

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #d4af37;
}

.contact-card h3 {
    color: #ecf0f1;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: #bdc3c7;
}

/* Talk to Me Form Styles */
#talk-to-me {
    background: #ecf0f1;
    color: #2c3e50;
}

#talk-to-me .section-title, #talk-to-me .section-subtitle {
    color: #2c3e50;
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    padding: 2rem;
    background: #34495e;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    flex: 1;
}

.form-field.half {
    width: 50%;
}

label {
    color: #ecf0f1;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

input, textarea {
    padding: 0.75rem;
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.5);
}

.submit-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #2c3e50;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

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

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

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

/* Ensure content is visible by default */
.stat-item, .skill-card, .project-card, .timeline-item, .contact-card {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

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

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

    .timeline-item {
        width: calc(100% - 60px);
        left: 40px !important;
    }

    .timeline-item::before {
        left: -28px !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .profile-placeholder {
        font-size: 3rem;
    }

    .form-group {
        flex-direction: column;
        gap: 0;
    }
    .form-field.half {
        width: 100%;
    }
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #d4af37, #b8860b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.achievements {
    background: rgba(212, 175, 55, 0.1);
    border-left: 4px solid #d4af37;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
}

.achievements h4 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.achievements ul {
    list-style: none;
    padding-left: 1rem;
}

.achievements li {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    position: relative;
}

.achievements li::before {
    content: '►';
    color: #d4af37;
    position: absolute;
    left: -1rem;
}

/* IMMEDIATE VISIBILITY FIX */
.stats-section, .skills-section, .projects-section, .experience-section, .contact-section, #talk-to-me {
    display: block !important;
    visibility: visible !important;
}

.stats-grid, .skills-grid, .projects-grid, .timeline, .contact-grid {
    display: grid !important;
    opacity: 1 !important;
}

.stat-item, .skill-card, .project-card, .timeline-item, .contact-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}