/* Base Styles */
:root {
    --primary-color: #00bcd4;
    --secondary-color: #7b1fa2;
    --dark-color: #121212;
    --darker-color: #0a0a0a;
    --light-dark-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #9e9e9e;
    --card-bg: rgba(30, 30, 30, 0.7);
    --card-border: rgba(0, 188, 212, 0.3);
    --gradient-start: #00bcd4;
    --gradient-end: #7b1fa2;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 76px;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 188, 212, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(123, 31, 162, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 188, 212, 0.03) 0%, transparent 100%);
    z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Navbar */
.navbar {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 188, 212, 0.2);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    margin-right: 8px;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;    display: flex;
    align-items: center;
    padding: 100px 0;
    background-color: var(--darker-color);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(10, 10, 10, 0.8) 100%),
        url('../img/cyber-bg.jpg') center/cover no-repeat;
    z-index: -1;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-image {
    max-width: 90%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(0, 188, 212, 0.3));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(45deg, var(--gradient-end), var(--gradient-start));
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.4);
}

.btn-outline-light {
    color: var(--text-color);
    border: 2px solid rgba(224, 224, 224, 0.3);
}

.btn-outline-light:hover {
    background-color: rgba(224, 224, 224, 0.1);
    border-color: var(--text-color);
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-dark {
    background-color: var(--darker-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-divider {
    height: 3px;
    width: 80px;
    background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
    margin: 0 auto 20px;
    border-radius: 3px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Cards */
.content-card, .skill-card, .project-card {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.content-card:hover, .skill-card:hover, .project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 188, 212, 0.5);
}

.content-card h3, .skill-card h3, .project-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Skills Section */
.skill-card {
    text-align: center;
    height: 100%;
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skill-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.skill-card ul li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.skill-card ul li:last-child {
    border-bottom: none;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.feature-list li i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(0, 188, 212, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-date {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.timeline-content h4 {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: -5px;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    margin-top: 15px;
    gap: 8px;
}

.tag {
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

/* Projects */
.project-card {
    overflow: hidden;
    height: 100%;
    padding: 0;
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

/* Certifications */
.cert-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center;
}

.cert-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* Contact */
.contact-info {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.1);
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--darker-color);
    transform: translateY(-3px);
}

/* Form */
.form-control {
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(0, 188, 212, 0.2);
    color: var(--text-color);
    border-radius: 8px;
    padding: 12px 15px;
}

.form-control:focus {
    background-color: rgba(30, 30, 30, 0.7);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 188, 212, 0.25);
    color: var(--text-color);
}

.form-label {
    color: var(--text-muted);
}

/* Footer */
.footer {
    background-color: var(--darker-color);
    padding: 50px 0;
    border-top: 1px solid rgba(0, 188, 212, 0.2);
}

.footer h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.footer p {
    color: var(--text-muted);
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-muted);
    margin-left: 20px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: white;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-dot {
        left: 21px;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-dot {
        left: 21px;
    }
}

@media (max-width: 767.98px) {
    .section {
        padding: 70px 0;
    }
    
    .hero-section {
        padding: 70px 0;
        text-align: center;
    }
    
    .hero-image {
        margin-top: 40px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
    }
}

/* Glowing Effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    z-index: -1;
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 0.3;
}

/* Cybersecurity-themed Decorations */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 188, 212, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 188, 212, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.3;
}

.cyber-circuit {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: url('../img/circuit-pattern.svg');
    background-size: contain;
    opacity: 0.05;
    z-index: -1;
}

.btn-verify {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin: 0 auto;
    max-width: fit-content;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    border: none;
    transition: all 0.3s ease;
}

.btn-verify:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 188, 212, 0.4);
    background: linear-gradient(45deg, var(--gradient-end), var(--gradient-start));
    color: var(--text-color);
}