/* ===========================================
   Custom CSS for Portfolio Website
   =========================================== */

/* Root Variables */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-bg: #0a0a0a;
    --light-bg: #f8f9fa;
    --text-dark: #212529;
    --text-light: #6c757d;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Variables */
body.dark-mode {
    --light-bg: #1a1a1a;
    --dark-bg: #0a0a0a;
    --text-dark: #e9ecef;
    --text-light: #adb5bd;
    --box-shadow: 0 5px 15px rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
}

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

body.dark-mode {
    background-color: var(--dark-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

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

/* Section Padding */
.section-padding {
    padding: 80px 0;
}

/* Section Title */
.section-title h2 {
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), #00d4ff);
    margin-top: 10px;
    border-radius: 2px;
}

/* ===========================================
   Navigation Bar
   =========================================== */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.95) !important;
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.navbar-nav .nav-link {
    margin: 0 10px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===========================================
   Hero Section
   =========================================== */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

body.dark-mode .hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-section::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 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1,
.hero-section h2,
.hero-section p {
    color: #ffffff;
}

.hero-section .contact-info a {
    color: #ffffff;
    text-decoration: none;
}

.hero-section .contact-info a:hover {
    color: #00d4ff;
}

.profile-image-wrapper {
    position: relative;
    display: inline-block;
}

.profile-image {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down a {
    color: #ffffff;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* ===========================================
   Cards
   =========================================== */
.card {
    border: none;
    border-radius: 15px;
    transition: var(--transition);
    background-color: #ffffff;
}

body.dark-mode .card {
    background-color: #1a1a1a;
    color: var(--text-dark);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body.dark-mode .card:hover {
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
}

/* ===========================================
   About Section
   =========================================== */
.about-card {
    border-left: 5px solid var(--primary-color);
}

/* ===========================================
   Timeline (Experience)
   =========================================== */
.timeline {
    position: relative;
    padding: 0;
}

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

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 50px;
}

.timeline-marker {
    position: absolute;
    left: 20px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 4px solid #ffffff;
    z-index: 1;
}

body.dark-mode .timeline-marker {
    border-color: var(--dark-bg);
}

.timeline-content {
    position: relative;
}

/* ===========================================
   Education Section
   =========================================== */
.education-card {
    border-left: 5px solid var(--primary-color);
}

.education-icon {
    flex-shrink: 0;
}

/* ===========================================
   Skills Section
   =========================================== */
.skill-card {
    border-top: 4px solid var(--primary-color);
    transition: var(--transition);
}

.skill-card:hover {
    border-top-color: #00d4ff;
}

.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

body.dark-mode .progress {
    background-color: #2a2a2a;
}

.progress-bar {
    background: linear-gradient(to right, var(--primary-color), #00d4ff);
    border-radius: 10px;
    transition: width 1.5s ease;
}

.tech-badges .badge {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.tech-badges .badge:hover {
    transform: scale(1.1);
}

/* ===========================================
   Achievements Section
   =========================================== */
.achievement-card {
    border-top: 4px solid transparent;
    transition: var(--transition);
}

.achievement-card:hover {
    border-top-color: var(--primary-color);
}

.achievement-icon {
    transition: var(--transition);
}

.achievement-card:hover .achievement-icon {
    transform: scale(1.2) rotate(5deg);
}

/* ===========================================
   Projects Section
   =========================================== */
.project-card {
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.project-card:hover {
    border-left-width: 8px;
}

.project-header i {
    transition: var(--transition);
}

.project-card:hover .project-header i {
    transform: scale(1.2);
}

/* ===========================================
   Contact Section
   =========================================== */
.contact-info-card {
    border-radius: 10px;
    transition: var(--transition);
    background-color: var(--light-bg);
}

body.dark-mode .contact-info-card {
    background-color: #1a1a1a;
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.form-control,
.form-select {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    transition: var(--transition);
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #2a2a2a;
    border-color: #3a3a3a;
    color: var(--text-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===========================================
   Products & Services Section
   =========================================== */
.product-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

body.dark-mode .product-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), #00d4ff);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3);
}

.product-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.product-body {
    margin-bottom: 25px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.product-features li {
    padding: 10px 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.product-footer {
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

body.dark-mode .product-footer {
    border-top-color: #2a2a2a;
}

/* Feature Box Styling */
.feature-box {
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
}

body.dark-mode .feature-box {
    background: #1a1a1a;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    transition: var(--transition);
}

.feature-box:hover .feature-icon i {
    transform: scale(1.1);
    transition: var(--transition);
}

/* ===========================================
   Pricing Section
   =========================================== */
.pricing-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

body.dark-mode .pricing-card {
    background: #1a1a1a;
    border-color: #2a2a2a;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(13, 110, 253, 0.2);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(to right, var(--primary-color), #00d4ff);
    color: #ffffff;
    padding: 5px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 5px 15px rgba(13, 110, 253, 0.3);
}

.pricing-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

body.dark-mode .pricing-header {
    border-bottom-color: #2a2a2a;
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.pricing-price {
    margin: 20px 0;
}

.pricing-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    vertical-align: top;
}

.pricing-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.pricing-price .period {
    font-size: 1rem;
    color: var(--text-light);
    display: block;
    margin-top: 5px;
}

.pricing-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 10px;
}

.pricing-body {
    padding: 20px 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
    line-height: 1.6;
}

body.dark-mode .pricing-features li {
    border-bottom-color: #2a2a2a;
}

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

.pricing-footer {
    padding-top: 20px;
}

/* Pricing Comparison Table */
.pricing-comparison-table {
    font-size: 0.9rem;
}

.pricing-comparison-table thead {
    background: linear-gradient(to right, var(--primary-color), #00d4ff);
    color: #ffffff;
}

.pricing-comparison-table thead th {
    padding: 15px;
    font-weight: 600;
    vertical-align: middle;
}

.pricing-comparison-table tbody tr {
    transition: var(--transition);
}

.pricing-comparison-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

body.dark-mode .pricing-comparison-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.pricing-comparison-table tbody td {
    padding: 15px;
    vertical-align: middle;
}

.pricing-comparison-table tbody td:first-child {
    font-weight: 600;
}

/* Modal Dark Mode */
body.dark-mode .modal-content {
    background-color: #1a1a1a;
    color: var(--text-dark);
    border-color: #2a2a2a;
}

body.dark-mode .modal-header {
    border-bottom-color: #2a2a2a;
}

body.dark-mode .modal-footer {
    border-top-color: #2a2a2a;
}

body.dark-mode .btn-close {
    filter: invert(1);
}

body.dark-mode .table {
    color: var(--text-dark);
    border-color: #2a2a2a;
}

body.dark-mode .table thead {
    background: linear-gradient(to right, #0056b3, #0099cc) !important;
}

body.dark-mode .table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

/* ===========================================
   Footer
   =========================================== */
.footer {
    background-color: #0a0a0a !important;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-light);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 10px;
}

.social-links a {
    transition: var(--transition);
}

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

/* ===========================================
   Scroll to Top Button
   =========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #0056b3;
    transform: translateY(-5px);
}

/* ===========================================
   Background Light/Dark Mode
   =========================================== */
.bg-light {
    background-color: var(--light-bg) !important;
}

body.dark-mode .bg-light {
    background-color: #1a1a1a !important;
}

/* ===========================================
   Buttons
   =========================================== */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(to right, var(--primary-color), #00d4ff);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* ===========================================
   Animations
   =========================================== */
[data-aos] {
    pointer-events: auto;
}

/* ===========================================
   Responsive Design
   =========================================== */
@media (max-width: 991px) {
    .hero-section {
        text-align: center !important;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-marker {
        left: 5px;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ===========================================
   Loading Animation
   =========================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hide {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================================
   Custom Scrollbar
   =========================================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* ===========================================
   Particles Background
   =========================================== */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}
