:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --light-text: #f8fafc;
    --gray-text: #94a3b8;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
}

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

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

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

/* Navigation */
.navbar {
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Photo Section Styles */
.hero-photo {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-container {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 6px;
    animation: photoFloat 6s ease-in-out infinite;
}

.photo-frame {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: var(--dark-bg);
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.1);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all 0.3s ease;
    filter: grayscale(0%) brightness(1.1) contrast(1.1);
    /* Placeholder styling - remove when you add actual photo */
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.profile-image:hover {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1.2) contrast(1.2);
}

/* Photo decorative elements */
.photo-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    opacity: 0.3;
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.photo-decoration {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    animation: decorationFloat 4s ease-in-out infinite;
}

.decoration-1 {
    top: 20px;
    right: 40px;
    animation-delay: -1s;
}

.decoration-2 {
    bottom: 30px;
    left: 20px;
    width: 20px;
    height: 20px;
    animation-delay: -2s;
}

.decoration-3 {
    top: 50%;
    right: -15px;
    width: 15px;
    height: 15px;
    animation-delay: -3s;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    word-wrap: break-word; /* Add this */
    overflow-wrap: break-word; /* Add this */
    hyphens: auto; /* Add this */
}
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem; /* Reduced from 2.8rem */
        line-height: 1.2; /* Add this */
        word-break: break-word; /* Add this */
    }
    
    .photo-container {
        width: 280px;
        height: 280px;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        text-align: center;
        padding: 80px 0; /* Add this */
    }
    
    /* Fix contact section alignment */
    .contact-item {
        justify-content: flex-start; /* Add this */
        text-align: left; /* Add this */
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 15%;
    right: 8%;
    animation-delay: -1s;
}

.floating-element:nth-child(2) {
    top: 65%;
    right: 3%;
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    top: 35%;
    left: 3%;
    animation-delay: -3s;
}

/* Floating Resume Button */
.floating-resume {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.floating-resume:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
}

/* Section Styling */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cards */
.custom-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

.custom-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
}

.project-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.3);
}

.skill-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Experience Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 3rem 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    text-align: right;
}

.timeline-content {
    width: 45%;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 4px solid var(--dark-bg);
    z-index: 2;
}

/* Contact Section */
.contact-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 10px;
    margin: 1rem 0;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Achievement Badge */
.achievement-badge {
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    display: inline-block;
    margin: 10px 5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.achievement-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

/* Certificate Cards */
.certificate-card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.certificate-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
    border-color: var(--primary-color);
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.certificate-category {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* Modal Styling */
.modal-content {
    background: var(--dark-bg);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.modal-title {
    color: var(--light-text);
}

.modal-body {
    color: var(--light-text);
}

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

.certificate-list {
    max-height: 400px;
    overflow-y: auto;
}

.certificate-item {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.certificate-item:hover {
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.filter-buttons {
    margin-bottom: 2rem;
}

.filter-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: var(--light-text);
    padding: 8px 20px;
    border-radius: 25px;
    margin: 5px;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Certificate Image Viewer Styles */
.certificate-image-viewer {
    background: var(--darker-bg);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.certificate-image-viewer:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.certificate-placeholder {
    background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
    border: 2px dashed rgba(99, 102, 241, 0.3);
    border-radius: 15px;
    padding: 3rem;
    text-align: center;
    color: var(--gray-text);
}

.certificate-modal .modal-dialog {
    max-width: 90%;
}

.certificate-thumbnail {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.certificate-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.view-certificate-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.view-certificate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.4);
}

.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.certificate-preview {
    text-align: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.certificate-preview:hover {
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes photoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

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

@keyframes decorationFloat {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

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

@keyframes pulse {
    0% { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6); }
    100% { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .photo-container {
        width: 280px;
        height: 280px;
        margin-bottom: 2rem;
    }
    
    .hero-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .photo-container {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .floating-element {
        display: none;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        text-align: left !important;
    }
    
    .timeline-dot {
        left: 20px;
    }
     .hero-title {
        font-size: 2rem; /* Reduced from 2.3rem */
        line-height: 1.3; /* Add this */
        margin-bottom: 1rem; /* Add this */
        padding: 0 15px; /* Add this */
    }
    
    .hero-subtitle {
        font-size: 1.2rem; /* Reduced from 1.3rem */
        line-height: 1.4; /* Add this */
        padding: 0 15px; /* Add this */
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 15px; /* Add this */
        line-height: 1.6; /* Add this */
    }
    
    .photo-container {
        width: 220px; /* Reduced from 250px */
        height: 220px; /* Reduced from 250px */
        margin-bottom: 2rem;
    }
    
    /* Fix container padding */
    .container {
        padding-left: 15px; /* Add this */
        padding-right: 15px; /* Add this */
    }
    
    /* Fix contact section */
    .contact-item {
        padding: 0.8rem; /* Reduced padding */
        margin: 0.5rem 0; /* Reduced margin */
        flex-direction: row; /* Ensure horizontal layout */
        align-items: center; /* Center align items */
    }
    
    .contact-icon {
        width: 40px; /* Reduced from 50px */
        height: 40px; /* Reduced from 50px */
        margin-right: 0.8rem; /* Reduced margin */
        font-size: 1rem; /* Reduced font size */
    }
    
    /* Fix buttons */
    .btn-primary, .btn-outline-primary {
        padding: 10px 20px; /* Reduced padding */
        font-size: 0.9rem;
        margin: 5px; /* Add margin between buttons */
    }
    
    /* Fix floating resume button */
    .floating-resume {
        bottom: 20px; /* Reduced from 30px */
        right: 20px; /* Reduced from 30px */
        padding: 12px 20px; /* Reduced padding */
        font-size: 0.9rem; /* Add this */
    }
}
.bg{
    background-color: #000;
}

@media (max-width: 576px) {
     .hero-title {
        font-size: 1.8rem; /* Reduced from 2rem */
        line-height: 1.2;
        padding: 0 10px;
        margin-bottom: 0.8rem;
    }
    
     .hero-subtitle {
        font-size: 1.1rem; /* Reduced from 1.2rem */
        padding: 0 10px;
        margin-bottom: 1.5rem;
    }
    .hero-description {
        padding: 0 10px;
        margin-bottom: 2rem;
    }
    
     .photo-container {
        width: 180px; /* Reduced from 200px */
        height: 180px; /* Reduced from 200px */
    }
     .profile-image {
        font-size: 2rem; /* Reduced from 2.5rem */
    }
    .btn-primary, .btn-outline-primary {
        padding: 8px 16px; /* Further reduced */
        font-size: 0.85rem; /* Reduced font size */
        display: block; /* Stack buttons vertically */
        width: 100%; /* Full width */
        margin: 8px auto; /* Center with margin */
        max-width: 200px; /* Limit max width */
    }
    .hero-content div:last-child {
        text-align: center; /* Center buttons */
    }
    .achievement-badge {
        padding: 8px 16px;
        font-size: 0.9rem;
        margin: 5px 2px;
    }
    .contact-item {
        padding: 0.6rem;
        margin: 0.3rem 0;
    }
    .contact-icon {
        width: 35px;
        height: 35px;
        margin-right: 0.6rem;
        font-size: 0.9rem;
    }
      .achievement-badge {
        padding: 6px 12px; /* Reduced padding */
        font-size: 0.8rem; /* Reduced font size */
        margin: 3px 2px; /* Reduced margin */
        display: inline-block;
    }
    .section {
        padding: 60px 0; /* Reduced from 100px */
    }
    .profile-image {
        font-size: 2.5rem;
    }
    .hero-section {
        padding: 60px 0; /* Reduced padding */
        min-height: 90vh; /* Reduced from 100vh */
    }
}

.hero-content h1,
.hero-content h2,
.hero-content p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.contact-item h6 {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.contact-item a {
    font-size: 0.9rem;
    word-break: break-all; /* This will break long URLs/emails */
}

html, body {
  overflow-x: hidden;
}
img, table{
  max-width: 100%;
  height: auto;
}