/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Source Code Pro', monospace;
}

body {
    background: #ffffff;
    color: #000;
    overflow-x: hidden;
}

/* Signature Animation Styles */
.sticky-container {
    position: sticky;
    top: 50%;
    transform: translateY(-50%);
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    z-index: 10;
}

.svg-container {
    width: 90%;
    max-width: 977.5px;
}

object {
    width: 100%;
    height: auto;
}

.scroll-text {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Source Code Pro', monospace;
    font-size: 24px; /* CHANGED: Increased from 16px to 24px */
    color: #000000;
    z-index: 20;
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(-100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.nav.visible {
    opacity: 1;
    transform: translateY(0);
}

.nav-logo {
    height: 50px;
}

.logo-img {
    height: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 1rem;
}

.nav-btn {
    padding: 0.5rem 1rem;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-btn:hover {
    background-color: #cc0000;
}

/* Mobile Menu Toggle (Checkbox Hack) */
.menu-toggle {
    display: none; /* Hide the checkbox */
}

.menu-toggle-label {
    display: none;
    cursor: pointer;
    height: 24px;
    width: 30px;
    position: relative;
    z-index: 200;
}

.menu-toggle-label span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #ff0000;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-toggle-label span:nth-child(1) {
    top: 0px;
}

.menu-toggle-label span:nth-child(2) {
    top: 10px;
}

.menu-toggle-label span:nth-child(3) {
    top: 20px;
}

/* Hamburger Animation */
.menu-toggle:checked + .menu-toggle-label span:nth-child(1) {
    top: 10px;
    transform: rotate(135deg);
}

.menu-toggle:checked + .menu-toggle-label span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.menu-toggle:checked + .menu-toggle-label span:nth-child(3) {
    top: 10px;
    transform: rotate(-135deg);
}

/* Hero Section (Now About Me) */
.hero {
    min-height: auto;
    padding: 120px 10%;
    background: #ffffff;
    z-index: 5;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-left {
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #ff0000;
}

.hero-description {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    color: #000;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #ff0000;
    color: #ff0000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: rgba(255, 0, 0, 0.1);
}

.resume-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.resume-button:hover {
    background: #cc0000;
}

/* Skills Section (Now separated) */
.skills {
    padding: 100px 10%;
    background: #f5f5f5;
}

.skills-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #ff0000;
}

.skills-intro {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
    color: #444;
    max-width: 700px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
}

.skill-item span {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}

/* Projects Section - Phone Style */
.projects {
    padding: 100px 10%;
    background: #f5f5f5;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Nokia Windows Phone-style Tiles */
.project-tile {
    height: 350px;
    perspective: 1000px;
}

.tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.project-tile:hover .tile-inner {
    transform: rotateY(180deg);
}

.tile-front, .tile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
}

.tile-front {
    background-color: #ffffff;
    overflow: hidden;
    border: 1px solid #000;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-tile:hover .project-image {
    transform: scale(1.1);
}

.tile-back {
    background-color: #000000;
    color: white;
    transform: rotateY(180deg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff0000;
}

.project-description {
    display: none; /* Hide the project descriptions as requested */
}

.project-tech {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
    margin-bottom: 1.5rem;
}

.tech-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

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

.read-more-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: #ff0000;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    margin-top: auto;
    text-align: center;
}

.read-more-btn:hover {
    background-color: #cc0000;
}

/* Contact Section */
.contact {
    padding: 100px 10%;
    background: #ffffff;
}

.contact-container {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.contact-form {
    flex: 1;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #ff0000;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #000;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
}

.message-input {
    height: 150px;
    resize: none;
}

.submit-btn {
    padding: 0.5rem 2rem;
    background: transparent;
    border: 1px solid #000;
    font-family: 'Source Code Pro', monospace;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #000;
    color: #fff;
}

.contact-text {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reach-out {
    font-size: 5rem;
    font-weight: 700;
}

.reach-out span {
    color: #ff0000;
}

/* Footer */
.footer {
    padding: 2rem 10%;
    text-align: center;
    background: #f5f5f5;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer .social-icon {
    width: 25px;
    height: 25px;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.footer .social-link:hover .social-icon {
    transform: scale(1.2);
    opacity: 1;
}

.copyright {
    font-size: 1rem;
    color: #000;
}

.version {
    color: #ff0000;
}

/* Animation for tile loading */
@keyframes tileAppear {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-tile {
    opacity: 0;
    animation: tileAppear 0.6s ease forwards;
}

.project-tile:nth-child(1) {
    animation-delay: 0.2s;
}

.project-tile:nth-child(2) {
    animation-delay: 0.4s;
}

.project-tile:nth-child(3) {
    animation-delay: 0.6s;
}

/* Notification styles */
.notification {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.notification.success {
    background-color: rgba(76, 175, 80, 0.2);
    border-left: 4px solid #4CAF50;
    color: #2e7d32;
}

.notification.error {
    background-color: rgba(244, 67, 54, 0.2);
    border-left: 4px solid #F44336;
    color: #c62828;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title, .skills-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    /* Menu Toggle */
    .menu-toggle-label {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    /* Navigation Links */
    .nav-links {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        gap: 2rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-100%);
        transition: all 0.5s ease;
    }
    
    /* Show mobile menu when checkbox is checked */
    .menu-toggle:checked ~ .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    
    /* Adjust nav button styling for mobile */
    .nav-btn {
        font-size: 1.5rem;
        padding: 1rem 2rem;
        background-color: transparent;
        color: #000;
        position: relative;
    }
    
    .nav-btn::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 0;
        height: 2px;
        background-color: #ff0000;
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }
    
    .nav-btn:hover {
        background-color: transparent;
        color: #ff0000;
    }
    
    .nav-btn:hover::after {
        width: 80%;
    }
    
    .nav {
        padding: 1rem 5%;
    }
    
    /* Contact section responsive */
    .contact-container {
        flex-direction: column;
    }

    .contact-text {
        order: -1;
        margin-bottom: 2rem;
    }

    .reach-out {
        font-size: 3.5rem;
    }
    
    /* Skills grid responsive */
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Hero section responsive */
    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    /* Footer responsive adjustments */
    .footer-content {
        gap: 1rem;
    }
    
    .footer-social-icons {
        gap: 1.2rem;
    }
    
    /* Social links responsive */
    .social-links {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section-title, .skills-title, .hero-title {
        font-size: 2.5rem;
    }
}