/* Modern, Secure, Dark-Themed Styling for Cybersecurity Portfolio */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: rgba(17, 24, 39, 0.45);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --accent-color: #38bdf8;
    --accent-secondary: #c084fc;
    --accent-glow: rgba(56, 189, 248, 0.2);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    filter: brightness(1.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.logo-accent {
    color: var(--accent-color);
}

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Layout */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem; /* Account for navbar */
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.hero-text {
    flex: 1;
}

.greeting {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(270deg, #38bdf8, #818cf8, #38bdf8);
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.title {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.summary {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.summary strong {
    color: var(--text-primary);
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    font-family: var(--font-heading);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #0a0e17;
}

.btn-primary:hover {
    background-color: #7dd3fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.hero-image {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    object-fit: cover;
    z-index: 2;
    border: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.15);
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.hero-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(56, 189, 248, 0.3), 
                0 0 60px rgba(129, 140, 248, 0.2);
    border-color: rgba(56, 189, 248, 0.8);
}

.hero-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--accent-color);
    filter: blur(100px);
    opacity: 0.2;
    z-index: 1;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Cards & Components */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.interactive-card {
    display: flex;
    flex-direction: column;
}

.interactive-card:hover {
    transform: translateY(-5px);
    border-color: rgba(192, 132, 252, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(192, 132, 252, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.card-header h3, .card-header h4 {
    margin: 0;
    color: #fff;
}

.date {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    white-space: nowrap;
}

.company, .degree {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.education-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-cards h3 {
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent-secondary);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(192, 132, 252, 0.2);
}

/* Grids */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-cards .card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

.tag {
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    font-family: var(--font-heading);
}

.tag.outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.text-link {
    font-family: var(--font-heading);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.card-meta {
    font-size: 0.85rem !important;
    color: var(--accent-color) !important;
    font-weight: 500;
    margin-bottom: 1rem !important;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.skills-col h3, .certifications-col h3 {
    margin-bottom: 2rem;
}

.skill-category {
    margin-bottom: 2rem;
}

.skill-category h4 {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cert-list {
    list-style: none;
    margin-top: 1rem;
}

.cert-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cert-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

.mt-4 {
    margin-top: 1.5rem;
}

/* Contact */
.contact-box {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 2rem;
}

.text-center {
    text-align: center;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.contact-link:hover {
    background: rgba(56, 189, 248, 0.1);
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.location {
    margin-top: 0.5rem;
    font-family: var(--font-heading);
    color: var(--text-primary) !important;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }

    .name {
        font-size: 3.5rem;
    }

    .about-grid, .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .section {
        padding: 4rem 0;
    }
    
    .name {
        font-size: 2.8rem;
    }
    
    .title {
        font-size: 1.4rem;
    }

    .card-header {
        flex-direction: column;
    }
    
    .date {
        margin-top: 0.5rem;
    }

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

    .timeline-dot {
        left: 4px;
    }

    .timeline-item {
        padding-left: 40px;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
}
