/* General Styles */
:root {
    --primary: #FFC107; /* Adjusted to a richer gold for better contrast */
    --dark-blue: #081836; /* Darker blue for a deeper contrast */
    --light: #F8F9FA; /* Slightly off-white for a softer look */
    
    /* New colors */
    --secondary: #FF5722; /* Vibrant orange for accents */
    --background: #121212; /* Dark background for contrast */
    --text: #E0E0E0; /* Light gray for readability */
    --border: #37474F; /* Muted blue-gray for subtle borders */
    --hover: #FFD54F; /* Lighter gold for hover effects */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Open Sans', sans-serif; /* Body */
    overflow-x: hidden;
}

/*Navbar with top-bar*/

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 100px;
    font-size: 13px;
    background: #1A1A1A; /* Slightly lighter black for contrast */
    color: #FFD700; /* Gold text */
     border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.top-bar a {
    color: var(--light);
    text-decoration: none;
    margin: 0 10px;
}

.top-bar a:hover {
    color: var(--hover);
}

.top-bar .social-links a{
    font-size:16px;
}

/* ====== Dark & Gold Navbar ====== */
.navbar-dark-gold {
    background: var(--dark-blue); /* Deep black for a premium look */
    padding: 18px 0;
    /*box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);*/
}

/* Brand Logo */
.navbar-dark-gold .navbar-brand {
    color: #FFD700 !important; /* Gold */
    font-size: 28px;
    font-weight: 700;
    transition: color 0.3s ease-in-out;
}

.navbar-dark-gold .navbar-brand:hover {
    color: #FFC107 !important;
}

.navbar-dark-gold .navbar-toggler{
    color: #FFD700 !important; /* Gold */
}

/* Navbar Links */
.navbar-dark-gold .navbar-nav .nav-link {
    color: #FFD700 !important; /* Gold links */
    font-weight: 500;
    padding: 12px 18px;
    transition: color 0.3s ease-in-out, background 0.3s ease-in-out;
    border-radius: 8px;
    font-size: 16px;
}

/* Active Link */
.navbar-dark-gold .navbar-nav .nav-link.active {
    background: rgba(255, 215, 0, 0.2);
    font-weight: 600;
}

/* Hover Effects */
.navbar-dark-gold .navbar-nav .nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
}

/* Contact Button */
.navbar-dark-gold .navbar-nav .btn {
    background: #FFD700;
    color: #121212;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 8px;
    transition: background 0.3s ease-in-out, transform 0.2s ease-in-out;
}

.navbar-dark-gold .navbar-nav .btn:hover {
    background: #FFC107;
    transform: translateY(-2px);
}

.navbar-light-mode .navbar-nav .btn:hover {
    background: #555;
    transform: translateY(-2px);
}


.btn-primary {
    background: var(--primary);
    color: var(--dark-blue) !important;
    border: none;
    padding: 10px 25px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover{
    background: var(--hover);
    transform: translateY(-10px);
}

/* Hero Section */
.hero-section {
    height: 100vh; /* Full viewport height */
    background: var(--dark-blue);
    color: var(--light);
    position: relative;
    overflow: hidden;
    text-align: left;
    display: flex;
    align-items: center; /* Vertically center content */
    padding: 0; /* Remove extra padding */
}

.hero-section .container {
    padding: 50px 0; /* Add controlled spacing inside container */
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.subtitle {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-image {
    border-radius: 20px;
    max-height: 80vh; /* Prevent image from overflowing */
    width: 100%;
    object-fit: cover;
}

/* Mobile and Tablet Fix */
@media (max-width: 991.98px) {
  .hero-section {
    height: auto; /* Allow content to define height */
    padding: 50px 0; /* Add vertical padding */
    display: block; /* Cancel flex behavior */
  }

  .hero-section .container {
    padding: 20px 15px;
  }

  .hero-image {
    max-height: none;
    height: auto;
    object-fit: contain;
    margin-top: 20px;
  }

  .typing-container {
    font-size: 1.8rem;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .description {
    font-size: 1rem;
  }
}

/* Typing Effect */
.typing-container {
    white-space: nowrap;
    overflow: hidden;
    width: fit-content;
    display: inline-block;
    vertical-align: bottom;
    font-size: 1.7rem;
    font-weight: 500;
    font-family: 'Oswald', sans-serif; /* Headings */
}
.cursor {
    display: inline-block;
    width: 10px;
    animation: blink 0.8s infinite;
    vertical-align: bottom;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.about-section {
    padding: 100px 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    
}

/* Services Section */
.services-section {
    padding: 100px 0;
}

.services-section h2 {
    color: var(--dark-blue);
    /*font-weight: 700;*/
}

.services-section h3 {
    color: var(--primary);
    /*margin-bottom: 20px;*/
}

.service-card {
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 5px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.service-card h4 {
    color: var(--dark-blue);
    margin-bottom: 15px;
}

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 30px;
}

.image-container img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-container:hover img {
    transform: scale(1.2);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 31, 68, 0.5);
    color: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 10px;
}

.image-container:hover .overlay {
    opacity: 1;
}

.overlay h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.overlay p {
    font-size: 16px;
    margin: 0;
}




/* Contact Section */
.contact-section {
    padding: 100px 0;
}

.contact-form .form-control {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid var(--primary);
}

.contact-info {
    padding: 30px;
    
    border-radius: 15px;
    height: 100%;
}

.contact-info ul li {
    margin-bottom: 15px;
}

.contact-info i {
    color: var(--primary);
    margin-right: 10px;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--light);
    padding: 30px 0;
}

.footer .social-links a {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: background 0.3s;
}

.footer .social-links a:hover {
    background: var(--primary);
    color: var(--dark-blue);
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .contact-info {
        /*margin-top: 30px;*/
    }
}

@media (max-width: 767.98px) {
    .top-bar {
        text-align: center;
        flex-direction: column;
        padding: 10px 10px;
    }
    
    .details{
        display:flex;
        flex-direction:column;
        margin-bottom:10px;
    }
    
    .social-links {
        /*margin-top: 10px;*/
    }
    
    .portfolio-item {
        margin-bottom: 20px;
    }
}


/* timeline */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease-in-out;
}
.timeline-item:hover {
    transform: scale(1.02);
}
.timeline-icon {
    min-width: 60px;
    min-height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--primary), var(--dark-blue)); 
    color: white; /* Ensures icon visibility */
}

.timeline-content {
    flex: 1;
    border-radius: 12px;
    transition: transform 0.3s ease-in-out;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-left: 5px solid var(--dark-blue);
    padding: 20px;
}
.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.2);
}
.fw-bold{
    color: var(--dark-blue);
}

/* Style 1: Gradient Border */
.heading-style1 {
    position: relative;
    text-align: center;
    margin-bottom: 20px;
}

.heading-style1 h2 {
    font-family: 'Oswald', sans-serif; /* Headings */
    font-size: 3.5rem;
    margin: 0;
    padding: 10px 0;
    position: relative;
    display: inline-block;
    font-weight: 500;
}

.heading-style1 h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--dark-blue));
    transform: translateX(-50%);
    border-radius: 2px;
}

.heading-style1 p {
    color: #64748b;
    margin-top: 20px;
    font-size: 1.1rem;
}
/* Responsive Design */
@media (max-width: 991px) {
    .heading-style1 h2 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .heading-style1 h2{
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .heading-style1 h2 {
        font-size: 2rem;
    }
}

.gradient-frame {
    position: relative;
    display: inline-block;
}

.gradient-frame::before {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(135deg, var(--primary), var(--dark-blue));
    border-radius: 50%;
    z-index: -1;
}

/* Ensures the image stays above the gradient frame */
.gradient-frame img {
    display: block;
    border-radius: 50%;
    padding: 5px; /* Creates spacing inside the gradient */
    background: white; /* Optional: adds contrast */
    height:40vh; 
    object-fit:cover; 
    aspect-ratio:1;
}

.experience-section{
    padding: 100px 0;
    background: #f8f9fa;
}

/* Section Styling */
.skills-section {
    padding: 100px 0;
}

/* Category Title */
.skills-category {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    text-transform: uppercase;
}

/* Skills Tags Wrapper */
.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Skill Tag Styling */
.skill-tag {
    background: rgba(0, 0, 0, 0.08); /* Translucent background */
    color: var(--dark-blue);
    padding: 10px 16px;
    font-size: 14px;
    border-radius: 6px; /* Slightly rounded but rectangular */
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: default;
    display: inline-block;
}

/* Hover Effect */
.skill-tag:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .skills-tags {
        justify-content: flex-start;
    }
}

.btn-outline-light{
    background-color:var(--dark-blue);
    color:var(--light);
    border:none;
}

textarea{
    resize:none;
}
.swal-wide {
  width: 70% !important;
}

@media (max-width: 768px) {
  .swal-wide {
    width: 100% !important;
  }
}
pre {
    font-family: 'Open Sans', sans-serif; /* Body */
    color: #333; /* Dark text for better contrast */
    overflow-x: auto; /* Horizontal scrolling for long content */
    white-space: pre-wrap; /* Wrap text while preserving formatting */
    line-height: 1.5; /* Improved line spacing */
    font-size: 16px; /* Comfortable font size */
    margin-bottom: 20px; /* Spacing from other elements */
    word-wrap: break-word;
}

.footer-link{
    color:var(--hover);
    text-decoration:none;
}

.social-links a{
    text-decoration:none;
    color: var(--hover);
}