/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body, html {
    overflow-x: hidden;
    
}

body { 
    background: black;
    padding-top: 40px; /* Push content down by navbar height */
}

header {
    background: linear-gradient(to bottom, #0f2027, #203a43, #2c5364);
    padding-top: 50px; 
}

.navbar {
    background: rgba(0, 0, 0, 0.9);
    transition: all 0.3s ease-in-out;
    height: 70px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; 
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 0 20px;
}

.brand {
    font-size: 22px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease-in-out;
}

.nav-links a:hover,
.nav-links .active {
    color: #00b4db;
    font-weight: bold;
}

.resume-btn {
    background: #00b4db;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease-in-out;
}

.resume-btn:hover {
    background: #008fb3;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* Profile Section */
.profile {
    width: 80%;
    max-width: 650px;
    min-height: 400px;
    margin: 5px auto 0;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    justify-content: center; 
    align-items: center; 
    text-align: center;
    overflow: hidden;
}

.profile_card {
    width: 90%;  
    background: linear-gradient(135deg, #000428, #004e92);
    color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile img {
    width: 250px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    background-color: lightslategray;
    padding: 5px;
}

.profile img:hover {
    transform: scale(1.05);
    box-shadow: 0px 8px 20px rgba(0, 78, 146, 0.8);
}

.profile h2 {
    font-size: 32px;
    font-weight: bold;
}

.profile p {
    font-size: 16px;
    max-width: 600px;
    margin: 10px auto;
}

/* Resume & Social Buttons */
.profile-buttons {
    margin-top: 20px;
}

.btn {
    background: white;
    color: #0083b0;
    padding: 10px 20px;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    margin: 5px;
}

.btn:hover {
    background: #00b4db;
    color: white;
}

.social-icons1 {
    margin-top: 20px;
}

.social-icons1 a {
    color: #00b4db;
    font-size: 16px;
    font-weight: bold;
    display: inline-block;
    padding: 10px 10px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-icons1 a:hover {
    background: #00b4db;
    color: white;
}

/* Skills Section */
.skills-section {
    width: 100%;
    background-color: black;
    padding: 50px 0;
    text-align: center;
    overflow: hidden;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    max-width: 900px; /* Ensuring controlled wrapping */
    margin: 0 auto; /* Centering */
}

/* Ensuring consistent structure */
.skill-wrapper {
    width: 200px; /* Fix width to prevent shifting */
    height: 260px; /* Fix height to prevent movement */
    position: relative;
}

/* Responsive Fix for Smaller Screens */
@media (max-width: 768px) {
    .skill-wrapper {
        width: 45%; /* Show 2 skills per row */
    }
}

@media (max-width: 480px) {
    .skill-wrapper {
        width: 100%; /* Show 1 skill per row */
    }
}

/* Skill Card */
.skill {
    width: 180px;
    height: 260px;
    background-color: #1e1e1e;      
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    position: relative; /* Ensure it doesn’t move */
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Hover Effect (Fixed: No Layout Shift) */
.skill:hover {
    transform: scale(1.05); /* Scaling without affecting layout */
}

/* Skill Icons */
.skill img {
    width: 80px;
    height: auto;
    transition: transform 0.3s ease-in-out;
    border-radius: 10px;
}

/* Skill Titles */
.skill h3 {
    color: #fff;
    margin: 10px 0 0;
}

/* Skill Description (Fixed: No Overflow Issue) */
.skill-text {
    font-size: 14px;
    color: #ddd;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    text-align: center;
    display: block;
    overflow: hidden;
    visibility: hidden;
    max-height: 0;
    position: absolute; /* Keep it in place */
    bottom: 10px; /* Keep text at the bottom */
    left: 50%;
    transform: translateX(-50%);
    width:100%;
}

/* Show Text on Hover (No Height Change) */
.skill:hover .skill-text {
    opacity: 1;
    visibility: visible;
    max-height: 100px;
}


/* Footer Section */
.footer {
    background-color: #111;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: auto;
    gap: 20px;
}

/* Footer Columns */
.footer-column {
    flex: 1;
    min-width: 250px;
    text-align: left;
}

.footer-column h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #00ADB5;
}

.footer-column p {
    font-size: 14px;
    line-height: 1.5;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin: 8px 0;
}

.footer-column ul li a {
    text-decoration: none;
    color: #bbb;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #00ADB5;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons1 a img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    background-color: white;
    border-radius: 5px;
}

.social-icon1 a:hover img {
    transform: scale(1.2);
}

/* Footer Bottom Section */
.footer-bottom {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 14px;
    color: #bbb;
}

/* Back to Top Button */
.back-to-top {
    display: inline-block;
    margin-top: 10px;
    color: #00ADB5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-to-top:hover {
    color: #fff;
}

/*================= Thank You Page Styling ================= */

.thankyou-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: linear-gradient(135deg, #1c1c1c, #004e92);
    border-radius: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

.thankyou-container h1 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #00bcd4;
}

.thankyou-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

.back-home-btn {
    display: inline-block;
    background-color: #00bcd4;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.back-home-btn:hover {
    background-color: #008fb3;
}

/* Theme Toggle Button and Light Mode Styles */
.theme-toggle {
    background: #00b4db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
    margin-left: 10px;
}

.theme-toggle:hover {
    background: #008fb3;
}

body.light-theme {
    background: #f0f0f0;
    color: #333;
}

body.light-theme header {
    background: linear-gradient(to bottom, #e0e0e0, #d0d0d0, #c0c0c0);
}

body.light-theme .navbar {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

body.light-theme .brand,
body.light-theme .nav-links a,
body.light-theme .menu-toggle {
    color: #333;
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links .active {
    color: #00b4db;
}

body.light-theme .profile_card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
}

body.light-theme .skills-section {
    background-color: #f0f0f0;
}

body.light-theme .skill {
    background-color: #ffffff;
    color: #333;
}

body.light-theme .skill h3 {
    color: #333;
}

body.light-theme .skill-text {
    color: #666;
}

body.light-theme .footer {
    background-color: #e9ecef;
    color: #333;
}

body.light-theme .footer-column h3 {
    color: #00b4db;
}

body.light-theme .footer-column ul li a {
    color: #666;
}

body.light-theme .footer-column ul li a:hover {
    color: #00b4db;
}

body.light-theme .footer-bottom {
    border-top: 1px solid #ccc;
}

body.light-theme .footer-bottom p {
    color: #666;
}

body.light-theme .back-to-top {
    color: #00b4db;
}

body.light-theme .back-to-top:hover {
    color: #333;
}

body.light-theme .thankyou-container {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
}

body.light-theme .thankyou-container h1 {
    color: #00b4db;
}