@import url('https://fonts.googleapis.com/css2?family=Macondo+Swash+Caps&display=swap');

/*Title Section */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--light);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--gradient2);
    border-radius: 3px;
    opacity: 0;
    animation: growLine 1s ease 0.5s forwards;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--light);
    padding: 2rem;
    padding-top: 8rem;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    font-family: 'Macondo Swash Caps', cursive;
    color: #E0E0E0;
}

.hero-text h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.8rem;
    animation: slideInLeft 1s ease 0.3s both;
}

.hero-text p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    animation: slideInLeft 1s ease 0.5s both;
    max-width: 600px;
}

.hero-visual {
    position: relative;
    animation: fadeInPerspective 1.2s ease-out 0.7s both;
}

.phone-mockup {
    width: 250px;
    height: 500px;
    background: linear-gradient(145deg, #2a2a2e, #161618);
    border-radius: 25px;
    padding: 12px; /* Thinner border */
    position: relative;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), /* Darker shadow */
                inset 0 2px 2px rgba(255,255,255,0.1); /* Inner highlight */
    transform: perspective(1000px) rotateY(-8deg);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Side Buttons */
.phone-mockup::before {
    content: '';
    position: absolute;
    left: -3px;
    top: 90px;
    width: 3px;
    height: 65px;
    background: #4a4a4e;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    box-shadow: -1px 0 4px rgba(0,0,0,0.3);
}

.phone-mockup::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 110px;
    width: 3px;
    height: 40px;
    background: #4a4a4e;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    box-shadow: 1px 0 4px rgba(0,0,0,0.3);
}


.phone-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.03);
    border-radius: 45px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.phone-mockup:hover .phone-screen {
    border-radius: 40px;
    background: linear-gradient(135deg, #000814 0%, #003049 100%);
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

/* Front Camera Hole (default) and Notch (hover) */
.phone-screen::after {
    content: '';
    position: absolute;
    top: 15px; 
    left: 50%;
    transform: translateX(-50%);
    width: 10px; 
    height: 10px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 50%;
    opacity: 1;
    transition: all 0.4s ease-in-out;
}

/* Becomes notch on hover */
.phone-mockup:hover .phone-screen::after {
    top: 0px;
    width: 40%;
    height: 20px;
    background: #1c1c1e;
    border-radius: 0 0 15px 15px;
    border: none;
}

.phone-mockup:hover .phone-screen::before {
    left: 125%;
}

.phone-logo {
    width: 85px;
    height: 85px;
    position: relative;
    animation: pulseFlutter 2.5s infinite ease-in-out;
    transition: all 0.3s ease;
}

.phone-mockup:hover .phone-logo {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(0) invert(1) ;
}

.cta-buttons {
    display: flex;
    gap: 1.2rem;
    animation: slideInLeft 1s ease 0.7s both;
}

/* --- Timeline Section --- */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    transform: translateX(-50%);
    opacity: 0.5;
}

.timeline-item {
    position: relative;
    margin-bottom: 3.5rem;
    width: 46%;
    opacity: 0;
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
    text-align: left;
    padding-left: 2.5rem;
}

.timeline-item:nth-child(even) {
    text-align: right;
    padding-right: 2.5rem;
}

.timeline-marker {
    position: absolute;
    top: 5px;
    width: 22px;
    height: 22px;
    background: var(--dark);
    border-radius: 50%;
    border: 4px solid var(--primary);
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    transform: scale(1.2);
    box-shadow: 0 0 15px var(--primary);
}

.timeline-item:nth-child(odd) .timeline-marker {
    left: -11px;
}

.timeline-item:nth-child(even) .timeline-marker {
    right: -11px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 2.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.timeline-content:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 40px rgba(0, 191, 166, 0.35);
    border-color: rgba(0, 191, 166, 0.5);
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.timeline-content h4 {
    color: var(--light);
    font-weight: 500;
    margin-bottom: 1.2rem;
    opacity: 0.85;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.timeline-content ul {
    list-style: none;
    color: var(--light);
    margin-top: 1.2rem; 
    position: relative;
    z-index: 1;
}

.timeline-content li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 0.98rem; 
    line-height: 1.7;   
    opacity: 0.85;     
    text-align: left
}

.timeline-content li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2em;
    top: 4px; 
}
.timeline-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-link:hover {
    transform: translateY(-5px);
}

/* --- Project Thumbnail Hover Effect --- */
.project-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0;
    transform: scale(1.1) rotate(3deg);
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); 
}

.timeline-content:hover .project-thumbnail {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.timeline-content:hover h3,
.timeline-content:hover h4,
.timeline-content:hover ul li {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 2.2rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
}

.skill-category:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 35px rgba(30, 136, 229, 0.3);
    border-color: var(--secondary);
}

.skill-category h3 {
    color: var(--secondary);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
}

.skill-category h3 span {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.skill-category:hover h3 span {
    transform: rotate(-10deg) scale(1.1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(30, 136, 229, 0.15);
    color: var(--light);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 1px solid var(--secondary);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--secondary);
    color: var(--dark);
    transform: scale(1.08) rotate(3deg);
    box-shadow: 0 3px 10px rgba(30, 136, 229, 0.4);
}

/* Education Section */
.education-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
}

.education-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 191, 166, 0.3);
    border-color: var(--primary);
}

.education-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.education-card:hover .icon {
    transform: scale(1.15) rotate(10deg);
}

.education-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.education-card p {
    color: var(--light);
    opacity: 0.85;
    font-size: 0.95rem;
}

.education-card p:nth-of-type(2) {
    color: var(--primary);
    opacity: 1;
    font-weight: 500;
    margin: 0.3rem 0;
}

/* Contact Section */
#contact {
    background: radial-gradient(ellipse at center bottom, rgba(0, 191, 166, 0.1) 0%, transparent 60%);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(30, 136, 229, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 70% 80%, rgba(0, 191, 166, 0.08) 0%, transparent 40%);
    animation: float 30s infinite ease-in-out;
}

.contact-container {
    position: relative;
    z-index: 1;
}

/* Social Links Section */
.social-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
}

.social-intro {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-intro h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.social-intro p {
    color: var(--light);
    opacity: 0.8;
    font-size: 1.1rem;
}

.social-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.social-link {
    position: relative;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: var(--light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: rotate(45deg);
}

.social-link:hover::before {
    top: -150%;
    left: -150%;
    opacity: 0.1;
}

.social-link:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 191, 166, 0.3);
}

.social-link.github:hover {
    border-color: #6e5494;
    box-shadow: 0 20px 40px rgba(110, 84, 148, 0.3);
}

.social-link.github::before {
    background: radial-gradient(circle, #6e5494 0%, transparent 70%);
}

.social-link.linkedin:hover {
    border-color: #0077b5;
    box-shadow: 0 20px 40px rgba(0, 119, 181, 0.3);
}

.social-link.linkedin::before {
    background: radial-gradient(circle, #0077b5 0%, transparent 70%);
}

.social-link.resume:hover {
    border-color: #ff6b6b;
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.social-link.resume::before {
    background: radial-gradient(circle, #ff6b6b 0%, transparent 70%);
}

.social-icon {
    font-size: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.social-link:hover .social-icon {
    transform: rotateY(360deg) scale(1.2);
}

.social-label {
    font-weight: 600;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.social-link:hover .social-label {
    opacity: 1;
    letter-spacing: 1px;
}

/* Floating elements animation */
.contact-floating-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
}

.floating-circle {
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 10%;
    right: 5%;
    animation: floatShape 20s infinite ease-in-out;
}

.floating-square {
    width: 80px;
    height: 80px;
    border: 2px solid var(--secondary);
    position: absolute;
    bottom: 15%;
    left: 5%;
    animation: floatShape 25s infinite ease-in-out reverse;
    transform: rotate(45deg);
}

/* CTA Button */
.contact-cta {
    text-align: center;
    margin-top: 4rem;
    position: relative;
}

.cta-message {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: var(--gradient2);
    color: white;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    animation: pulseFlutter 3s infinite ease-in-out;
}

.cta-message::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient2);
    border-radius: 50px;
    filter: blur(20px);
    opacity: 0.7;
    z-index: -1;
    animation: pulseFlutter 3s infinite ease-in-out;
}

/* Mobile responsiveness for contact section */
@media (max-width: 768px) {
    .social-links {
        grid-template-columns: 1fr;
    }
    
    .floating-circle,
    .floating-square {
        display: none;
    }
}