/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 49ers Color Theme */
    --primary-color: #AA0000;        /* 49ers Red */
    --secondary-color: #B3995D;      /* 49ers Gold */
    --accent-color: #DD0000;         /* Bright Red */
    --text-dark: #FFFFFF;            /* White text */
    --text-light: #D4D4D4;           /* Light gray text */
    --bg-dark: #0A0A0A;              /* Almost black */
    --bg-darker: #1A1A1A;            /* Dark gray */
    --bg-card: #1F1F1F;              /* Card background */
    --border-color: #AA0000;         /* Red borders */
    --success-color: #B3995D;        /* Gold for success */
    --warning-color: #DD0000;        /* Red for warnings */
    --glow-red: rgba(170, 0, 0, 0.5);    /* Red glow */
    --glow-gold: rgba(179, 153, 93, 0.5); /* Gold glow */
}

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

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

/* Navigation */
.navbar {
    background-color: var(--bg-darker);
    box-shadow: 0 2px 10px var(--glow-red);
    border-bottom: 2px solid var(--primary-color);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
}

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1A0000 50%, var(--bg-dark) 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--glow-red) 0%, transparent 70%);
    opacity: 0.3;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.5; }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

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

.highlight {
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--glow-gold);
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px var(--glow-red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--glow-red), 0 10px 20px rgba(170, 0, 0, 0.4);
    background-color: var(--accent-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-gold);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 25px var(--glow-gold);
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

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

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

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--bg-darker);
}

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

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-light);
}

.certifications {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-red);
}

.certifications h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.certifications ul {
    list-style: none;
}

.certifications li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
}

.certifications li:last-child {
    border-bottom: none;
}

.certifications i {
    color: var(--success-color);
    margin-right: 0.5rem;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.project-card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--glow-red);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px var(--glow-red), 0 10px 30px rgba(170, 0, 0, 0.3);
    border-color: var(--accent-color);
}

.project-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-card h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.project-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background-color: var(--bg-darker);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 5px var(--glow-gold);
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}

.project-link:hover {
    gap: 0.8rem;
}

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

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

.skill-category {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 0 10px var(--glow-red);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.skill-category li {
    padding: 0.8rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}

.skill-category li:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.contact-content {
    max-width: 800px;
    margin: 3rem auto 0;
}

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

.contact-item {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 10px var(--glow-red);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--glow-red);
}

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

.contact-item h4 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

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

.contact-item a:hover {
    text-decoration: underline;
}

.contact-item p {
    color: var(--text-light);
}

/* Footer */
.footer {
    background-color: var(--bg-darker);
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -2px 10px var(--glow-red);
}

.footer-tagline {
    margin-top: 0.5rem;
    opacity: 0.8;
    font-style: italic;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
}