/* Connect Section */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.connect-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.connect-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
}

.connect-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.connect-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.connect-card:hover::before {
    transform: translateX(0);
}

.connect-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.connect-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
    transition: var(--transition);
}

.connect-icon svg {
    width: 28px;
    height: 28px;
    transition: var(--transition);
}

.connect-info {
    flex: 1;
}

.connect-info h3 {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.connect-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.connect-handle {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: 'Courier New', monospace;
}

.connect-arrow {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: bold;
    transition: var(--transition);
    flex-shrink: 0;
}

.connect-card:hover .connect-arrow {
    transform: translateX(5px);
}

/* Platform-specific styling */
.connect-card.github {
    --platform-color: #333;
}

.connect-card.github .connect-icon {
    background: rgba(51, 51, 51, 0.1);
    color: #333;
}

.connect-card.github:hover .connect-icon {
    background: rgba(51, 51, 51, 0.2);
    transform: scale(1.1);
}

.connect-card.linkedin {
    --platform-color: #0077b5;
}

.connect-card.linkedin .connect-icon {
    background: rgba(0, 119, 181, 0.1);
    color: #0077b5;
}

.connect-card.linkedin:hover .connect-icon {
    background: rgba(0, 119, 181, 0.2);
    transform: scale(1.1);
}

.connect-card.twitter {
    --platform-color: #1da1f2;
}

.connect-card.twitter .connect-icon {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.connect-card.twitter:hover .connect-icon {
    background: rgba(29, 161, 242, 0.2);
    transform: scale(1.1);
}

.connect-card.tryhackme {
    --platform-color: #212c42;
}

.connect-card.tryhackme .connect-icon {
    background: rgba(33, 44, 66, 0.1);
    color: var(--primary-color);
}

.connect-card.tryhackme:hover .connect-icon {
    background: rgba(0, 255, 136, 0.1);
    transform: scale(1.1);
}

.connect-card.bugcrowd {
    --platform-color: #f26822;
}

.connect-card.bugcrowd .connect-icon {
    background: rgba(242, 104, 34, 0.1);
    color: #f26822;
}

.connect-card.bugcrowd:hover .connect-icon {
    background: rgba(242, 104, 34, 0.2);
    transform: scale(1.1);
}

.connect-card.hackerone {
    --platform-color: #494649;
}

.connect-card.hackerone .connect-icon {
    background: rgba(73, 70, 73, 0.1);
    color: #494649;
}

.connect-card.hackerone:hover .connect-icon {
    background: rgba(73, 70, 73, 0.2);
    transform: scale(1.1);
}

.connect-card.google-cloud {
    --platform-color: #4285f4;
}

.connect-card.google-cloud .connect-icon {
    background: rgba(66, 133, 244, 0.1);
    color: #4285f4;
}

.connect-card.google-cloud:hover .connect-icon {
    background: rgba(66, 133, 244, 0.2);
    transform: scale(1.1);
}

.connect-card.pentesterlab {
    --platform-color: #ff6b35;
}

.connect-card.pentesterlab .connect-icon {
    background: rgba(255, 107, 53, 0.1);
    color: #ff6b35;
}

.connect-card.pentesterlab:hover .connect-icon {
    background: rgba(255, 107, 53, 0.2);
    transform: scale(1.1);
}

.connect-card.intigriti {
    --platform-color: #00d4aa;
}

.connect-card.intigriti .connect-icon {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
}

.connect-card.intigriti:hover .connect-icon {
    background: rgba(0, 212, 170, 0.2);
    transform: scale(1.1);
}

/* Dark theme adjustments for connect cards */
.connect-card.github .connect-icon {
    color: var(--text-primary);
}

.connect-card.github:hover .connect-icon {
    color: var(--primary-color);
}

/* Contact Section *//* CSS Variables */
:root {
    --primary-color: #00ff88;
    --secondary-color: #0066ff;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --shadow: 0 4px 20px rgba(0, 255, 136, 0.1);
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--primary-color); }
    50% { box-shadow: 0 0 20px var(--primary-color); }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-logo:hover {
    text-shadow: 0 0 10px var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23333" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    z-index: -1;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-name {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-location {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.hero-summary {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: #00cc6a;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-ghost:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.skill-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.skill-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.skill-rating .star {
    color: #333;
    font-size: 1.2rem;
    transition: var(--transition);
}

.skill-rating .star.filled {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-color);
}

.skill-progress {
    width: 100%;
    height: 6px;
    background: var(--bg-primary);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.skill-progress::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width 1s ease-out;
    width: 0;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    animation: slideInLeft 0.6s ease-out;
}

.timeline-marker {
    position: absolute;
    left: -25px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-left: 1rem;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.timeline-period {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.timeline-location {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
}

.timeline-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.timeline-content li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
}

/* Education Grid */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.education-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.education-period {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.education-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.education-card p {
    color: var(--text-secondary);
}

/* Certifications Grid */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.cert-card {
    background: var(--bg-tertiary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.6s ease-out;
}

.cert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.cert-badge {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.cert-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-value {
    color: var(--text-primary);
    font-size: 1.1rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0;
    transition: var(--transition);
}

.contact-value:hover {
    color: var(--primary-color);
}

/* Form Styles */
.contact-form {
    background: var(--bg-tertiary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.error-message {
    color: #ff4444;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: block;
    min-height: 1.2rem;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 100px;
    right: 2rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1001;
    max-width: 300px;
}

.toast.show {
    transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .connect-grid {
        grid-template-columns: 1fr;
    }
    
    .connect-card {
        padding: 1.25rem;
    }
    
    .connect-icon {
        width: 44px;
        height: 44px;
    }
    
    .connect-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-content {
        margin-left: 0.5rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem 15px;
    }
    
    .nav-menu {
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .connect-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .connect-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .connect-icon {
        width: 40px;
        height: 40px;
    }
    
    .connect-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .connect-info h3 {
        font-size: 1rem;
    }
    
    .connect-info p {
        font-size: 0.85rem;
    }
    
    .connect-handle {
        font-size: 0.8rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Print Styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .nav,
    .back-to-top,
    .toast,
    .hero-actions,
    .footer-actions,
    .contact-form,
    .connect-arrow {
        display: none !important;
    }
    
    .connect-card {
        break-inside: avoid;
        margin-bottom: 0.5rem;
        padding: 1rem;
        border: 1px solid #ccc !important;
        background: white !important;
    }
    
    .connect-card .connect-info h3,
    .connect-card .connect-handle {
        color: black !important;
    }
    
    .connect-card .connect-info p {
        color: #666 !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1.5rem 0;
        break-inside: avoid;
    }
    
    .skill-card,
    .timeline-item,
    .education-card,
    .cert-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .hero-name {
        background: none !important;
        -webkit-text-fill-color: initial !important;
        color: black !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 24pt; }
    h2 { font-size: 18pt; }
    h3 { font-size: 14pt; }
}

/* Accessibility Enhancements */
@media (forced-colors: active) {
    .btn {
        border: 1px solid ButtonText;
    }
    
    .skill-rating .star.filled {
        color: Highlight;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus,
.btn:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}