/* Basic Reset & Body Styles */
body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
    scroll-behavior: smooth;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: #2c3e50;
    margin-bottom: 0.5em;
}

h1 { font-size: 2.8em; margin-bottom: 0.2em; }
h2 { font-size: 2.2em; margin-bottom: 0.5em; }
h3 { font-size: 1.8em; margin-bottom: 0.8em; text-align: center;}
h4 { font-size: 1.4em; }

p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2980b9;
}

/* Header & Navigation */
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

header h1 {
    color: #ecf0f1;
    margin: 0;
    font-size: 2em;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #ecf0f1;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #34495e;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #3498db, #8e44ad);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero h2 {
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.3em;
    max-width: 700px;
    margin: 0 auto 30px;
    color: rgba(255, 255, 255, 0.9);
}

.social-links a {
    color: #fff;
    font-size: 2.5em;
    margin: 0 15px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
    color: #f1c40f; /* A subtle highlight color on hover */
}

/* Sections */
section {
    padding: 60px 0;
    background-color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

section:nth-of-type(odd) {
    background-color: #f9f9f9;
}

/* About Section */
.about p {
    text-align: justify;
    max-width: 800px;
    margin: 0 auto 1em;
}

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

.project-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    padding: 25px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 5px solid #3498db;
}

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

.project-card h4 {
    margin-top: 0;
    font-size: 1.3em;
    color: #2c3e50;
}

.project-card h4 a {
    color: #2c3e50;
}

.project-card h4 a:hover {
    color: #3498db;
}

.project-card p {
    font-size: 0.95em;
    color: #555;
}

.project-card .tech-stack {
    font-size: 0.85em;
    color: #7f8c8d;
    margin-top: 15px;
    font-style: italic;
}

.view-more {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    font-weight: 600;
}

/* HackerOne Section */
.hackerone {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background-color: #8e44ad;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 25px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background-color: #9b59b6;
    transform: translateY(-3px);
}

.btn-primary i {
    margin-left: 8px;
}

/* Contact Section */
.contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: center;
}

.contact-list li {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-list li i {
    margin-right: 10px;
    color: #3498db;
    font-size: 1.2em;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
    margin-top: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    nav ul {
        margin-top: 15px;
    }
    nav ul li {
        margin: 5px 10px;
    }
    .hero {
        padding: 60px 15px;
        min-height: 300px;
    }
    .hero h2 {
        font-size: 2em;
    }
    .hero p {
        font-size: 1.1em;
    }
    .social-links a {
        font-size: 2em;
        margin: 0 10px;
    }
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    h3 { font-size: 1.5em; }
    section {
        padding: 40px 0;
    }
    .project-card {
        padding: 20px;
    }
}
