body {
    font-family: 'Poppins', sans-serif;
    background-color: black;
    color: white;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease-in-out;
    box-sizing: border-box;
}

.navbar {
    background: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    border-radius: 30px;
    margin: 20px auto;
    width: fit-content;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    outline: 2px solid rgba(255, 255, 255, 0.5);
}

.navbar-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: white;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 35px;
    left: 0;
    background-color: #000;
    padding: 10px 0;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    outline: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1;
}

.dropdown-content a {
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 14px;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.navbar-icon button {
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s ease-in-out;
}

.navbar-icon button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.animated-logo {
    animation: fadeInDown 1s;
}

main {
    padding: 20px;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.mainContainer {
    width: 100%;
    max-width: 700px;
    padding: 20px;
}

.box {
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

h1 {
    background: -webkit-linear-gradient(white, #81f7e5);
    font-family: 'Bruno Ace SC', cursive;
    font-size: 80px;
    font-stretch: semi-expanded;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap; /* Keeps name in one line */
    margin: 20px 0;
    display: inline-block;
    overflow: hidden;
    animation: typing 3s steps(40, end);
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.profession {
    color: white;
    font-size: 22px;
    margin-top: -5px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.buttons button {
    padding: 12px 25px;
    font-size: 18px;
    border: none;
    background: #81f7e5;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    min-width: 180px;
}

.buttons button:hover {
    background: #004a69;
    transform: scale(1.05);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 60px;
    }

    .profession {
        font-size: 20px;
    }

    .buttons {
        flex-direction: column;
        align-items: center;
    }

    .buttons button {
        width: 90%;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 45px;
        white-space: normal; /* Allows breaking on small screens */
    }

    .profession {
        font-size: 18px;
    }

    .buttons {
        gap: 10px;
    }

    .buttons button {
        width: 100%;
    }
}
/* footer styleing starts here ******************** */

footer {
    background-color: black;
    margin-top: 300px;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

.social-icons {
    margin: 0;
}

.social-icon {
    display: inline-block;
    margin: 30px 10px;
}

.social-icon i {
    font-size: 40px;
    color: #f1f1f1;
    border-radius: 50%;
    transition: transform 0.3s ease-in-out;
    cursor: pointer;
}

.social-icon:hover i {
    transform: scale(1.2);
}

/* Experience styling starts here ***********************/

#experience {
    padding: 60px 20px;
    max-width: 800px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    color: #00bcd4;
    margin-bottom: 40px;
}

.experience-item {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(50, 50, 50, 0.9)); 
    border-left: 5px solid;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0px 0px 12px rgba(0, 255, 170, 0.2);
}

.experience-item:hover {
    transform: scale(1.02);
    box-shadow: 0px 0px 16px rgba(23, 0, 65, 0.3);
}

.experience-item h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #fff;
}

.experience-item p {
    font-size: 1rem;
    color: #bbb;
    margin-bottom: 10px;
    font-style: italic;
}

.experience-item ul {
    padding-left: 20px;
}

.experience-item li {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 8px;
}

/* Vertical Glitch Streaks */
.glitch-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.glitch-line {
    position: absolute;
    width: 2px; /* Thin vertical lines */
    height: 100%;
    background: rgba(0, 255, 170, 0.6);
    opacity: 0;
    animation: glitch-anim 2s infinite ease-in-out;
}

.glitch-line:nth-child(odd) {
    background: rgba(0, 170, 255, 0.6);
}

/* Glitch Animation */
@keyframes glitch-anim {
    0% { opacity: 0; transform: scaleY(1) translateY(0); }
    25% { opacity: 1; transform: scaleY(1.2) translateY(-5px); }
    50% { opacity: 0.8; transform: scaleY(0.8) translateY(5px); }
    75% { opacity: 1; transform: scaleY(1.1) translateY(-3px); }
    100% { opacity: 0; transform: scaleY(1) translateY(0); }
}


/********* Education Styling *********/

/* Section Styling */
.education-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, #0a0a0a, #000000);
    color: #f8f8f8;
    font-family: 'Poppins', sans-serif;
}

/* Heading */
.education-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 150, 255, 0.7);
    font-weight: 700;
}

/* Container */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

/* Card */
.card {
    width: 280px;
    height: 160px;
    perspective: 1200px;
    cursor: pointer;
}

/* Inner Flip Effect */
.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}

/* Flip on Hover */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Card Front & Back */
.card-front, .card-back {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.6);
    padding: 15px;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
    border: 2px solid rgba(0, 150, 255, 0.5);
}

/* Front Side - Dark Futuristic */
.card-front {
    background: linear-gradient(145deg, #101820, #0a0a0a);
    color: #00aaff;
    text-shadow: 1px 1px 6px rgba(0, 170, 255, 0.8);
}

/* Back Side - White with Blue Glow */
.card-back {
    background: linear-gradient(145deg, #ffffff, #d0d0d0);
    color: #111827;
    transform: rotateY(180deg);
    text-shadow: none;
}

/* Glitchy Hover Effect */
.card:hover .card-front {
    animation: glitch 0.2s infinite;
}

/* Glitch Effect */
@keyframes glitch {
    0% { text-shadow: 2px 2px 5px rgba(0, 150, 255, 0.7); }
    50% { text-shadow: -2px -2px 5px rgba(0, 150, 255, 0.9); }
    100% { text-shadow: 2px 2px 5px rgba(0, 150, 255, 0.7); }
}




/***************** Skills Card Layout *****************/
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-card {
    background: linear-gradient(145deg, #e6e6e6, #000000);
    border-radius: 10px;
    width: 150px;
    height: 200px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: scale(1.05); /* Slight scale-up effect */
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); /* Minimalistic glow */
}

.skill-card h3 {
    font-size: 1.5rem;
    color: #050101;
}

@media (max-width: 768px) {
    .skill-card {
        width: 90%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .skill-card {
        width: 100%;
        max-width: 280px;
    }
}

/*****Project styling ********************/

.terminal-section {
    background-color: #000;
    color: #00ffcc;
    font-family: 'Courier New', monospace;
    padding: 40px;
    text-align: left;
}
.terminal-title {
    color: #00ffcc;
    font-size: 24px;
    margin-bottom: 20px;
}
.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffcc;
    padding: 20px;
    border-radius: 5px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0px 0px 10px #00ffcc;
}
.project {
    cursor: pointer;
    margin-bottom: 15px;
    padding: 10px;
    transition: all 0.3s;
}
.project:hover {
    text-shadow: 0px 0px 8px #00ffcc;
}
.typed-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #00ffcc;
    animation: typing 2s steps(30, end) forwards, blink 1s infinite;
}
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink {
    50% { border-color: transparent; }
}
.project-details {
    display: none;
    margin-top: 5px;
    font-size: 14px;
    color: #99ffcc;
}
.project.active .project-details {
    display: block;
}


/* Contact Section************** */

.terminal-link {
    color: #00ffcc;
    text-decoration: none;
    transition: 0.3s;
}

.terminal-link:hover {
    text-shadow: 0px 0px 8px #00ffcc;
    color: #99ffcc;
}

.terminal-form {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
}

.terminal-form label {
    color: #00ffcc;
    margin: 10px 0 5px;
    font-size: 14px;
}

.terminal-form input,
.terminal-form textarea {
    background-color: #000;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    width: 100%;
}

.terminal-form input:focus,
.terminal-form textarea:focus {
    box-shadow: 0px 0px 8px #00ffcc;
    border-color: #00ffcc;
}

.terminal-btn {
    background-color: #00ffcc;
    color: #000;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.terminal-btn:hover {
    box-shadow: 0px 0px 8px #00ffcc;
    background-color: #008080;
}





/* Cusor styling for that glowly trail  */

.particle {
    position: fixed;
    background-color: rgba(0, 238, 255, 0.7); /* Blue Glow */
    border-radius: 50%;
    pointer-events: none;
    animation: fadeMove 1.0s ease-out forwards;
}

@keyframes fadeMove {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.5);
    }
}
