body {
    font-family: 'Hind Madurai', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
}

.nav {
    list-style: none;
    margin: 0;
    padding: 15px 0;
    background-color: #333;
    text-align: center;
}

.nav li {
    display: inline;
}

a {
    color: #222;
}

.nav a {
    color: white;
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
}

.nav a:hover {
    background-color: #555;
    border-radius: 5px;
}

.center-custom {
    text-align: center;
    margin-top: 40px;
}

.content-custom {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.wide-title {
    letter-spacing: 2px;
    font-size: 2em;
    margin-bottom: 20px;
    color: #222;
}

.contact-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    margin: 20px auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-card p {
    margin: 10px 0;
    font-size: 1.1em;
}

.fa {
    padding: 15px;
    font-size: 30px;
    width: 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 50%;
    margin: 10px;
}

.fa:hover {
    opacity: 0.8;
}

.fa-linkedin-in {
    background: #007bb5;
    color: white;
}

.fa-github {
    background: #333;
    color: white;
}

.fa-linkedin-in:before {
    content: "\f0e1";
}

.img-sizer {
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    cursor: pointer;
    animation: rotation 8s infinite linear;
}

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

iframe {
    width: 100%;
    max-width: 660px;
    height: 150px;
    overflow: hidden;
    background: transparent;
    border: none;
    margin: 30px auto;
    display: block;
}

.div-sec {
    background-color: #f9fafd;
    margin-bottom: 14px;
    border-radius: 25px;
    padding: 16px;
}

.p-sec {
    margin: 0 20px;
    text-align: center;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.div-tech {
    background-color: white;
    border-radius: 20px;
    padding: 12px 16px;
    margin: 32px auto 12px;
    max-width: 560px;
    text-align: center;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin: 20px auto;
    max-width: 700px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.project-card img {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.project-card p {
    font-size: 1.1em;
    margin-bottom: 10px;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.tech-stack img {
    width: 30px;
    height: 30px;
    transition: transform 0.2s;
}

.tech-stack img:hover {
    transform: scale(1.2);
}

.vinyl-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.vinyl-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.vinyl-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    animation: spinVinyl 20s linear infinite;
    border-radius: 50%;
}

.spinning-text-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: spinText 20s linear infinite;
}

.spinning-text {
    position: absolute;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    text-transform: uppercase;
    width: 80px;
    text-align: center;
    transform-origin: center;
}

.text-1 {
    top: 50%;
    left: 83%;
    transform: translate(-50%, -50%) rotate(90deg);
}

.text-2 {
    top: 50%;
    left: 17%;
    transform: translate(-50%, -50%) rotate(270deg);
}

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

@keyframes spinText {
    from {
        transform: rotate(-52deg);  /* Start 30 degrees offset */
    }
    to {
        transform: rotate(308deg); /* End 30 degrees offset (360 + 30) */
    }
}